:root {
  --bg: #fbf8f2;
  --panel: #ffffff;
  --panel-soft: #fff8ed;
  --line: #eaded2;
  --line-strong: #d7c7b8;
  --text: #2a211d;
  --muted: #71655f;
  --faint: #a0938a;
  --primary: #ed1c24;
  --primary-deep: #c9131b;
  --primary-soft: #fff0f1;
  --brand-blue: #8cc2e8;
  --brand-blue-soft: #edf8ff;
  --brand-yellow: #ffd56a;
  --brand-ink: #66615f;
  --green: #2f8f68;
  --green-soft: #eaf7f0;
  --amber: #b9781f;
  --amber-soft: #fff4dc;
  --red: #c44e4e;
  --red-soft: #fff0f0;
  --blue: #3f73b8;
  --blue-soft: #edf4ff;
  --shadow: 0 18px 60px rgba(42, 35, 27, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 9%, rgba(140, 194, 232, 0.24), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(237, 28, 36, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #f0d8d8;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 239, 0.96)),
    var(--panel);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  left: -72px;
  bottom: 78px;
  background: url("assets/logo-large.png") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 74px;
  min-width: 74px;
  height: 48px;
  display: grid;
  place-items: center;
}

.brand-mark img {
  max-width: 74px;
  max-height: 48px;
  object-fit: contain;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.brand-subtitle,
.mini-label,
.breadcrumb,
.muted,
.meta {
  margin: 0;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.nav button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  text-align: left;
}

.nav button:hover,
.nav button.active {
  background: var(--primary-soft);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--primary);
}

.nav-icon {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(180deg, white, var(--brand-blue-soft));
  font-size: 11px;
  font-weight: 600;
}

.app-icon {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid #f4c7c9;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.08), rgba(140, 194, 232, 0.12)),
    white;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.sidebar-card span {
  color: var(--muted);
  font-size: 13px;
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 84px;
  display: grid;
  grid-template-columns: 280px minmax(360px, 640px) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 28px;
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
}

h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.search {
  height: 44px;
  border: 1px solid #f1cccc;
  border-radius: 12px;
  background: white;
  color: var(--muted);
  padding: 0 12px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  min-width: 0;
}

.search:hover,
.search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.08);
}

.search span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

kbd {
  border: 1px solid #cce8fa;
  border-bottom-color: #acd8f4;
  border-radius: 6px;
  padding: 2px 6px;
  background: var(--brand-blue-soft);
  color: var(--muted);
  font-size: 12px;
}

.search-icon {
  color: var(--primary);
  font-weight: 600;
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid #f1cccc;
  border-radius: 12px;
  background: white;
  color: var(--primary);
}

.icon-button:hover {
  background: var(--primary-soft);
}

.content {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.brand-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid #f4c7c9;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.1), rgba(140, 194, 232, 0.16)),
    white;
  padding: 18px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand-hero::after {
  content: "";
  position: absolute;
  right: 18px;
  top: -48px;
  width: 210px;
  height: 210px;
  background: url("assets/logo-large.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}

.brand-hero-logo {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.brand-hero-copy {
  position: relative;
  z-index: 1;
}

.brand-hero-copy h2 {
  color: var(--primary);
}

.brand-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-pulse {
  border: 1px solid #f4c7c9;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.08), rgba(140, 194, 232, 0.14)),
    white;
  padding: 16px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
}

.pulse-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--primary);
  border: 1px solid #f4c7c9;
}

.pulse-mark .app-icon {
  width: 22px;
  height: 22px;
}

.pulse-stat {
  min-width: 150px;
  border: 1px solid rgba(140, 194, 232, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 10px 12px;
}

.pulse-stat span,
.signal-card span,
.assignment-grid .meta {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pulse-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--primary);
}

.section {
  display: grid;
  gap: 16px;
}

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

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
  min-width: 0;
  box-shadow: 0 1px 0 rgba(237, 28, 36, 0.03);
}

.card:hover {
  border-color: #efc5c7;
}

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

.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 500;
}

.delta {
  color: var(--green);
  font-size: 13px;
}

.button-row,
.filters,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  padding: 8px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: linear-gradient(180deg, #ff353d, var(--primary));
  color: white;
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(237, 28, 36, 0.18);
}

.btn.primary:hover {
  background: linear-gradient(180deg, #ff4249, var(--primary-deep));
}

.btn.ghost {
  background: transparent;
}

.btn.active,
.tab.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  background: white;
  color: var(--text);
  width: 100%;
}

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

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  background: var(--panel-soft);
}

