:root,
html[data-theme="light"] {
  --background: #ffffff;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-soft: #eeeeec;
  --text: #0a0a0a;
  --muted: #626762;
  --border: #7f857f;
  --border-subtle: #dde1dc;
  --accent: #20d806;
  --accent-soft: rgba(32, 216, 6, 0.14);
  --on-accent: #0a0a0a;
  --brand-header: #20d806;
  --on-brand-header: #0a0a0a;
  --focus: #0a0a0a;
  --error: #0a0a0a;
  --error-surface: #eeeeec;
  --overlay: rgba(10, 10, 10, 0.48);
  --selection: rgba(32, 216, 6, 0.24);
  --shadow-card: 0 6px 20px rgba(10, 10, 10, 0.06);
  --shadow-elevated: 0 14px 36px rgba(10, 10, 10, 0.1);
  --tabbar-bg: rgba(255, 255, 255, 0.94);

  --radius-control: 16px;
  --radius-card: 18px;
  --radius-header: 18px;
  --radius-dialog: 24px;
  --radius-icon: 14px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --compact-hero-height: 76px;

  /* Compatibility aliases for the existing component layer. */
  --bg: var(--background);
  --line: var(--border-subtle);
  --line-strong: var(--border);
  --brand: var(--text);
  --on-brand: #ffffff;
  --empty-bg: rgba(255, 255, 255, 0.72);
  --tab-icon-bg: var(--surface-soft);
  --shadow: var(--shadow-card);
  color-scheme: light;
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

html[data-theme="dark"] {
  --background: #080808;
  --surface: #121212;
  --surface-elevated: #1a1a1a;
  --surface-soft: #1e1e1e;
  --text: #ffffff;
  --muted: #b5b9b4;
  --border: #5c605c;
  --border-subtle: #30332f;
  --accent: #20d806;
  --accent-soft: rgba(32, 216, 6, 0.18);
  --on-accent: #0a0a0a;
  --brand-header: #20d806;
  --on-brand-header: #0a0a0a;
  --focus: #20d806;
  --error: #ffffff;
  --error-surface: #1e1e1e;
  --overlay: rgba(0, 0, 0, 0.72);
  --selection: rgba(32, 216, 6, 0.3);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.28);
  --shadow-elevated: 0 16px 42px rgba(0, 0, 0, 0.46);
  --tabbar-bg: rgba(8, 8, 8, 0.94);

  --bg: var(--background);
  --line: var(--border-subtle);
  --line-strong: var(--border);
  --brand: var(--text);
  --on-brand: #0a0a0a;
  --empty-bg: rgba(18, 18, 18, 0.84);
  --tab-icon-bg: var(--surface-soft);
  --shadow: var(--shadow-card);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.5;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  border-color: var(--border-subtle);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
}

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

.form-error:not(:empty) {
  margin: 0;
  padding: 10px 12px;
  border: 2px dashed var(--error);
  border-radius: var(--radius-control);
  background: var(--error-surface);
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.app-shell {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom));
}

.native-app .app-shell {
  padding-top: max(42px, env(safe-area-inset-top));
}

