:root {
  --b44-font: "Inter", "Manrope", "Segoe UI", sans-serif;
  --b44-bg: #f8fafc;
  --b44-bg-grad: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --b44-surface: #ffffff;
  --b44-surface-soft: #f8fafc;
  --b44-border: rgba(15, 23, 42, 0.12);
  --b44-border-soft: rgba(148, 163, 184, 0.28);
  --b44-text: #0f172a;
  --b44-text-soft: #475569;
  --b44-text-muted: #64748b;
  --b44-primary: #7c3aed;
  --b44-primary-hover: #6d28d9;
  --b44-primary-soft: #f5f3ff;
  --b44-success: #10b981;
  --b44-danger: #ef4444;
  --b44-shadow-xs: 0 2px 8px rgba(15, 23, 42, 0.06);
  --b44-shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
  --b44-shadow-md: 0 14px 36px rgba(15, 23, 42, 0.1);
  --b44-radius-sm: 10px;
  --b44-radius-md: 14px;
  --b44-radius-lg: 18px;
  --b44-radius-xl: 24px;
  --ui-font: "Inter", "Manrope", "Segoe UI", sans-serif;
  --ui-bg: #f8fafc;
  --ui-bg-alt: #f1f5f9;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8fafc;
  --ui-border: #e2e8f0;
  --ui-border-strong: #cbd5e1;
  --ui-text: #0f172a;
  --ui-text-soft: #475569;
  --ui-text-muted: #64748b;
  --ui-primary: #7c3aed;
  --ui-primary-hover: #6d28d9;
  --ui-primary-weak: #ede9fe;
  --ui-success: #059669;
  --ui-success-weak: #d1fae5;
  --ui-danger: #dc2626;
  --ui-danger-weak: #fee2e2;
  --ui-warning: #ea580c;
  --ui-warning-weak: #ffedd5;
  --ui-radius-xs: 8px;
  --ui-radius-sm: 10px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 16px;
  --ui-radius-xl: 24px;
  --ui-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --ui-shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --ui-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.2);
  --ui-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

html,
body {
  background: var(--b44-bg-grad);
  color: var(--b44-text);
  font-family: var(--b44-font);
}

main.container {
  max-width: 1280px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 28px;
}

@media (max-width: 760px) {
  main.container {
    width: calc(100% - 24px);
    padding-top: 14px;
  }
}