td {
  overflow-wrap: anywhere;
}

tr:last-child td {
  border-bottom: 0;
}

.person {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

td .person.btn {
  width: 176px;
  min-width: 176px;
  max-width: 176px;
  min-height: 64px;
  padding: 10px;
  justify-content: start;
  text-align: left;
}

td .person.btn > span:last-child {
  min-width: 0;
}

td .person.btn strong,
td .person.btn .meta {
  display: block;
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixed-person {
  min-height: 58px;
}

.initials {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--brand-blue-soft));
  color: var(--primary);
  font-weight: 600;
}

.clip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  border: 1px solid transparent;
}

.badge.green {
  color: var(--green);
  background: var(--green-soft);
}

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

.badge.red {
  color: var(--red);
  background: var(--red-soft);
}

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

.badge.gray {
  color: var(--muted);
  background: var(--panel-soft);
  border-color: var(--line);
}

.timeline,
.feed,
.kanban,
.list {
  display: grid;
  gap: 10px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: white;
  display: grid;
  gap: 6px;
}

.item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-soft);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--brand-blue));
}

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

.heatmap span {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--panel-soft);
}

.heatmap span.present {
  background: #8dc9a9;
}

.heatmap span.absent {
  background: #eaa5a5;
}

.heatmap span.late {
  background: #f0c97d;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.empty-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: white;
  color: var(--primary);
  border: 1px solid var(--line);
  font-weight: 600;
}

.command,
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(37, 33, 29, 0.4);
  display: grid;
  place-items: start center;
  padding-top: 10vh;
}

.hidden {
  display: none !important;
}

.command-panel {
  width: min(760px, calc(100vw - 40px));
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.command-input-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.command-input-row input {
  border: 0;
  min-height: 36px;
  padding: 0;
}

.command-input-row button {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 8px;
  padding: 6px 8px;
  color: var(--muted);
}

.command-results {
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
}

.command-result {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: white;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 2px;
}

.command-result:hover {
  background: var(--primary-soft);
}

.modal {
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: relative;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.modal-form {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.day {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 10px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.day strong {
  font-weight: 500;
}

.pill-event {
  border-radius: 8px;
  padding: 6px 8px;
  background: linear-gradient(90deg, var(--primary-soft), var(--brand-blue-soft));
  color: var(--text);
  font-size: 12px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--panel-soft);
}

.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
}

.integration-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 170px;
}

.integration-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.brand-logo-tile {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(42, 35, 27, 0.04);
}

.brand-logo-tile img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

.signal-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
}

.signal-card .nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.signal-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
}

.scheduling-tabs {
  padding-bottom: 2px;
}

.assignment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.assignment-list {
  display: grid;
  gap: 12px;
}

.assignment-card {
  display: grid;
  gap: 14px;
}

.assignment-main {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
}

.assignment-main .nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

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

.assignment-grid > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 10px;
  min-width: 0;
}

.assignment-grid strong {
  display: block;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.candidate-row,
.slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.candidate-chip {
  border: 1px solid #cce8fa;
  border-radius: 999px;
  background: var(--brand-blue-soft);
  color: var(--text);
  padding: 5px 9px;
  font-size: 12px;
}

.guardrail-panel {
  display: grid;
  gap: 10px;
}

.guardrail {
  grid-template-columns: 34px 1fr;
  align-items: center;
}

.guardrail .nav-icon {
  width: 34px;
  height: 34px;
}

.scheduling-table table {
  min-width: 1120px;
}

.table-progress {
  height: 6px;
  margin-bottom: 5px;
}

.scheduling-split {
  align-items: start;
}

.one-on-one-grid,
.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.one-on-one-card,
.availability-card {
  display: grid;
  gap: 12px;
}

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

  .brand div:not(.brand-mark),
  .nav button span:last-child,
  .sidebar-card {
    display: none;
  }

  .brand-mark,
  .brand-mark img {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
  }

  .topbar {
    grid-template-columns: 220px 1fr auto;
  }

  .brand-hero {
    grid-template-columns: 1fr;
  }

  .brand-hero-actions {
    justify-content: flex-start;
  }

  .dashboard-pulse,
  .scheduling-summary,
  .one-on-one-grid,
  .availability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assignment-layout,
  .scheduling-split {
    grid-template-columns: 1fr;
  }

  .assignment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .dashboard-pulse,
  .scheduling-summary,
  .one-on-one-grid,
  .availability-grid,
  .assignment-grid {
    grid-template-columns: 1fr;
  }
}

