:root {
  color-scheme: dark;
  --charcoal-950: #111111;
  --charcoal-900: #1a1a1a;
  --charcoal-800: #2d2d2d;
  --charcoal-700: #3a3a3a;
  --charcoal-600: #4a4a4a;
  --charcoal-500: #777777;
  --charcoal-400: #a3a3a3;
  --white: #ffffff;
  --ember: #e85d3a;
  --ember-dark: #c44a28;
  --green: #34d399;
  --yellow: #facc15;
  --danger: #f87171;
  --line: rgba(255, 255, 255, .075);
  --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  font-family: Manrope, Inter, Segoe UI, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--charcoal-900);
  color: var(--white);
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

button, .primary-btn {
  border: 0;
  border-radius: 8px;
  background: var(--ember);
  color: var(--white);
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover, .primary-btn:hover { background: var(--ember-dark); }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--charcoal-700);
  border-radius: 8px;
  background: var(--charcoal-950);
  color: var(--white);
  outline: none;
  padding: 11px 12px;
}

textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232, 93, 58, .14); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .font-sora { font-family: Sora, Manrope, sans-serif; }

.app-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.icon-sidebar {
  width: 64px;
  flex: 0 0 64px;
  background: var(--charcoal-900);
  border-right: 1px solid var(--charcoal-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px;
  gap: 22px;
  z-index: 2;
}

.logo-bolt {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ember);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(232, 93, 58, .24);
}

.icon-nav {
  display: grid;
  gap: 4px;
  width: 100%;
}

.icon-nav a {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--charcoal-500);
  transition: background .15s ease, color .15s ease;
}

.icon-nav a:hover, .icon-nav a.active {
  background: var(--charcoal-800);
  color: var(--white);
}

.icon-nav a.active {
  color: var(--ember);
  background: rgba(232, 93, 58, .16);
}

.icon-nav em {
  position: absolute;
  left: 56px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--charcoal-800);
  color: var(--white);
  font-style: normal;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  box-shadow: var(--shadow);
  transition: opacity .14s ease, transform .14s ease;
}

.icon-nav a:hover em { opacity: 1; transform: translateX(0); }

.icon-nav b, .bell b {
  position: absolute;
  top: 6px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--white);
  font: 800 10px/16px Sora, sans-serif;
  text-align: center;
}

.avatar-dot {
  margin-top: auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--charcoal-800);
  color: var(--white);
  font-weight: 900;
}

.app-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  flex: 0 0 72px;
  background: var(--charcoal-900);
  border-bottom: 1px solid var(--charcoal-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 20px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
  font: 700 11px/1 Sora, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.crumb span { color: var(--charcoal-500); }
.crumb i { color: var(--charcoal-700); font-style: normal; }
.crumb strong { color: var(--ember); }

.topbar h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.command-pill {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal-800);
  color: var(--charcoal-500);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.command-pill:hover { color: var(--white); }
.command-pill kbd {
  background: var(--charcoal-700);
  color: var(--charcoal-400);
  border-radius: 6px;
  padding: 3px 6px;
  font: 700 11px/1 Manrope, sans-serif;
}

.bell {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--charcoal-500);
}

.bell:hover { color: var(--white); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ember), #8b2c19);
  font-weight: 900;
}

.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; line-height: 1.1; }
.user-chip small { color: var(--charcoal-500); font-size: 11px; margin-top: 2px; }

