.tech-specialists-shell {
  width: min(1880px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
}

.tech-specialists-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.tech-specialists-head h1 {
  max-width: 980px;
  font-size: clamp(2.2rem, 4vw, 4.7rem);
}

.tech-filter-panel {
  display: grid;
  grid-template-columns: 150px 150px 150px minmax(180px, 1fr) minmax(180px, 1fr) minmax(220px, 1.2fr) 150px 250px;
  gap: 0.85rem;
  align-items: end;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.86);
}

.tech-inline-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 43px;
}

.tech-inline-check input {
  width: auto;
}

.tech-filter-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tech-summary {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  gap: 0.4rem 1.2rem;
  align-items: center;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(95, 116, 95, 0.1);
}

.tech-summary span {
  color: var(--muted);
}

.tech-summary strong {
  font-variant-numeric: tabular-nums;
}

.tech-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
  gap: 1rem;
  align-items: start;
}

.tech-deals-table table {
  min-width: 1180px;
}

.tech-deals-table th:nth-child(1),
.tech-deals-table td:nth-child(1) {
  width: 72px;
}

.tech-deals-table th:nth-child(2),
.tech-deals-table td:nth-child(2) {
  min-width: 280px;
}

.tech-deals-table th:nth-child(7),
.tech-deals-table td:nth-child(7),
.tech-deals-table th:nth-child(8),
.tech-deals-table td:nth-child(8),
.tech-deals-table th:nth-child(9),
.tech-deals-table td:nth-child(9) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tech-deal-panel {
  position: sticky;
  top: 64px;
  min-height: 360px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 247, 0.92);
}

.tech-empty-panel {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.tech-deal-title {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.tech-deal-title strong {
  font-size: 1.35rem;
  line-height: 1.15;
}

.tech-deal-meta {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.45rem 0.8rem;
  margin: 0.8rem 0 1rem;
  font-size: 0.95rem;
}

.tech-deal-meta span {
  color: var(--muted);
}

.tech-task-actions,
.tech-task-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-task-actions {
  margin: 0.8rem 0;
}

.tech-task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.tech-task-form label:first-child,
.tech-task-form .tech-task-text,
.tech-task-form .tech-task-submit {
  grid-column: 1 / -1;
}

.tech-tasks-list {
  display: grid;
  gap: 0.7rem;
  max-height: calc(100vh - 390px);
  overflow: auto;
  padding-right: 0.2rem;
}

.tech-task-item {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.tech-task-item.completed {
  opacity: 0.72;
}

.tech-task-item.completed .tech-task-text-value {
  text-decoration: line-through;
}

.tech-task-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.tech-task-text-value {
  white-space: pre-wrap;
}

.tech-task-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-task-result {
  padding: 0.65rem;
  border-radius: 12px;
  background: rgba(241, 200, 91, 0.18);
  white-space: pre-wrap;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(95, 116, 95, 0.14);
  font-size: 0.88rem;
  color: var(--ink);
}

.tech-small-button {
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 1480px) {
  .tech-filter-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tech-workspace {
    grid-template-columns: 1fr;
  }

  .tech-deal-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .tech-specialists-shell {
    width: 100%;
    padding: 0.75rem;
  }

  .tech-specialists-head,
  .tech-summary {
    grid-template-columns: 1fr;
  }

  .tech-specialists-head {
    display: grid;
  }

  .tech-filter-panel,
  .tech-task-form,
  .tech-deal-meta {
    grid-template-columns: 1fr;
  }

  .tech-task-form label:first-child,
  .tech-task-form .tech-task-text,
  .tech-task-form .tech-task-submit {
    grid-column: auto;
  }
}
