/* Базовые стили */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #050816;
  color: #f9fafb;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.95),
    rgba(5, 8, 22, 0.85),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  position: relative;
}

.logo {
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.logo-mark-small {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.logo-text {
  font-size: 18px;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  color: #cbd5f5;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #38bdf8, #4f46e5);
  transition: width 0.2s ease-out;
}

.nav-link:hover::after,
.nav-link-active::after {
  width: 100%;
}

.nav-link-active {
  color: #e5e7eb;
}

/* Hero */
.hero {
  padding: 64px 0 40px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 50%),
    radial-gradient(circle at top right, rgba(129, 140, 248, 0.18), transparent 55%);
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text {
  text-align: center;
  max-width: 800px;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-text p {
  margin: 0;
  color: #cbd5f5;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background-color 0.12s ease-out, color 0.12s ease-out,
    border-color 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(to right, #38bdf8, #4f46e5);
  color: white;
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 45px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
  background-color: rgba(15, 23, 42, 0.75);
}

.btn-outline:hover {
  background-color: rgba(15, 23, 42, 0.95);
  border-color: rgba(148, 163, 184, 0.9);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  padding: 22px 20px;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at bottom, rgba(129, 140, 248, 0.3), transparent 60%),
    rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.7);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(15, 23, 42, 0.9);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.6);
  margin-bottom: 10px;
}

.hero-card h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.hero-card p {
  margin: 0;
  font-size: 14px;
  color: #e5e7eb;
}

/* Секции */
.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.3), transparent 60%),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.4), transparent 60%);
}

.section-title {
  font-size: 22px;
  margin: 0 0 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-list {
  display: grid;
  gap: 16px;
}

.info-card,
.value-card,
.item-card {
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 18px;
}

.info-card h3,
.value-card h3,
.item-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  color: #cbd5f5;
  font-size: 14px;
}

.value-card p,
.item-card p {
  margin: 0;
  color: #cbd5f5;
  font-size: 14px;
}

/* Списки вакансий / проектов */
.list {
  display: grid;
  gap: 16px;
}

.list-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #cbd5f5;
}

.tag-green {
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
}

.tag-blue {
  border-color: rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
}

.meta {
  font-size: 12px;
  color: #9ca3af;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: #e5e7eb;
}

/* Подвал */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 16px 0 18px;
  background: radial-gradient(circle at bottom, rgba(15, 23, 42, 0.9), rgba(5, 8, 22, 1));
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: #9ca3af;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Адаптивность */
@media (max-width: 840px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    gap: 16px;
  }

  .main-nav {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    height: auto;
  }

  .logo {
    position: static;
    margin-bottom: 8px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 32px;
  }

  .section {
    padding: 28px 0;
  }
}

/* Ценности в столбец */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  padding: 0;
}

.value-item h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #e5e7eb;
}

.value-item p {
  margin: 0;
  color: #cbd5f5;
  font-size: 14px;
  line-height: 1.6;
}

/* Команда */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.team-photo {
  flex-shrink: 0;
  /* Высота = 5 строк текста: 14px (font-size) * 1.6 (line-height) * 5 строк = 112px */
  width: 112px;
  height: 112px;
  min-width: 112px;
  min-height: 112px;
  max-width: 112px;
  max-height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 600;
  color: #94a3b8;
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.25), transparent 55%),
    rgba(15, 23, 42, 0.95);
}

.team-info {
  flex: 1;
}

.team-name {
  font-size: 20px;
  margin: 0 0 8px;
  color: #e5e7eb;
}

.team-role {
  font-size: 14px;
  color: #38bdf8;
  margin: 0 0 12px;
  font-weight: 500;
}

.team-description {
  font-size: 14px;
  color: #cbd5f5;
  margin: 0;
  line-height: 1.6;
}

/* Высота фото = 5 строк текста: 14px * 1.6 * 5 = 112px */

@media (max-width: 480px) {
  .team-member {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .team-photo {
    width: 112px;
    height: 112px;
  }
  
  .team-info {
    width: 100%;
  }
}

/* Кнопка Команда / навигация */
.team-fab {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(5, 8, 22, 0.45);
  backdrop-filter: blur(12px);
  transition: transform 0.12s ease-out, border-color 0.12s ease-out,
    background-color 0.12s ease-out;
}

.team-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(15, 23, 42, 0.98);
}

.team-fab svg {
  flex-shrink: 0;
}

/* Страница настройки команды */
html:has(.team-page) {
  height: 100%;
}

.team-page {
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.team-page .team-fab {
  left: 16px;
  right: auto;
}

.team-page .team-settings {
  padding: 0;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-settings {
  padding: 72px 0 48px;
  min-height: calc(100vh - 40px);
}

.team-status {
  margin: 12px 16px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  font-size: 14px;
  flex-shrink: 0;
}

.team-status-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.team-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.team-panel {
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px;
}

.team-panel-wide {
  grid-column: 1 / -1;
}

.team-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.team-panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.team-modal[hidden] {
  display: none;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}

.team-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 1320px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 28px;
  padding: 54px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 36px 90px rgba(2, 6, 23, 0.55);
}

.team-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.team-modal-head h2 {
  margin: 0;
  font-size: 36px;
}

.team-modal-close {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.7);
  color: #e5e7eb;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.team-modal-card .team-form-stack {
  gap: 18px;
}

.team-modal-card .team-form-stack input,
.team-modal-card .team-form-stack select,
.team-modal-card .team-form-stack textarea {
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 18px;
}

.team-modal-card .team-field {
  font-size: 16px;
  gap: 10px;
}