.workspace {
  min-height: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.main-stage {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 24px;
}

.pulse-feed {
  width: 320px;
  flex: 0 0 320px;
  background: var(--charcoal-900);
  border-left: 1px solid var(--charcoal-800);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pulse-head {
  flex: 0 0 auto;
  padding: 20px;
  border-bottom: 1px solid var(--charcoal-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pulse-head div { display: flex; align-items: center; gap: 8px; }
.pulse-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  animation: pulse 2s infinite;
}
.pulse-head strong { font: 800 14px Sora, sans-serif; }
.pulse-head small { color: var(--charcoal-500); font-size: 12px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.pulse-list {
  position: relative;
  padding: 20px;
  display: grid;
}

.pulse-list:before {
  content: "";
  position: absolute;
  top: 29px;
  bottom: 25px;
  left: 27px;
  width: 1px;
  background: linear-gradient(to bottom, var(--ember), var(--charcoal-600), transparent);
}

.pulse-list a {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 12px;
  padding-bottom: 18px;
}

.pulse-list i {
  width: 10px;
  height: 10px;
  margin: 3px 0 0 2px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 4px var(--charcoal-900);
}

.pulse-list strong {
  font-size: 13px;
  line-height: 1.25;
}

.pulse-list span {
  grid-column: 2;
  color: var(--charcoal-500);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.quick-panel {
  margin: auto 20px 20px;
  padding: 16px;
  border-radius: 8px;
  background: var(--charcoal-800);
}

.quick-panel p {
  margin-bottom: 12px;
  color: var(--charcoal-500);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 900;
}

.quick-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.quick-panel i { color: var(--ember); width: 18px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat {
  border-radius: 8px;
  background: var(--charcoal-800);
  padding: 20px;
}

.stat span {
  display: block;
  color: var(--charcoal-500);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 10px;
}

.stat strong {
  display: block;
  font: 800 38px/.95 Sora, sans-serif;
  letter-spacing: -.05em;
}

.stat small {
  display: block;
  color: var(--charcoal-500);
  font-size: 12px;
  margin-top: 9px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-row h2 {
  margin: 0;
  font-size: 16px;
}

.section-row span {
  display: inline-flex;
  margin-top: 6px;
  background: var(--charcoal-800);
  color: var(--charcoal-400);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.view-actions {
  display: flex;
  gap: 8px;
}

.view-actions a {
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--charcoal-800);
  color: var(--charcoal-400);
  font-size: 12px;
  font-weight: 800;
}

.listing-engine {
  display: grid;
  gap: 20px;
}

.engine-card, .panel, .listing-card, .lead-card {
  background: var(--charcoal-800);
  border-radius: 8px;
  overflow: hidden;
}

.engine-card, .listing-card, .lead-card {
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.engine-card:hover, .listing-card:hover, .lead-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.engine-listing {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 20px 20px 16px;
}

.property-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(232, 93, 58, .35), rgba(255,255,255,.05)),
    var(--charcoal-700);
  color: #ffb59f;
  font-size: 20px;
}

.engine-listing h3 {
  margin: 0 0 5px;
  font-size: 15px;
}

.engine-listing p {
  margin: 0;
  color: var(--charcoal-500);
  font-size: 12px;
}

.engine-listing aside {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.engine-listing small {
  color: var(--charcoal-400);
  font-size: 12px;
  font-weight: 800;
}

.status-chip, .pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 8px;
  background: rgba(52, 211, 153, .10);
  color: var(--green);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.lead-stack {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.lead-stack > p {
  margin: 0 0 2px;
  color: var(--charcoal-600);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 11px;
  font-weight: 900;
}

.lead-subcard {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 12px;
  gap: 14px;
  align-items: center;
  border-radius: 8px;
  background: var(--charcoal-900);
  padding: 14px 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.lead-subcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lead-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ember);
  color: var(--white);
  font: 800 12px Sora, sans-serif;
}

.lead-copy { min-width: 0; }
.lead-copy div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.lead-copy strong {
  min-width: 0;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lead-copy p {
  margin: 0;
  color: var(--charcoal-500);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-new, .phase-open {
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.phase-new { background: var(--ember); color: var(--white); }
.phase-open { border: 1px solid var(--charcoal-600); color: var(--charcoal-400); }

.log-call {
  border-radius: 8px;
  background: var(--ember);
  color: var(--white);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.lead-subcard > i { color: var(--charcoal-600); font-size: 12px; }

.panel {
  padding: 20px;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head h2 { margin: 0; font-size: 16px; }
.panel-head a { color: var(--ember); font-weight: 800; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 12px;
}

.lead-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.lead-card div, .lead-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.lead-card span, .lead-card p, .lead-card footer { color: var(--charcoal-500); font-size: 13px; }
.lead-card p { margin: 0; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

.listing-card {
  padding: 20px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-card h2 {
  font-size: 22px;
  line-height: 1.1;
  margin: 8px 0 0;
}

.listing-card p, .listing-card footer { color: var(--charcoal-500); }
.listing-card footer { margin-top: auto; display: flex; justify-content: space-between; font-weight: 800; }

.listings-manager {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  margin: -24px;
}

.listing-filter-bar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 32px;
  background: var(--charcoal-900);
  border-bottom: 1px solid var(--charcoal-800);
  flex-wrap: wrap;
}

.seg-control {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 8px;
  background: var(--charcoal-800);
}

.seg-control button {
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--charcoal-500);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
}

.seg-control button:hover,
.seg-control button.active {
  background: var(--ember);
  color: var(--white);
}

.seg-control span {
  margin-left: 5px;
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255,255,255,.14);
  font: 800 10px Sora, sans-serif;
}

.filter-divider {
  width: 1px;
  height: 24px;
  background: var(--charcoal-700);
}

.type-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.type-filter span {
  color: var(--charcoal-500);
  font-size: 12px;
  font-weight: 800;
}

.type-filter button,
.ghost-action {
  border-radius: 8px;
  background: var(--charcoal-800);
  color: var(--charcoal-400);
  padding: 8px 11px;
  box-shadow: none;
  font-size: 12px;
}

.type-filter button:hover,
.ghost-action:hover {
  background: var(--charcoal-700);
  color: var(--white);
}

.filter-spacer { flex: 1; }

.view-toggle {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 8px;
  background: var(--charcoal-800);
}

.view-toggle button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--charcoal-500);
  box-shadow: none;
}

.view-toggle button.active {
  background: var(--ember);
  color: var(--white);
}

.listings-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.listings-table {
  min-width: 1020px;
}

.listings-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--charcoal-900);
}

.listings-table th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--charcoal-800);
}

.listings-table td {
  padding: 15px 16px;
  border-color: var(--charcoal-800);
}

.listing-row {
  transition: background-color .15s ease;
}

.listing-row:hover {
  background: var(--charcoal-800);
}

.check-col {
  width: 54px;
  text-align: center;
}

.check-col input {
  width: 14px;
  height: 14px;
  accent-color: var(--ember);
}

.listing-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 320px;
}

.listing-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffb59f;
  background: linear-gradient(135deg, rgba(232,93,58,.28), rgba(255,255,255,.05)), var(--charcoal-700);
}

.listing-cell strong {
  display: block;
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.listing-cell span,
.muted-text {
  color: var(--charcoal-500);
  font-size: 12px;
}

.price-text {
  font: 800 14px Sora, sans-serif;
}

.listing-status {
  display: inline-flex;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.listing-status.active {
  background: rgba(52, 211, 153, .10);
  color: var(--green);
}

.listing-status.pending {
  background: rgba(250, 204, 21, .10);
  color: var(--yellow);
}

.listing-status.sold {
  background: var(--charcoal-700);
  color: var(--charcoal-400);
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-cell span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--charcoal-700);
  color: var(--charcoal-400);
  font: 800 10px Sora, sans-serif;
}

.client-cell b {
  color: var(--charcoal-500);
  font-size: 12px;
}

.days-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.days-cell strong {
  font: 800 12px Sora, sans-serif;
}

.days-cell span {
  margin: 0;
  color: var(--charcoal-600);
}

.heat-dots {
  display: flex;
  gap: 2px;
  margin-left: 3px;
}

.heat-dots i {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: var(--charcoal-700);
}

.heat-dots i.on {
  background: var(--ember);
}

.metric-swap {
  position: relative;
  min-width: 94px;
  min-height: 30px;
}

.col-metrics {
  display: flex;
  align-items: baseline;
  gap: 6px;
  transition: opacity .15s ease;
}

.col-metrics strong {
  font: 800 14px Sora, sans-serif;
}

.col-metrics span {
  margin: 0;
  color: var(--charcoal-600);
}

.quick-actions {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.listing-row:hover .col-metrics {
  opacity: 0;
}

.listing-row:hover .quick-actions {
  opacity: 1;
  pointer-events: all;
}

.quick-actions a {
  border-radius: 8px;
  background: var(--charcoal-700);
  color: var(--white);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
}

.quick-actions a:first-child {
  background: var(--ember);
}

.task-hot,
.task-cool {
  display: inline-flex;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.task-hot {
  background: rgba(232, 93, 58, .12);
  color: #ff9b82;
}

.task-cool {
  background: rgba(52, 211, 153, .10);
  color: var(--green);
}

.row-more {
  color: var(--charcoal-600);
}

.listing-table-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 32px;
  border-top: 1px solid var(--charcoal-800);
  background: var(--charcoal-900);
}

.listing-table-footer,
.listing-table-footer span {
  color: var(--charcoal-500);
  font-size: 12px;
}

.listing-table-footer strong {
  color: var(--white);
}

.listing-table-footer div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.listing-table-footer select {
  width: auto;
  padding: 5px 26px 5px 8px;
  background: var(--charcoal-800);
  font-size: 12px;
}

.page-title {
  margin-bottom: 20px;
}

.page-title .eyebrow, .eyebrow {
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  font-weight: 900;
  margin: 0 0 7px;
}

.page-title h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.subtle, .hint { color: var(--charcoal-500); line-height: 1.55; }
.hint { font-size: 13px; margin: 12px 0 0; }

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  color: var(--charcoal-500);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 0 12px 12px;
}

td {
  border-top: 1px solid var(--line);
  padding: 14px 12px;
  color: #e6e6e6;
}

tbody tr { cursor: pointer; }
tbody tr:hover { background: rgba(255, 255, 255, .035); }
td span { display: block; color: var(--charcoal-500); font-size: 12px; margin-top: 4px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.form-panel, .stack { display: grid; gap: 13px; }

label {
  color: var(--charcoal-400);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  gap: 7px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.kv span { color: var(--charcoal-500); }
.kv strong { text-align: right; }

.task-list { display: grid; gap: 8px; }

.task-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.task-list strong { color: var(--charcoal-400); }

.task-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-tabs a {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--charcoal-900);
  color: var(--charcoal-400);
  font-size: 13px;
  font-weight: 800;
}

.inline-form { margin: 0; }
.inline-form button { padding: 7px 10px; box-shadow: none; }

.match-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.match-form span {
  grid-column: 1 / -1;
  color: var(--charcoal-500);
  font-size: 12px;
}

.match-form button { padding: 10px 12px; }

.timeline { display: grid; gap: 10px; }

.timeline article {
  border-left: 2px solid var(--ember);
  padding: 4px 0 4px 14px;
}

.timeline span, .timeline small {
  display: block;
  color: var(--charcoal-500);
  font-size: 12px;
}

.timeline strong { display: block; margin: 4px 0; }

.alert {
  background: rgba(52, 211, 153, .12);
  border: 1px solid rgba(52, 211, 153, .25);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.alert.danger {
  background: rgba(248, 113, 113, .12);
  border-color: rgba(248, 113, 113, .28);
}

.empty, .empty-state {
  color: var(--charcoal-500);
  margin: 0;
}

.empty-state {
  background: var(--charcoal-800);
  border-radius: 8px;
  padding: 28px;
}

.narrow { max-width: 560px; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background:
    radial-gradient(circle at 74% 15%, rgba(232, 93, 58, .14), transparent 32rem),
    var(--charcoal-900);
}

.login-shell { width: min(100%, 460px); }

.login-card {
  background: var(--charcoal-800);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ember);
  color: white;
  font-weight: 900;
  letter-spacing: -.03em;
}

.login-card h1 {
  margin: 24px 0 10px;
  font-size: 42px;
  line-height: 1;
}

code {
  background: var(--charcoal-950);
  padding: 3px 6px;
  border-radius: 6px;
  color: #ffb09c;
}

@media (max-width: 1180px) {
  .pulse-feed { display: none; }
  .hide-xl { display: none; }
}

@media (max-width: 820px) {
  body { overflow: auto; }
  .app-shell { display: block; height: auto; min-height: 100vh; overflow: visible; }
  .icon-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px;
  }
  .icon-nav { display: flex; width: auto; }
  .icon-nav em { display: none; }
  .avatar-dot { margin: 0 0 0 auto; }
  .topbar { height: auto; align-items: flex-start; padding: 16px; }
  .topbar-actions { display: none; }
  .workspace { display: block; overflow: visible; }
  .main-stage { overflow: visible; padding: 16px; }
  .stat-grid, .detail-grid, .split { grid-template-columns: 1fr; }
  .listings-manager { margin: -16px; min-height: auto; }
  .listing-filter-bar { padding: 12px 16px; gap: 10px; }
  .filter-divider, .type-filter, .ghost-action { display: none; }
  .hide-lg, .hide-md { display: none; }
  .listings-table { min-width: 760px; }
  .listing-table-footer { padding: 12px 16px; }
  .engine-listing { grid-template-columns: 48px 1fr; }
  .engine-listing aside { grid-column: 2; }
  .lead-subcard { grid-template-columns: 36px minmax(0, 1fr) 12px; }
  .log-call { display: none; }
}
