.sidebar-nav {
  display: grid;
  gap: 10px;
}

.workspace-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.nav-button {
  width: 100%;
  border: 1px solid rgba(182, 214, 46, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  min-height: 52px;
  border-radius: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.nav-button:hover,
.nav-button.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(182, 214, 46, 0.34);
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(182, 214, 46, 0.54);
}

.nav-button.is-active .nav-dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(182, 214, 46, 0.18);
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #f7fafc);
  padding: 18px;
  display: grid;
  gap: 8px;
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  font-size: 32px;
  line-height: 1;
}

.metric-note {
  color: var(--muted);
}

.split-grid {
  display: grid;
  gap: 18px;
}

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

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

.bars-list,
.list-stack,
.board-stack,
.timeline-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-row-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #edf3f8;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #58d0d3);
}

.list-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.list-item p,
.timeline-content p {
  margin: 6px 0 0;
  color: var(--muted);
}

.item-meta {
  display: grid;
  gap: 8px;
  justify-items: end;
  color: var(--muted);
}

.table-shell {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.data-table th {
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(215, 225, 235, 0.88);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.client-row {
  cursor: default;
  transition: background 0.16s ease;
}

.client-row:hover {
  background: rgba(22, 166, 163, 0.04);
}

.table-subtle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf3f8;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.quick-filter-row {
  margin-top: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.timeline-marker {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lime), #7ca213);
  box-shadow: 0 0 0 6px rgba(182, 214, 46, 0.14);
}

.timeline-content {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
}

.timeline-topline,
.task-card-top,
.knowledge-meta,
.timeline-meta,
.type-row-meta,
.tasks-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-meta,
.knowledge-meta,
.type-row-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.board-column {
  min-height: 100%;
}

.task-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fbfd);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.task-card p,
.task-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.task-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.badge-critical {
  background: rgba(198, 75, 93, 0.08);
  border-color: rgba(198, 75, 93, 0.18);
  color: var(--danger);
}

.empty-mini {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

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

.knowledge-card h3 {
  margin: 14px 0 10px;
}

.dirty-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  margin-left: 8px;
}

.settings-communications-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.provider-rail,
.provider-config {
  display: grid;
  gap: 16px;
}

.provider-rail-list {
  display: grid;
  gap: 10px;
}

.provider-tile {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.provider-tile.is-active {
  border-color: rgba(22, 166, 163, 0.28);
  background: rgba(22, 166, 163, 0.06);
}

.provider-tile span,
.provider-tile small {
  color: var(--muted);
}

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

.detail-box-wide {
  grid-column: 1 / -1;
}

.type-table {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.type-table-head,
.type-row {
  display: grid;
  grid-template-columns: minmax(0, 2.6fr) 120px 140px 90px;
  gap: 16px;
  align-items: center;
}

.type-table-head {
  padding: 14px 16px;
  background: #f2f7fb;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.type-table-body {
  display: grid;
}

.type-row {
  padding: 16px;
  border-top: 1px solid rgba(215, 225, 235, 0.88);
}

.type-row:first-child {
  border-top: none;
}

.type-name-input {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
}

.type-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.type-order {
  display: flex;
  gap: 8px;
}

.type-order-btn {
  min-width: 44px;
  padding: 0;
}

.type-add-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.type-plus-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.compact-table td:first-child {
  min-width: 260px;
}

.field-inline {
  max-width: 360px;
}

.empty-state-compact {
  min-height: 240px;
}

.card-header.compact {
  margin-bottom: 12px;
}

@media (max-width: 1320px) {
  .board-grid,
  .metrics-grid,
  .split-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-communications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .split-2,
  .cards-grid,
  .provider-detail-panel {
    grid-template-columns: 1fr;
  }

  .type-table-head,
  .type-row {
    grid-template-columns: 1fr;
  }

  .type-name-input {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .metrics-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }

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

  .timeline-marker {
    display: none;
  }
}