/* Clean CRM theme inspired by the LGA preview reference. */
:root {
  --bg: #f9fafb;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --primary: #d97706;
  --primary-deep: #b45309;
  --primary-soft: #fef3c7;
  --brand-blue: #60a5fa;
  --brand-blue-soft: #eff6ff;
  --green: #065f46;
  --green-soft: #d1fae5;
  --amber: #92400e;
  --amber-soft: #fef3c7;
  --red: #991b1b;
  --red-soft: #fee2e2;
  --blue: #1e40af;
  --blue-soft: #dbeafe;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

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

.sidebar {
  padding: 0;
  gap: 0;
  border-right: 1px solid #f3f4f6;
  background: #ffffff;
  overflow: hidden;
}

.sidebar::after {
  display: none;
}

.brand {
  height: 57px;
  padding: 12px 14px;
  gap: 10px;
  border-bottom: 1px solid #f3f4f6;
}

.brand-mark {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
}

.brand-mark img {
  max-width: 34px;
  max-height: 34px;
}

.brand-name {
  font-size: 13px;
  color: #111827;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.2;
}

.nav {
  padding: 8px;
  gap: 2px;
}

.nav button {
  min-height: 32px;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  color: #6b7280;
  font-size: 13px;
}

.nav button:hover {
  background: #f3f4f6;
  color: #111827;
  box-shadow: none;
}

.nav button.active {
  background: #fef3c7;
  color: #92400e;
  box-shadow: none;
  font-weight: 500;
}

.nav-icon {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
}

.nav-icon .app-icon,
.app-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.sidebar-card {
  display: none;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fde68a;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
}

.topbar {
  min-height: 56px;
  grid-template-columns: 220px minmax(240px, 440px) auto;
  gap: 20px;
  padding: 10px 20px;
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  backdrop-filter: none;
}

.breadcrumb {
  font-size: 12px;
  color: #9ca3af;
}

h1 {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

h3 {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.search {
  height: 34px;
  grid-template-columns: 18px 1fr auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  padding: 0 10px;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
}

.search:hover,
.search:focus-within {
  border-color: #d97706;
  box-shadow: 0 0 0 2px #fef3c7;
}

kbd {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #9ca3af;
  font-size: 10px;
  padding: 1px 5px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: #6b7280;
  background: #ffffff;
}

.icon-button:hover {
  background: #f3f4f6;
}

.content {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 24px;
  gap: 20px;
}

.section {
  gap: 20px;
}

.section-header {
  align-items: center;
}

.section-header .muted {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.grid-4,
.grid-3,
.grid-2 {
  gap: 16px;
}

.card,
.item,
.stage,
.day,
.table-wrap,
.stat,
.assignment-grid > div,
.brand-logo-tile,
.modal-card,
.command-panel {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.card {
  border-radius: 12px;
  padding: 16px;
}

.card:hover {
  border-color: #e5e7eb;
}

.metric {
  padding: 16px 20px;
  gap: 6px;
}

.metric .nav-icon {
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.metric-top .muted,
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  font-weight: 500;
}

.metric-value {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.delta {
  font-size: 11px;
  color: #059669;
}

.btn {
  min-height: 32px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  padding: 5px 12px;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.btn:hover {
  background: #f9fafb;
}

.btn.primary {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  box-shadow: none;
}

.btn.primary:hover {
  background: #b45309;
}

.btn.active,
.tab.active {
  border-color: transparent;
  background: #fef3c7;
  color: #92400e;
}

input,
select,
textarea {
  min-height: 32px;
  border-radius: 6px;
  border-color: #e5e7eb;
  font-size: 13px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #d97706;
  box-shadow: 0 0 0 2px #fef3c7;
}

table {
  min-width: 920px;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  color: #374151;
}

th {
  padding: 10px 12px;
  background: #f9fafb;
}

tr:hover td {
  background: #fafafa;
}

.initials {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fde68a;
  color: #92400e;
  font-size: 10px;
}

td .person.btn {
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  min-height: 48px;
  padding: 6px 8px;
}

td .person.btn strong,
td .person.btn .meta {
  max-width: 112px;
}

.badge {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px currentColor;
  border: 0;
}

.badge.green {
  color: #065f46;
  background: #d1fae5;
}

.badge.amber {
  color: #92400e;
  background: #fef3c7;
}

.badge.red {
  color: #991b1b;
  background: #fee2e2;
}

.badge.blue {
  color: #1e40af;
  background: #dbeafe;
}

.badge.gray {
  color: #4b5563;
  background: #f3f4f6;
}

.item {
  border-radius: 10px;
  padding: 12px;
}

.progress {
  height: 6px;
  background: #f3f4f6;
}

.progress span {
  background: #d97706;
}

.calendar {
  gap: 8px;
}

.day {
  min-height: 110px;
  border-radius: 10px;
  padding: 10px;
}

.pill-event {
  background: #f9fafb;
  border-left: 3px solid #d97706;
  border-radius: 6px;
  font-size: 11px;
}

.pipeline {
  gap: 12px;
}

.stage {
  border-radius: 12px;
  background: #f9fafb;
}

.command,
.modal {
  background: rgba(17, 24, 39, 0.35);
}

.scheduling-summary,
.one-on-one-grid,
.availability-grid {
  gap: 16px;
}

.signal-card {
  min-height: 86px;
  grid-template-columns: 28px 1fr;
}

.signal-card .nav-icon,
.assignment-main .nav-icon,
.guardrail .nav-icon {
  width: 28px;
  height: 28px;
  color: #d97706;
}

.signal-card strong {
  font-size: 20px;
}

.assignment-card,
.one-on-one-card,
.availability-card,
.integration-card {
  gap: 12px;
}

.assignment-grid {
  gap: 8px;
}

.assignment-grid > div {
  border-radius: 8px;
  background: #f9fafb;
  padding: 8px 10px;
}

.candidate-chip {
  border-color: #e5e7eb;
  background: #f9fafb;
  color: #4b5563;
  font-size: 11px;
}

.integration-card {
  min-height: 150px;
}

.brand-logo-tile {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-logo-tile img {
  width: 26px;
  height: 26px;
}

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

  .topbar {
    grid-template-columns: 1fr minmax(240px, 440px) auto;
  }

  .brand {
    justify-content: center;
  }
}

/* Alignment and spacing polish pass. */
html {
  height: 100%;
}

body {
  min-height: 100%;
  overflow: hidden;
}

p,
strong,
span,
label {
  letter-spacing: 0;
}

p {
  margin: 0;
}

.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  flex: 0 0 56px;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 520px) auto;
  padding: 10px 24px;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar .breadcrumb {
  display: none;
}

.topbar h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  gap: 8px;
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 32px;
  gap: 18px;
}

.section {
  gap: 18px;
}

.section-header {
  min-height: 36px;
  gap: 16px;
}

.section-header > div:first-child {
  min-width: 0;
}

.section-header h2 {
  line-height: 1.25;
}

.section-header .button-row {
  flex: 0 0 auto;
}

.row-between {
  align-items: flex-start;
  gap: 12px;
}

.row-between > :first-child {
  min-width: 0;
}

.button-row,
.filters,
.tabs {
  gap: 8px;
}

.grid-4,
.grid-3,
.grid-2,
.scheduling-summary,
.one-on-one-grid,
.availability-grid {
  gap: 14px;
}

.dashboard-panels {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.card {
  padding: 14px;
}

.card > h2,
.card > .row-between:first-child {
  margin-bottom: 12px;
}

.metric {
  min-height: 118px;
  padding: 14px 16px;
}

.metric-top {
  min-height: 20px;
}

.metric-value {
  line-height: 1.15;
}

.timeline,
.feed,
.list {
  gap: 8px;
}

.item {
  padding: 10px 12px;
  gap: 4px;
}

.item-line {
  align-items: center;
}

.item-line h3 {
  min-width: 0;
}

.btn {
  white-space: nowrap;
}

.btn.ghost {
  border-color: transparent;
  padding-inline: 8px;
}

.filters select {
  width: auto;
  min-width: 148px;
}

.tabs {
  align-items: flex-end;
  border-bottom: 1px solid #e5e7eb;
}

.tabs .btn {
  min-height: 34px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 6px 0;
  margin-right: 14px;
  color: #6b7280;
}

.tabs .btn:hover {
  background: transparent;
  color: #111827;
}

.tabs .btn.active,
.tabs .tab.active {
  background: transparent;
  color: #d97706;
  border-bottom-color: #d97706;
}

.table-wrap {
  border-radius: 10px;
}

table {
  border-spacing: 0;
}

th,
td {
  height: 48px;
}

th:first-child,
td:first-child {
  padding-left: 14px;
}

th:last-child,
td:last-child {
  padding-right: 14px;
}

.person {
  gap: 8px;
}

td .person.btn {
  width: 178px;
  min-width: 178px;
  max-width: 178px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
}

td .person.btn strong,
td .person.btn .meta {
  max-width: 124px;
}

.profile-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.stat-row {
  gap: 8px;
}

.stat {
  padding: 9px 10px;
}

.stat strong {
  line-height: 1.2;
}

.signal-card {
  min-height: 82px;
  padding: 12px;
}

.signal-card .muted {
  line-height: 1.2;
}

.signal-card strong {
  margin: 2px 0;
  line-height: 1.15;
}

.assignment-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.assignment-list {
  gap: 10px;
}

.assignment-card {
  padding: 14px;
}

.assignment-main {
  grid-template-columns: 30px minmax(0, 1fr);
}

.assignment-main .nav-icon {
  margin-top: 1px;
}

.assignment-grid {
  gap: 8px;
}

.assignment-grid > div {
  min-height: 62px;
  display: grid;
  align-content: start;
  gap: 2px;
}

.candidate-row,
.slot-list {
  gap: 6px;
}

.candidate-chip {
  line-height: 1.25;
}

.guardrail-panel {
  position: sticky;
  top: 74px;
  gap: 8px;
}

.guardrail {
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 9px 10px;
}

.guardrail p {
  font-size: 13px;
  line-height: 1.4;
}

.scheduling-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
}

.calendar {
  margin-top: 12px;
}

.day {
  min-height: 126px;
}

.day strong {
  display: block;
  margin-bottom: 4px;
}

.pill-event {
  display: block;
  line-height: 1.35;
}

.one-on-one-card,
.availability-card,
.integration-card {
  min-height: 0;
}

.one-on-one-card .row-between,
.availability-card .row-between {
  align-items: center;
}

.fixed-person {
  min-height: 44px;
  grid-template-columns: 28px minmax(0, 1fr);
}

.fixed-person strong,
.fixed-person .meta {
  display: block;
}

.integration-card {
  min-height: 146px;
  padding: 14px;
}

.integration-head {
  grid-template-columns: 40px minmax(0, 1fr);
}

.integration-head h3 {
  line-height: 1.25;
  margin-bottom: 2px;
}

.integration-head .muted {
  font-size: 12px;
  line-height: 1.45;
}

.brand-logo-tile {
  flex: 0 0 auto;
}

.pipeline {
  align-items: stretch;
}

.stage {
  min-height: 330px;
}

.empty {
  padding: 18px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-toolbar > div:first-child {
  min-width: 0;
}

.calendar-toolbar .filters {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.calendar-shell {
  padding: 0;
  overflow: hidden;
}

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0;
  overflow-x: auto;
}

.schedule-day {
  min-height: 520px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  padding: 0;
}

.schedule-day:last-child {
  border-right: 0;
}

.day-head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 44px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.day-head strong {
  margin: 0;
}

.day-head span {
  color: #9ca3af;
  font-size: 11px;
  white-space: nowrap;
}

.calendar-event {
  width: calc(100% - 16px);
  margin: 8px;
  border: 1px solid #e5e7eb;
  border-left-width: 3px;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  gap: 2px;
  text-align: left;
  color: #374151;
}

.calendar-event:hover {
  background: #f9fafb;
}

.calendar-event strong {
  font-size: 12px;
  line-height: 1.25;
  color: #111827;
}

.calendar-event span {
  font-size: 11px;
  line-height: 1.3;
  color: #6b7280;
}

.calendar-event .event-time {
  font-weight: 600;
  color: #111827;
}

.calendar-event .event-meta {
  color: #9ca3af;
}

.calendar-event .event-lock {
  width: fit-content;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 10px;
}

.calendar-event.offline-group,
.legend-swatch.offline-group {
  border-left-color: #d97706;
}

.calendar-event.offline-one,
.legend-swatch.offline-one {
  border-left-color: #10b981;
}

.calendar-event.online-group,
.legend-swatch.online-group {
  border-left-color: #3b82f6;
}

.calendar-event.online-one,
.legend-swatch.online-one {
  border-left-color: #8b5cf6;
}

.empty-day {
  margin: 8px;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
  padding: 14px 8px;
  color: #c0c4cc;
  font-size: 12px;
  text-align: center;
}

.legend-grid {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
}

.legend-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid #e5e7eb;
  border-left-width: 4px;
  border-radius: 5px;
  background: #ffffff;
}

@media (max-width: 1180px) {
  .dashboard-panels,
  .scheduling-split,
  .assignment-layout {
    grid-template-columns: 1fr;
  }

  .guardrail-panel {
    position: static;
  }

  .topbar {
    grid-template-columns: minmax(140px, 1fr) minmax(260px, 420px) auto;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-toolbar .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .main {
    min-height: auto;
  }

  .content {
    overflow: visible;
    padding: 18px;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr;
    height: auto;
  }
}