.hero {
  position: relative;
  min-height: max(var(--compact-hero-height), calc(52px + env(safe-area-inset-top)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  border: 0;
  border-radius: var(--radius-header);
  background: var(--brand-header);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .hero {
  background: var(--brand-header);
}

.technical-message {
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.technical-message[hidden] {
  display: none;
}

.technical-message strong,
.technical-message p {
  margin: 0;
}

.technical-message p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.technical-message[data-severity="warning"] {
  border-color: #c58a00;
  background: color-mix(in srgb, #ffbf24 12%, var(--surface));
}

.technical-message[data-severity="critical"] {
  border-color: #d32626;
  background: color-mix(in srgb, #e53935 10%, var(--surface));
}

.hero-copy {
  display: flex;
  min-height: max(var(--compact-hero-height), calc(52px + env(safe-area-inset-top)));
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 14px 12px;
  color: var(--on-brand-header);
}

.hero-brand,
.hero-actions {
  display: flex;
  align-items: center;
}

.hero-brand {
  min-width: 0;
  gap: 0;
}

.hero-logo-tile {
  display: block;
  flex: 0 0 auto;
  width: 122px;
  height: 54px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.hero-logo-tile img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 38%;
}

.hero-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.hero-action-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(5, 5, 5, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: #050505;
  backdrop-filter: blur(12px);
}

.hero-action-button:hover,
.hero-action-button:focus-visible {
  border-color: #050505;
  background: rgba(255, 255, 255, 0.74);
  outline: none;
}

.hero-action-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid var(--brand-header);
  border-radius: 999px;
  background: #ef2b2d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.hero-notification-count[hidden] {
  display: none;
}

.hero-copy h1,
.hero-copy p,
.section-heading h2,
.section-heading span,
.event-card h3,
.event-card p,
.media-sheet h3,
.media-sheet p,
.price-row p {
  margin-top: 0;
}

.hero-copy h1 {
  max-width: 480px;
  margin-bottom: 12px;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 420px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

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

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 3px;
  font-size: 21px;
  line-height: 1.1;
}

.section-heading span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.with-back {
  align-items: flex-start;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 20px;
  font-weight: 700;
}

.quick-actions,
.event-list,
.mentor-list {
  display: grid;
  gap: 10px;
}

.section-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.section-action-button span {
  font-size: 20px;
  line-height: 1;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -2px 0 14px;
  padding: 2px 0 5px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.filter-chip:focus-visible,
.quick-action:focus-visible,
.event-link:focus-visible,
.icon-button:focus-visible,
.tab-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.empty-state {
  margin: 0;
  padding: 24px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--empty-bg);
  color: var(--muted);
  text-align: center;
}

.quick-action,
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-action {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  padding: 14px;
  color: var(--text);
  text-align: left;
}

.quick-action.is-remotely-disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

.quick-action.is-remotely-disabled .quick-chevron {
  display: none;
}

.tab-button.is-remotely-disabled {
  opacity: 0.48;
}

.quick-action-status {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.quick-action:active,
.primary-button:active,
.event-link:active,
.icon-button:active,
.tab-button:active {
  transform: translateY(1px);
}

.quick-action strong {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.quick-icon-shell {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius-icon);
  background: var(--accent);
  color: var(--on-accent);
}

.quick-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-chevron {
  color: var(--muted);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.quick-action[data-tone="blue"] .quick-icon-shell,
.badge.blue,
.quick-action[data-tone="amber"] .quick-icon-shell,
.badge.amber,
.quick-action[data-tone="coral"] .quick-icon-shell,
.badge.coral,
.quick-action[data-tone="violet"] .quick-icon-shell {
  background: var(--accent);
  color: var(--on-accent);
}

.event-card {
  min-width: 0;
  padding: 16px;
}

.event-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.event-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.card-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 11px;
}

.badge {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: normal;
}

.event-link,
.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--on-accent);
  font-weight: 700;
  transition: transform 140ms ease, opacity 140ms ease;
}

.event-link {
  margin-top: 14px;
  padding: 0 16px;
  background: var(--accent);
  font-size: 13px;
}

.event-link.secondary {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-actions .event-link {
  margin-top: 0;
}

.course-heading {
  display: block;
  align-items: start;
  margin-bottom: 10px;
}

.course-heading .card-meta {
  margin-bottom: 7px;
}

.course-heading h3 {
  margin-bottom: 0;
}

.mentor-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mentor-card.has-link {
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.mentor-card.has-link:hover,
.mentor-card.has-link:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
  outline: none;
}

.mentor-card h3,
.mentor-card p {
  margin: 0;
}

.mentor-card h3 {
  font-size: 16px;
}

.mentor-card p {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.mentor-card .mentor-tags {
  margin: 0;
}

.mentor-contact {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.mentor-contact.is-unavailable {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.form-status {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.form-status[data-state="processing"] {
  border: 1px solid color-mix(in srgb, #c48a00 38%, var(--line));
}

.ask-chat {
  display: flex;
  min-height: 280px;
  max-height: min(52vh, 560px);
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.ask-message {
  display: grid;
  align-self: flex-start;
  gap: 5px;
  width: fit-content;
  max-width: min(86%, 620px);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.ask-message.is-user {
  align-self: flex-end;
  border-color: var(--accent);
  border-radius: 18px 18px 6px;
  background: var(--accent);
  color: var(--on-accent);
}

.ask-message.is-pending {
  color: var(--muted);
}

.ask-message-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
}

.ask-message-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ask-composer {
  position: sticky;
  bottom: 82px;
  z-index: 4;
  gap: 10px;
}

.ask-composer textarea {
  min-height: 64px;
  max-height: 150px;
  resize: vertical;
}

.ask-composer-actions {
  display: grid;
  grid-template-columns: minmax(96px, 0.42fr) minmax(150px, 1fr);
  gap: 10px;
}

.ask-clear-button,
.ask-send-button {
  min-height: 48px;
  border-radius: var(--radius-control);
  font-weight: 700;
}

.ask-clear-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.ask-clear-button:disabled {
  opacity: 0.45;
}

.primary-button {
  width: 100%;
  background: var(--accent);
}

.media-sheet {
  display: grid;
  gap: 14px;
}

.media-sheet h3 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1;
}

.media-sheet p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.media-stats article,
.price-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-stats article {
  min-height: 98px;
  padding: 13px;
}

.media-stats strong,
.media-stats span,
.price-row span,
.price-row strong,
.price-row p {
  display: block;
}

.media-stats strong {
  margin-bottom: 7px;
  font-size: 23px;
  line-height: 1;
}

.media-stats span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.price-row {
  padding: 15px;
}

.price-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price-row strong {
  margin: 5px 0 3px;
  font-size: 32px;
  line-height: 1;
}

.feedback-form,
.request-form {
  display: grid;
  gap: 12px;
}

.request-form[hidden],
.my-projects[hidden],
.executor-owner-status[hidden] {
  display: none;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.request-form {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.projects-view {
  padding-bottom: 24px;
}

.projects-hub-heading {
  margin-bottom: 22px;
}

.projects-hub-heading h2 {
  font-size: 32px;
  font-weight: 750;
  line-height: 1.2;
}

.project-directory-menu {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface);
}

.project-directory-row {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.project-directory-row + .project-directory-row {
  border-top: 1px solid var(--border-subtle);
}

.project-directory-row > span,
.public-project-copy {
  min-width: 0;
}

.project-directory-row strong,
.project-directory-row small {
  display: block;
  overflow-wrap: anywhere;
}

.project-directory-row strong {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.project-directory-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.project-directory-icon,
.project-row-arrow {
  display: block;
  flex-shrink: 0;
}

.project-row-arrow {
  justify-self: end;
}

.project-directory-row:hover,
.project-directory-row:focus-visible,
.public-project-link:hover {
  background: var(--accent-soft);
}

.project-directory-row:focus-visible {
  outline-offset: -4px;
}

html[data-theme="dark"] .project-directory-icon,
html[data-theme="dark"] .project-row-arrow {
  filter: invert(1);
}

.project-create-block {
  margin: 16px 0 0;
}

.project-create-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 650;
}

.project-create-block > p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.projects-view .public-projects {
  margin-top: clamp(32px, 7vh, 64px);
}

.projects-view .public-projects-heading {
  justify-content: flex-end;
}

.projects-view .public-projects-refresh {
  min-height: 32px;
  font-size: 12px;
}

.projects-view .public-project-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.projects-view .public-project-card {
  display: block;
  padding: 0;
  border-radius: 14px;
  box-shadow: none;
}

.projects-view .public-project-link {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 15px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.projects-view .public-project-link:hover,
.projects-view .public-project-link:focus-visible {
  background: var(--accent-soft);
}

.public-project-title {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
}

.public-project-copy .public-project-card-text {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.5;
}

.freelancers-view .executor-directory-summary {
  min-height: 0;
  gap: 14px;
  padding: 0 0 18px;
}

.freelancers-view .executor-directory-summary p {
  font-size: 13px;
  line-height: 1.5;
}

.freelancers-view .executor-directory-actions {
  justify-content: space-between;
  gap: 12px;
}

.freelancers-view .executor-add-button,
.freelancers-view .executor-refresh-button {
  min-height: 44px;
}

.projects-view .my-projects,
.projects-view .project-form {
  margin-top: 20px;
}

@media (max-width: 360px) {
  .project-directory-row {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    gap: 10px;
    padding-inline: 12px;
  }

  .project-directory-row small {
    font-size: 12px;
  }
}

.public-projects {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.public-projects-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.public-projects-heading h3,
.public-projects-heading p {
  margin: 0;
}

.public-projects-heading h3 {
  font-size: 20px;
  line-height: 1.2;
}

.public-projects-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.public-projects-refresh {
  min-height: 40px;
  flex: 0 0 auto;
  padding-inline: 10px;
}

.public-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 10px;
}

.public-project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.public-project-card p,
.public-project-card button {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.public-project-card-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
}

.public-project-link {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
}

.project-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.executor-directory-summary {
  display: flex;
  min-width: 0;
  min-height: 92px;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
}

.executor-directory-summary h3,
.executor-directory-summary p {
  margin: 0;
}

.executor-directory-summary h3 {
  font-size: 16px;
  line-height: 1.25;
}

.executor-directory-summary p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.executor-directory-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.executor-add-button,
.executor-directory-actions .executor-refresh-button {
  min-height: 36px;
  padding-inline: 10px;
}

.project-action-card {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.project-action-card > span:nth-child(2) {
  min-width: 0;
}

.project-action-card strong,
.project-action-card small {
  display: block;
  overflow-wrap: anywhere;
}

.project-action-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.project-action-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.project-action-card > b {
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
}

.project-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

.project-action-card:hover,
.project-action-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border-subtle));
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
}

.executor-owner-status {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.executor-owner-heading,
.my-project-card-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.executor-withdraw-button {
  min-height: 40px;
  flex: 0 1 auto;
  padding-inline: 12px;
}

.executor-owner-status strong,
.executor-owner-status p {
  display: block;
  margin: 0;
}

.executor-owner-status .form-status {
  margin-top: 10px;
  color: var(--text);
}

.my-projects {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.my-project-list {
  display: grid;
  gap: 10px;
}

.my-project-card {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.my-project-card h4,
.my-project-card p,
.my-project-card small {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.my-project-card h4 {
  font-size: 15px;
  line-height: 1.3;
}

.my-project-card p,
.my-project-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.my-project-card .badge {
  flex: 0 0 auto;
  max-width: 48%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.executor-owner-status p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.project-form-heading,
.executor-directory-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.project-form-heading h3,
.project-form-heading p,
.executor-directory-heading h3,
.executor-directory-heading p {
  margin: 0;
}

.project-form-heading p,
.executor-directory-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.optional-field {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.selected-executor {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-subtle));
  border-radius: var(--radius-control);
  background: var(--accent-soft);
}

.selected-executor small,
.selected-executor strong {
  display: block;
  overflow-wrap: anywhere;
}

.selected-executor small {
  color: var(--muted);
  font-size: 11px;
}

.selected-executor strong {
  margin-top: 2px;
  font-size: 14px;
}

.executor-consent-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.executor-consent-option input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.executor-consent-option strong,
.executor-consent-option small {
  display: block;
}

.executor-consent-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.executor-service-picker {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  background: var(--surface-soft);
}

.executor-service-picker legend {
  padding: 0 4px;
  font-size: 13px;
  font-weight: 800;
}

.executor-service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.executor-service-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.executor-service-choice input {
  width: 19px;
  height: 19px;
  margin: 0;
}

.executor-service-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.executor-service-choice.is-legacy {
  color: var(--muted);
  background: var(--surface-soft);
}

.executor-directory {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.executor-refresh-button {
  min-height: 40px;
  padding-inline: 12px;
  white-space: nowrap;
}

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

.executor-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.executor-card-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.executor-card h4,
.executor-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.executor-card h4 {
  font-size: 16px;
  line-height: 1.25;
}

.executor-card-specialization {
  margin-top: 3px !important;
  color: var(--muted);
  font-size: 12px;
}

.executor-card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.executor-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.executor-service-list li {
  max-width: 100%;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.executor-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.executor-card-actions .primary-button,
.executor-card-actions .secondary-button {
  min-height: 42px;
  padding-inline: 13px;
}

.app-dialog {
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--text);
}

.app-dialog::backdrop {
  background: rgb(0 0 0 / 54%);
}

.app-dialog .request-form {
  margin: 0;
}

.app-dialog h2,
.app-dialog p {
  margin: 0;
}

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

.session-manager {
  display: grid;
  gap: 14px;
}

.session-manager-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.session-manager-heading p,
.session-manager-note,
.session-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.session-manager-list {
  display: grid;
  gap: 10px;
  max-height: min(56dvh, 480px);
  overflow-y: auto;
}

.session-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.session-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.session-card-heading strong,
.session-card-heading small {
  display: block;
}

.session-current-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 900;
}

.session-card-actions,
.session-manager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-card-actions button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 12px;
}

.client-update-required {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: rgb(0 0 0 / 72%);
}

.client-update-required[hidden] {
  display: none;
}

.client-update-card {
  display: grid;
  width: min(100%, 460px);
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
}

.client-update-card h2,
.client-update-card p {
  margin: 0;
}

body.is-update-required .app-shell,
body.is-update-required .tabbar {
  pointer-events: none;
  user-select: none;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.privacy-note a {
  color: inherit;
  font-weight: 800;
}

.choice-field {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
}

.choice-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.choice-field span {
  display: grid;
  gap: 4px;
}

.choice-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.choice-field a {
  color: inherit;
  font-weight: 700;
}

.consent-field > span {
  display: block;
}

.registration-legal-access {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.registration-legal-access p,
.registration-legal-access small {
  margin: 0;
}

.registration-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.registration-legal-links a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-field a {
  display: inline;
}

.consent-field[hidden] {
  display: none;
}

.consent-field.is-current-consent {
  opacity: 0.78;
}

.consent-field.is-current-consent input {
  accent-color: var(--accent);
}

.distribution-fields {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface-soft);
}

.distribution-fields[hidden] {
  display: none;
}

.distribution-fields legend {
  padding: 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.distribution-fields > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.distribution-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.distribution-grid input,
.distribution-consent-field input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.distribution-consent-field {
  margin-top: 2px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  outline: 0;
}

input {
  min-height: 48px;
  padding: 0 12px;
}

select {
  min-height: 48px;
  padding: 0 12px;
}

textarea {
  min-height: 116px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: none;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 620px);
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--tabbar-bg);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.tab-button {
  position: relative;
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tab-icon-shell {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--radius-icon);
  background: var(--tab-icon-bg);
  color: var(--text);
}

.tab-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-label {
  overflow: hidden;
  max-width: 100%;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-button.is-active {
  background: var(--surface-soft);
  color: var(--text);
}

.tab-button.is-active .tab-icon-shell {
  background: var(--accent);
  color: var(--on-accent);
}

.notification-badge,
.notification-dot {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--surface);
  background: #ff1f3d;
  box-shadow: 0 8px 18px rgba(255, 31, 61, 0.28);
}

.notification-badge {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.quick-action .notification-badge {
  top: 10px;
  right: 42px;
}

.tab-button .notification-badge {
  top: 3px;
  right: calc(50% - 25px);
}

.notification-dot {
  top: 5px;
  right: calc(50% - 22px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  z-index: 20;
  width: min(calc(100% - 32px), 560px);
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: var(--shadow-elevated);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body[data-active-view="welcome"] .hero,
body[data-active-view="register"] .hero,
body[data-active-view="people"] .hero,
body[data-active-view="chat"] .hero,
body[data-active-view="profile"] .hero,
body[data-active-view="settings"] .hero,
body[data-active-view="about"] .hero {
  display: none;
}

body[data-active-view="welcome"] .tabbar,
body[data-active-view="register"] .tabbar {
  display: none;
}

.community-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.community-brand img {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-icon);
}

.community-brand strong,
.community-brand span {
  display: block;
}

.community-brand strong {
  font-size: 20px;
}

.community-brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.welcome-view {
  min-height: calc(100vh - 56px - env(safe-area-inset-top));
  background: #ffffff;
}

.welcome-view.is-visible {
  display: grid;
  align-items: center;
  padding-block: 16px 28px;
}

.welcome-panel {
  position: relative;
  display: grid;
  width: min(100%, 560px);
  min-height: 0;
  align-content: start;
  justify-self: center;
  gap: 14px;
  overflow: hidden;
  padding: 38px 42px 32px;
  border: 1px solid rgba(16, 18, 20, 0.1);
  border-radius: 24px;
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

html[data-theme="dark"] .welcome-panel {
  background: #ffffff;
  color: #0a0a0a;
}

.welcome-panel::before,
.welcome-panel::after {
  content: none;
}

.welcome-panel > * {
  position: relative;
  z-index: 1;
}

.welcome-panel h2,
.welcome-auth-subtitle {
  margin: 0;
}

.welcome-auth-brand {
  display: block;
  width: 72px;
  height: 72px;
  justify-self: center;
  border-radius: 18px;
  object-fit: cover;
}

.welcome-panel h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.welcome-auth-subtitle {
  max-width: 390px;
  justify-self: center;
  margin-bottom: 8px;
  color: #727885;
  font-size: 18px;
  line-height: 1.35;
}

.welcome-protected-hint {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfe9c8;
  border-radius: 12px;
  background: #f3fbf0;
  color: #235329;
  font-size: 13px;
  line-height: 1.4;
}

.welcome-provider-grid {
  display: grid;
  gap: 12px;
}

.welcome-provider {
  display: grid;
  min-width: 0;
  min-height: 56px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.welcome-provider::after {
  content: "";
}

.welcome-provider--vk {
  background: #2787f5;
}

.welcome-provider--max {
  background: #7357ff;
}

.welcome-provider--telegram {
  background: #239bd7;
}

.welcome-provider-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: #222222;
  font-size: 13px;
  font-weight: 900;
}

.welcome-provider.is-current-provider {
  outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent);
  outline-offset: 2px;
}

.welcome-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #727885;
}

.welcome-auth-divider::before,
.welcome-auth-divider::after {
  height: 1px;
  background: #dce1dd;
  content: "";
}

.welcome-email-auth,
.welcome-email-form {
  display: grid;
  gap: 10px;
}

.welcome-email-auth {
  min-width: 0;
}

.welcome-auth-input {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #ffffff;
  color: #7b8390;
  text-align: left;
}

.welcome-auth-input:focus-within {
  border-color: #20b93c;
  box-shadow: 0 0 0 3px rgba(32, 185, 60, 0.14);
}

.welcome-auth-input input {
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #101214;
  font: inherit;
}

.welcome-auth-input input::placeholder {
  color: #9aa1ac;
}

.welcome-auth-input-icon {
  font-size: 18px;
  text-align: center;
}

.welcome-email-instruction,
.welcome-email-status {
  margin: 0;
  color: #666f7c;
  font-size: 12px;
  line-height: 1.45;
}

.welcome-email-status[data-state="error"] {
  color: #a72525;
}

.welcome-email-status[data-state="success"] {
  color: #17732a;
}

.welcome-email-auth[hidden],
.welcome-auth-divider[hidden] {
  display: none;
}

.welcome-email-auth.is-checking .welcome-email-form,
.welcome-email-form[hidden] {
  display: none;
}

.email-link-panel {
  display: grid;
  gap: 16px;
}

.email-link-panel .welcome-email-auth {
  text-align: center;
}

.provider-link-panel {
  display: grid;
  gap: 16px;
}

.provider-link-status {
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.provider-link-status[data-state="success"] {
  border-color: rgba(21, 115, 71, 0.32);
  background: rgba(32, 216, 6, 0.08);
  color: #157347;
}

.provider-link-status[data-state="error"] {
  border-color: rgba(216, 32, 37, 0.3);
  background: rgba(216, 32, 37, 0.06);
  color: #b42328;
}

.provider-link-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.provider-link-actions[hidden] {
  display: none;
}

.login-method-link {
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.login-method-link[hidden] {
  display: none;
}

.provider-link-methods {
  display: grid;
}

.provider-link-methods[hidden] {
  display: none;
}

.welcome-existing-profile {
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #5d6470;
  font-weight: 700;
}

.welcome-existing-profile span {
  color: #168b2d;
}

.welcome-legal-links {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid #e1e5e1;
  font-size: 12px;
}

.welcome-legal-links a,
.welcome-legal-links button {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d6470;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button {
  width: fit-content;
  min-height: 40px;
  justify-self: center;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.vacancy-guidelines {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.vacancy-guidelines p,
.vacancy-guidelines ul {
  margin: 0;
}

.vacancy-guidelines strong {
  margin-top: 5px;
}

.vacancy-guidelines ul {
  display: grid;
  gap: 3px;
  padding-left: 20px;
}

.chat-guidelines-link {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content-state-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.chat-guidelines-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
}

.welcome-panel .primary-button {
  width: 100%;
  min-height: 54px;
  background: #20d806;
  color: #050505;
  font-size: 17px;
}

.text-button.danger {
  padding-inline: 12px;
  border: 2px dashed var(--error);
  border-radius: var(--radius-control);
  color: var(--error);
}

.profile-form {
  margin-bottom: 0;
}

.profile-form.is-new-registration [data-registration-detail] {
  display: none !important;
}

.profile-form.is-new-registration .form-row {
  grid-template-columns: minmax(0, 1fr);
}

.profile-photo-field {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.profile-photo-field strong,
.profile-photo-field small {
  display: block;
}

.profile-photo-field small {
  margin-top: 4px;
  color: var(--muted);
}

.profile-photo-preview {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-icon);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 28px;
  font-weight: 900;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-photo-actions .secondary-button,
.profile-photo-actions .text-button {
  min-height: 36px;
}

.profile-photo-actions .text-button {
  justify-self: start;
}

.small-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-icon);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
}

.search-field {
  margin-bottom: 14px;
}

.global-search-results {
  border-top: 1px solid var(--line);
}

.global-search-result {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 15px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.global-search-result span,
.global-search-result small {
  color: var(--muted);
}

.global-search-result strong {
  font-size: 15px;
}

.global-search-result small {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.people-directory-summary {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.people-directory-summary strong {
  color: var(--text);
  font-size: 14px;
}

.people-directory-summary small {
  color: var(--muted);
  font-size: 12px;
}

.person-card {
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: left;
}

.person-card.has-link {
  cursor: pointer;
}

.person-card.has-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 58%, transparent);
  outline-offset: 2px;
}

.person-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.person-avatar {
  display: grid;
  width: 52px;
  height: 52px;
}

.person-avatar > img,
.person-avatar > .person-symbol {
  grid-area: 1 / 1;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-icon);
}

.person-avatar > img {
  object-fit: cover;
}

.person-avatar-fallback[hidden] {
  display: none;
}

.person-symbol,
.profile-person-icon {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 26px;
  font-weight: 700;
}

.person-summary {
  min-width: 0;
}

.person-card h3,
.person-card p {
  margin: 0;
}

.person-card h3 {
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.person-card p,
.looking-for {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.person-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.person-detail {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.person-detail span,
.person-detail strong {
  display: block;
}

.person-detail span {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.person-detail strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.person-community-label {
  margin-top: 5px !important;
}

.person-bio {
  margin-top: 12px !important;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  overflow-wrap: anywhere;
}

.person-contact-button {
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.person-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.person-card-actions .person-contact-button {
  margin-top: 0;
}

.person-report-button {
  width: 100%;
  min-height: 42px;
}

.notification-center-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.notification-center-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.notification-center-count {
  min-width: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #ef2b2d;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.profile-chip-row span,
.achievement-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.looking-for {
  margin-top: 11px !important;
}

@media (max-width: 420px) {
  .person-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 360px) {
  .person-card-actions {
    grid-template-columns: 1fr;
  }
}

.profile-identity,
.reputation-band,
.profile-section,
.profile-settings {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.profile-identity {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.profile-photo-button {
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-icon);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.profile-photo-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.profile-photo-button:active {
  transform: scale(0.98);
}

.profile-identity img,
.profile-person-icon {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-icon);
  object-fit: cover;
}

.profile-identity h3,
.profile-identity p,
.profile-identity span,
.reputation-band h3,
.reputation-band p,
.profile-section h3 {
  margin: 0;
}

.profile-identity h3 {
  font-size: 20px;
}

.profile-identity p,
.profile-identity span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.profile-stats div {
  display: grid;
  gap: 2px;
  padding: 14px 8px;
  text-align: center;
}

.profile-stats div + div {
  border-left: 1px solid var(--line);
}

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

.profile-stats span,
.reputation-band > span,
.reputation-band p,
.profile-settings span,
.muted-copy {
  color: var(--muted);
  font-size: 12px;
}

.reputation-band h3 {
  margin-top: 5px;
  color: var(--text);
  font-size: 23px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

.reputation-band > strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.level-progress {
  height: 8px;
  overflow: hidden;
  margin: 13px 0 8px;
  border-radius: 999px;
  background: var(--surface-soft);
}

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

.reputation-explainer {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.reputation-explainer summary {
  min-height: 36px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.reputation-explainer p,
.reputation-explainer ul {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.reputation-explainer ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.profile-section h3 {
  font-size: 15px;
}

.achievement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.profile-point-history {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.profile-point-history article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.profile-point-history strong {
  color: #176c38;
}

.profile-point-history article.is-correction strong {
  color: var(--danger);
}

.profile-point-history span {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

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

.profile-settings strong,
.profile-settings span {
  display: block;
}

.push-settings {
  display: grid;
  align-items: stretch;
  gap: 14px;
}

.push-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch-control {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 30px;
  cursor: pointer;
}

.switch-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-control > span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  transition: background 160ms ease, border-color 160ms ease;
}

.switch-control > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease;
}

.switch-control input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
}

.switch-control input:checked + span::after {
  transform: translateX(20px);
  background: #071105;
}

.switch-control input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.push-category-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.push-category-settings[hidden] {
  display: none;
}

.push-category-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 750;
}

.push-category-settings input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.push-status,
.push-privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.push-status {
  font-weight: 750;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-actions .section-action-button {
  width: 100%;
  margin: 0;
}

.profile-hero-card {
  position: relative;
  isolation: isolate;
  min-height: 214px;
  margin-bottom: 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: calc(var(--radius-card) + 8px);
  background: linear-gradient(135deg, #20d806 0%, #76f52c 56%, #31c80e 100%);
  color: #050505;
  box-shadow: var(--shadow-card);
}

.profile-hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -74px;
  bottom: -92px;
  width: 238px;
  height: 238px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(2px);
}

.profile-hero-toolbar,
.profile-hero-actions {
  display: flex;
  align-items: center;
}

.profile-hero-toolbar {
  justify-content: space-between;
  gap: 14px;
}

.profile-hero-actions {
  gap: 8px;
}

.profile-hero-photo,
.profile-header-action {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(5, 5, 5, 0.14);
  background: rgba(255, 255, 255, 0.48);
  color: #050505;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.profile-hero-photo {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 20px;
}

.profile-hero-photo img,
.profile-hero-photo > span {
  width: 100%;
  height: 100%;
}

.profile-hero-photo img {
  object-fit: cover;
}

.profile-hero-photo > span {
  display: grid;
  place-items: center;
}

.profile-hero-photo svg {
  width: 37px;
  height: 37px;
}

.profile-header-action {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 17px;
}

.profile-header-action svg {
  width: 28px;
  height: 28px;
}

.profile-hero-photo svg,
.profile-header-action svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-hero-photo:hover,
.profile-header-action:hover,
.profile-hero-photo:focus-visible,
.profile-header-action:focus-visible {
  border-color: #050505;
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.profile-notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid #20d806;
  border-radius: 999px;
  background: #ef2b2d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.profile-notification-count[hidden] {
  display: none;
}

.profile-hero-copy {
  display: grid;
  gap: 3px;
  margin-top: 30px;
}

.profile-hero-copy h2,
.profile-hero-copy p,
.profile-hero-copy span {
  margin: 0;
}

.profile-hero-copy h2 {
  max-width: 100%;
  font-size: clamp(28px, 7.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.profile-hero-copy p {
  font-size: 16px;
  font-weight: 850;
}

.profile-hero-copy span {
  color: rgba(5, 5, 5, 0.64);
  font-size: 13px;
  font-weight: 750;
}

.profile-hub,
.settings-group,
.about-app-card {
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.profile-hub {
  display: grid;
}

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

.profile-hub-row,
.settings-row {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-hub-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
}

.profile-hub-badge,
.direct-unread-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 900;
}

.profile-hub-badge[hidden] {
  display: none;
}

.profile-hub-row + .profile-hub-row,
.settings-row + .settings-row {
  border-top: 1px solid var(--line);
}

.profile-hub-row:hover,
.profile-hub-row:focus-visible,
.settings-row:hover,
.settings-row:focus-visible {
  background: var(--surface-soft);
  outline: none;
}

.profile-hub-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-icon);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
}

.profile-hub-row > span:nth-child(2),
.profile-hub-row strong,
.profile-hub-row small {
  display: block;
}

.profile-hub-row strong {
  font-size: 14px;
}

.profile-hub-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.profile-hub-row > b,
.settings-row > b {
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
}

.settings-view,
.about-view {
  padding-bottom: 18px;
}

.settings-group-heading {
  display: grid;
  gap: 3px;
  padding: 15px 15px 11px;
}

.settings-group-heading strong,
.settings-group-heading span {
  display: block;
}

.settings-group-heading strong {
  font-size: 15px;
}

.settings-group-heading span {
  color: var(--muted);
  font-size: 12px;
}

.login-methods {
  display: grid;
  gap: 8px;
  padding: 0 15px 12px;
  border-bottom: 1px solid var(--line);
}

.login-methods-heading {
  display: grid;
  gap: 2px;
}

.login-methods-heading strong {
  font-size: 13px;
}

.login-methods-heading span,
.login-methods-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.login-methods-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 760;
}

.login-method-status {
  flex: 0 0 auto;
  color: #157347;
  font-size: 11px;
  font-weight: 850;
}

.login-method-status::before {
  content: "✓ ";
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
}

.settings-row.account-portal-link {
  text-decoration: none;
}

.settings-row > span {
  min-width: 0;
}

.settings-row.danger {
  color: #d82025;
}

.danger-settings {
  border-color: rgba(216, 32, 37, 0.28);
}

.about-app-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.about-app-card img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.about-app-card strong,
.about-app-card span {
  display: block;
}

.about-app-card strong {
  font-size: 17px;
}

.about-app-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.about-description-card {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.about-description-card h3,
.about-description-card p,
.about-feature-list {
  margin: 0;
}

.about-description-card h3 {
  font-size: 18px;
  line-height: 1.3;
}

.about-description-card > p:not(.about-access-note) {
  margin-top: 8px;
  color: var(--muted);
}

.about-feature-list {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  list-style: none;
}

.about-feature-list li {
  position: relative;
  padding-left: 20px;
}

.about-feature-list li::before {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.about-feature-list strong,
.about-feature-list span {
  display: block;
}

.about-feature-list strong {
  font-size: 14px;
}

.about-feature-list span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.about-access-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.about-feedback-button {
  width: 100%;
  margin: 0;
}

.direct-privacy-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 12px;
  background: rgba(76, 175, 80, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.direct-conversation-list {
  display: grid;
  gap: 8px;
}

.direct-conversation-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.direct-conversation-row:hover,
.direct-conversation-row:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-soft);
  outline: none;
}

.direct-peer-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius-icon);
  background: var(--accent-soft);
  font-size: 20px;
  font-weight: 900;
}

.direct-peer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.direct-conversation-copy {
  min-width: 0;
}

.direct-conversation-copy strong,
.direct-conversation-copy small {
  display: block;
}

.direct-conversation-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-thread {
  display: grid;
  min-height: 0;
}

.direct-thread[hidden],
.direct-conversation-list[hidden] {
  display: none;
}

.direct-message-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.direct-block-button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 12px;
}

.direct-message-list {
  display: grid;
  align-content: start;
  gap: 8px;
  height: max(360px, calc(100vh - 270px - env(safe-area-inset-bottom)));
  overflow-y: auto;
  padding-bottom: 10px;
  overscroll-behavior: contain;
}

.direct-message {
  width: min(86%, 470px);
  justify-self: start;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.direct-message.is-mine {
  justify-self: end;
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.direct-message p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.direct-message time {
  color: var(--muted);
  font-size: 10px;
}

.direct-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.direct-message-meta button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
}

.direct-message-composer {
  position: sticky;
  bottom: calc(82px + env(safe-area-inset-bottom) + var(--keyboard-inset));
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: end;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--tabbar-bg);
  backdrop-filter: blur(14px);
}

.direct-message-composer textarea {
  min-height: 40px;
  max-height: 120px;
  padding-block: 10px;
}

.chat-list {
  display: grid;
  align-items: start;
  gap: 8px;
  height: max(360px, calc(100vh - 270px - env(safe-area-inset-bottom)));
  overflow-y: auto;
  padding-bottom: 10px;
  overscroll-behavior: contain;
}

.chat-message {
  align-self: start;
  width: min(86%, 470px);
  justify-self: start;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.chat-message.is-mine {
  justify-self: end;
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.chat-message.is-blocked {
  border-style: dashed;
  color: var(--muted);
}

.chat-message header,
.chat-message footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-message header strong {
  font-size: 12px;
}

.chat-message time {
  color: var(--muted);
  font-size: 10px;
}

.chat-message p {
  margin: 6px 0 8px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.chat-message footer {
  justify-content: flex-end;
}

.chat-message footer button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.quoted-message {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 7px 9px;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.chat-composer {
  position: sticky;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 3;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--tabbar-bg);
  backdrop-filter: blur(14px);
}

.emoji-picker {
  display: grid;
  grid-template-columns: repeat(8, minmax(32px, 1fr));
  gap: 4px;
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-elevated);
}

.emoji-picker[hidden] {
  display: none;
}

.emoji-picker button,
.emoji-button {
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  cursor: pointer;
}

.emoji-picker button {
  width: 100%;
  min-width: 32px;
  height: 36px;
  border-radius: var(--radius-icon);
  font-size: 22px;
}

.emoji-picker button:hover,
.emoji-picker button:focus-visible,
.emoji-button:hover,
.emoji-button:focus-visible {
  border-color: var(--line);
  background: var(--surface-soft);
}

.chat-attachment-hint { margin: 3px 4px 8px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.chat-attachment, .chat-attachment-preview { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin: 8px 0; min-width: 0; overflow-wrap: anywhere; }
.chat-attachment-preview[hidden] { display: none; }
.chat-attachment-preview { padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.chat-attachment-preview img { max-width: min(100%, 160px); max-height: 100px; object-fit: contain; }
.chat-attachment button, .chat-attachment-preview button { min-height: 44px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-control, 12px); background: var(--accent-soft); color: var(--text); font: inherit; font-weight: 600; line-height: 1.3; text-align: left; cursor: pointer; }
.chat-attachment button:focus-visible, .chat-attachment-preview button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.chat-attachment button:disabled, .chat-attachment-preview button:disabled { cursor: wait; opacity: .65; }
.chat-attachment-image { max-width: 100%; max-height: 360px; object-fit: contain; border-radius: var(--radius-card); }
#chatForm .composer-row { grid-template-columns: 40px 40px minmax(0, 1fr) 40px; }

.composer-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: end;
  gap: 7px;
}

.composer-row textarea {
  min-height: 40px;
  max-height: 120px;
  padding-block: 10px;
}

.emoji-button {
  width: 40px;
  height: 40px;
  border-color: var(--line);
  border-radius: var(--radius-icon);
  background: var(--surface);
  font-size: 22px;
}

.send-button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-icon);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 21px;
  font-weight: 700;
}

.reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  padding: 7px 9px;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.reply-preview[hidden] {
  display: none;
}

.reply-preview button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

@media (max-width: 380px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .media-stats strong {
    font-size: 21px;
  }

  .tab-label {
    font-size: 9px;
  }

  .welcome-panel {
    padding: 22px;
  }

  .welcome-panel h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .welcome-panel {
    padding: 26px;
  }

  .welcome-panel h2 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .distribution-grid {
    grid-template-columns: 1fr;
  }

  .card-actions {
    display: grid;
  }

  .card-actions .event-link {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .welcome-panel {
    padding: 22px;
  }

  .welcome-panel h2 {
    font-size: 28px;
  }
}

/* Telegram may resize only the visual viewport when the keyboard is open.
   app.js maintains this value so fixed navigation and message composers stay visible. */
:root {
  --keyboard-inset: 0px;
  --platform-viewport-height: 100vh;
  --search-available-height: auto;
}

.max-app body,
.max-app .app-shell {
  min-height: min(var(--platform-viewport-height), 100vh);
}

@supports (height: 100dvh) {
  body,
  .app-shell {
    min-height: 100dvh;
  }

  .max-app body,
  .max-app .app-shell {
    min-height: min(var(--platform-viewport-height), 100dvh);
  }
}

.app-shell {
  padding-bottom: calc(96px + env(safe-area-inset-bottom) + var(--keyboard-inset));
}

.tabbar {
  bottom: var(--keyboard-inset);
}

/* Search owns the reduced VisualViewport while the Android keyboard is open.
   The bottom navigation stays behind the keyboard instead of jumping above it,
   while only search results become a bounded scroll surface. */
body.is-search-keyboard-open .app-shell {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

/* Registration is an ordinary scrollable form, not a bottom-anchored
   composer. Applying the keyboard height as document padding creates a large
   blank area and pushes the consent controls out of the visible viewport.
   The Android activity uses adjustNothing so old WebView/MIUI cannot shrink
   both the layout and VisualViewport; clear the remaining viewport min-height
   while the keyboard is open so the form keeps a single scroll surface. */
body.is-registration-keyboard-open {
  min-height: 0;
}

body.is-registration-keyboard-open .app-shell {
  min-height: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

body.is-search-keyboard-open .tabbar {
  display: none;
}

body.is-registration-keyboard-open .tabbar {
  display: none;
}

body.is-registration-keyboard-open #registrationForm :is(input, textarea):focus {
  scroll-margin-block: 12px;
}

body.is-search-keyboard-open .global-search-view.is-visible {
  display: grid;
  height: var(--search-available-height);
  max-height: var(--search-available-height);
  min-height: 160px;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr);
}

body.is-search-keyboard-open .global-search-field {
  scroll-margin-block: 8px;
}

body.is-search-keyboard-open .global-search-results {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.ask-composer,
.chat-composer {
  bottom: calc(82px + env(safe-area-inset-bottom) + var(--keyboard-inset));
}

@media (orientation: landscape) and (max-height: 560px) {
  .ask-chat,
  .chat-list {
    min-height: 132px;
    max-height: calc(100dvh - 190px - env(safe-area-inset-bottom));
  }

  .ask-composer,
  .chat-composer {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom) + var(--keyboard-inset));
  }
}

/* 2026 home hub: shared visual system for Web, native shells and Mini Apps. */
.hero {
  min-height: 68px;
  overflow: visible;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .hero {
  background: transparent;
}

.hero-copy {
  min-height: 68px;
  gap: 14px;
  padding: 0;
  color: var(--text);
}

.hero-logo-tile {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.hero-logo-tile img {
  border-radius: 20px;
  object-position: center;
}

.hero-actions {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  margin-left: auto;
  gap: 9px;
}

.hero-search-button,
.hero-action-button,
.hero-profile-button {
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.035);
}

.hero-search-button {
  display: flex;
  min-width: 0;
  min-height: 48px;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-align: left;
}

.hero-search-button svg,
.hero-action-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-search-button span {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-action-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  backdrop-filter: none;
}

.hero-action-button:hover,
.hero-action-button:focus-visible,
.hero-search-button:hover,
.hero-search-button:focus-visible,
.hero-profile-button:hover,
.hero-profile-button:focus-visible {
  border-color: var(--accent);
  background: var(--surface);
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
}

.hero-profile-button {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.hero-profile-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-profile-button span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--accent-soft);
}

.hero-profile-button span svg {
  width: 23px;
  height: 23px;
  fill: var(--accent-strong);
}

.hero-profile-button span[hidden] {
  display: none;
}

.home-welcome {
  position: relative;
  display: grid;
  min-height: 248px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.9fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 26px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.home-welcome::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  content: "";
  pointer-events: none;
}

.home-welcome-copy {
  position: relative;
  z-index: 1;
}

.home-kicker,
.home-welcome h2,
.home-welcome-copy > p,
.home-section-heading p,
.home-section-heading h2 {
  margin: 0;
}

.home-kicker {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-welcome h2 {
  max-width: 360px;
  font-size: clamp(28px, 6.2vw, 39px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-welcome-copy > p:not(.home-kicker) {
  max-width: 330px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.home-member-badge {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 12px;
}

.home-member-badge.has-live-count {
  background: var(--accent);
  color: var(--on-accent);
}

.home-member-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-community-illustration {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 270px;
  justify-self: end;
}

.illustration-blob,
.illustration-chat {
  fill: var(--accent);
}

.illustration-line {
  fill: var(--surface);
  stroke: var(--text);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.illustration-chat circle {
  fill: var(--text);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(2px, 1vw, 8px);
  overflow-x: visible;
  margin: 0 -4px 18px;
  padding: 4px;
  scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
  display: none;
}

.quick-action {
  display: grid;
  min-width: 0;
  min-height: 96px;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.quick-action:hover,
.quick-action:focus-visible {
  background: var(--surface-soft);
}

.quick-icon-shell {
  width: clamp(42px, 10vw, 60px);
  height: clamp(42px, 10vw, 60px);
  border-radius: 22px;
  background: var(--accent-soft);
  color: var(--accent);
}

.quick-action[data-tone] .quick-icon-shell {
  background: var(--accent-soft);
  color: var(--accent);
}

.quick-icon {
  width: 29px;
  height: 29px;
  stroke-width: 2;
}

.quick-action strong {
  font-size: 12px;
  line-height: 1.15;
}

.quick-chevron {
  display: none;
}

.quick-action .notification-badge {
  top: 1px;
  right: 7px;
}

.home-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}

.home-secondary-action {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.home-secondary-action > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}

.home-secondary-action svg,
.salary-promo-card svg,
.home-highlight-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-secondary-action strong,
.home-secondary-action small {
  display: block;
}

.home-secondary-action strong {
  font-size: 14px;
}

.home-secondary-action small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.home-secondary-action b,
.salary-promo-card b {
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
}

.home-secondary-action:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.home-highlights {
  display: grid;
  gap: 12px;
}

.home-feed-section {
  margin-bottom: 28px;
}

.home-section-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-section-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.home-section-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.home-section-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--accent) 70%, #176c38);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.home-section-link span {
  font-size: 22px;
  line-height: 1;
}

.home-highlight-list,
.editorial-list {
  display: grid;
  gap: 12px;
}

.home-highlight-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 112px;
  grid-template-columns: 74px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.home-highlight-card.is-editorial {
  min-height: 104px;
}

.home-highlight-card:hover,
.home-highlight-card:focus-visible,
.home-secondary-action:hover,
.home-secondary-action:focus-visible,
.salary-promo-card:hover,
.salary-promo-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border-subtle));
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
}

.home-event-date,
.home-highlight-mark,
.home-mentor-avatar {
  display: grid;
  width: 70px;
  height: 78px;
  place-items: center;
  align-content: center;
  border-radius: 17px;
  background: var(--accent);
  color: var(--on-accent);
}

.home-event-date strong {
  font-size: 31px;
  line-height: 0.9;
}

.home-event-date b {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1;
}

.home-highlight-mark {
  height: 70px;
  background: var(--accent-soft);
  color: var(--accent);
}

.home-highlight-mark svg {
  width: 31px;
  height: 31px;
}

.home-mentor-avatar {
  height: 70px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-soft));
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.home-highlight-copy {
  min-width: 0;
}

.home-highlight-copy small,
.home-highlight-copy strong,
.home-highlight-copy em {
  display: block;
}

.home-highlight-copy small {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-highlight-copy strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.22;
  text-overflow: ellipsis;
}

.home-highlight-copy em {
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.home-highlight-chevron {
  color: var(--muted);
  font-size: 30px;
}

.salary-promo-card {
  display: grid;
  width: 100%;
  min-height: 98px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border-subtle));
  border-radius: 22px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
  text-align: left;
}

.salary-promo-card > span:nth-child(2),
.vacancy-project-card > span:nth-child(2) {
  min-width: 0;
}

.salary-promo-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: var(--accent);
  color: var(--on-accent);
}

.salary-promo-card small,
.salary-promo-card strong,
.salary-promo-card em {
  display: block;
}

.salary-promo-card strong,
.salary-promo-card em,
.vacancy-project-card strong,
.vacancy-project-card em {
  overflow-wrap: anywhere;
}

.vacancy-project-card {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.vacancy-project-card:hover,
.vacancy-project-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border-subtle));
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
}

.vacancy-project-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 17px;
  background: var(--accent-soft);
  color: var(--accent);
}

.vacancy-project-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vacancy-project-card strong,
.vacancy-project-card em {
  display: block;
}

.vacancy-project-card strong {
  font-size: 15px;
  line-height: 1.25;
}

.vacancy-project-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.vacancy-project-card > b {
  color: var(--muted);
  font-size: 24px;
  font-weight: 500;
}

.salary-promo-card small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.salary-promo-card strong {
  margin-top: 2px;
  font-size: 16px;
}

.salary-promo-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.editorial-card {
  padding: 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.editorial-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.editorial-card-meta span {
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.editorial-card h3,
.editorial-card p {
  margin: 0;
}

.editorial-card h3 {
  font-size: 18px;
  line-height: 1.2;
}

.editorial-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-boot-fallback {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: auto;
  background: #ffffff;
  color: #0a0a0a;
}

.app-boot-fallback[hidden] {
  display: none;
}

.app-boot-fallback-card {
  display: grid;
  justify-items: center;
  width: min(100%, 420px);
  padding: 28px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-dialog);
  background: #ffffff;
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

.app-boot-fallback-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 18px;
}

.app-boot-fallback-card h1 {
  margin: 0;
  font-size: clamp(22px, 7vw, 30px);
  line-height: 1.12;
}

.app-boot-fallback-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.app-boot-fallback-actions {
  display: grid;
  width: 100%;
  gap: 10px;
  margin-top: 22px;
}

.app-boot-fallback-actions a,
.app-boot-fallback--noscript a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-boot-fallback--noscript a {
  width: 100%;
  margin-top: 22px;
}

.editorial-card .event-link {
  margin-top: 14px;
}

.tab-button.is-active {
  background: transparent;
  color: var(--accent);
}

.tab-button.is-active .tab-icon-shell {
  background: var(--accent);
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 14px;
  }

  .hero-logo-tile {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .hero-search-button {
    padding-inline: 12px;
  }

  .home-welcome {
    min-height: 230px;
    grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.85fr);
    padding: 22px 17px;
  }

  .home-welcome h2 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .home-community-illustration {
    width: 140%;
    max-width: 230px;
    transform: translateX(18%);
  }

  .quick-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow-x: visible;
  }

  .quick-action {
    min-width: 0;
    padding-inline: 0;
  }

  .quick-action strong {
    font-size: clamp(9px, 2.7vw, 12px);
  }

  .quick-icon-shell {
    width: clamp(38px, 12vw, 50px);
    height: clamp(38px, 12vw, 50px);
  }
}

@media (max-width: 540px) {
  .public-projects-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .public-projects-refresh {
    align-self: flex-start;
  }

  .project-action-grid,
  .project-form .form-row,
  .executor-application-form .form-row {
    grid-template-columns: 1fr;
  }

  .executor-service-options {
    grid-template-columns: 1fr;
  }

  .project-action-card {
    min-height: 82px;
  }

  .executor-directory-summary {
    min-height: 0;
    padding: 8px 2px 2px;
  }

  .project-form-heading,
  .executor-directory-heading,
  .executor-owner-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .executor-refresh-button,
  .executor-withdraw-button {
    justify-self: start;
  }
}

@media (max-width: 410px) {
  .tab-button {
    font-size: clamp(8px, 2.5vw, 10px);
  }

  .hero-copy {
    gap: 8px;
  }

  .hero-logo-tile {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .hero-logo-tile img {
    border-radius: 16px;
  }

  .hero-actions {
    gap: 6px;
  }

  .hero-search-button {
    min-width: 0;
    min-height: 44px;
    flex: 1 1 auto;
    padding-inline: 11px;
  }

  .hero-search-button span {
    display: block;
    font-size: 12px;
  }

  .hero-action-button,
  .hero-profile-button {
    width: 44px;
    height: 44px;
  }

  .home-welcome {
    grid-template-columns: minmax(0, 1fr) 116px;
  }

  .home-welcome-copy > p:not(.home-kicker) {
    font-size: 13px;
  }

  .home-community-illustration {
    width: 180%;
    transform: translateX(30%);
  }

  .home-secondary-actions {
    grid-template-columns: 1fr;
  }

  .home-secondary-action:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .home-highlight-card {
    grid-template-columns: 62px minmax(0, 1fr) 14px;
    gap: 11px;
    padding: 12px;
  }

  .home-section-heading {
    align-items: flex-start;
  }

  .home-section-heading h2 {
    font-size: 20px;
  }

  .home-section-links {
    align-items: flex-end;
    flex-direction: column;
    gap: 0;
  }

  .home-section-link {
    min-height: 28px;
    font-size: 11px;
  }

  .home-event-date,
  .home-highlight-mark,
  .home-mentor-avatar {
    width: 60px;
    height: 66px;
  }
}

.ask-message-text,
.chat-message p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.profile-form.is-consent-refresh > :not(.registration-legal-access):not(.consent-field):not(button[type="submit"]) {
  display: none !important;
}

.profile-consent-alert {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.profile-consent-alert p {
  margin: 6px 0 12px;
}

.profile-consent-alert .primary-button {
  width: 100%;
}

.content-proposal-button, .content-proposal-dialog .secondary-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 12px 16px; border: 1px solid var(--accent); border-radius: var(--radius-control);
  background: var(--accent-soft); color: var(--text); font: inherit; font-weight: 760;
  line-height: 1.3; cursor: pointer; white-space: normal;
}
.content-proposal-button { margin-bottom: 16px; }
.content-proposal-button:focus-visible, .content-proposal-dialog .secondary-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.content-proposal-dialog .secondary-button:disabled { opacity: .55; cursor: wait; }
.content-proposal-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-width: 0; }
#eventsView .content-proposal-button { margin: 0; }
.content-proposal-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; }
.content-proposal-dialog .request-form { margin: 0; padding: 20px; }
.content-proposal-dialog .section-heading { align-items: start; gap: 12px; }
.content-proposal-dialog [hidden] { display: none !important; }
.content-proposal-dialog input, .content-proposal-dialog textarea { min-width: 0; width: 100%; }
.content-proposal-dialog .dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.content-proposal-dialog .dialog-actions button { flex: 1 1 150px; min-height: 44px; }

#companiesView > label { display: grid; gap: 6px; margin-block: 12px; }
#companiesView input, #companiesView select { min-width: 0; width: 100%; }
.company-catalog-card { display: block; margin-block: 12px; padding: 18px; overflow-wrap: anywhere; }
.company-catalog-card h3 { margin-block: 8px; }
.company-catalog-card p { white-space: pre-line; }
.company-catalog-logo { width: 100px; height: 60px; object-fit: contain; object-position: left center; }

/* First signed entry shows provider data and explicit required consents. */
.profile-form.is-provider-entry [data-profile-name-fields],
.profile-form.is-provider-entry [data-registration-detail] {
  display: none;
}
.provider-entry-preview:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 16px;
}
.provider-entry-preview img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.provider-entry-preview p { margin: 8px 0 0; }
.profile-form.is-consent-refresh .provider-public-disclosure { display: none; }

/* Account actions must respect server-backed visibility and capability gates. */
.settings-row[hidden] {
  display: none !important;
}
