:root {
  --lavender: #f4f2ff;
  --surface: #f8f9fc;
  --white: #ffffff;
  --primary: #6d5ef8;
  --text: #121827;
  --muted: #69758d;
  --line: #dfe3eb;
  --icon-bg: #eef2ff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(500px, 42%) 1fr;
}

.story-panel {
  position: relative;
  min-height: 100vh;
  padding: 40px clamp(40px, 3.2vw, 64px) 34px;
  overflow: hidden;
  background: var(--lavender);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -1.1px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.logo-icon img {
  display: block;
  width: 32px;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.network {
  position: relative;
  width: min(330px, 82%);
  height: 230px;
  margin: 38px auto 18px;
}

.network-cloud {
  position: absolute;
  border-radius: 50%;
}

.network-cloud-a {
  width: 158px;
  height: 158px;
  left: 80px;
  top: 29px;
  background: #eef1ff;
}

.network-cloud-b {
  width: 112px;
  height: 101px;
  left: 48px;
  top: 38px;
  background: #ebe8ff;
}

.network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.network-lines path {
  fill: none;
  stroke: #b9b1ff;
  stroke-width: 2;
  stroke-dasharray: 7 7;
}

.avatar {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  background: #f5f3ff;
  border: 2px solid #b9b1ff;
  color: #6657f7;
}

.avatar-main {
  width: 56px;
  height: 56px;
  left: calc(50% - 28px);
  top: 86px;
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  font-size: 12px;
}

.avatar-it { left: 70px; top: 56px; }
.avatar-km { right: 57px; top: 56px; color: #14964a; border-color: #63e692; background: #e8faee; }
.avatar-lv { left: 65px; top: 141px; color: #d56a00; border-color: #ffc229; background: #fff7de; }
.avatar-na { right: 52px; top: 141px; color: #276adb; border-color: #83b9ff; background: #eaf3ff; }

.network-dot {
  position: absolute;
  border-radius: 50%;
  background: #d9d4ff;
}

.dot-a { width: 8px; height: 8px; left: 51px; top: 43px; }
.dot-b { width: 8px; height: 8px; right: 28px; top: 84px; }
.dot-c { width: 9px; height: 9px; left: 52%; bottom: 11px; }
.network-ring { position: absolute; right: 2px; top: 33px; width: 14px; height: 14px; border: 1.5px solid #b9b1ff; border-radius: 50%; }

.story-copy h1,
.card-copy h2 {
  margin: 0;
  color: var(--text);
  font-weight: 720;
  letter-spacing: -0.9px;
  line-height: 1.22;
}

.story-copy h1 {
  font-size: clamp(24px, 1.65vw, 28px);
}

.story-copy p,
.card-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.story-copy p {
  max-width: 710px;
  font-size: 16px;
  line-height: 1.55;
}

.story-features {
  display: grid;
  gap: 9px;
  margin-top: 27px;
}

.feature {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 17px;
}

.feature > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feature-compact {
  min-height: 54px;
  padding: 9px 17px;
  background: #fff;
  font-size: 16px;
}

.feature-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--icon-bg);
  color: var(--primary);
}

.feature-compact .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-compact .feature-icon svg {
  width: 24px;
  height: 24px;
}

blockquote {
  display: flex;
  gap: 15px;
  margin: 20px 0 0;
  padding: 20px 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.quote-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--icon-bg);
  font-weight: 700;
}

blockquote p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

blockquote cite {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.action-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 6vh clamp(54px, 8vw, 150px);
  background: var(--surface);
}

.registration-card {
  width: min(100%, 640px);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: clamp(38px, 3.2vw, 50px) clamp(38px, 3.6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}

.card-copy h2 {
  max-width: 600px;
  font-size: clamp(29px, 2.05vw, 36px);
}

.card-copy p {
  max-width: 630px;
  font-size: clamp(17px, 1.3vw, 21px);
}

.card-features {
  display: grid;
  gap: 12px;
  margin-top: 37px;
}

.actions {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 30px;
}

.primary-button,
.secondary-button {
  min-height: 62px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--primary);
}

.secondary-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

.primary-button:hover {
  background: #5d4eea;
  box-shadow: 0 12px 24px rgba(109, 94, 248, 0.22);
  transform: translateY(-1px);
}

.secondary-button:hover {
  background: var(--surface);
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(109, 94, 248, 0.26);
  outline-offset: 3px;
}

.dialog-backdrop {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 39, 0.42);
  backdrop-filter: blur(6px);
}

.dialog {
  position: relative;
  width: min(100%, 480px);
  padding: 38px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(28, 30, 57, 0.22);
}

.dialog h2 {
  margin: 0;
  font-size: 31px;
}

.dialog > p {
  margin: 10px 0 27px;
  color: var(--muted);
  line-height: 1.5;
}

.dialog label {
  display: grid;
  gap: 8px;
  margin-top: 17px;
  color: #394258;
  font-size: 14px;
  font-weight: 650;
}

.dialog input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 18px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 30px;
}

.dialog-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 25px;
}

.signup-card {
  min-height: 0;
  padding: 46px 48px 42px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.signup-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}

.signup-heading p {
  max-width: 530px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.contact-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 30px;
  padding: 5px;
  border-radius: 18px;
  background: #f0edff;
}

.contact-tab {
  min-height: 50px;
  cursor: pointer;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 17px;
  font-weight: 650;
}

.contact-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 8px rgba(25, 31, 48, 0.08);
}

.signup-form {
  display: grid;
  gap: 19px;
  margin-top: 28px;
}

.signup-field {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
}

.signup-field > input,
.password-wrap input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: #fff;
  font-size: 17px;
  font-weight: 400;
}

.signup-field input::placeholder {
  color: #8a909d;
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.check-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  align-items: start;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.45;
}

.check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.custom-check {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-row input:checked + .custom-check {
  border-color: var(--primary);
  background: var(--primary);
}

.check-row input:checked + .custom-check::after {
  width: 8px;
  height: 4px;
  content: "";
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.check-row input:focus-visible + .custom-check {
  outline: 3px solid rgba(109, 94, 248, 0.26);
  outline-offset: 3px;
}

.check-row a,
.login-link button {
  color: var(--primary);
  text-decoration: none;
}

.form-error {
  margin: -8px 0 0;
  color: #d23f4f;
  font-size: 14px;
}

.signup-continue {
  width: 100%;
  min-height: 62px;
  margin-top: 2px;
}

.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 27px 0;
  color: var(--muted);
}

.or-divider::before,
.or-divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.social-actions {
  display: grid;
  gap: 12px;
}

.social-button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: #fff;
  font-size: 17px;
}

.social-button:hover {
  background: var(--surface);
}

.google-icon,
.apple-icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.apple-icon {
  fill: var(--text);
}

.login-link {
  margin: 28px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}

.login-link button {
  cursor: pointer;
  background: transparent;
  font-size: inherit;
}

.confirm-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 38px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.back-button span {
  font-size: 23px;
  line-height: 0;
}

.confirm-heading {
  margin-top: 25px;
}

.confirm-heading h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}

.confirm-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.confirm-heading strong {
  color: var(--text);
  font-weight: 500;
}

.confirm-form {
  margin-top: 34px;
}

.code-fields {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 350px;
  margin: 0 auto;
}

.code-fields input {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1.12;
  border: 2px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: #fff;
  text-align: center;
  font-size: 23px;
  font-weight: 650;
}

.code-fields input:focus {
  border-color: var(--primary);
}

.confirm-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 31px;
  color: var(--muted);
  font-size: 14px;
}

.confirm-meta button {
  flex: 0 0 auto;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
}

#resend-code {
  color: var(--muted);
  text-align: left;
}

#resend-code:not(:disabled) {
  color: var(--primary);
}

#resend-code:disabled {
  cursor: default;
  opacity: 1;
}

#confirm-error {
  margin-top: 18px;
}

.confirm-button {
  width: 100%;
  min-height: 58px;
  margin-top: 25px;
}

.onboarding-left {
  margin-top: 35px;
}

.left-progress-head,
.step-progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--primary);
  font-size: 13px;
}

.left-progress-head span:last-child,
.step-progress-head span:last-child {
  color: var(--muted);
}

.progress-track {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #ddd9ff;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.onboarding-left h2 {
  margin: 22px 0 0;
  font-size: 21px;
}

.onboarding-left p {
  max-width: 500px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.page-shell.profile-active .story-copy,
.page-shell.profile-active .story-features,
.page-shell.profile-active blockquote {
  display: none;
}

.page-shell.profile-active .network {
  margin-top: 150px;
  margin-bottom: 28px;
}

.onboarding-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 39px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.step-progress {
  margin-top: 29px;
}

.step-progress-head {
  font-size: 13px;
}

.step-progress .progress-track {
  height: 6px;
  margin-top: 8px;
  background: #e8eaf0;
}

.onboarding-heading {
  margin-top: 28px;
}

.onboarding-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.25;
}

.onboarding-heading p {
  max-width: 470px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.birthday-form {
  margin-top: 28px;
}

.birthday-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.birthday-fields label {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.birthday-fields input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  text-align: center;
  font-size: 18px;
}

.birthday-fields input.invalid {
  border-color: #ffaaa5;
  background: #fffafa;
}

.birthday-message,
.privacy-note {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  padding: 11px 17px;
  border-radius: 14px;
  font-size: 14px;
}

.birthday-success {
  color: #1aaa5b;
  border: 1px solid #a9edc9;
  background: #effcf5;
}

.birthday-error {
  color: #f04848;
  border: 1px solid #ffc3c0;
  background: #fff3f2;
}

.birthday-message > span:first-child {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.privacy-note {
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  line-height: 1.35;
}

.privacy-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.birthday-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 27px;
}

.location-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 39px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.location-form {
  display: grid;
  gap: 19px;
  margin-top: 28px;
}

.location-field {
  display: grid;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.autocomplete {
  position: relative;
  display: block;
}

.autocomplete > input {
  width: 100%;
  height: 54px;
  padding: 0 46px 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-size: 16px;
}

.autocomplete > input:disabled {
  cursor: not-allowed;
  color: #9aa1af;
  background: #f7f8fb;
}

.autocomplete > input.invalid {
  border-color: #ffaaa5;
  background: #fffafa;
}

.field-chevron {
  position: absolute;
  top: 24px;
  right: 17px;
  pointer-events: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.autocomplete-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 230px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(24, 31, 51, 0.15);
}

.autocomplete-option,
.autocomplete-empty {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
  text-align: left;
}

button.autocomplete-option {
  cursor: pointer;
}

button.autocomplete-option:hover,
button.autocomplete-option.active {
  color: var(--primary);
  background: #f2f0ff;
}

.autocomplete-empty {
  color: var(--muted);
}

.timezone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.timezone-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #b8afff;
  border-radius: 99px;
  color: var(--primary);
  background: #f4f2ff;
}

.timezone-chip svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-checkbox {
  margin-top: 1px;
}

.location-error {
  margin: -7px 0;
}

.location-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 2px;
}

.skills-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 36px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.skills-heading {
  margin-top: 26px;
}

.skills-form {
  margin-top: 25px;
}

.skill-search {
  display: block;
}

.skill-search input {
  width: 100%;
  height: 52px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-size: 15px;
}

.skill-search input::placeholder {
  color: #9aa1af;
}

.skill-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.skill-groups {
  display: grid;
  gap: 19px;
  margin-top: 20px;
}

.skill-group h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.skill-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-options button {
  min-height: 37px;
  padding: 7px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

.skill-options button:hover {
  border-color: #b9b1ff;
  background: #f7f5ff;
}

.skill-options button.selected {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.skill-empty {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.no-skills-row {
  min-height: 54px;
  align-items: center;
  margin-top: 20px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.skills-error {
  margin: 11px 0 -7px;
}

.skills-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 25px;
}

.admission-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 39px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.admission-form {
  margin-top: 29px;
}

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

.admission-options button {
  min-width: 0;
  min-height: 62px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
}

.admission-options button:hover {
  border-color: #b9b1ff;
  background: #f7f5ff;
}

.admission-options button.selected {
  color: var(--primary);
  border-color: var(--primary);
  background: #f0edff;
}

.admission-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 27px;
}

.primary-button:disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.88);
  background: #b8aff1;
  box-shadow: none;
  transform: none;
}

.study-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 39px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.study-form {
  margin-top: 28px;
}

.study-search {
  display: block;
}

.study-search input {
  width: 100%;
  height: 52px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-size: 15px;
}

.study-search input::placeholder {
  color: #9aa1af;
}

.study-country-list {
  max-height: 306px;
  margin-top: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  scrollbar-color: #cbc7eb transparent;
  scrollbar-width: thin;
}

.study-country-option {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px 1fr 25px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--text);
  background: #fff;
  font-size: 15px;
  text-align: left;
}

.study-country-option + .study-country-option {
  border-top: 1px solid #eceef3;
}

.study-country-option:hover {
  background: #f8f7ff;
}

.country-flag {
  font-size: 18px;
  line-height: 1;
}

