:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.material-symbols-outlined.fill {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  padding: 0.875rem 1rem;
  color: #45474c;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  background: #f3f3f4;
  color: #091426;
}

.nav-link.active {
  background: #091426;
  color: #ffffff;
}

.summary-card,
.panel-card,
.settings-card {
  border: 1px solid #c5c6cd;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(9, 20, 38, 0.05);
}

.summary-card {
  padding: 1.25rem;
}

.summary-label,
.eyebrow,
.mini-stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #45474c;
}

.summary-value,
.mini-stat-value {
  display: block;
  margin-top: 0.55rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: #091426;
}

.summary-meta {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #45474c;
}

.panel-card {
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.panel-title,
.settings-title {
  margin: 0.35rem 0 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: #091426;
}

.mini-stat {
  border-radius: 1rem;
  background: #ffffff;
  padding: 1rem;
}

.kanban-grid {
  display: grid;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
}

.kanban-column {
  min-height: 280px;
  border: 1px solid #c5c6cd;
  border-radius: 1.25rem;
  background: #f3f3f4;
  padding: 0.9rem;
}

.kanban-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.kanban-column-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #091426;
}

.kanban-dot {
  height: 0.7rem;
  width: 0.7rem;
  border-radius: 999px;
}

.kanban-count {
  border-radius: 999px;
  background: #ffffff;
  padding: 0.3rem 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #45474c;
}

.deal-card {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #c5c6cd;
  padding: 1rem;
}

.deal-card + .deal-card {
  margin-top: 0.75rem;
}

.deal-name {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #091426;
}

.deal-meta,
.activity-copy,
.integration-copy {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #45474c;
}

.contact-row {
  border-bottom: 1px solid #c5c6cd;
}

.contact-row td {
  padding: 1rem;
  font-size: 0.95rem;
  color: #1a1c1c;
}

.contact-name {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.95rem;
  background: #e8e8e8;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #091426;
}

.activity-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.activity-time {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: #f3f3f4;
  padding: 0.45rem 0.7rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #45474c;
}

.integration-card {
  border: 1px solid #c5c6cd;
  border-radius: 1.5rem;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(9, 20, 38, 0.05);
}

.integration-accent {
  height: 4px;
}

.integration-body {
  padding: 1.25rem;
}

.integration-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
}

.integration-icon {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 1.55rem;
}

.integration-name {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #091426;
}

.integration-subtitle {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: #45474c;
}

.integration-status {
  margin-top: 1rem;
  border-radius: 1rem;
  background: #f3f3f4;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  color: #45474c;
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-btn {
  border: 1px solid #c5c6cd;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.7rem 0.95rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #091426;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.action-btn:hover {
  background: #f3f3f4;
}

.action-btn.primary {
  background: #091426;
  border-color: #091426;
  color: #ffffff;
}

.action-btn.primary:hover {
  background: #1e293b;
}

.settings-card {
  padding: 1.25rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #45474c;
}

.field input {
  width: 100%;
  border: 1px solid #c5c6cd;
  border-radius: 0.95rem;
  background: #ffffff;
  padding: 0.9rem 1rem;
  font: inherit;
  color: #1a1c1c;
}

.field input:focus {
  outline: none;
  border-color: #091426;
  box-shadow: 0 0 0 1px #091426;
}

@media (max-width: 1023px) {
  .kanban-grid {
    grid-template-columns: repeat(4, minmax(240px, 240px));
  }
}

@media (max-width: 767px) {
  .panel-card,
  .summary-card,
  .settings-card {
    border-radius: 1.25rem;
  }

  .panel-header {
    flex-direction: column;
  }

  .activity-item {
    grid-template-columns: 1fr;
  }
}