nav {
  height: 64px;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-image {
  width: 40px;
  height: 40px;
}

.brand-logo-text {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: linear-gradient(90deg, #5b3af0 0%, #7c3aed 45%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav ul.nav-center li a {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--b44-text-soft);
}

nav ul.nav-center li a:hover {
  background: #f1f5f9;
  color: var(--b44-text);
}

nav .btn,
nav .btn-large,
nav .btn-small,
nav .btn-flat,
nav .btn-floating {
  margin: 0;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-auth {
  min-height: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 12px;
  padding: 10px 16px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn,
.btn-primary,
.btn-auth,
#nav-login .btn,
#nav-create .btn,
#nav-register .btn {
  background: var(--b44-primary);
  color: #fff;
}

.btn:hover,
.btn-primary:hover,
.btn-auth:hover,
#nav-login .btn:hover,
#nav-create .btn:hover,
#nav-register .btn:hover {
  background: var(--b44-primary-hover);
  color: #fff;
}

.btn.btn-ghost,
.btn-ghost,
.btn-flat {
  border-color: rgba(148, 163, 184, 0.45);
  background: #fff;
  color: #475569;
}

.btn.btn-ghost:hover,
.btn-ghost:hover,
.btn-flat:hover {
  background: #f8fafc;
  color: #0f172a;
}

.btn.btn-danger,
.btn-danger {
  background: var(--b44-danger);
  border-color: var(--b44-danger);
  color: #fff;
}

.btn.btn-danger:hover,
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn .icon.left,
.btn .icon.right {
  margin: 0;
}

.input-field {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field > label {
  position: static;
  transform: none;
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  color: #5b6b90;
  font-weight: 600;
  pointer-events: none;
  order: -1;
}

.input-field > input,
.input-field > select,
.input-field > textarea,
.input-field .select-wrapper input.select-dropdown {
  height: 48px;
  min-height: 48px;
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
  padding: 0 14px;
}

.input-field > textarea,
.textarea-field {
  min-height: 118px;
  padding: 12px 14px;
  resize: vertical;
}

.input-field > input:focus,
.input-field > select:focus,
.input-field > textarea:focus,
.input-field .select-wrapper input.select-dropdown:focus {
  border-color: rgba(124, 58, 237, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.search-section,
.card,
.ui-panel,
.profile-card,
.roles-select-card,
.role-editor-card,
.onboarding-card {
  border-radius: var(--b44-radius-lg);
  border: 1px solid var(--b44-border-soft);
  background: var(--b44-surface);
  box-shadow: var(--b44-shadow-sm);
}

.card .card-content {
  padding: 24px;
}

.card .card-title {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-weight: 700;
}

.b44-page-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.page-title {
  margin: 0;
  letter-spacing: -0.02em;
  color: #0b1b45;
  font-weight: 800;
  font-size: clamp(36px, 4.1vw, 48px);
  line-height: 1.08;
}

.page-title .icon.left {
  margin-right: 8px;
  font-size: 0.58em;
  color: #6d49f4;
}

.search-section {
  padding: 16px;
  margin-bottom: 16px;
  background: #f8faff;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.ui-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.25);
  border-top-color: var(--b44-primary);
  animation: b44-spin 0.8s linear infinite;
}

@keyframes b44-spin {
  to {
    transform: rotate(360deg);
  }
}

.list-state-panel,
.empty-panel {
  padding: 20px;
  margin-bottom: 14px;
}

.list-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.list-state-text {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.list-state-icon {
  font-size: 26px;
  color: #ef4444;
}

.catalog-grid,
#ensembles-list,
#jobs-list,
#venues-list,
.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1180px) {
  .catalog-grid,
  #ensembles-list,
  #jobs-list,
  #venues-list,
  .vacancies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-grid,
  #ensembles-list,
  #jobs-list,
  #venues-list,
  .vacancies-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-card,
.vacancy-list-card {
  border-radius: 18px;
  border: 1px solid var(--b44-border-soft);
  background: #fff;
  box-shadow: var(--b44-shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-card:hover,
.vacancy-list-card:hover,
.catalog-card:focus-visible,
.vacancy-list-card:focus-visible {
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: var(--b44-shadow-md);
  outline: none;
}

.catalog-hero {
  min-height: 170px;
  position: relative;
  background: linear-gradient(180deg, #d8dce6 0%, #9aa3b0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalog-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.catalog-hero-placeholder .icon {
  font-size: 64px;
  color: #8f98a7;
}

.catalog-hero-chip {
  position: absolute;
  top: 12px;
  right: 12px;
}

.catalog-card-head,
.catalog-card-body {
  padding: 16px 18px 0;
}

.catalog-title {
  margin: 0;
  color: #1e293b;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.catalog-job-head {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.catalog-meta-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #52648b;
  font-size: 16px;
}

.catalog-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-meta-row .icon {
  color: #6c4cf0;
  font-size: 17px;
}

.catalog-chip-row {
  padding: 0 18px;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-chip,
.list-status-pill,
.badge,
.pill,
.ensemble-member-chip {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.catalog-chip {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: #f1f5f9;
  color: #334155;
}

.catalog-chip.is-neutral {
  border-color: rgba(124, 58, 237, 0.25);
  background: #f5f3ff;
  color: #5b3adf;
}

.catalog-chip.is-muted {
  border-color: rgba(148, 163, 184, 0.32);
  background: #f8fafc;
  color: #475569;
}

.list-status-pill {
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: #475569;
  background: #f8fafc;
}

.list-status-pill.is-active,
.list-status-pill.is-open,
.list-status-pill.is-ready {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.list-status-pill.is-draft {
  border-color: rgba(148, 163, 184, 0.34);
  background: #f1f5f9;
  color: #475569;
}

.list-status-pill.is-closed,
.list-status-pill.is-cancelled,
.list-status-pill.is-rejected,
.list-status-pill.is-completed {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.13);
  color: #b91c1c;
}

.catalog-card-footer {
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-subtle {
  color: #64748b;
  font-size: 14px;
}

.catalog-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.catalog-open-btn {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
}

.btn-edit,
.btn-apply {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  color: #6b7280;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-apply {
  color: #5b3adf;
  border-color: rgba(124, 58, 237, 0.38);
  background: #f5f3ff;
}

.catalog-card-musician .catalog-card-body {
  padding: 16px 18px 12px;
}

.catalog-musician-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.catalog-musician-avatar {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #eef2ff;
  color: #7c3aed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.catalog-musician-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-musician-avatar .icon {
  font-size: 26px;
}

.catalog-musician-main {
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-card-musician .catalog-title {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.08;
}

.catalog-musician-bio {
  margin: 12px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-musician-extra {
  margin-top: 10px;
  color: #52648a;
  font-size: 14px;
  line-height: 1.4;
}

.musicians-page-shell .search-section {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.catalog-search-form--musicians .musicians-advanced-field {
  display: none;
}

.search-section.advanced-mode .catalog-search-form--musicians .musicians-advanced-field {
  display: flex;
}

.catalog-search-form--ensembles .ensembles-advanced-field {
  display: none;
}

.search-section.advanced-mode .catalog-search-form--ensembles .ensembles-advanced-field {
  display: flex;
}

.catalog-search-form--gigs .gigs-advanced-field {
  display: none;
}

.search-section.advanced-mode .catalog-search-form--gigs .gigs-advanced-field {
  display: flex;
}

.musicians-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.musician-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid var(--b44-border-soft);
  box-shadow: var(--b44-shadow-xs);
  background: #fff;
  padding: 14px 16px;
}

.musician-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.musician-row-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #eef2ff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #6d28d9;
  flex: 0 0 auto;
}

.musician-row-avatar .icon {
  font-size: 24px;
}

.musician-row-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.musician-row-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.musician-row-meta {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #52648b;
  font-size: 15px;
}

.musician-row-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.musician-row-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.musician-row-tag {
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.26);
  background: #f5f3ff;
  color: #5b3adf;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.musician-row-tag.is-muted {
  border-color: rgba(148, 163, 184, 0.3);
  background: #f8fafc;
  color: #475569;
}

.musician-row-extra {
  margin: 10px 0 0;
  color: #4f5f83;
  font-size: 13px;
}

.musician-row-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.musician-row-open-btn {
  border-radius: 999px;
}

.gigs-tabs,
.ensemble-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--b44-border-soft);
  border-radius: 12px;
  background: #eef2ff;
}

.gigs-tab,
.ensemble-tab-btn,
.profile-main-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: #64748b;
}

.gigs-tab.is-active,
.ensemble-tab-btn.is-active,
.profile-main-tab.is-active {
  background: #fff;
  color: #111827;
  border-color: rgba(148, 163, 184, 0.34);
  box-shadow: var(--b44-shadow-xs);
}

.profile-page-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid var(--b44-border-soft);
  background: #eef2ff;
}

.vacancies-card > .card-content,
.vacancy-detail-page > .card-content,
.messages-page-shell > .card-content,
.profile-card > .card-content {
  padding: 22px;
}

.vacancies-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vacancies-filter-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.vacancy-list-card {
  padding: 18px;
  min-height: 210px;
}

.vacancy-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vacancy-list-owner {
  margin-top: 8px;
  font-size: 18px;
  color: #334155;
}

.vacancy-list-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #4f5f83;
}

.vacancy-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vacancy-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 18px;
}

.vacancy-detail-panel,
.vacancy-detail-author {
  border-radius: 16px;
  border: 1px solid var(--b44-border-soft);
  background: #fff;
  box-shadow: var(--b44-shadow-xs);
  padding: 18px;
}

.vacancy-detail-row {
  margin-bottom: 10px;
  color: #334155;
  display: flex;
  gap: 8px;
  align-items: center;
}

.vacancy-detail-row .icon {
  color: #6d28d9;
}

.vacancy-detail-description {
  margin-top: 10px;
  color: #334155;
  line-height: 1.5;
}

.vacancy-author-title {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 10px;
  font-weight: 700;
}

.vacancy-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vacancy-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eef2ff;
  color: #5b3adf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vacancy-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vacancy-author-name-inline {
  font-size: 26px;
  line-height: 1.14;
  font-weight: 700;
}

.vacancy-author-phone {
  margin-top: 5px;
  color: #516287;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.vacancy-author-open {
  margin-top: 12px;
}

.vacancy-card {
  border-radius: 16px;
  border: 1px solid var(--b44-border-soft);
  background: #fff;
  box-shadow: var(--b44-shadow-xs);
  padding: 16px;
  margin-bottom: 12px;
}

.vacancy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.vacancy-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.vacancy-title {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

.vacancy-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #52648b;
}

.vacancy-description {
  margin: 10px 0 0;
  color: #334155;
}

.modal {
  border-radius: 0;
  z-index: 1200;
}

.modal-overlay {
  z-index: 1199;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
}

.modal .modal-content {
  position: relative;
  z-index: 1201;
  border-radius: 18px;
  border: 1px solid var(--b44-border-soft);
  box-shadow: var(--b44-shadow-md);
  padding: 22px;
}

.modal .modal-content h4 {
  margin: 0 0 14px;
  color: #1f2a4b;
  font-size: 28px;
  line-height: 1.16;
  font-weight: 800;
}

.modal-close-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-icon:hover {
  background: #f8fafc;
  color: #334155;
}

.modal-form-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.messages-page-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

#conversations-list .card,
#chat-window .card {
  height: 100%;
}

#conversations-list .card-content,
#chat-window .card-content {
  padding: 16px;
}

#conversations-container .collection {
  border: none;
  margin: 0;
}

.conversation-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 6px;
  padding: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.conversation-item:hover,
.conversation-item.active {
  background: #f8fafc;
  border-color: rgba(124, 58, 237, 0.2);
}

.conversation-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.conversation-name {
  font-weight: 700;
  color: #1f2a4b;
}

.conversation-preview,
.conversation-time {
  color: #64748b;
  font-size: 13px;
}

.chat-messages {
  border-radius: 12px;
  border: 1px solid var(--b44-border-soft);
  background: #fbfdff;
  min-height: 360px;
  max-height: 560px;
  overflow-y: auto;
  padding: 14px;
}

.message {
  margin-bottom: 10px;
  display: flex;
}

.own-message {
  justify-content: flex-end;
}

.other-message {
  justify-content: flex-start;
}

.message-content {
  max-width: min(78%, 520px);
  border-radius: 14px;
  padding: 10px 12px;
}

.message-content-own {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
}

.message-content-other {
  background: #eef2ff;
  color: #1f2a4b;
}

.message-time {
  margin-top: 5px;
  font-size: 11px;
  opacity: 0.75;
}

#message-input-container {
  margin-top: 12px;
}

#send-button {
  margin-top: 8px;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-header,
.admin-toolbar,
.admin-bulk-form,
.admin-table,
.admin-card,
.admin-detail {
  border-radius: 16px;
  border: 1px solid var(--b44-border-soft);
  box-shadow: var(--b44-shadow-sm);
  background: #fff;
}

.admin-title {
  color: #0b1b45;
  letter-spacing: -0.01em;
}

.admin-nav .btn.is-active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.admin-row-head {
  background: #f5f3ff;
}

.admin-status-pill {
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .vacancy-detail-layout {
    grid-template-columns: 1fr;
  }

  .catalog-title {
    font-size: 24px;
  }

}

@media (max-width: 760px) {
  .b44-page-shell,
  .card .card-content,
  .modal .modal-content {
    padding: 16px;
  }

  .page-title {
    font-size: clamp(28px, 7.6vw, 38px);
  }

  .vacancies-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .vacancy-header,
  .musician-row-card {
    flex-direction: column;
    align-items: stretch;
  }

  .modal .modal-content h4 {
    font-size: 23px;
    padding-right: 34px;
  }

  .catalog-hero {
    min-height: 176px;
  }
}

@media (max-width: 900px) {
  .vacancy-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------------------------------------------------------------------------- */
/* Base44 1:1 Alignment Pass (global)                                         */
/* -------------------------------------------------------------------------- */

html,
body {
  font-family: "Inter", "Manrope", "Segoe UI", sans-serif;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, #f5f3ff 100%);
}

main.container {
  width: min(1280px, calc(100% - 48px));
  padding-top: 30px;
  padding-bottom: 36px;
}

.brand-logo {
  gap: 9px;
}

.brand-logo-image {
  width: 44px;
  height: 44px;
}

.brand-logo-text {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

nav ul.nav-center li a {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

nav ul.nav-center li a.active {
  background: #eef2ff;
  color: #4c1d95;
}

nav ul.nav-center li a:hover {
  background: #f1f5f9;
}

#nav-login .btn,
#nav-create .btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
}

#nav-notifications .btn {
  width: auto;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.b44-page-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-header {
  margin-bottom: 14px;
}

.page-title {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: #0b1b45;
  font-weight: 800;
}

.page-title .icon.left {
  font-size: 0.5em;
  margin-right: 10px;
  color: #7c3aed;
}

.page-subtitle {
  margin: 8px 0 0;
  color: #52648a;
  font-size: 16px;
  line-height: 1.4;
}

.search-section {
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid #dbe3f0;
  background: #f8faff;
  box-shadow: none;
  padding: 14px 16px;
}

.catalog-search-form {
  margin: 0;
}

.catalog-search-form .input-field {
  margin-bottom: 10px;
}

.search-actions {
  justify-content: flex-start;
  gap: 8px;
}

.search-actions .btn {
  min-height: 40px;
  border-radius: 10px;
  font-size: 15px;
  padding: 0 16px;
}

.catalog-grid,
#ensembles-list,
#jobs-list,
#venues-list {
  gap: 16px;
}

.catalog-card,
.vacancy-list-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.catalog-title {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.catalog-meta-row {
  font-size: 14px;
  color: #52648a;
}

.catalog-meta-row .icon {
  color: #8b5cf6;
}

.catalog-card-footer {
  border-top-color: #e2e8f0;
}

.catalog-chip {
  border-color: #d4dce9;
  background: #f1f5f9;
  color: #334155;
}

.catalog-chip.is-neutral {
  border-color: #c9c0fc;
  background: #ede9fe;
  color: #7c3aed;
}

.catalog-chip.is-muted {
  border-color: #d4dce9;
  background: #f8fafc;
  color: #64748b;
}

.musicians-list {
  gap: 14px;
}

.musician-row-card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  padding: 16px 18px;
}

.musician-row-name {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.musician-row-meta {
  font-size: 15px;
  color: #52648a;
}

.musician-row-tag {
  font-size: 13px;
}

.musician-row-open-btn,
.catalog-open-btn {
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
}

.gigs-tabs,
.ensemble-tabs,
.profile-page-tabs {
  border-radius: 14px;
  padding: 5px;
  gap: 8px;
  border-color: #d7deea;
  background: #eef2ff;
}

.gigs-tab,
.ensemble-tab-btn,
.profile-main-tab {
  min-height: 38px;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 15px;
}

.vacancies-page-header {
  align-items: center;
}

.vacancy-list-card {
  min-height: 180px;
  padding: 16px 18px;
}

.vacancy-list-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.vacancy-list-owner {
  margin-top: 7px;
  font-size: 17px;
  color: #334155;
}

.vacancy-list-meta {
  margin-top: 10px;
  font-size: 14px;
}

.vacancy-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vacancy-detail-head-main .page-title {
  font-size: clamp(34px, 3.8vw, 44px);
  margin-top: 8px;
}

.vacancy-page-role {
  margin: 8px 0 0;
  font-size: 16px;
  color: #52648a;
}

.vacancy-detail-layout {
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 270px;
}

.vacancy-detail-panel,
.vacancy-detail-author {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.vacancy-author-name-inline {
  font-size: 24px;
  line-height: 1.1;
}

.list-state-panel,
.empty-panel {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.b44-profile-page .profile-page-head {
  margin-bottom: 14px;
}

.b44-profile-page .profile-page-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: #0b1b45;
}

.b44-profile-page .profile-page-subtitle {
  margin-top: 8px;
  font-size: 16px;
  color: #5d6b90;
}

.b44-profile-page .profile-card {
  border-radius: 16px;
  border: 1px solid #d7deea;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.b44-profile-page .profile-card .card-content {
  padding: 20px 22px;
}

.b44-profile-page .profile-main-card-title {
  display: block;
  margin: 0 0 16px;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1.08;
  color: #0f172a;
}

.b44-profile-page .profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.b44-profile-page .profile-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
}

.b44-profile-page .profile-name {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.b44-profile-page .profile-email {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.14;
  color: #42577f;
}

.b44-profile-page .profile-id-row,
.b44-profile-page #id-value,
.b44-profile-page .profile-city {
  font-size: 16px;
}

.b44-profile-page .profile-main-fields,
.b44-profile-page .profile-role-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.b44-profile-page .profile-field-item {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  overflow: hidden;
}

.b44-profile-page .profile-field-title {
  padding: 10px 14px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  background: #eef2ff;
  color: #0f172a;
}

.b44-profile-page .profile-field-value {
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  color: #42577f;
}

.b44-profile-page .profile-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b44-role-select-page .roles-select-card,
.b44-role-editor-page .role-editor-card,
.b44-onboarding-page .onboarding-card {
  border-radius: 16px;
  border: 1px solid #d7deea;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.b44-role-select-page .roles-select-card .card-content,
.b44-role-editor-page .role-editor-card .card-content,
.b44-onboarding-page .onboarding-card .card-content {
  padding: 20px 22px;
}

.roles-select-title,
.onboarding-title {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(32px, 3.8vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #0b1b45;
}

.role-editor-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.onboarding-lead,
.roles-select-lead {
  margin: 0 0 16px;
  font-size: 16px;
  color: #5d6b90;
}

.role-editor-description {
  margin: 8px 0 0;
  font-size: 17px;
  color: #64748b;
}

.role-card {
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  box-shadow: none;
  cursor: pointer;
}

.role-card .card-content {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  align-items: center;
  gap: 4px 12px;
  text-align: left;
  padding: 16px;
}

.role-card h5 {
  grid-area: title;
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
}

.role-card p {
  grid-area: desc;
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.role-card .icon.icon-lg {
  grid-area: icon;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.messages-layout .card {
  border-radius: 14px;
  border: 1px solid #d7deea;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.messages-layout .card .card-content {
  padding: 16px;
}

.public-profile-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.public-profile-hero-card,
.public-profile-side-card,
.public-profile-main-card {
  border-radius: 16px;
  border: 1px solid #d7deea;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.public-profile-cover {
  height: 112px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 52%, #7c3aed 100%);
}

.public-profile-hero-body {
  margin-top: -48px;
  padding: 0 20px 20px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.public-profile-avatar-wrap {
  flex: 0 0 auto;
}

.public-profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 4px solid #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  background: #eef2ff;
}

.public-profile-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  font-size: 32px;
}

.public-profile-hero-main {
  min-width: 0;
  flex: 1 1 auto;
}

.public-profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.public-profile-name {
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.public-profile-id-row {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #52648a;
  font-size: 15px;
}

.public-profile-role-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.public-profile-side-card .card-content {
  padding: 16px;
}

.public-profile-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 15px;
  margin-bottom: 10px;
}

.public-profile-contact-row .icon {
  color: #8b5cf6;
}

.public-profile-contact-link {
  text-decoration: none;
}

.public-profile-contact-link:hover {
  color: #7c3aed;
}

.public-profile-tabs {
  display: inline-flex;
  border: 1px solid #d7deea;
  border-radius: 12px;
  padding: 4px;
  gap: 6px;
  background: #eef2ff;
  margin-bottom: 10px;
}

.public-profile-tab {
  min-height: 36px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.public-profile-tab.is-active {
  background: #fff;
  border-color: #d7deea;
  color: #111827;
}

.public-profile-main-card .card-content {
  padding: 16px;
}

.public-profile-main-card .collection {
  margin: 0;
}

.public-profile-main-card .profile-field-item {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.public-profile-main-card .profile-field-title {
  display: block;
  padding: 9px 12px;
  background: #eef2ff;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.public-profile-main-card .profile-field-value {
  display: block;
  padding: 10px 12px;
  color: #475569;
  font-size: 15px;
}

.site-footer {
  background: #0b1636;
  color: #cbd5e1;
}

.site-footer-inner {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 22px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
}

.site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
}

.site-footer-logo-image {
  width: 34px;
  height: 34px;
}

.site-footer-logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer-copy {
  margin-top: 10px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.45;
  max-width: 280px;
}

.site-footer-col h4 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #fff;
}

.site-footer-col a,
.site-footer-col span {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
  margin-bottom: 4px;
}

.site-footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1024px) {
  .brand-logo-text {
    font-size: 24px;
  }

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

  .catalog-title {
    font-size: 20px;
  }

  .musician-row-name {
    font-size: 20px;
  }

  .vacancy-list-title {
    font-size: 20px;
  }

  .vacancy-list-owner {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  main.container,
  nav .nav-wrapper,
  .site-footer-inner {
    width: calc(100% - 24px);
  }

  .brand-logo-text {
    font-size: 22px;
  }

  nav ul.nav-center {
    display: none;
  }

  .page-title {
    font-size: clamp(30px, 8vw, 38px);
  }

  .page-subtitle {
    font-size: 14px;
  }

  .b44-profile-page .profile-main-fields,
  .b44-profile-page .profile-role-fields {
    grid-template-columns: 1fr;
  }

  .b44-profile-page .profile-name {
    font-size: clamp(30px, 10vw, 38px);
  }

  .b44-profile-page .profile-email {
    font-size: clamp(20px, 6vw, 26px);
  }

  .musician-row-name {
    font-size: 18px;
  }

  .musician-row-meta {
    font-size: 15px;
  }

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

  .public-profile-hero-body {
    margin-top: -40px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 14px 14px;
  }

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

  .public-profile-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