.country-choice-box {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.study-country-option.selected .country-choice-box {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.study-country-option.selected .country-choice-box::after {
  width: 7px;
  height: 4px;
  content: "";
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-1px);
}

.study-country-empty {
  display: block;
  padding: 22px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.undecided-row {
  min-height: 54px;
  align-items: center;
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.study-error {
  margin: 11px 0 -7px;
}

.study-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
}

.interests-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 36px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.card-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skip-button {
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
}

.skip-button:hover {
  color: var(--primary);
}

.interests-form {
  margin-top: 27px;
}

.interest-groups {
  display: grid;
  gap: 22px;
}

.interest-group h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-options button {
  min-height: 37px;
  padding: 7px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
}

.interest-options button:hover {
  border-color: #b9b1ff;
  background: #f7f5ff;
}

.interest-options button.selected {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.custom-interest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 24px;
}

.custom-interest-row input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-size: 15px;
}

.custom-interest-row button {
  min-width: 128px;
  padding: 0 15px;
  cursor: pointer;
  border: 1px solid #b9b1ff;
  border-radius: 14px;
  color: var(--primary);
  background: #f7f5ff;
  font-size: 14px;
}

.custom-interest-row button:disabled {
  cursor: not-allowed;
  color: #a5a1bd;
  border-color: var(--line);
  background: var(--surface);
}

.interests-error {
  margin: 11px 0 -7px;
}

.interests-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
}

.referral-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 39px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.referral-form {
  margin-top: 29px;
}

.referral-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.referral-options button {
  min-width: 0;
  min-height: 64px;
  padding: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.referral-options button:hover {
  border-color: #b9b1ff;
  background: #f7f5ff;
}

.referral-options button.selected {
  color: var(--primary);
  border-color: var(--primary);
  background: #f0edff;
}

.referral-continue {
  width: 100%;
  min-height: 58px;
  margin-top: 27px;
}

.review-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 38px 40px 40px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.review-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.5px;
}

.review-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.review-user,
.review-section {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.review-user {
  min-height: 98px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-top: 27px;
  padding: 15px 17px;
}

.review-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #b9b1ff;
  border-radius: 50%;
  color: var(--primary);
  background: #f2f0ff center / cover no-repeat;
  font-size: 24px;
  font-weight: 700;
}

.review-avatar.has-photo {
  color: transparent;
}

.review-user-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.review-user-copy strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-user-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.review-photo-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.review-photo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.review-photo-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.review-section {
  margin-top: 15px;
  padding: 17px;
}

.review-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.review-section-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.review-section-head button {
  flex: 0 0 auto;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
}

.review-section-head button:hover {
  text-decoration: underline;
}

.review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.review-chips > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
}

.review-accent-chips > span {
  color: var(--primary);
  border-color: #b9b1ff;
  background: #f5f3ff;
}

.review-value {
  margin: 8px 0 0;
  font-size: 14px;
}

.review-visibility {
  min-height: 48px;
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  cursor: pointer;
  font-size: 14px;
}

.review-visibility input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-finish,
.review-return {
  width: 100%;
  min-height: 55px;
}

.review-finish {
  margin-top: 10px;
  font-size: 15px;
}

.review-return {
  min-height: 48px;
  margin-top: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
}

.review-complete-message {
  margin: 12px 0 0;
  color: #1aaa5b;
  font-size: 13px;
  text-align: center;
}

.review-complete-message.error {
  color: #d23f4f;
  background: #fff3f4;
}

.complete-card {
  width: min(100%, 590px);
  min-height: 0;
  padding: 55px 40px 43px;
  box-shadow: 0 14px 40px rgba(24, 31, 51, 0.08);
}

.complete-success {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 2px solid #a3efc2;
  border-radius: 50%;
  color: #16b75c;
  background: #effcf4;
}

.complete-success span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9f9e6;
  font-size: 28px;
  line-height: 1;
}

.complete-heading {
  margin-top: 23px;
  text-align: center;
}

.complete-heading h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.45px;
}

.complete-heading p {
  max-width: 430px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.complete-actions {
  display: grid;
  gap: 13px;
  margin-top: 46px;
}

.complete-action {
  min-height: 118px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.complete-action-primary {
  border-color: #aaa1ff;
  background: #f1f3ff;
}

.complete-action-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #c8c2ff;
  border-radius: 13px;
  color: var(--primary);
  background: #f5f3ff;
}

.complete-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.complete-event-icon {
  color: #e89500;
  border-color: #ffd577;
  background: #fff7df;
}

.complete-profile-icon {
  color: #14ae5c;
  border-color: #b7eccd;
  background: #edfbf3;
}

.complete-action-copy h3 {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.complete-action-copy p {
  max-width: 190px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.complete-action-button,
.complete-action-button.primary-button {
  min-height: 43px;
  align-self: start;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.complete-action-button.primary-button {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.complete-action-button:hover {
  border-color: #b9b1ff;
  background: #f8f7ff;
}

.complete-action-button.primary-button:hover {
  background: #5d4fec;
}

/* Search dashboard */
.search-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  color: #171b2b;
  background: #f7f8fc;
}

.search-sidebar {
  position: fixed;
  z-index: 25;
  top: 0;
  bottom: 0;
  left: 0;
  width: 236px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 27px 13px 24px;
  border-right: 1px solid #e5e7ed;
  background: #fff;
}

.search-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  font-size: 23px;
  font-weight: 750;
}

.search-navigation {
  display: grid;
  gap: 3px;
  margin-top: 40px;
}

.search-navigation button {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 16px;
  cursor: pointer;
  border-radius: 11px;
  color: #727a8d;
  background: transparent;
  font-size: 15px;
  text-align: left;
}

.search-navigation button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.search-navigation button.active svg path {
  stroke: var(--primary) !important;
}

.search-navigation button:not(.active) svg path {
  stroke: #6b7280 !important;
}

.search-navigation button:hover,
.search-navigation button.active {
  color: var(--primary);
  background: #eeeaff;
}

.search-navigation button.active {
  font-weight: 650;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 0 14px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #8171fa;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user > span:last-child {
  min-width: 0;
  display: grid;
}

.sidebar-user strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user small {
  margin-top: 2px;
  color: #8a91a1;
  font-size: 11px;
}

.search-workspace {
  grid-column: 2;
  min-width: 0;
  padding: 34px clamp(24px, 3vw, 48px) 60px;
}

.events-workspace {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
  padding: 34px clamp(24px, 3vw, 48px) 60px;
  background: #f7f8fc;
}

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

.events-header h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.7px;
}

.events-header p {
  max-width: 650px;
  margin: 9px 0 0;
  color: #747d90;
  font-size: 15px;
  line-height: 1.5;
}

.events-create-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  cursor: pointer;
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}

.events-create-button:hover {
  background: #5d4fec;
}

.events-search-panel {
  min-height: 67px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 13px;
  align-items: center;
  margin-top: 29px;
  padding: 11px 14px;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(29, 35, 53, 0.05);
}

.events-search-field {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: #a0a7b4;
}

.events-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.events-filter-button {
  min-height: 43px;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #697386;
  background: #fff;
  font-size: 13px;
}

.events-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.events-filter-tags button {
  min-height: 35px;
  padding: 5px 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #6f788a;
  background: #fff;
  font-size: 12px;
}

.events-filter-tags button.active {
  color: var(--primary);
  border-color: var(--primary);
  background: #f1efff;
}

.events-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
  margin-top: 28px;
}

.events-main-column,
.events-side-column {
  min-width: 0;
}

.events-main-column {
  display: grid;
  gap: 22px;
}

.current-event-card {
  min-height: 255px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 205px;
  gap: 20px;
  align-items: start;
  padding: 28px;
  border: 1px solid #dedff0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 38, 58, 0.06);
}

.current-event-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #27217f;
  font-size: 30px;
}

.event-kicker {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--primary);
  background: #eeeaff;
  font-size: 11px;
  font-weight: 700;
}

.current-event-info h2 {
  margin: 9px 0 0;
  font-size: 19px;
}

.current-event-info > p {
  margin: 8px 0 0;
  color: #7b8496;
  font-size: 12px;
}

.current-progress {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e7e5f8;
}

.current-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.current-event-meta {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #7f8898;
  font-size: 11px;
}

.current-event-meta strong {
  color: #424a5a;
}

.current-event-actions {
  display: grid;
  gap: 10px;
}

.current-event-actions > strong {
  color: var(--primary);
  font-size: 13px;
  text-align: left;
}