.team-modal-card .team-fieldset {
  padding: 18px;
  border-radius: 16px;
}

.team-modal-card .team-fieldset legend {
  font-size: 16px;
}

.team-modal-card .team-check {
  font-size: 16px;
}

.team-modal-card .btn {
  padding: 14px 24px;
  font-size: 16px;
  min-height: 48px;
}

.team-modal-close:hover {
  border-color: rgba(56, 189, 248, 0.6);
}

.team-modal .team-form-stack {
  margin-bottom: 0;
}

body.team-modal-open {
  overflow: hidden;
}

.team-form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.team-form-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.team-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-form-actions .btn {
  min-width: 120px;
}

.team-form-row input,
.team-form-stack input,
.team-form-stack select,
.team-form-stack textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(5, 8, 22, 0.7);
  color: #f9fafb;
  font: inherit;
}

.team-form-row input:focus,
.team-form-stack input:focus,
.team-form-stack select:focus,
.team-form-stack textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
}

.team-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #cbd5f5;
}

.team-fieldset {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.team-fieldset legend {
  padding: 0 6px;
  color: #cbd5f5;
  font-size: 13px;
}

.team-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.team-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #e5e7eb;
  cursor: pointer;
}

.team-role-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.team-role-add-row select {
  flex: 1 1 auto;
  min-width: 0;
}

.team-role-picked {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.team-role-picked:empty {
  display: none;
}

.team-role-picked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
}

.team-role-picked-item strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
}

.team-role-picked-item span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.team-hint {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.team-photo-picker {
  display: grid;
  gap: 10px;
}

.team-photo-preview-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(5, 8, 22, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo-picker-empty {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

.team-photo-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-photo-file-label {
  cursor: pointer;
  margin: 0;
}

.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.team-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(5, 8, 22, 0.45);
}

.team-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.team-meta {
  font-size: 12px;
  color: #9ca3af;
}

.team-item-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: #cbd5f5;
  line-height: 1.5;
}

.team-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.team-empty {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
  padding: 8px 2px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
  background: rgba(127, 29, 29, 0.25);
}

.btn-danger:hover {
  background: rgba(127, 29, 29, 0.4);
  border-color: rgba(239, 68, 68, 0.8);
}

/* Оргструктура */
.org-chart-panel {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border: none;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 40%),
    rgba(5, 8, 22, 0.35);
  padding: 16px 16px 0;
}

.org-chart-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.org-chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.org-chart-actions[hidden],
body.team-page-view .org-chart-actions {
  display: none !important;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.btn-icon[aria-pressed='true'] {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}

body.team-page-view .employees-panel {
  display: none;
}

@media (max-width: 600px) {
  .org-chart-toolbar {
    justify-content: flex-start;
  }

  .org-chart-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.org-chart {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-bottom: none;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.08), transparent 45%),
    rgba(5, 8, 22, 0.55);
  padding: 8px;
}

.employees-panel {
  flex: 0 0 auto;
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  max-width: none;
  width: 100%;
  max-height: 28vh;
  overflow: auto;
}

.org-chart-canvas {
  position: relative;
  margin: 0 auto;
  min-height: 100%;
}

.org-chart-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.org-edge {
  fill: none;
  stroke: rgba(148, 163, 184, 0.55);
  stroke-width: 1.5;
}

.org-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 14px;
  box-sizing: border-box;
  overflow: visible;
  z-index: 2;
}

.org-node-employee-card {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.org-node-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.org-node-bottom {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(5, 8, 22, 0.35);
}

.org-node-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(5, 8, 22, 0.85);
}

.org-node-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.org-node-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: #94a3b8;
}

.org-node-text {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
}

.org-node-person {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
}

.org-node-role-label {
  font-size: 15px;
  line-height: 1.3;
  color: #38bdf8;
  white-space: nowrap;
}

.org-node-sub {
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: none;
}

.org-node-sub-frame {
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
}

.org-node-sub-title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #f8fafc;
  white-space: nowrap;
  border-bottom: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(
    145deg,
    rgba(56, 189, 248, 0.22),
    rgba(79, 70, 229, 0.18)
  );
  border-radius: 14px 14px 0 0;
  pointer-events: auto;
}

.org-node-sub-title.org-node-clickable {
  cursor: pointer;
}

.org-node-sub-title.org-node-clickable:hover {
  filter: brightness(1.08);
}

.org-node-role {
  background: rgba(15, 23, 42, 0.88);
  border: 1px dashed rgba(56, 189, 248, 0.55);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.org-node-role .org-node-text {
  align-items: center;
  width: auto;
  flex: 0 1 auto;
}

.org-node-role .org-node-title {
  text-align: center;
}

.org-node-vacancy {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(56, 189, 248, 0.55);
}

.org-node-clickable {
  cursor: pointer;
}

.org-node-clickable:hover {
  filter: brightness(1.08);
}

.org-node-role-filled {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.org-node-emp {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.org-node-title {
  font-size: 13px;
  line-height: 1.25;
  color: #f8fafc;
  white-space: nowrap;
}

.org-node-meta {
  font-size: 11px;
  line-height: 1.35;
  color: #94a3b8;
  white-space: pre;
}

.org-node-tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #f8fafc;
}

.org-node-tasks li {
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.org-node-tasks li + li {
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

@media (max-width: 840px) {
  .team-panels {
    grid-template-columns: 1fr;
  }

  .team-form-row {
    flex-direction: column;
  }

  .team-list-item {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .team-fab span {
    display: none;
  }

  .team-fab {
    padding: 12px;
  }
}