.current-event-actions button,
.promo-footer button,
.event-card footer button,
.event-detail-actions button,
.event-member-card footer button {
  min-height: 43px;
  padding: 8px 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.current-event-actions button.primary,
.promo-footer button.primary,
.event-card footer button.primary,
.event-detail-actions button.primary,
.event-member-card footer button.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.events-promo-card {
  overflow: hidden;
  border: 1px solid #dedff0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 38, 58, 0.06);
}

.promo-visual {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: #28217d;
  background-image: linear-gradient(rgba(255,255,255,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 82px 82px;
}

.promo-visual::before {
  position: absolute;
  right: 44px;
  bottom: 25px;
  width: 150px;
  height: 100px;
  content: "";
  background: radial-gradient(circle at 15% 65%, #7870cd 0 7px, transparent 8px), radial-gradient(circle at 55% 25%, #7870cd 0 7px, transparent 8px), radial-gradient(circle at 82% 70%, #7870cd 0 7px, transparent 8px), linear-gradient(28deg, transparent 35%, #7169c0 36% 38%, transparent 39%), linear-gradient(145deg, transparent 45%, #7169c0 46% 48%, transparent 49%);
}

.promo-orbit {
  position: absolute;
  border: 18px solid rgba(255,255,255,.06);
  border-radius: 50%;
}

.orbit-one { width: 140px; height: 140px; right: 38px; top: -62px; }
.orbit-two { width: 78px; height: 78px; right: 75px; top: -33px; }
.promo-star { position: absolute; right: 30px; top: 22px; color: #8f88de; font-size: 28px; }

.promo-footer {
  min-height: 97px;
  display: grid;
  grid-template-columns: 116px repeat(3, minmax(70px, 1fr)) auto auto;
  gap: 15px;
  align-items: center;
  padding: 17px 22px;
}

.promo-topic {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.promo-footer > div {
  display: grid;
  gap: 3px;
}

.promo-footer strong { font-size: 16px; }
.promo-footer small { color: #9299a8; font-size: 10px; }

.events-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 5px;
}

.events-section-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.events-section-heading h2,
.event-detail-title,
.event-team-heading h2 {
  margin: 0;
  font-size: 17px;
}

.events-section-heading > div:first-child span {
  color: #989fab;
  font-size: 12px;
}

.events-sort {
  display: flex;
  gap: 7px;
}

.events-sort button {
  min-height: 31px;
  padding: 4px 12px;
  cursor: pointer;
  border: 1px solid #e4e6ec;
  border-radius: 8px;
  color: #858d9d;
  background: #fff;
  font-size: 11px;
}

.events-sort button.active {
  color: var(--primary);
  border-color: #ddd8ff;
  background: #eeeaff;
}

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

.event-card {
  --event-color: #4e79e8;
  --event-color-dark: #2958c6;
  min-height: 385px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e0e3ea;
  border-top: 12px solid var(--event-color);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.event-card.event-theme-purple { --event-color: #3c2788; --event-color-dark: #30206e; }
.event-card.event-theme-gold { --event-color: #f0b12e; --event-color-dark: #c78306; }
.event-card.event-theme-green { --event-color: #28bf68; --event-color-dark: #159c4d; }
.event-card.event-theme-violet { --event-color: #604be4; --event-color-dark: #4430c1; }
.event-card.event-theme-navy { --event-color: #2f66bc; --event-color-dark: #204b91; }
.event-card.event-theme-forest { --event-color: #188846; --event-color-dark: #0e6330; }
.event-card.event-theme-brown { --event-color: #bc680d; --event-color-dark: #8f4d08; }

.event-card > header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.event-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: var(--event-color-dark);
  font-size: 15px;
}

.event-category {
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--event-color-dark);
  background: color-mix(in srgb, var(--event-color) 14%, white);
  font-size: 10px;
  font-weight: 700;
}

.event-status {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.event-status.open { color: #11814e; background: #d5f7e7; }
.event-status.soon { color: #9a6500; background: #fff1ce; }
.event-status.closed { color: #d34343; background: #ffe5e5; }
.event-status.finished { color: #6f7888; background: #e9ecf1; }

.event-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.event-labels span {
  padding: 4px 7px;
  border-radius: 5px;
  color: #727b8d;
  background: #f2f4f7;
  font-size: 9px;
}

.event-card h2 {
  margin: 13px 0 0;
  font-size: 16px;
}

.event-organizer {
  margin: 5px 0 0;
  color: #7d8697;
  font-size: 11px;
}

.event-description {
  margin: 13px 0 0;
  color: #70798b;
  font-size: 12px;
  line-height: 1.5;
}

.event-facts {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  color: #9299a7;
  font-size: 10px;
}

.event-card footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: auto;
  padding-top: 17px;
}

.events-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.events-empty strong { color: var(--ink); }
.events-empty button { margin-top: 14px; }
.events-loading { animation: events-pulse 1.2s ease-in-out infinite alternate; }
@keyframes events-pulse { to { opacity: .55; } }

.events-filter-popover {
  position: absolute;
  z-index: 20;
  max-width: 340px;
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(29, 35, 53, .13);
}

.events-filter-popover button {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.events-filter-popover button:hover { color: var(--primary); background: #f2efff; }
.event-page { padding: 28px 40px 60px; }
.event-page-back { margin-bottom: 18px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.event-detail-page h1 { margin: 0 0 8px; font-size: 24px; }
.event-source-note { margin-top: 20px; color: var(--muted); font-size: 12px; }
.event-detail-actions a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.events-list-view:not([hidden]) {
  display: contents;
}

.events-load-more {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--primary);
  background: #fff;
  font-weight: 650;
  cursor: pointer;
}

.event-detail-view {
  width: 100%;
  min-width: 0;
}

.event-detail-shell {
  width: min(100%, 1180px);
  min-width: 0;
  margin: 0 auto;
}

.event-page-back {
  min-height: 38px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: #697386;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.event-detail-hero {
  overflow: hidden;
  border: 1px solid #e0e3ea;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(29, 35, 53, 0.06);
}

.event-detail-banner {
  width: 100%;
  max-height: 330px;
  display: block;
  object-fit: cover;
  background: #eeecff;
}

.event-detail-hero-body {
  padding: clamp(24px, 4vw, 42px);
}

.event-detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-detail-labels span {
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--primary);
  background: #f0edff;
  font-size: 11px;
  font-weight: 650;
}

.event-detail-title-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
}

.event-detail-title-row > div {
  min-width: 0;
}

.event-detail-organizer {
  margin: 0 0 8px;
  color: #747d90;
  font-size: 13px;
}

.event-detail-title-row h1 {
  max-width: 850px;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.event-detail-status {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.event-detail-status.open { color: #11814e; background: #d5f7e7; }
.event-detail-status.soon { color: #9a6500; background: #fff1ce; }
.event-detail-status.closed { color: #d34343; background: #ffe5e5; }
.event-detail-status.finished { color: #6f7888; background: #e9ecf1; }

.event-detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.event-detail-facts > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 12px;
  background: #f7f8fc;
}

.event-detail-facts span {
  color: #8a92a2;
  font-size: 10px;
}

.event-detail-facts strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.event-detail-actions a,
.event-detail-actions button,
.event-seeker-card > button,
.event-detail-state button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid #dfe2ea;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.event-detail-actions .primary,
.event-detail-actions .event-team-button {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.event-detail-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.event-detail-main,
.event-seekers-panel {
  min-width: 0;
}

.event-detail-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-detail-section {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.04);
}

.event-detail-section.event-detail-description {
  grid-column: 1 / -1;
}

.event-detail-section h2 {
  margin: 0;
  font-size: 15px;
}

.event-detail-section p {
  margin: 10px 0 0;
  overflow-wrap: anywhere;
  color: #667083;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.event-detail-source a {
  color: var(--primary);
  text-decoration: none;
}

.event-source-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px 2px;
  color: #81899a;
  font-size: 11px;
}

.event-seekers-panel {
  padding: 22px;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.04);
}

.event-seekers-panel .event-team-heading {
  margin: 0;
}

.event-seekers-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.event-seeker-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e7e9ef;
  border-radius: 13px;
  background: #fafbfe;
}

.event-seeker-head {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.event-seeker-head h3,
.event-seeker-head p {
  margin: 0;
  overflow-wrap: anywhere;
}

.event-seeker-head h3 { font-size: 13px; }
.event-seeker-head p { margin-top: 3px; color: #717a8c; font-size: 11px; }
.event-seeker-head small { display: block; margin-top: 4px; color: #949ba9; font-size: 9px; }
.event-seeker-card > button { width: 100%; min-height: 38px; margin-top: 13px; }

.event-detail-empty,
.event-detail-state {
  padding: 42px 22px;
  border: 1px solid #e1e4eb;
  border-radius: 15px;
  color: #747d90;
  background: #fff;
  text-align: center;
}

.deadline-card > .events-deadline-list,
.recommended-events-card > .events-recommended-list {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
}

.deadline-card .events-deadline-list > div {
  min-height: 48px;
  display: grid;
  grid-template-columns: 9px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border-radius: 9px;
  background: #f8f9fb;
}

.deadline-card .events-deadline-list > div + div { margin-top: 8px; }
.recommended-events-card .events-recommended-list > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 13px; border-radius: 10px; background: #f8f9fb; }
.recommended-events-card .events-recommended-list > div + div { margin-top: 9px; }
.event-detail-hero .event-detail-actions { margin-top: 28px; }

@media (max-width: 980px) {
  .event-detail-layout { grid-template-columns: 1fr; }
  .event-seekers-panel { order: 2; }
  .event-detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .events-workspace { padding: 22px 14px 42px; }
  .event-detail-hero-body { padding: 22px 18px; }
  .event-detail-title-row { display: grid; gap: 15px; }
  .event-detail-status { width: fit-content; white-space: normal; }
  .event-detail-facts,
  .event-detail-main { grid-template-columns: 1fr; }
  .event-detail-section.event-detail-description { grid-column: auto; }
  .event-detail-actions { display: grid; grid-template-columns: 1fr; }
  .event-detail-actions a,
  .event-detail-actions button { width: 100%; }
  .event-detail-banner { max-height: 220px; }
  .event-seekers-panel,
  .event-detail-section { padding: 18px; }
}

.event-detail-title {
  margin-top: 8px;
}

.event-detail-card {
  padding: 28px;
  border: 1px solid #e0e3ea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.event-detail-card > header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.detail-event-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #3170d8;
}

.event-detail-card header h2 { margin: 0; font-size: 17px; }
.event-detail-card header div div { display: flex; gap: 7px; margin-top: 6px; }
.event-detail-card header div div span { padding: 4px 7px; border-radius: 5px; color: #3472d2; background: #e9f2ff; font-size: 9px; }
.event-detail-card header div div span:last-child { color: #15804e; background: #daf7e9; }

.event-detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 35px;
  margin-top: 25px;
}

.event-detail-card h3 {
  margin: 0;
  color: #9299a7;
  font-size: 10px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.event-detail-columns p {
  margin: 8px 0 0;
  color: #667083;
  font-size: 12px;
  line-height: 1.55;
}

.event-required-skills { margin-top: 23px; }
.event-required-skills h3 { margin-bottom: 9px; }
.event-required-skills span { display: inline-flex; margin: 0 6px 6px 0; padding: 5px 9px; border-radius: 6px; color: #626b7c; background: #f1f3f6; font-size: 10px; }

.event-timeline { margin-top: 21px; }
.event-timeline > div { display: grid; grid-template-columns: 55px 1fr 55px 1fr 55px 1fr 75px; align-items: start; margin-top: 13px; }
.event-timeline span { width: 28px; height: 28px; display: grid; place-items: center; justify-self: center; border-radius: 50%; color: #a4aab6; background: #eceef2; font-size: 10px; }
.event-timeline span.done { color: #fff; background: var(--primary); }
.event-timeline span small { margin-top: 8px; color: #7b8494; font-size: 9px; white-space: nowrap; }
.event-timeline i { height: 2px; margin-top: 13px; background: #e2e4ea; }
.event-timeline i:has(+ .done), .event-timeline .done + i { background: var(--primary); }

.event-detail-actions { display: flex; gap: 10px; margin-top: 42px; }

.event-team-heading { margin-top: 8px; }
.event-team-heading p { margin: 7px 0 0; color: #7a8394; font-size: 12px; }

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

.event-member-card {
  min-height: 275px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e1e4eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.event-member-head { display: grid; grid-template-columns: 49px 1fr; gap: 12px; }
.event-member-avatar { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; }
.event-member-head > div > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.event-member-head h3 { margin: 0; font-size: 14px; }
.event-member-head p { margin: 4px 0 0; color: #70798b; font-size: 11px; }
.event-member-head small { display: block; margin-top: 6px; color: #949ba9; font-size: 9px; }
.event-member-card > p { margin: 15px 0 0; color: #697386; font-size: 11px; line-height: 1.55; }
.event-member-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.event-member-skills span { padding: 5px 8px; border-radius: 5px; color: #626b7c; background: #f1f3f6; font-size: 9px; }
.event-member-card footer { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; padding-top: 14px; }

.events-cta-card {
  min-height: 130px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid #e1e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.events-cta-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: var(--primary); background: #eeeaff; font-size: 22px; }
.events-cta-card h2 { margin: 0; font-size: 16px; }
.events-cta-card p { max-width: 450px; margin: 7px 0 0; color: #758093; font-size: 12px; line-height: 1.5; }
.events-cta-card button { min-height: 46px; padding: 0 22px; cursor: pointer; border-radius: 10px; color: #fff; background: var(--primary); font-size: 12px; font-weight: 650; }

.events-side-column {
  display: grid;
  gap: 20px;
}

.event-side-card {
  padding: 22px;
  border: 1px solid #e1e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.event-side-card > h2 { margin: 0 0 16px; font-size: 15px; }
.popular-events-card ol { margin: 0; padding: 0; list-style: none; }
.popular-events-card li { min-height: 59px; display: grid; grid-template-columns: 32px 1fr 18px; gap: 10px; align-items: center; }
.popular-events-card li + li { border-top: 1px solid #eceef2; }
.popular-events-card li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #f2f4f8; font-size: 13px; }
.popular-events-card li div { min-width: 0; display: grid; gap: 3px; }
.popular-events-card li strong { font-size: 11px; }
.popular-events-card li small { color: #999fac; font-size: 9px; }
.popular-events-card li b { color: var(--primary); font-size: 11px; text-align: right; }

.deadline-card > div { min-height: 48px; display: grid; grid-template-columns: 9px 1fr auto; gap: 8px; align-items: center; padding: 0 10px; border-radius: 9px; background: #f8f9fb; }
.deadline-card > div + div { margin-top: 8px; }
.deadline-dot { width: 7px; height: 7px; border-radius: 50%; }
.deadline-dot.red { background: #f05252; } .deadline-dot.orange { background: #f4a62a; } .deadline-dot.yellow { background: #edbd34; } .deadline-dot.green { background: #2fc780; }
.deadline-card strong { font-size: 10px; }
.deadline-card em { color: #b57a16; font-size: 9px; font-style: normal; }
.deadline-card > div:first-of-type em { color: #d34747; }
.deadline-card > div:nth-of-type(4) em { color: #1e9b61; }

.recommended-events-card > div { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 13px; border-radius: 10px; background: #f8f9fb; }
.recommended-events-card > div + div { margin-top: 9px; }
.recommended-events-card strong { font-size: 10px; }
.recommended-events-card b { color: #2abf79; font-size: 10px; }
.recommended-events-card small { color: #989fac; font-size: 9px; }
.recommended-events-card a { color: var(--primary); font-size: 9px; text-align: right; text-decoration: none; }
.recommended-events-card > p { margin: 14px 0 0; padding: 10px; border-radius: 8px; color: var(--primary); background: #f0edff; font-size: 9px; text-align: center; }

.events-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.events-stats-grid span { min-height: 75px; display: grid; align-content: center; gap: 4px; padding: 12px; border-radius: 10px; background: #f0edff; }
.events-stats-grid span:nth-child(2) { background: #eaf2ff; }
.events-stats-grid span:nth-child(3) { background: #fff5de; }
.events-stats-grid span:nth-child(4) { background: #e7faef; }
.events-stats-grid strong { font-size: 18px; }
.events-stats-grid small { color: #9299a8; font-size: 9px; }

/* Messenger */
.chat-help-button {
  display: none;
}

.search-page.chat-active {
  grid-template-columns: 64px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #f8f9fc;
}

.chat-active .search-sidebar {
  width: 64px;
  padding: 18px 9px 20px;
  align-items: center;
}

.chat-active .search-brand {
  padding: 0;
}

.chat-active .search-brand span,
.chat-active .sidebar-user > span:last-child {
  display: none;
}

.chat-active .search-navigation {
  width: 46px;
  gap: 3px;
  margin-top: 40px;
}

.chat-active .search-navigation button {
  position: relative;
  width: 46px;
  min-height: 42px;
  justify-content: center;
  gap: 0;
  overflow: visible;
  padding: 0;
  font-size: 0;
}

.chat-active .search-navigation button > svg {
  width: 18px;
  height: 18px;
}

.chat-active .search-navigation [data-app-page="chats"]::after {
  position: absolute;
  top: -3px;
  right: -2px;
  min-width: 20px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  content: "9+";
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: var(--primary);
  font-size: 9px;
  font-weight: 700;
}

.chat-active .chat-help-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-top: auto;
  cursor: pointer;
  border: 1.5px solid #7a8395;
  border-radius: 50%;
  color: #697386;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.chat-active .sidebar-user {
  margin: 13px 0 0;
  padding: 0;
}

.chat-active .sidebar-user-avatar {
  width: 36px;
  height: 36px;
}

.chats-workspace {
  grid-column: 2;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: #f8f9fc;
}

.chats-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid #e5e7ed;
  background: #fff;
}

.chats-header h1 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.4px;
}

.chats-header p {
  margin: 5px 0 0;
  color: #798298;
  font-size: 14px;
}

.new-chat-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  cursor: pointer;
  border-radius: 14px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 6px rgba(80, 66, 218, 0.2);
  font-size: 14px;
  font-weight: 650;
}

.new-chat-button span {
  font-size: 22px;
  font-weight: 400;
}

.chats-layout {
  height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
}

.dialogs-panel {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #e5e7ed;
  background: #fff;
}

.dialogs-search {
  height: 44px;
  display: block;
  margin: 20px 18px 14px;
}

.dialogs-search input {
  width: 100%;
  height: 100%;
  padding: 0 38px;
  border: 0;
  border-radius: 13px;
  outline: 0;
  color: var(--text);
  background: #f0f1f7;
  font-size: 14px;
  text-align: left;
}

.dialogs-search input::placeholder {
  color: #858da2;
}

.dialog-tabs {
  display: flex;
  gap: 7px;
  padding: 0 18px 13px;
  overflow: hidden;
  border-bottom: 1px solid #eceef3;
}

.dialog-tabs button {
  min-height: 33px;
  flex: 0 0 auto;
  padding: 5px 15px;
  cursor: pointer;
  border-radius: 99px;
  color: #737c92;
  background: #f1f2f7;
  font-size: 12px;
}

.dialog-tabs button.active {
  color: #fff;
  background: var(--primary);
}

.dialogs-list {
  height: calc(100vh - 206px);
  overflow-y: auto;
  scrollbar-color: #d6d3f1 transparent;
  scrollbar-width: thin;
}

.dialog-list-item {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: start;
  padding: 17px 18px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f1f4;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.dialog-list-item:hover,
.dialog-list-item.selected {
  background: #f7f6ff;
}

.dialog-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.dialog-avatar i {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c5cad3;
}

.dialog-avatar i.online {
  background: #21bf6b;
}

.dialog-summary {
  min-width: 0;
  display: grid;
}

.dialog-summary > strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-summary > small {
  margin-top: 4px;
  color: #7b8498;
  font-size: 11.5px;
}

.dialog-summary > em {
  margin-top: 8px;
  font-style: normal;
}

.dialog-summary > em b {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
}

.dialog-summary > em b.green { color: #13905a; background: #d8f8e8; }
.dialog-summary > em b.purple { color: #724cf0; background: #eee8ff; }
.dialog-summary > em b.orange { color: #c57900; background: #fff0cd; }
.dialog-summary > em b.blue { color: #2572db; background: #e7f1ff; }

.dialog-summary > span {
  margin-top: 9px;
  overflow: hidden;
  color: #778096;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-time {
  display: grid;
  justify-items: end;
  gap: 32px;
  color: #79839a;
  font-size: 10px;
}

.dialog-time i {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.chat-empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 115px 30px 40px;
  background: #f8f9fc;
  text-align: center;
}

.chat-empty-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 23px;
  color: var(--primary);
  background: linear-gradient(145deg, #eeeaff, #e5f2ff);
}

.chat-empty-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-empty-state h2 {
  margin: 27px 0 0;
  font-size: 21px;
}

.chat-empty-state > p {
  max-width: 400px;
  margin: 10px 0 0;
  color: #7b849b;
  font-size: 14px;
  line-height: 1.55;
}

.active-discussions {
  width: min(100%, 290px);
  display: grid;
  gap: 10px;
  margin-top: 33px;
}

.active-discussions span {
  min-height: 42px;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #e2e4ea;
  border-radius: 13px;
  color: #7a8399;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.active-discussions i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chat-nav-unread {
  min-width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  padding: 0 5px;
  border-radius: 99px;
  color: #fff;
  background: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.dialogs-state {
  display: grid;
  gap: 8px;
  padding: 38px 22px;
  color: #7b8498;
  font-size: 13px;
  text-align: center;
}

.dialogs-state strong { color: var(--text); font-size: 15px; }
.dialogs-state p { margin: 0; line-height: 1.5; }
.dialogs-state button { justify-self: center; padding: 8px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.dialog-avatar.has-image,.chat-message-avatar.has-image { color: transparent; background-position: center; background-size: cover; }

.chat-conversation {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 72px minmax(0,1fr) auto;
  overflow: hidden;
  background: #f8f9fc;
}

.chat-conversation-header {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 10px 24px;
  border-bottom: 1px solid #e5e7ed;
  background: #fff;
}

.chat-conversation-header .dialog-avatar { width: 44px; height: 44px; flex: 0 0 auto; }
.chat-header-person { min-width: 0; display: grid; gap: 4px; padding: 0; cursor: pointer; background: transparent; text-align: left; }
.chat-header-person strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-person small,.chat-member-count { color: #7b8498; font-size: 12px; }
.chat-member-count { margin-left: auto; }
.chat-mobile-back { display: none; padding: 6px; color: var(--primary); background: transparent; font-size: 25px; cursor: pointer; }

.chat-messages {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 24px clamp(18px,4vw,58px);
  scrollbar-color: #d6d3f1 transparent;
}

.chat-message { max-width: min(70%,620px); display: flex; gap: 9px; align-items: end; }
.chat-message.mine { align-self: flex-end; }
.chat-message.theirs { align-self: flex-start; }
.chat-message-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; }
.chat-message > div { min-width: 80px; padding: 10px 13px 8px; border: 1px solid #e3e5ec; border-radius: 15px 15px 15px 4px; background: #fff; box-shadow: 0 2px 8px rgba(28,35,54,.035); }
.chat-message.mine > div { color: #fff; border-color: var(--primary); border-radius: 15px 15px 4px 15px; background: var(--primary); }
.chat-message strong { display: block; margin-bottom: 4px; color: #6555ef; font-size: 11px; }
.chat-message p { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.chat-message small { display: block; margin-top: 4px; color: #929aab; font-size: 9px; text-align: right; }
.chat-message.mine small { color: #dcd8ff; }
.chat-system-message { align-self: center; padding: 5px 11px; border-radius: 99px; color: #7b8498; background: #eceef4; font-size: 11px; }
.chat-load-older { align-self: center; padding: 7px 13px; cursor: pointer; border: 1px solid var(--line); border-radius: 10px; color: #6d5ef8; background: #fff; }
.chat-history-empty { margin: auto; color: #7b8498; text-align: center; line-height: 1.6; }
.chat-history-empty button { margin-top: 10px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }

.chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid #e5e7ed;
  background: #fff;
}

.chat-composer textarea { min-height: 45px; max-height: 130px; resize: vertical; padding: 12px 14px; border: 1px solid #dfe2ea; border-radius: 13px; outline: 0; color: var(--text); font: inherit; }
.chat-composer textarea:focus { border-color: #a99fff; box-shadow: 0 0 0 3px #eeeaff; }
.chat-composer button { min-width: 105px; padding: 0 18px; cursor: pointer; border-radius: 13px; color: #fff; background: var(--primary); font-weight: 650; }
.chat-composer button:disabled { cursor: wait; opacity: .65; }
.chat-composer p { position: absolute; right: 24px; bottom: 2px; margin: 0; color: #d74b4b; font-size: 10px; }

.chat-modal-backdrop { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20,24,38,.48); }
.chat-modal { position: relative; width: min(480px,100%); max-height: min(680px,calc(100vh - 40px)); overflow: auto; padding: 28px; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(21,26,45,.22); }
.chat-modal h2 { margin: 0 0 20px; }
.chat-modal > label { display: grid; gap: 8px; color: #5f687b; font-size: 12px; }
.chat-modal input { height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.chat-modal-close { position: absolute; top: 15px; right: 16px; width: 34px; height: 34px; cursor: pointer; border-radius: 50%; color: #6f788c; background: #f1f2f7; font-size: 20px; }
.chat-user-results { display: grid; gap: 7px; margin-top: 14px; }
.chat-user-results > p { color: #7b8498; font-size: 12px; text-align: center; }
.chat-user-results button { display: grid; grid-template-columns: 38px 1fr; gap: 2px 10px; align-items: center; padding: 10px; cursor: pointer; border-radius: 12px; background: #f8f9fc; text-align: left; }
.chat-user-results button:hover { background: #f0edff; }
.chat-user-results button span { grid-row: 1/3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 11px; }
.chat-user-results button strong { font-size: 13px; }
.chat-user-results button small { color: #7b8498; font-size: 11px; }
.public-profile-message { width: 100%; min-height: 40px; margin-top: 18px; cursor: pointer; border-radius: 12px; color: #fff; background: var(--primary); font-weight: 650; }
.event-seeker-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.project-team-list > div > button { width: 30px; height: 30px; cursor: pointer; border: 1px solid var(--line); border-radius: 9px; color: var(--primary); background: #fff; }

@media (max-width: 820px) {
  .chats-workspace.conversation-open .chats-header,.chats-workspace.conversation-open .dialogs-panel { display: none; }
  .chats-workspace.conversation-open .chats-layout { min-height: calc(100vh - 70px); }
  .chat-conversation { min-height: calc(100vh - 70px); grid-template-rows: 68px minmax(0,1fr) auto; }
  .chat-mobile-back { display: inline-grid; place-items: center; }
  .chat-message { max-width: 88%; }
  .chat-conversation-header { padding: 9px 12px; }
  .chat-member-count { display: none; }
  .chat-messages { padding: 16px 12px; }
  .chat-composer { position: sticky; bottom: 0; padding: 10px 12px max(12px,env(safe-area-inset-bottom)); }
  .chat-composer button { min-width: 86px; padding: 0 12px; }
}

.purple-dot { background: var(--primary); }
.green-dot { background: #20bd67; }
.orange-dot { background: #f39b00; }
.blue-dot { background: #2877ea; }

/* Projects dashboard */
.project-profile-progress {
  display: none;
}

.search-page.projects-active {
  grid-template-columns: 200px minmax(0, 1fr);
}

.projects-active .search-sidebar {
  width: 200px;
}

.projects-active .sidebar-user {
  display: none;
}

.projects-active .project-profile-progress {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 14px 13px;
  border-radius: 14px;
  background: #f0edff;
}

.project-profile-progress strong {
  color: var(--primary);
  font-size: 12px;
}

.project-profile-progress span {
  color: #7a8396;
  font-size: 10px;
}

.project-profile-progress i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #dbd6ff;
}

.project-profile-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.projects-workspace {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
  background: #f7f8fc;
}

.projects-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 25px 32px 0;
  background: #fff;
}

.projects-header h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.6px;
}

.projects-header p {
  margin: 7px 0 0;
  color: #707a8d;
  font-size: 13px;
}

.projects-header-actions {
  display: flex;
  gap: 10px;
}

.projects-header-actions button {
  min-height: 40px;
  padding: 0 17px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.projects-header-actions button.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.projects-stats {
  display: flex;
  gap: 12px;
  padding: 24px 32px 23px;
  border-bottom: 1px solid #e7e9ee;
  background: #fff;
}

.projects-stats > span {
  min-width: 155px;
  min-height: 54px;
  display: grid;
  grid-template-columns: 10px auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid #e1e4eb;
  border-radius: 15px;
}

.projects-stats i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.projects-stats i.green { background: #18b765; }
.projects-stats i.blue { background: #2877ea; }
.projects-stats i.orange { background: #f29b00; }
.projects-stats i.purple { background: var(--primary); }
.projects-stats strong { font-size: 18px; }
.projects-stats small { color: #768094; font-size: 11px; white-space: nowrap; }

.projects-toolbar {
  min-height: 63px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 32px;
  border-bottom: 1px solid #e7e9ee;
  background: #fff;
}

.projects-toolbar > label {
  width: 240px;
  flex: 0 0 auto;
}

.projects-toolbar input {
  width: 100%;
  height: 38px;
  padding: 0 35px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--text);
  background: #fff;
  font-size: 12px;
}

.project-filter-tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.project-filter-tabs button,
.projects-sort,
.project-view-tabs button {
  min-height: 36px;
  padding: 5px 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #697386;
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.project-filter-tabs button.active,
.project-view-tabs button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.projects-sort {
  margin-left: auto;
  border-radius: 11px;
}

.project-view-tabs {
  display: flex;
}

.project-view-tabs button {
  width: 34px;
  padding: 0;
  border-radius: 10px 0 0 10px;
}

.project-view-tabs button + button {
  margin-left: -1px;
  border-radius: 0 10px 10px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 32px 55px;
}

.project-card {
  min-height: 374px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #e0e3e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.05);
}

.project-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
}

.project-card-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.project-card header > div > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.project-card h2 {
  margin: 0;
  font-size: 14px;
}

.project-status-badge {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 650;
}

.project-status-badge.active { color: #148653; background: #d8f8e8; }
.project-status-badge.prepare { color: #2869d0; background: #e3efff; }
.project-status-badge.recruiting { color: #bc7800; background: #fff0c9; }
.project-status-badge.finished { color: #8b93a1; background: #eceef2; }

.project-card header p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0 0;
}

.project-card header p span {
  color: #6f788a;
  font-size: 10px;
}

.project-card header p span:first-child {
  padding: 3px 7px;
  border-radius: 6px;
  color: var(--primary);
  background: #eeeaff;
}

.project-card header > button {
  cursor: pointer;
  color: #737d90;
  background: transparent;
  font-size: 13px;
}

.project-card-description {
  min-height: 44px;
  margin: 18px 0 0;
  color: #6e788b;
  font-size: 12px;
  line-height: 1.55;
}

.project-progress-head {
  display: flex;
  justify-content: space-between;
  margin-top: 17px;
  color: #727c8f;
  font-size: 11px;
}

.project-progress-head strong {
  color: var(--text);
}

.project-progress-track {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #ececf1;
}

.project-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.project-card-meta {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  color: #7b8496;
  font-size: 10px;
}

.project-activity {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  color: #6f788a;
  background: #f7f8fb;
  font-size: 10px;
  line-height: 1.45;
}

.project-activity strong {
  color: #303747;
}

.project-card > footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
}

.project-member-avatars {
  display: flex;
  align-items: center;
}

.project-member-avatars span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #7764ef;
  font-size: 8px;
  font-weight: 700;
}

.project-member-avatars span:first-child { margin-left: 0; }
.project-member-avatars span:nth-child(2) { background: #e95b9f; }
.project-member-avatars span:nth-child(3) { background: #21bd68; }
.project-member-avatars span:last-child { color: #687184; background: #f0f2f6; }

.project-card footer button {
  min-height: 36px;
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
}

.project-card footer button.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.project-resource-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #202635;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
}

.projects-invitations { padding: 0 32px 18px; }
.projects-invitations > div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid #dcd7ff; border-radius: 14px; background: #f2efff; }
.projects-invitations span { display: grid; flex: 1; gap: 2px; }
.projects-invitations small { color: var(--muted); }
.projects-invitations button { min-height: 34px; padding: 6px 12px; border: 1px solid #d8dce6; border-radius: 9px; background: #fff; cursor: pointer; }
.projects-invitations button:first-of-type { color: #fff; border-color: var(--primary); background: var(--primary); }

.projects-empty { grid-column: 1 / -1; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 35px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: #fff; text-align: center; }
.projects-empty strong { color: #171d2b; font-size: 18px; }
.projects-empty p { margin: 0; }
.projects-empty button { min-height: 38px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.projects-empty button:first-of-type { color: #fff; border-color: var(--primary); background: var(--primary); }
.projects-loading { min-height: 180px; }

.project-detail-view:not([hidden]) { min-height: 100vh; padding: 28px 32px 60px; }
.project-detail-shell { width: min(1120px, 100%); margin: 0 auto; }
.project-page-back { margin-bottom: 18px; padding: 0; color: #69748b; border: 0; background: transparent; cursor: pointer; }
.project-detail-hero { display: grid; grid-template-columns: minmax(0,1fr) 190px auto; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 16px rgba(29,35,53,.05); }
.project-detail-hero p { margin: 10px 0 4px; color: var(--muted); }
.project-detail-hero h1 { margin: 0; font-size: 28px; color: #151b29; }
.project-detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.project-detail-tags span { padding: 5px 9px; border-radius: 8px; color: var(--primary); background: #f0edff; font-size: 11px; }
.project-detail-progress { display: grid; gap: 5px; color: var(--muted); text-align: right; }
.project-detail-progress strong { color: #171d2b; font-size: 28px; }
.project-detail-progress i { width: 100%; height: 6px; overflow: hidden; border-radius: 99px; background: #e8eaf0; }
.project-detail-progress i b { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.project-owner-actions { display: grid; gap: 8px; }
.project-owner-actions button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.project-owner-actions button:first-child { color: #fff; border-color: var(--primary); background: var(--primary); }
.project-detail-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.8fr); gap: 20px; margin-top: 20px; }
.project-detail-grid main, .project-detail-grid aside { display: grid; align-content: start; gap: 20px; }
.project-detail-panel { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 3px 12px rgba(29,35,53,.04); }
.project-my-work { margin-top: 20px; }
.project-detail-panel > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.project-detail-panel h2 { margin: 0; font-size: 16px; }
.project-detail-panel header > span { color: var(--muted); font-size: 12px; }
.project-task { display: grid; grid-template-columns: minmax(0,1fr) auto auto auto; gap: 10px; align-items: center; padding: 14px; border: 1px solid #e6e8ee; border-radius: 12px; background: #fafbfe; }
.project-task + .project-task { margin-top: 10px; }
.project-task h3 { margin: 5px 0; font-size: 13px; }
.project-task p { margin: 0 0 7px; color: #69748a; font-size: 12px; white-space: pre-wrap; }
.project-task small { color: #8a93a4; }
.project-task > button { min-height: 32px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.project-task > button[data-task-status] { color: #fff; border-color: var(--primary); background: var(--primary); }
.task-priority, .task-status { display: inline-flex; padding: 4px 7px; border-radius: 7px; font-size: 10px; }
.task-priority { color: #6c7485; background: #eceef3; }
.task-priority.high, .task-priority.urgent { color: #c24d45; background: #ffe9e7; }
.task-priority.low { color: #168355; background: #e3faee; }
.task-status { color: var(--primary); background: #eeeaff; white-space: nowrap; }
.project-task-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.project-task-tabs button { padding: 5px 9px; border: 0; border-radius: 8px; color: #6c7587; background: #f1f2f6; cursor: pointer; font-size: 10px; }
.project-task-tabs button.active { color: #fff; background: var(--primary); }
.project-team-list, .project-resource-list, .project-deadlines { display: grid; gap: 9px; }
.project-team-list > div { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf0f5; }
.project-team-list > div > span, .project-activity-list > li > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); font-size: 11px; font-weight: 700; }
.project-team-list p { display: grid; gap: 2px; margin: 0; }
.project-team-list small, .project-team-list em { color: var(--muted); font-size: 10px; font-style: normal; }
.project-resource-list a { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e6e8ee; border-radius: 10px; color: #1d2432; text-decoration: none; }
.project-resource-list a strong { flex: 1; }
.project-resource-list a span { color: var(--primary); font-size: 10px; }
.project-activity-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.project-activity-list li { display: flex; gap: 10px; align-items: center; }
.project-activity-list li div { display: grid; gap: 3px; }
.project-activity-list small { color: var(--muted); }
.project-deadlines p { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 10px; border-radius: 9px; background: #f7f8fb; }
.project-deadlines span { color: var(--muted); }
.project-status-actions button { width: 100%; min-height: 37px; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.project-detail-empty { padding: 16px; color: var(--muted); border-radius: 10px; background: #f8f9fc; text-align: center; }

.project-modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(21,25,38,.48); }
.project-modal-backdrop[hidden] { display: none; }
.project-modal { position: relative; width: min(520px,100%); max-height: calc(100vh - 40px); overflow: auto; padding: 28px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(18,22,34,.22); }
.project-modal h2 { margin: 0 35px 7px 0; }
.project-modal > div > p { margin: 0 0 20px; color: var(--muted); }
.project-modal-close { position: absolute; top: 17px; right: 17px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f2f6; cursor: pointer; }
.project-modal-form { display: grid; gap: 14px; }
.project-modal-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; }
.project-modal-form input, .project-modal-form textarea, .project-modal-form select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; }
.project-modal-form textarea { min-height: 90px; resize: vertical; }
.project-modal-form > button { min-height: 43px; border: 0; border-radius: 10px; color: #fff; background: var(--primary); cursor: pointer; }
.project-modal-form > button:disabled { opacity: .65; cursor: wait; }
.project-modal-feedback { margin: 0; padding: 10px; color: #167e50; border-radius: 9px; background: #e8f9f0; }
.project-modal-feedback.error { color: #be4942; background: #fff0ef; }
.project-user-results { max-height: 210px; overflow: auto; display: grid; gap: 6px; }
.project-user-results > button { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 2px 9px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.project-user-results > button.selected { border-color: var(--primary); background: #f1eeff; }
.project-user-results button span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--primary); }
.project-user-results button small { color: var(--muted); }

@media (max-width: 900px) {
  .project-detail-hero { grid-template-columns: 1fr 150px; }
  .project-owner-actions { grid-column: 1 / -1; grid-template-columns: repeat(3,1fr); }
  .project-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .project-detail-view:not([hidden]) { padding: 20px 14px 45px; }
  .project-detail-hero { grid-template-columns: 1fr; padding: 20px; }
  .project-detail-progress { text-align: left; }
  .project-owner-actions { grid-column: auto; grid-template-columns: 1fr; }
  .project-detail-panel { padding: 16px; }
  .project-task { grid-template-columns: 1fr; }
  .project-task > button { width: 100%; }
  .project-team-list > div { grid-template-columns: 36px minmax(0,1fr); }
  .project-team-list em { grid-column: 2; }
  .projects-invitations { padding: 0 14px 14px; }
  .projects-invitations > div { align-items: stretch; flex-direction: column; }
  .project-modal-backdrop { padding: 10px; }
  .project-modal { max-height: calc(100vh - 20px); padding: 22px 18px; }
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

/* Profile dashboard */
.search-page.profile-dashboard-active {
  grid-template-columns: 223px minmax(0, 1fr);
}

.profile-dashboard-active .search-sidebar {
  width: 223px;
}

.profile-dashboard-active .sidebar-user {
  display: none;
}

.profile-dashboard-active .project-profile-progress {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 14px 13px;
  border: 1px solid #ddd8ff;
  border-radius: 16px;
  background: #f0edff;
}

.profile-workspace {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
  padding: 32px 24px 30px;
  background: #f7f8fc;
}

.profile-hero-card,
.profile-panel {
  border: 1px solid #e0e3e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(29, 35, 53, 0.05);
}

.profile-hero-card {
  min-height: 198px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px;
}

.profile-photo-placeholder {
  position: relative;
  border: 0;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.profile-photo-placeholder.has-image span {
  display: none;
}

.profile-photo-placeholder {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: #f0f1f4;
}

.profile-photo-placeholder i {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #19b86c;
}

.profile-open-status {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid #aeeacb;
  border-radius: 99px;
  color: #128553;
  background: #e9fbf2;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.profile-hero-info h1 {
  margin: 10px 0 0;
  font-size: 27px;
  letter-spacing: -0.6px;
}

.profile-hero-info > p {
  margin: 5px 0 0;
  color: #606b7e;
  font-size: 14px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 13px;
  color: #727c90;
  font-size: 11px;
}

.profile-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 10px;
}

.profile-languages > span {
  color: #788295;
}

.profile-languages b {
  padding: 4px 9px;
  border-radius: 99px;
  color: #737c8e;
  background: #f0f2f6;
  font-size: 10px;
  font-weight: 500;
}

.profile-hero-actions {
  display: flex;
  gap: 10px;
}

.profile-hero-actions button {
  min-height: 43px;
  padding: 0 17px;
  cursor: pointer;
  border: 1px solid #cec8ff;
  border-radius: 14px;
  color: var(--primary);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.profile-hero-actions button.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 3px 8px rgba(75, 60, 211, 0.22);
}

.profile-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(300px, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.profile-panel {
  padding: 20px;
}

.profile-panel > h2,
.profile-panel > header h2 {
  margin: 0;
  font-size: 15px;
}

.profile-completion-card {
  min-height: 302px;
}

.profile-completion-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.profile-completion-line i {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8e9ed;
}

.profile-completion-line b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.profile-completion-line strong {
  color: var(--primary);
  font-size: 12px;
}

.profile-completion-card > p {
  margin: 18px 0 0;
  color: #9aa1af;
  font-size: 11px;
}

.profile-completion-card ul {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  color: #9ca3b0;
  font-size: 11px;
  list-style: none;
}

.profile-completion-card li::before {
  width: 12px;
  height: 12px;
  display: inline-grid;
  place-items: center;
  margin-right: 9px;
  content: "";
  border: 1px solid #ccd1da;
  border-radius: 50%;
}

.profile-completion-card li.done {
  color: #5b6578;
}

.profile-completion-card li.done::before {
  content: "✓";
  color: var(--primary);
  border-color: var(--primary);
  font-size: 8px;
}

.profile-about-card {
  min-height: 198px;
  align-self: start;
}

.profile-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-panel > header > button {
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
}

.profile-about-card > header + p.collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.profile-empty {
  margin: 14px 0 0;
  color: #9299a8;
  font-size: 11px;
}

.profile-about-card > p {
  margin: 18px 0 0;
  color: #515c70;
  font-size: 12px;
  line-height: 1.65;
}

.profile-about-card button {
  margin-top: 9px;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
}

.profile-skills-card {
  min-height: 145px;
  align-self: start;
}

.profile-skills-card h2,
.profile-interests-card h2,
.profile-projects-card h2,
.profile-achievements-card h2,
.profile-links-card h2 {
  color: #252c3b;
}

.profile-skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.profile-skill-chips span {
  padding: 6px 11px;
  border: 1px solid #e0e3ea;
  border-radius: 99px;
  color: #3f4859;
  background: #fff;
  font-size: 11px;
}

.profile-skill-chips span.accent {
  color: var(--primary);
  border-color: #d7d1ff;
  background: #f1efff;
}

.profile-interests-card {
  min-height: 226px;
}

.profile-interest-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
}

.profile-interest-columns h3 {
  margin: 0 0 10px;
  color: #9aa1ae;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.profile-interest-columns div {
  display: grid;
  gap: 9px;
}

.profile-interest-columns span {
  color: #4f596b;
  font-size: 11px;
}

.profile-interest-columns span::before {
  margin-right: 8px;
  content: "•";
  color: var(--primary);
  font-size: 16px;
}

.profile-interest-columns div:last-child span::before {
  color: #f09a00;
}

.profile-projects-card {
  min-height: 358px;
}

.profile-projects-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-projects-card > header button {
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
}

.profile-project-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 38px minmax(150px, 1fr) auto auto auto 20px;
  gap: 9px;
  align-items: center;
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8f9fb;
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-project-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-project-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #edfaf4;
}

.profile-project-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.profile-project-row > div > strong {
  font-size: 12px;
}

.profile-project-row em {
  margin-left: 5px;
  padding: 3px 6px;
  border-radius: 6px;
  color: #168252;
  background: #d8f7e7;
  font-size: 8px;
  font-style: normal;
  font-weight: 500;
}

.profile-project-row small {
  overflow: hidden;
  color: #939aa8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-project-row > b,
.profile-project-row > i {
  padding: 5px 9px;
  border-radius: 99px;
  color: #6d7789;
  background: #f0f2f6;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.profile-project-row > i { color: #168252; background: #d8f7e7; }
.profile-project-row > i.finished { color: #727b8d; background: #eceef2; }
.profile-project-row > i.recruiting { color: #b86f00; background: #fff0ce; }
.profile-project-members { color: var(--primary); font-size: 9px; white-space: nowrap; }
.profile-project-row > button { cursor: pointer; color: #778095; background: transparent; }

.profile-add-project {
  width: 100%;
  min-height: 38px;
  margin-top: 11px;
  cursor: pointer;
  border: 1px solid #ddd8ff;
  border-radius: 12px;
  color: var(--primary);
  background: #fff;
  font-size: 11px;
}

.profile-achievements-card {
  min-height: 294px;
  align-self: start;
}

.profile-achievements-card #profile-achievement-list > button {
  min-height: 63px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 11px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8f9fb;
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.achievement-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.achievement-icon.gold { color: #efa000; background: #fff5dc; }
.achievement-icon.purple { color: var(--primary); background: #f0edff; }
.achievement-icon.blue { color: #2877ea; background: #e9f2ff; }
.profile-achievements-card p { display: grid; gap: 4px; margin: 0; }
.profile-achievements-card strong { font-size: 11px; }
.profile-achievements-card small { color: #9299a8; font-size: 9px; }
.profile-achievements-card em { color: #9097a5; font-size: 10px; font-style: normal; }

.profile-links-card {
  grid-column: 1 / -1;
  min-height: 130px;
}

.profile-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 18px;
}

.profile-link-list a {
  min-width: 130px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid #e0e3ea;
  border-radius: 14px;
  color: var(--primary);
  background: #f5f6fa;
  font-size: 15px;
  text-decoration: none;
}

.profile-link-item {
  position: relative;
  display: inline-flex;
}

.profile-link-item > button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  border: 1px solid #ddd8ff;
  border-radius: 50%;
  color: var(--primary);
  background: #fff;
  font-size: 10px;
}

.profile-languages button {
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  font-size: 11px;
}

.profile-page-state {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(247, 248, 252, 0.92);
}

.profile-workspace { position: relative; }
.profile-workspace:not(.profile-edit-mode) [data-profile-edit],
.profile-workspace:not(.profile-edit-mode) .profile-link-item > button { display: none; }
.profile-workspace.profile-edit-mode .profile-panel:has([data-profile-edit]),
.profile-workspace.profile-edit-mode .profile-hero-card { scroll-margin-top: 22px; }
.profile-workspace.profile-edit-mode #profile-avatar-button,
.profile-workspace.profile-edit-mode #profile-availability { outline: 2px solid rgba(109,94,248,.18); outline-offset: 2px; }
.profile-loading,
.profile-error { padding: 24px; border: 1px solid #e1e3ea; border-radius: 16px; background: #fff; text-align: center; }
.profile-error p { color: #70798a; }
.profile-error button { padding: 9px 16px; cursor: pointer; border-radius: 10px; color: #fff; background: var(--primary); }

.profile-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 24, 36, 0.4);
}

.profile-modal-backdrop[hidden] { display: none; }

.profile-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 29, 45, 0.2);
}

.profile-modal h2 { margin: 0 40px 8px 0; font-size: 21px; }
.profile-modal > div > p { color: #778195; font-size: 12px; }
.profile-modal-close { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; cursor: pointer; border-radius: 50%; color: #6e7788; background: #f2f3f7; font-size: 20px; }
.profile-modal-form { display: grid; gap: 16px; margin-top: 20px; }
.profile-modal-form > label { display: grid; gap: 7px; color: #303747; font-size: 12px; font-weight: 600; }
.profile-modal-form input,
.profile-modal-form textarea,
.profile-modal-form select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #dfe2ea; border-radius: 12px; color: #262d3b; background: #fff; font: inherit; }
.profile-modal-form textarea { resize: vertical; }
.profile-modal-form label small { justify-self: end; color: #9299a8; font-weight: 400; }
.profile-modal-form fieldset { margin: 0; padding: 0; border: 0; }
.profile-modal-form legend { margin-bottom: 9px; color: #69758a; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.profile-modal-form > button.primary,
.profile-modal-actions > button { min-height: 44px; padding: 0 18px; cursor: pointer; border-radius: 12px; font-weight: 650; }
.profile-modal-form > button.primary,
.profile-modal-actions > button.primary { color: #fff; background: var(--primary); }
.profile-modal-actions { display: flex; gap: 10px; }
.profile-modal-actions .danger { color: #ce3f4e; border: 1px solid #f0c9cd; background: #fff; }
.profile-modal-feedback { margin: 0; color: #138351; font-size: 12px; }
.profile-modal-feedback.error { color: #c43c49; }
.profile-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-choice input { position: absolute; opacity: 0; pointer-events: none; }
.profile-choice span { display: block; padding: 7px 11px; cursor: pointer; border: 1px solid #dfe2ea; border-radius: 999px; color: #4e586a; font-size: 11px; }
.profile-choice input:checked + span { color: var(--primary); border-color: #c9c1ff; background: #f1efff; }
.profile-skill-category-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 5px; }
.profile-skill-category-list button { flex: 0 0 auto; padding: 7px 10px; cursor: pointer; border: 1px solid #dfe2ea; border-radius: 999px; color: #596376; background: #fff; font-size: 10px; }
.profile-skill-category-list button.active { color: #fff; border-color: var(--primary); background: var(--primary); }
.profile-skill-selector { max-height: min(360px, 42vh); overflow-y: auto; padding-right: 4px; }
.profile-skill-selector section { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-skill-selector label { position: relative; }
.profile-skill-selector label[hidden] { display: none; }
.profile-skill-selector input { position: absolute; opacity: 0; }
.profile-skill-selector span { display: block; padding: 8px 11px; cursor: pointer; border: 1px solid #dfe2ea; border-radius: 999px; font-size: 11px; }
.profile-skill-selector input:checked + span { color: var(--primary); border-color: #c9c1ff; background: #f1efff; }
.profile-skill-selector input:disabled + span { cursor: not-allowed; opacity: .48; }
.profile-skill-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-skill-editor-footer p { margin: 0; color: #6e7788; font-size: 12px; }
.profile-skill-editor-footer button { cursor: pointer; color: var(--primary); background: transparent; font-size: 12px; }
.profile-language-editor { display: grid; gap: 7px; }
.profile-language-row { display: grid !important; grid-template-columns: 20px 1fr 130px; align-items: center; gap: 10px !important; padding: 8px 10px; border: 1px solid #e3e5ec; border-radius: 12px; }
.profile-language-row input { width: 17px; min-height: 17px; }
.profile-language-row select { min-height: 36px; }

@media (max-width: 720px) {
  .profile-modal-backdrop { padding: 0; align-items: end; }
  .profile-modal { width: 100%; max-height: 92vh; padding: 23px 18px; border-radius: 22px 22px 0 0; }
  .profile-project-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .profile-project-row > b,
  .profile-project-row > i,
  .profile-project-members { display: none; }
  .profile-language-row { grid-template-columns: 20px 1fr 100px; }
}

.profile-link-list a span {
  display: grid;
  gap: 3px;
}

.profile-link-list strong { color: #3d4657; font-size: 10px; }
.profile-link-list small { color: #9aa1ae; font-size: 9px; }

/* Settings */
.settings-workspace {
  grid-column: 2;
  min-width: 0;
  min-height: 100vh;
  padding: 38px 34px 64px;
  background: #f7f8fc;
}

.settings-header,
.settings-content {
  width: min(100%, 900px);
  margin-inline: auto;
}

.settings-header h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.7px;
}

.settings-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.settings-content {
  display: grid;
  gap: 30px;
  margin-top: 31px;
}

.settings-section > h2 {
  margin: 0 0 11px 2px;
  color: #222838;
  font-size: 16px;
  letter-spacing: -0.15px;
}

.settings-group {
  overflow: hidden;
  border: 1px solid #e0e3e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(29, 35, 53, 0.045);
}

.settings-row {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 19px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.settings-row + .settings-row {
  border-top: 1px solid #eceef3;
}

.settings-row > div,
.settings-row > span:first-child {
  min-width: 0;
}

.settings-row strong {
  display: block;
  color: #242a39;
  font-size: 14px;
  font-weight: 650;
}

.settings-row p,
.settings-row small {
  display: block;
  margin: 5px 0 0;
  color: #7a8497;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.settings-text-action,
.settings-outline-action,
.settings-delete-action {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  cursor: pointer;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 650;
}

.settings-text-action {
  color: var(--primary);
  background: #f0edff;
}

.settings-outline-action {
  border: 1px solid #dfe2ea;
  color: #525c70;
  background: #fff;
}

.settings-text-action:hover,
.settings-outline-action:hover {
  border-color: #c9c2ff;
  color: var(--primary);
  background: #f5f3ff;
}

.settings-link-row {
  cursor: pointer;
  border: 0;
  text-decoration: none;
}

.settings-link-row:hover {
  background: var(--interactive-surface-hover, #faf9ff);
}

.settings-link-row svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #9ba3b2;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-select {
  position: relative;
  flex: 0 0 auto;
}

.settings-select select {
  width: min(280px, 32vw);
  min-height: 42px;
  padding: 0 39px 0 13px;
  cursor: pointer;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  outline: none;
  color: #4e596d;
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.settings-select select:focus {
  border-color: #aca3ff;
  box-shadow: 0 0 0 3px rgba(109, 94, 248, 0.1);
}

.settings-switch {
  position: relative;
  width: 44px;
  height: 25px;
  flex: 0 0 44px;
}

.settings-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-switch i {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 99px;
  background: #d8dce5;
  transition: background 160ms ease;
}

.settings-switch i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  content: "";
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(27, 32, 48, 0.2);
  transition: transform 160ms ease;
}

.settings-switch input:checked + i {
  background: var(--primary);
}

.settings-switch input:checked + i::after {
  transform: translateX(19px);
}

.settings-switch input:focus-visible + i {
  outline: 3px solid rgba(109, 94, 248, 0.2);
  outline-offset: 2px;
}

.settings-version {
  margin: 12px 2px 0;
  color: #9aa2b1;
  font-size: 11px;
}

.settings-danger-section {
  padding-top: 4px;
}

.settings-danger-section .settings-group {
  border-color: #f0d9dc;
  box-shadow: none;
}

.settings-danger-section .settings-row strong {
  color: #9f3540;
}

.settings-delete-action {
  border: 1px solid #e8bfc4;
  color: #b53e49;
  background: #fff7f8;
}

.settings-delete-action:hover {
  background: #ffedef;
}

.settings-feedback {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  margin: 0;
  padding: 13px 17px;
  border: 1px solid #dcd7ff;
  border-radius: 13px;
  color: #5548d8;
  background: #f2efff;
  box-shadow: 0 8px 30px rgba(38, 34, 73, 0.14);
  font-size: 12px;
}

.settings-modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 39, 0.38);
  backdrop-filter: blur(2px);
}

.settings-modal {
  position: relative;
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 27px;
  border: 1px solid #e0e3e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(30, 34, 52, 0.2);
}

.settings-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border-radius: 10px;
  color: #7b8495;
  background: #f5f6f9;
  font-size: 22px;
  line-height: 1;
}

.settings-modal h2 {
  margin: 0;
  padding-right: 45px;
  font-size: 21px;
  letter-spacing: -0.35px;
}

.settings-modal > div > p {
  margin: 8px 0 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-modal-form {
  display: grid;
  gap: 15px;
}

.settings-modal-form label {
  display: grid;
  gap: 7px;
  color: #303747;
  font-size: 12px;
  font-weight: 600;
}

.settings-modal-form input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: #fff;
}

.settings-modal-form input:focus {
  border-color: #aaa1ff;
  box-shadow: 0 0 0 3px rgba(109, 94, 248, 0.1);
}

.settings-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.settings-modal-actions button {
  min-height: 42px;
  padding: 0 18px;
  cursor: pointer;
  border: 1px solid #dfe3eb;
  border-radius: 11px;
  color: #4e586c;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.settings-modal-actions button.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.settings-modal-actions button.danger {
  color: #fff;
  border-color: #c94854;
  background: #c94854;
}

.settings-session-list {
  display: grid;
  gap: 10px;
}

.settings-session {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7ed;
  border-radius: 13px;
  background: #fafbfc;
}

.settings-session strong,
.settings-session span {
  display: block;
  font-size: 12px;
}

.settings-session span {
  margin-top: 4px;
  color: #7d8698;
}

.settings-session em {
  color: #17a867;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

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

.search-header h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: -0.7px;
}

.search-header p {
  margin: 9px 0 0;
  color: #747d90;
  font-size: 14px;
}

.create-request-button {
  min-height: 48px;
  padding: 0 19px;
  cursor: pointer;
  border-radius: 13px;
  color: #fff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 650;
}

.search-mode-tabs {
  width: 355px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 35px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.search-mode-tabs button {
  min-height: 43px;
  cursor: pointer;
  border-radius: 10px;
  color: #646d80;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}

.search-mode-tabs button.active {
  color: #fff;
  background: var(--primary);
}

.search-filter-card {
  margin-top: 25px;
  padding: 18px 20px;
  border: 1px solid #e1e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 38, 58, 0.05);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.filter-label {
  margin-right: 3px;
  color: #70798c;
  font-size: 13px;
  font-weight: 650;
}

.filter-row button {
  min-height: 38px;
  padding: 0 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #737c8e;
  background: #fff;
  font-size: 12px;
}

.filter-row button:hover {
  color: var(--primary);
  border-color: #bcb5ff;
}

.search-input-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  margin-top: 12px;
}

.search-input-row label {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #a0a7b4;
  background: #f8f9fc;
}

.search-input-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
}

.search-apply,
.search-clear {
  min-height: 42px;
  padding: 0 19px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.search-apply {
  color: #fff;
  background: var(--primary);
}

.search-clear {
  color: #747c8c;
  border: 1px solid var(--line);
  background: #fff;
}

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.popular-tags button {
  min-height: 34px;
  padding: 5px 13px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: #747c8c;
  background: #fff;
  font-size: 12px;
}

.popular-tags button.selected {
  color: var(--primary);
  border-color: var(--primary);
  background: #f1efff;
}

.search-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 26px;
  align-items: start;
  margin-top: 31px;
}

.results-heading {
  min-height: 34px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.results-heading > div:first-child span {
  margin-left: 7px;
  color: #9299a7;
  font-size: 12px;
}

.sort-tabs {
  display: flex;
  gap: 7px;
}

.sort-tabs button {
  min-height: 28px;
  padding: 4px 12px;
  cursor: pointer;
  border: 1px solid #e4e6ec;
  border-radius: 7px;
  color: #858d9d;
  background: #fff;
  font-size: 11px;
}

.sort-tabs button.active {
  color: var(--primary);
  border-color: #ddd8ff;
  background: #eeeaff;
}

.people-results {
  display: grid;
  gap: 15px;
}

.person-card {
  padding: 20px 23px;
  border: 1px solid #e1e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.person-head {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.person-avatar {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

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

.person-title-line h2 {
  margin: 0;
  font-size: 16px;
}

.availability {
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 650;
}

.availability.available { color: #168759; background: #cdf7e4; }
.availability.open { color: #3276dd; background: #e7f1ff; }
.availability.busy { color: #d14b4b; background: #ffe6e6; }

.person-role {
  margin: 4px 0 0;
  color: #6f788b;
  font-size: 12px;
}

.person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 7px;
  color: #9ba2af;
  font-size: 11px;
}

.person-description {
  margin: 15px 0 0;
  color: #737c8e;
  font-size: 12px;
  line-height: 1.55;
}

.person-tags,
.person-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.person-tags span,
.person-interests span {
  padding: 5px 9px;
  border-radius: 6px;
  color: #5f6879;
  background: #f1f3f7;
  font-size: 10px;
  font-weight: 600;
}

.person-interests::before {
  align-self: center;
  content: "☆ Интересы:";
  color: #9299a8;
  font-size: 10px;
}

.person-interests span {
  color: var(--primary);
  background: #eeeaff;
}

.person-project {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding: 7px 12px;
  border: 1px solid #e8eaf0;
  border-radius: 9px;
  color: #6f788b;
  background: #f8f9fb;
  font-size: 11px;
}

.person-project strong {
  color: #50596a;
}

.project-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 99px;
  color: #2374d7;
  background: #e8f2ff;
  font-size: 9px;
  font-weight: 650;
}

.project-status.active {
  color: #168759;
  background: #cff6e2;
}

.person-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.person-actions button {
  min-height: 42px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.person-actions button:first-child {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.search-insights {
  display: grid;
  gap: 18px;
}

.insight-card {
  padding: 20px;
  border: 1px solid #e1e4eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 11px rgba(29, 35, 53, 0.06);
}

.insight-card h2 {
  margin: 0 0 15px;
  font-size: 15px;
}

.recommended-person,
.recent-card > div {
  min-height: 55px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.recommended-person + .recommended-person,
.recent-card > div + div {
  border-top: 1px solid #eceef2;
}

.mini-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.purple { background: #8c72f7; }
.blue { background: #4388f5; }
.violet { background: #9b75ec; }
.orange { background: #f4b53e; }
.green { background: #35c995; }
.pink { background: #ee66aa; }

.recommended-person > span:nth-child(2),
.recent-card > div > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.recommended-person strong,
.recent-card strong {
  font-size: 12px;
}

.recommended-person small,
.recent-card small {
  margin-top: 3px;
  color: #969dac;
  font-size: 10px;
}

.recommended-person button {
  width: 31px;
  height: 31px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  background: #fff;
}

.insight-link {
  width: 100%;
  min-height: 36px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #697285;
  background: #fff;
  font-size: 11px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-cloud > span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #687183;
  background: #f2f4f7;
  font-size: 10px;
}

.skill-cloud small {
  margin-left: 3px;
  color: #9aa1af;
}

.stats-card > div {
  min-height: 68px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 13px;
  border: 1px solid #eaebf0;
  border-radius: 11px;
  background: #f8f9fc;
}

.stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
}

.stats-card strong {
  display: grid;
  font-size: 18px;
}

.stats-card small {
  margin-top: 2px;
  color: #9aa1af;
  font-size: 10px;
  font-weight: 400;
}

.recent-card em {
  padding: 4px 8px;
  border-radius: 99px;
  color: #17845a;
  background: #d5f7e7;
  font-size: 9px;
  font-style: normal;
}

/* Roomier search layout */
.search-header p {
  font-size: 15px;
}

.create-request-button {
  min-height: 52px;
  padding-inline: 22px;
  font-size: 15px;
}

.search-mode-tabs button {
  min-height: 48px;
  font-size: 15px;
}

.search-filter-card {
  padding: 22px 22px;
}

.filter-label {
  font-size: 14px;
}

.filter-row {
  gap: 10px;
}

.filter-row button {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 13px;
}

.search-input-row {
  margin-top: 15px;
}

.search-input-row label {
  height: 47px;
}

.search-input-row input {
  font-size: 14px;
}

.search-apply,
.search-clear {
  min-height: 47px;
  padding-inline: 23px;
  font-size: 14px;
}

.popular-tags {
  gap: 9px;
  margin-top: 20px;
}

.popular-tags button {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 13px;
}

.results-heading {
  min-height: 40px;
  font-size: 15px;
}

.results-heading > div:first-child span {
  font-size: 13px;
}

.sort-tabs button {
  min-height: 32px;
  padding-inline: 14px;
  font-size: 12px;
}

.people-results {
  gap: 19px;
}

.person-card {
  min-height: 370px;
  padding: 26px 27px;
}

.person-head {
  grid-template-columns: 59px minmax(0, 1fr);
  gap: 16px;
}

.person-avatar {
  width: 59px;
  height: 59px;
  font-size: 17px;
}

.person-title-line h2 {
  font-size: 17px;
}

.availability {
  padding: 5px 9px;
  font-size: 11px;
}

.person-role {
  margin-top: 5px;
  font-size: 13px;
}

.person-meta {
  margin-top: 8px;
  font-size: 12px;
}

.person-description {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.65;
}

.person-tags,
.person-interests {
  gap: 8px;
  margin-top: 15px;
}

.person-tags span,
.person-interests span {
  padding: 6px 10px;
  font-size: 11px;
}

.person-interests::before {
  font-size: 11px;
}

.person-project {
  min-height: 46px;
  margin-top: 16px;
  padding: 9px 14px;
  font-size: 12px;
}

.project-status {
  padding: 4px 8px;
  font-size: 10px;
}

.person-actions {
  gap: 11px;
  margin-top: 14px;
}

.person-actions button {
  min-height: 50px;
  font-size: 13px;
}

.search-insights {
  gap: 21px;
}

.insight-card {
  padding: 24px;
}

.insight-card h2 {
  margin-bottom: 18px;
  font-size: 16px;
}

.recommended-person,
.recent-card > div {
  min-height: 63px;
  grid-template-columns: 43px minmax(0, 1fr) auto;
}

.mini-avatar {
  width: 40px;
  height: 40px;
  font-size: 11px;
}

.recommended-person strong,
.recent-card strong {
  font-size: 13px;
}

.recommended-person small,
.recent-card small {
  font-size: 11px;
}

.recommended-person button {
  width: 35px;
  height: 35px;
}

.insight-link {
  min-height: 41px;
  font-size: 12px;
}

.skill-cloud {
  gap: 8px;
}

.skill-cloud > span {
  padding: 6px 9px;
  font-size: 11px;
}

.stats-card > div {
  min-height: 76px;
  grid-template-columns: 44px 1fr;
  padding: 12px 14px;
}

.stat-icon {
  width: 38px;
  height: 38px;
}

.stats-card strong {
  font-size: 20px;
}

.stats-card small {
  font-size: 11px;
}

.recent-card em {
  padding: 5px 9px;
  font-size: 10px;
}

.search-empty {
  padding: 55px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 1180px) {
  .search-page {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .search-sidebar {
    width: 205px;
  }

  .search-workspace {
    padding-inline: 24px;
  }

  .events-workspace {
    padding-inline: 24px;
  }

  .search-content-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }

  .events-content-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }

  .promo-footer {
    grid-template-columns: 100px repeat(3, minmax(55px, 1fr));
  }

  .promo-footer button {
    grid-row: 2;
  }

  .complete-action-copy p {
    max-width: 150px;
  }

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

  .projects-toolbar {
    flex-wrap: wrap;
  }

  .projects-sort {
    margin-left: 0;
  }
}

@media (max-width: 940px) {
  .search-content-grid {
    grid-template-columns: 1fr;
  }

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

  .events-content-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-hero-card {
    grid-template-columns: 84px 1fr;
  }

  .profile-hero-actions {
    grid-column: 1 / -1;
  }

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

  .profile-links-card {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .search-page {
    display: block;
  }

  .search-page.chat-active {
    display: block;
    height: auto;
    overflow: visible;
  }

  .search-page.projects-active {
    display: block;
  }

  .search-page.profile-dashboard-active {
    display: block;
  }

  .search-page.settings-active {
    display: block;
  }

  .search-sidebar {
    position: sticky;
    z-index: 30;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chat-active .search-sidebar {
    position: sticky;
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .projects-active .search-sidebar {
    position: sticky;
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .profile-dashboard-active .search-sidebar {
    position: sticky;
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .settings-active .search-sidebar {
    position: sticky;
    width: 100%;
    height: 70px;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .profile-dashboard-active .project-profile-progress {
    display: none;
  }

  .profile-dashboard-active .sidebar-user {
    display: flex;
    margin: 0;
  }

  .projects-active .project-profile-progress {
    display: none;
  }

  .projects-active .sidebar-user {
    display: flex;
    margin: 0;
  }

  .chat-active .search-brand span {
    display: inline;
  }

  .chat-active .search-navigation,
  .chat-active .chat-help-button {
    display: none;
  }

  .chat-active .sidebar-user {
    margin: 0;
  }

  .search-brand {
    padding: 0;
    font-size: 20px;
  }

  .search-navigation {
    display: none;
  }

  .sidebar-user {
    margin: 0;
    padding: 0;
  }

  .sidebar-user > span:last-child {
    display: none;
  }

  .search-workspace {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 25px 16px 45px;
  }

  .events-workspace {
    width: 100%;
    min-width: 0;
    padding: 25px 16px 45px;
  }

  .chats-workspace {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 70px);
    overflow: visible;
  }

  .projects-workspace {
    width: 100%;
    min-height: calc(100vh - 70px);
  }

  .profile-workspace {
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 18px 16px 35px;
  }

  .settings-workspace {
    width: 100%;
    max-width: 100vw;
    min-height: calc(100vh - 70px);
    grid-column: auto;
    overflow: hidden;
    padding: 24px 16px 45px;
  }

  .settings-header,
  .settings-content,
  .settings-group {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
  }

  .settings-header h1 {
    font-size: 25px;
  }

  .settings-content {
    gap: 25px;
    margin-top: 25px;
  }

  .settings-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px;
  }

  .settings-row:has(.settings-select) {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .settings-select,
  .settings-select select {
    width: 100%;
  }

  .settings-danger-section .settings-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-delete-action {
    width: 100%;
  }

  .settings-modal {
    padding: 24px 19px 20px;
  }

  .settings-feedback {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .profile-hero-card {
    grid-template-columns: 70px 1fr;
    padding: 18px;
  }

  .profile-photo-placeholder {
    width: 70px;
    height: 70px;
  }

  .profile-hero-actions {
    flex-direction: column;
  }

  .profile-dashboard-grid {
    gap: 15px;
    margin-top: 15px;
  }

  .profile-project-row {
    grid-template-columns: 38px 1fr auto;
  }

  .profile-project-row > b,
  .profile-project-row > i,
  .profile-project-members {
    display: none;
  }

  .projects-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px 0;
  }

  .projects-header-actions {
    width: 100%;
  }

  .projects-header-actions button {
    flex: 1;
  }

  .projects-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 16px;
  }

  .projects-stats > span {
    min-width: 0;
  }

  .projects-toolbar {
    padding: 14px 16px;
  }

  .projects-toolbar > label {
    width: 100%;
  }

  .project-filter-tabs {
    max-width: 100%;
    overflow-x: auto;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 20px 16px 45px;
  }

  .chats-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 16px;
  }

  .new-chat-button {
    width: 100%;
    justify-content: center;
  }

  .chats-layout {
    height: auto;
    display: block;
  }

  .dialogs-panel {
    border-right: 0;
  }

  .dialogs-list {
    height: auto;
    overflow: visible;
  }

  .chat-empty-state {
    display: none;
  }

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

  .events-header h1 {
    font-size: 25px;
  }

  .events-create-button {
    width: 100%;
    justify-content: center;
  }

  .events-search-panel {
    margin-top: 24px;
  }

  .events-content-grid {
    margin-top: 23px;
  }

  .current-event-card {
    grid-template-columns: 62px 1fr;
    padding: 20px;
  }

  .current-event-icon {
    width: 62px;
    height: 62px;
  }

  .current-event-actions {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr 1fr;
    align-items: center;
  }

  .promo-visual {
    height: 160px;
  }

  .promo-footer {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-topic {
    grid-column: 1 / -1;
  }

  .promo-footer button {
    grid-row: auto;
  }

  .events-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .events-sort {
    flex-wrap: wrap;
  }

  .event-cards-grid,
  .event-team-grid {
    grid-template-columns: 1fr;
  }

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

  .event-timeline > div {
    grid-template-columns: 40px 1fr 40px 1fr 40px 1fr 65px;
  }

  .events-cta-card {
    grid-template-columns: 52px 1fr;
  }

  .events-cta-card button {
    grid-column: 1 / -1;
  }

  .events-side-column {
    grid-template-columns: 1fr;
  }

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

  .search-header h1 {
    font-size: 25px;
  }

  .search-header p {
    line-height: 1.5;
  }

  .create-request-button {
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .search-mode-tabs {
    width: 100%;
    margin-top: 25px;
  }

  .search-mode-tabs button {
    min-width: 0;
    font-size: 12px;
  }

  .search-input-row {
    grid-template-columns: 1fr 1fr;
  }

  .search-input-row label {
    grid-column: 1 / -1;
  }

  .results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sort-tabs {
    flex-wrap: wrap;
  }

  .person-card {
    padding: 17px;
  }

  .person-actions {
    grid-template-columns: 1fr;
  }

  .person-project {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-insights {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 821px) {
  .page-shell.flow-active {
    align-items: start;
  }

  .page-shell.flow-active .story-panel {
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .page-shell.signup-active .action-panel {
    align-items: start;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-shell.confirm-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-shell.onboarding-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-shell.location-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-shell.skills-active .action-panel {
    height: 100vh;
    min-height: 0;
    align-items: center;
    overflow: hidden;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .page-shell.skills-active {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.skills-active .story-panel {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.skills-active .skills-card {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #c8c3f7 transparent;
    scrollbar-width: thin;
  }

  .page-shell.skills-active .skills-card::-webkit-scrollbar {
    width: 7px;
  }

  .page-shell.skills-active .skills-card::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #c8c3f7;
  }

  .page-shell.skills-active .skills-card::-webkit-scrollbar-track {
    background: transparent;
  }

  .page-shell.admission-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-shell.study-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .page-shell.interests-active {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.interests-active .story-panel {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.interests-active .action-panel {
    height: 100vh;
    min-height: 0;
    align-items: center;
    overflow: hidden;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .page-shell.interests-active .interests-card {
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #c8c3f7 transparent;
    scrollbar-width: thin;
  }

  .page-shell.interests-active .interests-card::-webkit-scrollbar {
    width: 7px;
  }

  .page-shell.interests-active .interests-card::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #c8c3f7;
  }

  .page-shell.referral-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-shell.review-active {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.review-active .story-panel {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .page-shell.review-active .action-panel {
    height: 100vh;
    min-height: 0;
    align-items: center;
    overflow: hidden;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-shell.review-active .review-card {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #c8c3f7 transparent;
    scrollbar-width: thin;
  }

  .page-shell.review-active .review-card::-webkit-scrollbar {
    width: 7px;
  }

  .page-shell.review-active .review-card::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: #c8c3f7;
  }

  .page-shell.complete-active .action-panel {
    min-height: 100vh;
    align-items: center;
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

@media (max-width: 1100px) {
  .page-shell {
    grid-template-columns: minmax(420px, 45%) 1fr;
  }

  .story-panel {
    padding-inline: 38px;
  }

  .action-panel {
    padding-inline: 42px;
  }

  .registration-card {
    padding-inline: 38px;
  }

  .signup-card {
    padding-inline: 34px;
  }

  .network {
    width: 390px;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .page-shell {
    display: block;
  }

  .story-panel,
  .action-panel {
    min-height: auto;
  }

  .story-panel {
    padding: 30px 24px 46px;
  }

  .network {
    height: 265px;
    margin-top: 30px;
    transform: scale(.9);
    transform-origin: center;
  }

  .story-copy,
  .story-features,
  blockquote {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .action-panel {
    padding: 42px 20px;
  }

  .registration-card {
    min-height: 0;
  }

  .signup-card {
    padding: 36px 28px;
  }

  .confirm-card {
    padding: 34px 26px;
  }

  .onboarding-card {
    padding: 34px 26px;
  }

  .location-card {
    padding: 34px 26px;
  }

  .skills-card {
    padding: 34px 26px;
  }

  .admission-card {
    padding: 34px 26px;
  }

  .study-card {
    padding: 34px 26px;
  }

  .interests-card {
    padding: 34px 26px;
  }

  .referral-card {
    padding: 34px 26px;
  }

  .review-card {
    padding: 34px 26px;
  }

  .complete-card {
    padding: 44px 26px 34px;
  }

  .actions {
    margin-top: 15px;
  }
}

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

  .network {
    width: 350px;
    margin-left: 50%;
    transform: translateX(-50%) scale(.82);
  }

  .story-copy h1 {
    font-size: 28px;
  }

  .story-copy p {
    font-size: 17px;
  }

  .feature,
  .feature-compact {
    gap: 14px;
    padding: 12px 14px;
    font-size: 16px;
  }

  blockquote {
    padding: 22px 18px;
  }

  blockquote p {
    font-size: 16px;
  }

  .registration-card {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .card-copy h2 {
    font-size: 31px;
  }

  .card-copy p {
    font-size: 17px;
  }

  .card-features {
    margin-top: 30px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .primary-button,
  .secondary-button {
    min-height: 60px;
    font-size: 17px;
  }

  .dialog {
    padding: 34px 22px 26px;
  }

  .signup-heading h2 {
    font-size: 29px;
  }

  .signup-heading p {
    font-size: 16px;
  }

  .contact-tabs {
    margin-top: 24px;
  }

  .signup-form {
    gap: 17px;
    margin-top: 24px;
  }

  .signup-field > input,
  .password-wrap input {
    height: 54px;
  }

  .check-row {
    grid-template-columns: 26px 1fr;
    gap: 11px;
    font-size: 14px;
  }

  .custom-check {
    width: 24px;
    height: 24px;
  }

  .confirm-heading {
    margin-top: 20px;
  }

  .confirm-heading h2 {
    font-size: 25px;
  }

  .confirm-heading p {
    line-height: 1.5;
  }

  .confirm-form {
    margin-top: 28px;
  }

  .code-fields {
    gap: 7px;
  }

  .code-fields input {
    border-radius: 12px;
    font-size: 20px;
  }

  .confirm-meta {
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    line-height: 1.4;
  }

  .page-shell.profile-active .network {
    margin-top: 45px;
  }

  .onboarding-left {
    max-width: 620px;
    margin: 15px auto 0;
  }

  .birthday-fields {
    gap: 9px;
  }

  .birthday-fields input {
    height: 51px;
  }

  .birthday-message,
  .privacy-note {
    padding-inline: 13px;
    font-size: 13px;
  }

  .timezone-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .timezone-chip {
    max-width: 100%;
  }

  .skills-heading {
    margin-top: 24px;
  }

  .skill-groups {
    gap: 17px;
  }

  .skill-options {
    gap: 7px;
  }

  .skill-options button {
    min-height: 35px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .admission-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .admission-options button {
    min-height: 54px;
  }

  .study-country-option {
    min-height: 55px;
    padding-inline: 13px;
  }

  .interest-groups {
    gap: 18px;
  }

  .interest-options {
    gap: 7px;
  }

  .interest-options button {
    min-height: 35px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .custom-interest-row {
    grid-template-columns: 1fr;
  }

  .custom-interest-row button {
    min-height: 48px;
  }

  .referral-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .referral-options button {
    min-height: 58px;
  }

  .review-user {
    grid-template-columns: auto 1fr;
  }

  .review-photo-button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .complete-actions {
    margin-top: 34px;
  }

  .complete-action {
    grid-template-columns: 42px 1fr;
  }

  .complete-action-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Search data states keep the established layout while making controls interactive. */
.filter-row button.has-value {
  color: var(--primary, #6d5ef8);
  border-color: #c9c2ff;
  background: #f5f2ff;
}

.search-filter-menu {
  position: fixed;
  z-index: 80;
  width: min(290px, calc(100vw - 24px));
  max-height: 360px;
  padding: 10px;
  overflow: auto;
  border: 1px solid #e3e6ee;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(30, 36, 54, 0.14);
}

.filter-menu-search {
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid #e1e5ed;
  border-radius: 9px;
  outline: none;
}

.filter-menu-search:focus {
  border-color: #8b7df9;
  box-shadow: 0 0 0 3px rgba(109, 94, 248, 0.1);
}

.filter-menu-options {
  display: grid;
  gap: 3px;
}

.filter-menu-options label {
  display: flex;
  min-height: 38px;
  padding: 7px 8px;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  color: #32394a;
  cursor: pointer;
}

.filter-menu-options label:hover {
  background: #f5f3ff;
}

.filter-menu-options input {
  accent-color: #6d5ef8;
}

.search-load-more {
  display: block;
  min-width: 190px;
  min-height: 46px;
  margin: 18px auto 0;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #6d5ef8;
  cursor: pointer;
}

.search-skeleton i {
  display: block;
  width: 100%;
  height: 17px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f1f5 25%, #fafbfc 50%, #f0f1f5 75%);
  background-size: 200% 100%;
  animation: search-shimmer 1.2s infinite linear;
}

.search-skeleton i:first-child { width: 42%; height: 26px; }
.search-skeleton i:last-child { width: 72%; margin-bottom: 0; }

@keyframes search-shimmer {
  to { background-position: -200% 0; }
}

.search-empty {
  display: grid;
  min-height: 190px;
  padding: 30px;
  place-content: center;
  gap: 8px;
  border: 1px solid #e5e7ed;
  border-radius: 16px;
  color: #758097;
  text-align: center;
  background: #fff;
}

.search-empty strong { color: #171d2b; font-size: 17px; }
.search-empty button {
  min-height: 40px;
  margin-top: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #6d5ef8;
  cursor: pointer;
}

.insight-empty {
  margin: 4px 0;
  color: #9299a9;
  font-size: 12px;
}

#recent-people > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #eef0f4;
}

#recent-people > div:last-child { border-bottom: 0; }
#recent-people strong, #recent-people small { display: block; }
#recent-people small { margin-top: 2px; color: #9aa1b1; }
#recent-people em {
  padding: 3px 7px;
  border-radius: 999px;
  color: #159761;
  font-size: 10px;
  font-style: normal;
  background: #dcf8eb;
}

.public-profile-dialog {
  width: min(620px, calc(100vw - 30px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #171d2b;
  box-shadow: 0 24px 80px rgba(21, 26, 39, 0.2);
}

.public-profile-dialog::backdrop { background: rgba(25, 29, 42, 0.42); }
.public-profile-content { padding: 34px; }
.public-profile-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #6b7280;
  background: #f3f4f7;
  cursor: pointer;
}
.public-profile-head { display: flex; align-items: center; gap: 14px; }
.public-profile-head h2, .public-profile-head p { margin: 0; }
.public-profile-head p { margin-top: 4px; color: #758097; }
.profile-dialog-loading { padding: 35px; color: #758097; text-align: center; }

@media (max-width: 700px) {
  .public-profile-content { padding: 26px 20px; }
}
