:root {
  color-scheme: light;
  --page: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --surface-3: #e7eaee;
  --ink: #101522;
  --ink-soft: #2f3848;
  --muted: #687386;
  --line: #dfe2e7;
  --line-strong: #c9ced6;
  --accent: #155eef;
  --accent-strong: #0d49c7;
  --accent-soft: #dfeaff;
  --accent-faint: #f2f6ff;
  --accent-panel: #124fbe;
  --success: #15765d;
  --success-soft: #e4f4ef;
  --warm: #e85d52;
  --warm-strong: #bd443d;
  --warm-soft: #fff0ed;
  --danger: #c7403b;
  --danger-soft: #fdebea;
  --nav: #111722;
  --shadow-1: 0 8px 24px rgba(29, 47, 78, 0.08);
  --shadow-2: 0 24px 64px rgba(21, 40, 74, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-small: 10px;
  --radius-control: 12px;
  --radius-panel: 20px;
}

.session-boot {
  display: none;
}

html.is-restoring-session .stage,
html.is-restoring-session #support-launcher,
html.is-restoring-session #support-widget {
  display: none !important;
}

html.is-restoring-session .session-boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #171831;
  background: #f7f8fc;
  font: 600 17px/1.4 Inter, Arial, sans-serif;
}

.session-boot img {
  width: 42px;
  height: 42px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0c1119;
  --surface: #131a24;
  --surface-2: #192230;
  --surface-3: #223044;
  --ink: #f5f7fb;
  --ink-soft: #d2d9e5;
  --muted: #9aa7b9;
  --line: #293548;
  --line-strong: #3a4960;
  --accent: #6f9cff;
  --accent-strong: #93b5ff;
  --accent-soft: #203b72;
  --accent-faint: #17233a;
  --accent-panel: #183f8a;
  --success: #62c5a7;
  --success-soft: #16372f;
  --warm: #ff857b;
  --warm-strong: #ffaaa3;
  --warm-soft: #402422;
  --danger: #ff817a;
  --danger-soft: #442322;
  --nav: #0b1018;
  --shadow-1: 0 8px 28px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 24px 72px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body.is-registering,
body.is-auth {
  overflow-x: hidden;
  overflow-y: auto;
}

body,
button,
input,
textarea,
select {
  letter-spacing: 0;
}

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

button {
  margin: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

button:disabled {
  cursor: default;
  opacity: 0.44;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--accent-strong);
  transform: translateY(-140%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.stage,
.phone-shell {
  min-height: 100dvh;
}

.phone-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr);
  grid-template-areas:
    "navigation topbar"
    "navigation content";
  background: var(--page);
  transition: filter 260ms var(--ease), transform 260ms var(--ease);
}

.topbar {
  grid-area: topbar;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0 clamp(28px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.brand-copy {
  display: none;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.brand-copy > span {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.brand-logo,
.register-logo,
.profile-cover-logo {
  position: relative;
  flex: 0 0 auto;
  color: var(--accent);
}

.brand-logo {
  width: 54px;
  height: 34px;
}

.brand-logo span,
.register-logo span,
.profile-cover-logo span {
  position: absolute;
  display: block;
  background: currentColor;
}

.logo-left {
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 56% 50%, 100% 100%, 0 100%);
}

.logo-dot {
  top: 24%;
  left: 38%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.logo-triangle {
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.views {
  grid-area: content;
  min-width: 0;
  height: calc(100dvh - 78px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 38px clamp(28px, 4vw, 58px) 64px;
}

.view {
  display: none;
  width: min(100%, 1280px);
  margin: 0 auto;
  animation: view-enter 240ms var(--ease) both;
}

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

.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.panel-kicker::before {
  width: 16px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero-strip,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.hero-strip h1,
.section-head h2 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 38px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

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

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.secondary-button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.danger-button {
  color: #ffffff;
  background: var(--danger);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active {
  transform: scale(0.98);
}

/* Registration */

.phone-shell.is-auth {
  display: block;
  background: var(--surface);
}

.phone-shell.is-auth .topbar,
.phone-shell.is-auth .bottom-nav {
  display: none;
}

.phone-shell.is-auth .views {
  width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  padding: 0;
  background: var(--surface);
}

.auth-view {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
}

.auth-view.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(430px, 0.78fr);
}

.auth-brand-panel {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 54px clamp(44px, 6vw, 96px) 42px;
  overflow: hidden;
  color: #ffffff;
  background-color: #07336b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}

.auth-brand-panel::after {
  width: 420px;
  height: 420px;
  position: absolute;
  right: -170px;
  bottom: -130px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 84px rgba(255, 255, 255, 0.018);
}

.auth-brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-brand-lockup .register-logo {
  width: 84px;
  height: 51px;
  margin: 0;
  color: #ffffff;
}

.auth-brand-lockup > span {
  max-width: 190px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 80px 0;
}

.auth-edition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a9c8f4;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-edition::before {
  width: 22px;
  height: 2px;
  content: "";
  background: #7ca8ff;
}

.auth-brand-copy h1 {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: 64px;
  font-weight: 520;
  line-height: 0.98;
  text-wrap: balance;
}

.auth-brand-copy h2 {
  max-width: 690px;
  margin: 34px 0 0;
  color: #c7dcfb;
  font-size: 27px;
  font-weight: 520;
  line-height: 1.18;
  text-wrap: balance;
}

.auth-brand-copy p {
  max-width: 590px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.65;
}

.auth-principles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-principles > span {
  min-width: 0;
  padding: 18px 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 700;
}

.auth-principles strong {
  display: block;
  margin-bottom: 5px;
  color: #7ca8ff;
  font-family: var(--mono);
  font-size: 10px;
}

.auth-access-panel {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 54px clamp(34px, 5vw, 78px);
  background: var(--surface);
}

.auth-form-shell {
  width: min(100%, 460px);
}

.auth-form-shell h2 {
  margin: 14px 0 0;
  font-size: 34px;
  line-height: 1.08;
}

.auth-form-shell > p:not(.auth-legal) {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-mode {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.auth-mode button {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.auth-mode button::after {
  height: 3px;
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  content: "";
  background: transparent;
  transform: scaleX(0.4);
  transition: background 180ms ease-out, transform 220ms var(--ease);
}

.auth-mode button.is-active {
  color: var(--accent-strong);
}

.auth-mode button.is-active::after {
  background: var(--accent);
  transform: scaleX(1);
}

.auth-form {
  display: grid;
  gap: 17px;
  margin-top: 28px;
}

.auth-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface-2);
  transition: border-color 180ms ease-out, background 180ms ease-out, box-shadow 180ms ease-out;
}

.auth-form input:focus {
  border-color: var(--accent);
  background: var(--surface);
  outline: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 5px;
}

.auth-error {
  margin: -3px 0 0;
  padding: 10px 12px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 11px;
  font-weight: 700;
}

.auth-legal {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.auth-legal button {
  min-height: 28px;
  padding: 0 2px;
  color: var(--accent-strong);
  font-weight: 750;
}

.phone-shell.is-registering {
  display: block;
  background: var(--surface);
}

.phone-shell.is-registering .topbar,
.phone-shell.is-registering .bottom-nav {
  display: none;
}

.phone-shell.is-registering .views {
  width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  padding: 48px 24px;
  background: var(--surface);
}

.onboarding-view.is-active {
  min-height: calc(100dvh - 96px);
  display: grid;
  place-items: center;
}

.profile-form {
  width: min(100%, 680px);
  margin: 0 auto;
}

.register-back,
.back-button {
  min-height: 40px;
  margin-bottom: 24px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.register-back:hover,
.back-button:hover {
  color: var(--accent-strong);
}

.register-logo {
  width: 88px;
  height: 54px;
  margin-bottom: 24px;
}

.register-head h1 {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 44px;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.register-head p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.step-meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 34px 0 16px;
}

.step-meter span {
  height: 4px;
  background: var(--surface-3);
  transform-origin: left;
  transition: background 220ms ease-out;
}

.step-meter span.is-active {
  background: var(--accent);
}

.form-step {
  display: none;
  min-height: 410px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.form-step.is-active {
  display: grid;
  align-content: start;
  gap: 20px;
  animation: form-step-enter 240ms var(--ease) both;
}

.step-head h2 {
  margin: 8px 0 2px;
  font-size: 29px;
  line-height: 1.1;
}

.profile-form label:not(.photo-picker) > span:first-child,
.region-field > span,
.settings-group-title {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.profile-form input,
.profile-form textarea,
.search-field,
.region-field select,
.thread-search,
.message-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}

.profile-form input,
.profile-form textarea {
  min-height: 50px;
  padding: 13px 14px;
}

.profile-form textarea {
  min-height: 120px;
  resize: vertical;
}

.profile-form input:focus,
.profile-form textarea:focus,
.search-field:focus-within,
.thread-search:focus-within,
.message-form:focus-within,
.region-field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.profile-form .is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 11%, transparent);
}

.form-error {
  margin: 12px 0 0;
  padding: 12px 14px;
  color: var(--danger);
  background: var(--danger-soft);
  font-size: 13px;
  font-weight: 650;
}

.photo-picker {
  min-height: 96px;
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.photo-picker:hover {
  border-color: var(--accent);
}

.photo-picker:has(input:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent);
}

.photo-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
}

.photo-picker > span:last-child strong,
.photo-picker > span:last-child small {
  display: block;
}

.photo-picker > span:last-child strong {
  color: var(--ink);
  font-size: 14px;
}

.photo-picker > span:last-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.photo-preview,
.profile-photo,
.card-avatar,
.thread-avatar,
.chat-avatar,
.partner-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #ffffff;
  background: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
}

.photo-preview {
  width: 68px;
  height: 68px;
  margin: 0;
  border-radius: 6px;
  font-size: 14px;
}

.photo-preview img,
.profile-photo img,
.card-avatar img,
.thread-avatar img,
.chat-avatar img,
.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tag-picker,
.profile-tags,
.partner-tags,
.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-picker button,
.profile-tags span,
.partner-tags span,
.match-reasons span,
.interest-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
}

.tag-picker button:hover,
.tag-picker button.is-selected {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.profile-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.profile-form-actions.is-first-step,
.profile-form-actions.is-last-step {
  grid-template-columns: 1fr;
}

/* Navigation */

.bottom-nav {
  grid-area: navigation;
  z-index: 20;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 18px 18px;
  border-right: 0;
  color: #ffffff;
  background: var(--nav);
}

.bottom-nav button {
  position: relative;
  min-height: 52px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-radius: var(--radius-control);
  color: rgba(255, 255, 255, 0.66);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}

.bottom-nav button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.bottom-nav button.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.bottom-nav > button.is-active::before {
  width: 3px;
  height: 22px;
  position: absolute;
  top: 50%;
  left: 0;
  content: "";
  background: #8cb3ff;
  transform: translateY(-50%);
}

.bottom-nav button:active {
  transform: scale(0.98);
}

.bottom-nav svg,
.icon-button svg,
.round-action svg,
.search-field svg,
.thread-search svg,
.chat-tools svg,
.dialog-close svg,
.tour-visual svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
}

.nav-badge {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 11px;
  color: #ffffff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.nav-level {
  min-width: 24px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
}

.desktop-topbar-context {
  min-width: 0;
}

.desktop-topbar-context span,
.desktop-topbar-context strong {
  display: block;
}

.desktop-topbar-context span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.desktop-topbar-context strong {
  margin-top: 3px;
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-materials {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
  transition: color 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.topbar-materials:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.topbar-materials:active {
  transform: scale(0.98);
}

.topbar-materials svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-nav-brand {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 4px 12px 26px;
}

.desktop-nav-brand .brand-logo {
  width: 62px;
  height: 39px;
  color: #ffffff;
}

.desktop-nav-brand > span {
  min-width: 0;
}

.desktop-nav-brand strong,
.desktop-nav-brand small {
  display: block;
}

.desktop-nav-brand strong {
  font-size: 14px;
  line-height: 1.1;
}

.desktop-nav-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 650;
}

.desktop-nav-label {
  margin: 2px 14px 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.desktop-nav-progress {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.08);
}

.desktop-nav-progress span,
.desktop-nav-progress strong,
.desktop-nav-progress small {
  display: block;
}

.desktop-nav-progress span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
  font-weight: 750;
}

.desktop-nav-progress strong {
  margin-top: 7px;
  font-size: 16px;
}

.desktop-nav-progress small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 9px;
}

.desktop-nav-user {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.nav-user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-small);
  color: #07336b;
  background: #dce9ff;
  font-size: 12px;
  font-weight: 850;
}

.nav-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-nav-user > span:nth-child(2) {
  min-width: 0;
}

.desktop-nav-user strong,
.desktop-nav-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav-user strong {
  font-size: 11px;
}

.desktop-nav-user small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
}

.desktop-nav-user > button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  border-radius: var(--radius-small);
  color: rgba(255, 255, 255, 0.72);
}

.desktop-nav-user > button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.desktop-nav-user > .nav-logout:hover {
  color: #ffb0aa;
  background: rgba(232, 93, 82, 0.16);
}

.desktop-nav-user > button svg {
  width: 18px;
  height: 18px;
}

/* Discovery */

.discovery-toolbar {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) 220px auto;
  align-items: end;
  gap: 10px;
  margin-top: 28px;
}

.segment-control {
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.segment-control button {
  min-width: 112px;
  padding: 0 16px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.segment-control button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(28, 45, 73, 0.08);
}

.search-field,
.thread-search {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search-field svg,
.thread-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--muted);
}

.search-field input,
.thread-search input,
.message-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 74%, transparent);
}

.region-field select {
  height: 50px;
  padding: 0 14px;
}

.clear-filters {
  min-height: 50px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.clear-filters:hover {
  color: var(--accent-strong);
}

.filter-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.deck {
  position: relative;
  min-height: 540px;
  margin-top: 20px;
}

.deck-state,
.match-card {
  width: 100%;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.deck-state {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 48px;
  text-align: center;
}

.deck-loading {
  grid-template-columns: repeat(3, 8px);
  gap: 8px;
}

.deck-loading span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: loading-pulse 900ms ease-in-out infinite alternate;
}

.deck-loading span:nth-child(2) {
  animation-delay: 120ms;
}

.deck-loading span:nth-child(3) {
  animation-delay: 240ms;
}

.deck-loading p {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  color: var(--muted);
}

.deck-empty .empty-mark {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
}

.deck-empty h2 {
  margin: 12px 0 0;
  font-size: 28px;
}

.deck-empty p {
  max-width: 470px;
  margin: 10px 0 0;
  color: var(--muted);
}

.deck-empty > div {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.match-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  touch-action: pan-y;
  transition: transform 240ms var(--ease), opacity 180ms ease-out, box-shadow 180ms ease-out;
}

.match-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--accent);
}

.match-card:hover {
  box-shadow: var(--shadow-2);
}

.match-card.is-dragging {
  cursor: grabbing;
  transition: none;
}

.card-head {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
}

.card-identity {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 7px;
  font-size: 16px;
}

.card-person,
.card-region {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.card-person {
  margin-bottom: 2px;
}

.card-region {
  margin-top: 5px;
}

.card-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 5px;
}

.card-meta-line .card-region {
  margin-top: 0;
}

.card-level {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.card-identity h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.match-signal {
  min-width: 104px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.match-signal strong,
.match-signal span {
  display: block;
}

.match-signal strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
}

.match-signal span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.collaboration-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.collaboration-brief section {
  min-height: 164px;
  padding: 26px 30px;
}

.collaboration-brief section + section {
  border-left: 1px solid var(--line);
}

.collaboration-brief section > span,
.context-label,
.profile-story > span,
.profile-interests > span {
  display: block;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.brief-offer h3 {
  margin: 12px 0 0;
  font-size: 21px;
  line-height: 1.3;
}

.brief-offer p,
.brief-need p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.brief-need p {
  font-size: 17px;
  font-weight: 650;
}

.match-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 22px 30px 0;
}

.match-reasons {
  margin-top: 10px;
}

.match-reasons span {
  min-height: 28px;
  border: 0;
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.interest-badge {
  border-color: color-mix(in srgb, var(--success) 28%, var(--line));
  color: var(--success);
  background: var(--success-soft);
}

.card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 30px 26px;
}

.privacy-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.action-dock {
  display: grid;
  grid-template-columns: 146px 166px;
  gap: 9px;
}

.round-action {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out, transform 180ms ease-out;
}

.round-action svg {
  width: 20px;
  height: 20px;
}

.round-action.skip:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}

.round-action.like {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.round-action.like:hover {
  background: var(--accent-strong);
}

.round-action:active {
  transform: scale(0.98);
}

.compact-cards .collaboration-brief section {
  min-height: 126px;
}

.compact-cards .match-context {
  display: none;
}

/* Messages */

.messages-layout {
  height: calc(100dvh - 210px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.thread-column {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.thread-search {
  width: calc(100% - 28px);
  min-height: 44px;
  margin: 14px;
  background: var(--surface-2);
}

.thread-list {
  height: calc(100% - 72px);
  overflow: auto;
}

.thread-item {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  text-align: left;
  transition: background 180ms ease-out;
}

.thread-item:hover,
.thread-item.is-active {
  background: var(--accent-faint);
}

.thread-item.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.thread-avatar,
.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  font-size: 12px;
}

.thread-copy,
.thread-copy strong,
.thread-copy span,
.thread-copy small {
  min-width: 0;
  display: block;
}

.thread-copy strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-copy strong em {
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 7px;
  padding: 2px 5px;
  border-radius: 9px;
  color: #ffffff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.thread-copy > span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.chat-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
}

.chat-head {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.icon-button svg {
  width: 22px;
  height: 22px;
}

.chat-head > div:not(.chat-tools) {
  min-width: 0;
}

.chat-person {
  grid-column: 2 / 4;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 4px;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.chat-person:hover,
.chat-person:focus-visible {
  background: var(--surface-2);
}

.chat-person-copy { min-width: 0; }
.chat-person-copy > span {
  display: block;
  color: var(--success);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.chat-person-copy > small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head > div > span {
  display: block;
  color: var(--success);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-head h3 {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-tools {
  display: flex;
  gap: 4px;
}

.chat-tools button {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.chat-tools button:hover,
.chat-tools button[aria-pressed="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.message-stack {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  background: color-mix(in srgb, var(--surface-2) 58%, var(--surface));
}

.bubble {
  width: fit-content;
  max-width: min(72%, 620px);
  margin: 9px 0;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
}

.bubble.them {
  border: 1px solid var(--line);
  background: var(--surface);
}

.bubble.me {
  margin-left: auto;
  color: #ffffff;
  background: var(--accent);
}

.bubble.system {
  max-width: 100%;
  margin: 8px auto 16px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  text-align: center;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.message-form input {
  min-height: 48px;
  padding: 0 14px;
  background: var(--surface-2);
}

.message-form button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: var(--accent);
}

.message-form button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-placeholder,
.empty-state {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 36px;
  color: var(--muted);
  text-align: center;
}

.chat-panel > .chat-placeholder,
.chat-panel > .partner-profile {
  grid-row: 1 / -1;
}

.chat-placeholder .brand-logo {
  width: 76px;
  height: 46px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.chat-placeholder strong,
.empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state.small {
  min-height: 260px;
}

.collab-code {
  margin-bottom: 18px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-faint);
}

.collab-code > div strong {
  display: block;
  margin-top: 5px;
}

.collab-code ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.collab-code li::marker {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
}

.collab-code p {
  margin: 15px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.partner-profile {
  min-height: 100%;
  overflow: auto;
  padding: 28px;
}

.partner-avatar {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 8px;
}

.profile-photo-open {
  display: block;
  width: fit-content;
  padding: 0;
  border-radius: 13px;
  cursor: zoom-in;
}
.profile-photo-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.profile-photo-open .partner-avatar { display: grid; margin-bottom: 18px; }

.partner-profile h3 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.partner-profile dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 26px 0 0;
}

.partner-profile dl div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.partner-profile dl .wide {
  grid-column: 1 / -1;
}

.partner-profile dt {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.partner-profile dd {
  margin: 7px 0 0;
  color: var(--ink-soft);
}

/* Profile */

.profile-card {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "cover cover"
    "hero hero"
    "snapshot status"
    "offer need"
    "interests interests";
  gap: 0 32px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.profile-cover {
  grid-area: cover;
  min-height: 190px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--accent);
}

.profile-cover::after {
  width: 360px;
  height: 2px;
  position: absolute;
  right: -80px;
  bottom: 56px;
  content: "";
  background: rgba(255, 255, 255, 0.36);
  transform: rotate(-18deg);
}

.profile-cover-logo {
  width: 160px;
  height: 98px;
  position: absolute;
  top: 34px;
  right: 38px;
  color: rgba(255, 255, 255, 0.92);
}

.profile-hero {
  grid-area: hero;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin: -66px 28px 0;
}

.profile-card .profile-photo {
  width: 132px;
  height: 132px;
  position: relative;
  z-index: 3;
  border: 6px solid var(--surface);
  border-radius: 8px;
  background: var(--accent-strong);
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(12, 29, 59, 0.2);
}

.profile-title {
  min-width: 0;
  padding-bottom: 8px;
}

.profile-title h3 {
  margin: 7px 0 0;
  font-size: 31px;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.profile-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

.profile-hero > .primary-button {
  margin-bottom: 8px;
}

.profile-snapshot {
  grid-area: snapshot;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.profile-snapshot div {
  min-width: 0;
  padding: 17px 8px;
  text-align: center;
}

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

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

.profile-snapshot strong {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 24px;
}

.profile-snapshot span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.profile-status {
  grid-area: status;
  min-height: 72px;
  display: flex;
  align-self: end;
  align-items: center;
  gap: 12px;
  margin: 28px 28px 0 0;
  padding: 14px 18px;
  background: var(--success-soft);
}

.profile-status > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 14%, transparent);
}

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

.profile-status small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.profile-story {
  min-height: 156px;
  margin-top: 24px;
  padding: 23px 0;
  border-top: 1px solid var(--line);
}

.profile-story-offer {
  grid-area: offer;
  margin-left: 28px;
}

.profile-story-need {
  grid-area: need;
  margin-right: 28px;
}

.profile-story p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.profile-interests {
  grid-area: interests;
  margin-top: 4px;
  padding: 22px 28px 28px;
  border-top: 1px solid var(--line);
}

.profile-tags {
  margin-top: 12px;
}

.hide-profile-stats .profile-snapshot {
  display: none;
}

.hide-profile-stats .profile-status {
  grid-column: 1 / -1;
  margin-left: 28px;
}

/* Levels */

.levels-view {
  max-width: 1120px;
}

.levels-head > p {
  max-width: 410px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
  text-wrap: pretty;
}

.levels-head h2 {
  color: #07336b;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.04;
}

:root[data-theme="dark"] .levels-head h2 {
  color: var(--ink);
}

.levels-dashboard {
  display: grid;
  gap: 34px;
  margin-top: 28px;
}

.levels-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.level-overview,
.referral-panel {
  min-width: 0;
  border-radius: 8px;
}

.level-overview {
  min-height: 354px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  grid-template-areas: "copy emblem";
  align-items: center;
  gap: 52px;
  padding: 44px 52px;
  overflow: hidden;
  color: #ffffff;
  background-color: #082f67;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  box-shadow: 0 22px 52px color-mix(in srgb, var(--accent-panel) 24%, transparent);
}

.level-emblem {
  grid-area: emblem;
  width: 224px;
  height: 224px;
  position: relative;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(8, 47, 103, 0.72);
}

.level-emblem::before,
.level-emblem::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.level-emblem::before {
  inset: -18px;
  border-style: dashed;
}

.level-emblem::after {
  inset: 15px;
}

.level-emblem small,
.level-emblem strong {
  display: block;
}

.level-emblem small {
  position: relative;
  z-index: 1;
  order: 2;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.level-emblem strong {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 82px;
  font-weight: 450;
  line-height: 1;
}

.level-overview-copy {
  grid-area: copy;
  min-width: 0;
}

.level-name {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.level-overview h3 {
  max-width: 760px;
  margin: 13px 0 0;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

.level-overview h3 > span {
  color: #a9c8f4;
}

.level-overview p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.level-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--mono);
  font-size: 10px;
}

.level-progress {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.level-progress > span {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: left;
  background: #ffffff;
  transition: transform 520ms var(--ease);
}

.level-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--mono);
  font-size: 10px;
}

.level-scale .is-reached {
  color: #ffffff;
}

.referral-panel {
  min-height: 184px;
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(320px, 1.32fr) auto;
  grid-template-areas:
    "kicker link actions"
    "title link actions"
    "copy link actions";
  align-items: center;
  column-gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.referral-panel h3 {
  grid-area: title;
  margin: 14px 0 0;
  font-size: 23px;
  line-height: 1.15;
}

.referral-panel > p {
  grid-area: copy;
  max-width: 44ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.referral-link {
  grid-area: link;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.referral-link > span {
  min-width: 0;
  padding: 0 13px;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.referral-link button {
  min-height: 46px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: var(--accent-strong);
}

.referral-link svg,
.referral-actions svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.referral-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
}

.referral-panel > .panel-kicker {
  grid-area: kicker;
}

.referral-actions .primary-button {
  gap: 9px;
}

.referral-actions .primary-button svg {
  width: 18px;
  height: 18px;
}

.referral-actions > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.referral-actions > span strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
}

.missions-section,
.materials-section,
.rewards-section {
  min-width: 0;
}

.materials-section {
  margin-top: 2px;
}

.levels-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.levels-section-head h3 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.15;
}

.levels-section-head > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.levels-section-head > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.mission-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 14px;
}

.mission-card {
  position: relative;
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease;
}

.mission-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  box-shadow: 0 14px 34px rgba(29, 47, 78, 0.11);
  transform: translateY(-2px);
}

.mission-card.is-featured {
  min-height: 454px;
  grid-row: span 2;
  border-color: transparent;
  color: #ffffff;
  background-color: var(--nav);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  box-shadow: 0 22px 52px rgba(17, 23, 34, 0.22);
}

.mission-card.is-featured::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -70px;
  width: 210px;
  aspect-ratio: 1;
  border: 38px solid var(--warm);
  border-radius: 50%;
  opacity: 0.9;
  pointer-events: none;
}

.mission-card.is-done {
  border-color: color-mix(in srgb, var(--success) 24%, var(--line));
  background: color-mix(in srgb, var(--success-soft) 58%, var(--surface));
  box-shadow: none;
}

.mission-card.is-pending {
  border-color: color-mix(in srgb, var(--warm) 28%, var(--line));
  background: color-mix(in srgb, var(--warm-soft) 58%, var(--surface));
}

.mission-card > header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.mission-state {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: var(--radius-small);
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-state svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mission-card.is-done .mission-state {
  color: var(--success);
  background: color-mix(in srgb, var(--success-soft) 72%, var(--surface));
}

.mission-card.is-pending .mission-state {
  color: var(--warm-strong);
  background: color-mix(in srgb, var(--warm-soft) 74%, var(--surface));
}

.mission-card.is-featured .mission-number {
  color: rgba(255, 255, 255, 0.55);
}

.mission-card.is-featured .mission-state {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.mission-visual {
  position: relative;
  z-index: 1;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
}

.mission-visual > span {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.mission-visual > span::before,
.mission-visual > span::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}

.mission-visual > span::before {
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--accent);
}

.mission-visual > span::after {
  right: 0;
  width: 5px;
  height: 5px;
  background: var(--line-strong);
}

.mission-visual strong {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 650;
  line-height: 1;
}

.mission-card.is-featured .mission-visual {
  height: 120px;
  margin: 52px 0 28px;
}

.mission-card.is-featured .mission-visual > span {
  background: rgba(255, 255, 255, 0.22);
}

.mission-card.is-featured .mission-visual > span::before {
  width: 16px;
  height: 16px;
  background: var(--warm);
  box-shadow: 0 0 0 9px rgba(232, 93, 82, 0.16);
}

.mission-card.is-featured .mission-visual > span::after {
  background: rgba(255, 255, 255, 0.5);
}

.mission-card.is-featured .mission-visual strong {
  color: #ffffff;
  font-size: 66px;
}

.mission-card h4 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
  line-height: 1.12;
}

.mission-card > p {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.mission-card.is-featured h4 {
  max-width: 420px;
  font-size: 34px;
}

.mission-card.is-featured > p {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.mission-card > footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.mission-card > footer > strong {
  color: var(--warm-strong);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.mission-card > footer > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-align: right;
}

.mission-card > footer > button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-control);
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 10px;
  font-weight: 800;
}

.mission-card > footer > button:hover {
  color: #ffffff;
  background: var(--accent);
}

.mission-card.is-featured > footer {
  padding-right: 82px;
}

.mission-card.is-featured > footer > strong {
  color: #ffaaa3;
}

.mission-card.is-featured > footer > button {
  color: var(--nav);
  background: #ffffff;
}

.mission-card.is-featured > footer > button:hover {
  color: #ffffff;
  background: var(--warm);
}

.video-review-form {
  display: grid;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1fr);
  grid-template-areas:
    "label field"
    "hint field";
  align-items: center;
  gap: 5px 24px;
  margin-top: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.video-review-form label,
.video-review-form small {
  display: block;
}

.video-review-form label {
  grid-area: label;
  font-size: 14px;
  font-weight: 800;
}

.video-review-form > div {
  grid-area: field;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.video-review-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
}

.video-review-form small {
  grid-area: hint;
  color: var(--muted);
  font-size: 10px;
}

.business-materials {
  display: grid;
  grid-template-columns: repeat(5, minmax(214px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 16px;
  scroll-snap-type: x proximity;
}

.business-material {
  min-width: 0;
  min-height: 392px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  scroll-snap-align: start;
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
}

.business-material:hover {
  box-shadow: 0 16px 38px rgba(29, 47, 78, 0.12);
  transform: translateY(-3px);
}

.material-cover {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
}

.material-cover::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 150px;
  aspect-ratio: 1;
  border: 22px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.material-cover.tone-coral {
  background: #c95249;
}

.material-cover.tone-blue {
  background: #174e91;
}

.material-cover.tone-green {
  background: #27695a;
}

.material-cover.tone-violet {
  background: #5a4b78;
}

.material-cover.tone-ink {
  background: #202631;
}

.material-cover > div {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.material-cover > div > span,
.material-cover > div > small {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.material-cover > div > small {
  opacity: 0.66;
}

.material-cover > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 650;
  line-height: 0.95;
}

.material-lines {
  position: absolute;
  top: 55px;
  right: 18px;
  width: 54px;
  display: grid;
  gap: 6px;
}

.material-lines i {
  height: 1px;
  display: block;
  background: rgba(255, 255, 255, 0.42);
}

.material-lines i:nth-child(2) {
  width: 70%;
}

.material-lines i:nth-child(3) {
  width: 42%;
}

.material-copy {
  min-height: 220px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 18px;
}

.material-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.material-meta span {
  color: var(--warm-strong);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.material-meta small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.material-copy h4 {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.2;
}

.material-copy p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.material-copy > a,
.material-copy > button,
.material-locked {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border-radius: var(--radius-control);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.material-copy > a,
.material-copy > button {
  width: 100%;
  border: 0;
  color: #ffffff;
  background: var(--nav);
  text-decoration: none;
  cursor: pointer;
}

.material-copy > a:hover,
.material-copy > button:not(:disabled):hover {
  background: var(--warm);
}

.material-copy > button:disabled {
  opacity: .62;
  cursor: default;
}

.material-copy > a svg,
.material-locked svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.material-locked {
  color: var(--muted);
  background: var(--surface-2);
}

.business-material.is-locked .material-cover {
  filter: saturate(0.38);
}

.rewards-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x proximity;
}

.reward-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--surface-2);
  scroll-snap-align: start;
}

.reward-card.is-unlocked {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.reward-level {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.reward-level span {
  font-family: var(--mono);
  font-size: 30px;
  line-height: 1;
}

.reward-level small {
  font-size: 10px;
  font-weight: 750;
}

.reward-copy {
  padding-top: 18px;
}

.reward-copy strong,
.reward-copy span {
  display: block;
}

.reward-copy strong {
  font-size: 14px;
  line-height: 1.35;
}

.reward-copy span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.reward-action {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface-3);
  font-size: 10px;
  font-weight: 800;
}

.reward-action.is-ready {
  color: #ffffff;
  background: var(--accent);
}

.reward-action.is-ready:hover {
  background: var(--accent-strong);
}

.reward-action.is-sent {
  color: var(--success);
  background: var(--success-soft);
  opacity: 1;
}

/* Settings */

.settings-view {
  max-width: 860px;
}

.settings-card {
  margin-top: 26px;
  padding: 0 28px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.toggle-row,
.check-row,
.setting-action-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.toggle-row > span strong,
.toggle-row > span small,
.setting-action-row strong,
.setting-action-row small {
  display: block;
}

.toggle-row small,
.setting-action-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.toggle-row input {
  width: 48px;
  height: 28px;
  position: relative;
  appearance: none;
  border-radius: 14px;
  background: var(--surface-3);
  cursor: pointer;
  transition: background 180ms ease-out;
}

.toggle-row input::after {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 4px;
  left: 4px;
  border-radius: 50%;
  content: "";
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(13, 28, 51, 0.2);
  transition: transform 180ms var(--ease);
}

.toggle-row input:checked {
  background: var(--accent);
}

.toggle-row input:checked::after {
  transform: translateX(20px);
}

.settings-group-title {
  margin: 28px 0 6px;
  color: var(--accent-strong);
  text-transform: uppercase;
}

.check-row {
  grid-template-columns: 22px minmax(0, 1fr);
  justify-content: start;
  min-height: 52px;
  font-size: 13px;
  font-weight: 650;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.setting-action-row .secondary-button {
  min-height: 40px;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.service-links button {
  min-height: 40px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.service-links button:hover {
  color: var(--accent-strong);
}

.danger-zone {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mobile-account-logout {
  display: none;
}

/* Dialogs and onboarding tour */

.app-dialog,
.product-tour {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 32px 100px rgba(5, 15, 34, 0.34);
}

.app-dialog::backdrop,
.product-tour::backdrop {
  background: rgba(8, 15, 27, 0.5);
  backdrop-filter: blur(8px);
}

body.tour-is-active .phone-shell {
  filter: blur(7px);
  pointer-events: none;
  transform: scale(0.995);
}

.dialog-shell,
.tour-shell {
  position: relative;
  padding: 32px;
}

.dialog-close {
  width: 42px;
  height: 42px;
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.dialog-close svg {
  width: 20px;
  height: 20px;
}

.dialog-shell h2,
.tour-shell h2 {
  margin: 12px 46px 0 0;
  font-size: 29px;
  line-height: 1.12;
}

.password-reset-form {
  display: grid;
  gap: 0;
}

.password-reset-copy {
  margin: 16px 42px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.password-reset-fields {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.password-reset-fields label {
  display: grid;
  gap: 8px;
}

.password-reset-fields label > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.password-reset-fields input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
}

.password-reset-fields input:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-faint);
}

.password-reset-debug {
  margin: 0;
  padding: 13px 15px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  background: var(--accent-faint);
  font-size: 13px;
  line-height: 1.45;
}

.password-reset-error {
  margin: 16px 0 0;
}

.password-reset-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 28px;
}

.password-reset-actions button {
  min-height: 54px;
}

.dialog-copy,
.tour-shell > p {
  margin-top: 17px;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-copy p {
  margin: 0;
}

.dialog-copy ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.dialog-copy li::marker {
  color: var(--accent);
  font-weight: 800;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tour-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.tour-progress > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.tour-progress > div {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: var(--surface-3);
}

.tour-progress > div > span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--accent);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.tour-visual {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
}

.tour-visual svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.7;
}

.tour-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-faint);
}

.tour-hint span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.tour-hint strong {
  font-size: 13px;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tour-actions > div {
  display: flex;
  gap: 8px;
}

.tour-skip {
  min-height: 44px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.toast {
  max-width: calc(100vw - 32px);
  position: fixed;
  z-index: 120;
  right: 24px;
  bottom: 24px;
  padding: 13px 16px;
  border-radius: 6px;
  color: #ffffff;
  background: var(--nav);
  box-shadow: var(--shadow-2);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease-out, transform 220ms var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes form-step-enter {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes loading-pulse {
  from { opacity: 0.35; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(-2px); }
}

@media (max-width: 1120px) and (min-width: 900px) {
  .phone-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .views {
    padding-right: 32px;
    padding-left: 32px;
  }

  .discovery-toolbar {
    grid-template-columns: auto minmax(240px, 1fr) 200px;
  }

  .clear-filters {
    grid-column: 3;
  }

  .level-overview {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 30px;
    padding: 32px;
  }

  .level-emblem {
    width: 168px;
    height: 168px;
  }

  .level-emblem strong {
    font-size: 62px;
  }

  .level-overview h3 {
    font-size: 38px;
  }

  .referral-panel {
    grid-template-columns: minmax(210px, 0.72fr) minmax(260px, 1.28fr);
    grid-template-areas:
      "kicker link"
      "title link"
      "copy actions";
  }

  .referral-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

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

  .mission-card.is-featured {
    min-height: 300px;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .mission-card.is-featured .mission-visual {
    height: 70px;
    margin: 30px 0 20px;
  }
}

@media (max-width: 899px) {
  body {
    overflow: auto;
  }

  .phone-shell {
    display: block;
    min-height: 100dvh;
  }

  .auth-view.is-active {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 440px;
    padding: 38px 34px 28px;
  }

  .auth-brand-copy {
    padding: 58px 0 48px;
  }

  .auth-brand-copy h1 {
    font-size: 50px;
  }

  .auth-access-panel {
    min-height: 570px;
    padding: 54px 34px 72px;
  }

  .topbar {
    min-height: calc(68px + env(safe-area-inset-top));
    position: sticky;
    top: 0;
    padding: env(safe-area-inset-top) 18px 0;
  }

  .brand-copy {
    display: flex;
  }

  .desktop-topbar-context,
  .topbar-materials,
  .desktop-nav-brand,
  .desktop-nav-label,
  .desktop-nav-progress,
  .desktop-nav-user {
    display: none;
  }

  .topbar-actions {
    gap: 0;
  }

  .views {
    width: 100%;
    height: auto;
    min-height: calc(100dvh - 68px);
    overflow: visible;
    padding: 28px 20px calc(102px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

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

  .mission-card.is-featured {
    min-height: 300px;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .mission-card.is-featured .mission-visual {
    height: 70px;
    margin: 30px 0 20px;
  }

  .business-materials {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(226px, 42vw);
    scroll-snap-type: x mandatory;
  }

  .bottom-nav {
    width: min(calc(100% - 24px), 620px);
    min-height: 70px;
    position: fixed;
    z-index: 50;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: center;
    gap: 2px;
    margin: 0 auto;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    background: var(--nav);
    box-shadow: 0 18px 46px rgba(8, 16, 30, 0.28);
  }

  .bottom-nav button {
    min-width: 0;
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 24px auto;
    place-items: center;
    gap: 3px;
    padding: 5px 2px;
    color: #b8c0ce;
    text-align: center;
    font-size: 9px;
  }

  .bottom-nav button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
  }

  .bottom-nav button.is-active {
    color: #ffffff;
    background: var(--accent);
  }

  .bottom-nav > button.is-active::before {
    display: none;
  }

  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }

  .nav-badge {
    position: absolute;
    top: 4px;
    right: 12px;
    color: var(--accent-strong);
    background: #ffffff;
  }

  .nav-level {
    min-width: 18px;
    height: 18px;
    position: absolute;
    top: 3px;
    right: 9px;
    padding: 0 4px;
    border: 0;
    color: var(--accent-strong);
    background: #ffffff;
    font-size: 8px;
  }

  .hero-strip,
  .section-head {
    align-items: start;
  }

  .hero-strip h1,
  .section-head h2 {
    font-size: 34px;
  }

  .discovery-toolbar {
    grid-template-columns: minmax(0, 1fr) 190px auto;
  }

  .segment-control,
  .search-field {
    grid-column: 1 / -1;
  }

  .card-head {
    padding: 24px 22px;
  }

  .collaboration-brief section {
    padding: 24px 22px;
  }

  .match-context,
  .card-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .messages-layout {
    height: calc(100dvh - 232px - env(safe-area-inset-bottom));
    min-height: 500px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "hero"
      "snapshot"
      "status"
      "offer"
      "need"
      "interests";
    gap: 0;
  }

  .profile-hero {
    grid-template-columns: 112px minmax(0, 1fr);
    margin-top: -56px;
  }

  .profile-card .profile-photo {
    width: 112px;
    height: 112px;
  }

  .profile-hero > .primary-button {
    grid-column: 1 / -1;
    margin: 6px 0 0;
  }

  .profile-snapshot,
  .profile-status,
  .profile-story {
    margin-right: 28px;
    margin-left: 28px;
  }

  .profile-status {
    margin-top: 16px;
  }

  .hide-profile-stats .profile-status {
    grid-column: auto;
  }

  .levels-overview-grid {
    grid-template-columns: 1fr;
  }

  .level-overview,
  .referral-panel {
    min-height: 270px;
  }

  .level-overview {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 30px;
    padding: 32px;
  }

  .level-emblem {
    width: 168px;
    height: 168px;
  }

  .level-emblem strong {
    font-size: 62px;
  }

  .level-overview h3 {
    font-size: 38px;
  }

  .referral-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .referral-link {
    margin-top: auto;
  }

  .referral-actions {
    flex-direction: row;
    margin-top: 12px;
  }

  .rewards-track {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
  }
}

/* Focused account access and profile setup */

.phone-shell.is-auth .views,
.phone-shell.is-registering .views {
  padding: 0;
  background: var(--surface);
}

.auth-view.is-active {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 64px 24px 54px;
  background: var(--surface);
}

.auth-form-shell {
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-wordmark,
.register-wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-wordmark {
  justify-content: center;
}

.auth-wordmark .register-logo,
.register-wordmark .register-logo {
  width: 68px;
  height: 42px;
  flex: 0 0 auto;
  margin: 0;
}

.auth-wordmark > span,
.register-wordmark > span {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

.auth-wordmark strong,
.register-wordmark strong {
  font-size: 15px;
  font-weight: 800;
}

.auth-wordmark small,
.register-wordmark small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.auth-edition {
  display: block;
  margin-top: 56px;
  color: var(--warm-strong);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-transform: none;
}

.auth-edition::before {
  display: none;
}

.auth-form-shell > h1 {
  margin: 12px 0 0;
  font-size: 46px;
  font-weight: 680;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
}

.auth-form-shell > p:not(.auth-legal) {
  max-width: 430px;
  align-self: center;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.auth-form {
  gap: 22px;
  margin-top: 44px;
}

.auth-form label > span {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.auth-form input {
  min-height: 62px;
  padding: 0 18px;
  border-color: var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  font-size: 16px;
}

.auth-form label > .password-field {
  position: relative;
  display: block;
  margin: 0;
  color: inherit;
}

.password-field input {
  padding-right: 62px;
}

.password-field button {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease;
}

.password-field button:hover,
.password-field button.is-visible {
  color: var(--accent-strong);
  background: var(--accent-faint);
}

.password-field svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.forgot-password {
  justify-self: end;
  margin-top: -12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.forgot-password:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.auth-submit {
  min-height: 62px;
  margin-top: 2px;
  border-radius: 16px;
  background: var(--accent);
  font-size: 16px;
  font-weight: 750;
}

.auth-submit:hover {
  background: var(--accent-strong);
}

.auth-error {
  margin: -6px 0 0;
  border-radius: 12px;
}

.auth-mode {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  border: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-mode button {
  min-height: 40px;
  padding: 0 3px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.auth-mode button.is-active {
  display: none;
}

.auth-mode button::after {
  display: none;
}

.auth-mode button:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.auth-legal {
  max-width: 460px;
  align-self: center;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.onboarding-view.is-active {
  min-height: 100dvh;
  display: block;
}

.profile-form {
  width: min(100%, 1360px);
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  margin: 0 auto;
  padding: 34px clamp(28px, 6vw, 86px) 38px;
}

.register-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.register-back {
  min-height: 44px;
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.step-meter {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 34px 0 0;
}

.step-meter span {
  height: 3px;
  border-radius: 2px;
}

.form-step {
  width: 100%;
  min-height: 0;
  padding: 52px 0 42px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.form-step.is-active {
  align-content: start;
  gap: 24px;
}

.form-step:not([data-step="0"]) {
  width: min(100%, 760px);
  justify-self: center;
}

.step-head {
  margin-bottom: 8px;
}

.step-head .panel-kicker {
  color: var(--warm-strong);
  font-size: 11px;
}

.step-head h2 {
  max-width: 980px;
  margin: 12px 0 0;
  font-size: 46px;
  font-weight: 680;
  line-height: 1.06;
  text-wrap: balance;
}

.step-head > p {
  max-width: 620px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.role-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.role-picker button {
  position: relative;
  min-width: 0;
  min-height: 148px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, transform 220ms var(--ease), box-shadow 220ms ease;
}

.role-picker button:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--accent-faint);
  transform: translateY(-2px);
}

.role-picker button:active {
  transform: translateY(0) scale(0.99);
}

.role-picker button.is-selected {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-faint);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.role-picker button.is-selected::after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 50%;
  background: var(--warm);
}

.role-picker svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-picker button > span {
  min-width: 0;
  font-size: 18px;
  font-weight: 560;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-form label:not(.photo-picker) > span:first-child {
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.profile-form input,
.profile-form textarea {
  min-height: 62px;
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 16px;
}

.profile-form textarea {
  min-height: 150px;
  line-height: 1.5;
}

.photo-picker {
  min-height: 106px;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px;
  padding: 14px;
  border-style: solid;
  border-radius: 18px;
}

.photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 14px;
}

.photo-picker > span:last-child strong {
  font-size: 16px;
}

.photo-picker > span:last-child small {
  font-size: 12px;
}

.tag-picker {
  gap: 10px;
}

.tag-picker button {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.profile-form-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-form-actions.is-first-step {
  display: flex;
  justify-content: flex-start;
}

.profile-form-actions.is-last-step {
  display: flex;
  justify-content: space-between;
}

.profile-form-actions .primary-button,
.profile-form-actions .secondary-button {
  min-width: 150px;
  min-height: 54px;
  border-radius: 15px;
}

.profile-form-actions .secondary-button {
  border: 0;
  color: var(--ink-soft);
  background: transparent;
}

.profile-skip {
  min-height: 48px;
  padding: 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.profile-skip:hover,
.profile-form-actions .secondary-button:hover {
  color: var(--accent-strong);
  background: var(--accent-faint);
}

@media (max-width: 899px) {
  .auth-view.is-active {
    min-height: 100dvh;
    padding: 46px 24px 38px;
  }

  .auth-form-shell {
    width: min(100%, 520px);
  }

  .profile-form {
    padding: 26px 24px 30px;
  }

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

  .role-picker button {
    min-height: 132px;
  }
}

@media (max-width: 640px) {
  .auth-view.is-active {
    place-items: start stretch;
    padding: 32px 20px calc(30px + env(safe-area-inset-bottom));
  }

  .auth-wordmark {
    justify-content: flex-start;
  }

  .auth-wordmark .register-logo {
    width: 58px;
    height: 36px;
  }

  .auth-edition {
    margin-top: 44px;
    text-align: left;
  }

  .auth-form-shell > h1 {
    font-size: 38px;
    text-align: left;
  }

  .auth-form-shell > p:not(.auth-legal) {
    align-self: start;
    font-size: 13px;
    text-align: left;
  }

  .auth-form {
    gap: 19px;
    margin-top: 34px;
  }

  .auth-form input,
  .auth-submit {
    min-height: 58px;
  }

  .password-field button {
    top: 5px;
  }

  .auth-mode {
    margin-top: 24px;
  }

  .profile-form {
    min-height: 100dvh;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .register-wordmark .register-logo {
    width: 54px;
    height: 34px;
  }

  .register-wordmark strong {
    font-size: 13px;
  }

  .register-wordmark small {
    font-size: 9px;
  }

  .register-back {
    max-width: 116px;
    font-size: 11px;
    text-align: right;
  }

  .step-meter {
    gap: 7px;
    margin-top: 24px;
  }

  .form-step {
    padding: 34px 0 26px;
  }

  .step-head h2 {
    font-size: 32px;
  }

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

  .role-picker {
    gap: 10px;
  }

  .role-picker button {
    min-height: 116px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .role-picker svg {
    width: 23px;
    height: 23px;
  }

  .role-picker button > span {
    font-size: 14px;
  }

  .role-picker button.is-selected::after {
    width: 8px;
    height: 8px;
    top: 11px;
    right: 11px;
  }

  .profile-form input,
  .profile-form textarea {
    min-height: 58px;
    font-size: 16px;
  }

  .profile-form textarea {
    min-height: 136px;
  }

  .photo-picker {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    border-radius: 16px;
  }

  .photo-preview {
    width: 66px;
    height: 66px;
  }

  .profile-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  .profile-form-actions .primary-button,
  .profile-form-actions .secondary-button {
    min-width: 0;
    flex: 1;
  }

  .profile-form-actions.is-first-step .profile-skip {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .auth-brand-panel {
    min-height: 340px;
    padding: 24px 20px 22px;
  }

  .auth-brand-panel::after {
    width: 230px;
    height: 230px;
    right: -105px;
    bottom: -90px;
  }

  .auth-brand-lockup {
    gap: 11px;
  }

  .auth-brand-lockup .register-logo {
    width: 58px;
    height: 36px;
  }

  .auth-brand-lockup > span {
    max-width: 150px;
    font-size: 8px;
  }

  .auth-brand-copy {
    padding: 34px 0 12px;
  }

  .auth-edition {
    font-size: 8px;
  }

  .auth-brand-copy h1 {
    margin-top: 14px;
    font-size: 36px;
    line-height: 1;
  }

  .auth-brand-copy h2 {
    margin-top: 20px;
    font-size: 19px;
  }

  .auth-brand-copy p {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
  }

  .auth-principles {
    display: none;
  }

  .auth-access-panel {
    min-height: 0;
    place-items: start stretch;
    padding: 38px 20px 54px;
  }

  .auth-form-shell {
    width: 100%;
  }

  .auth-form-shell h2 {
    font-size: 29px;
  }

  .auth-mode {
    margin-top: 24px;
  }

  .auth-form {
    margin-top: 24px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .phone-shell.is-registering .views {
    padding: 28px 16px;
  }

  .onboarding-view.is-active {
    min-height: calc(100dvh - 56px);
  }

  .register-logo {
    width: 72px;
    height: 44px;
    margin-bottom: 18px;
  }

  .register-head h1 {
    font-size: 34px;
  }

  .register-head p {
    font-size: 15px;
  }

  .form-step {
    min-height: 390px;
    padding: 22px 18px;
  }

  .views {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-strip,
  .section-head {
    display: grid;
    gap: 16px;
  }

  .hero-strip h1,
  .section-head h2 {
    font-size: 30px;
  }

  .levels-head > p {
    margin: 0;
    font-size: 13px;
  }

  .levels-head h2 {
    font-size: 30px;
    font-weight: 650;
  }

  .levels-dashboard {
    gap: 34px;
    margin-top: 22px;
  }

  .level-overview {
    min-height: 0;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: "emblem copy";
    gap: 18px;
    padding: 24px 18px;
  }

  .level-emblem {
    width: 86px;
    height: 86px;
  }

  .level-emblem strong {
    font-size: 42px;
  }

  .level-emblem::after {
    inset: 8px;
  }

  .level-emblem::before {
    inset: -7px;
  }

  .level-overview h3 {
    font-size: 27px;
  }

  .level-overview p {
    font-size: 10px;
  }

  .level-progress {
    margin-top: 18px;
  }

  .level-progress-meta {
    margin-top: 17px;
    font-size: 8px;
  }

  .referral-panel {
    min-height: 0;
    padding: 24px 18px;
  }

  .referral-panel h3 {
    font-size: 22px;
  }

  .referral-actions .primary-button {
    min-height: 48px;
    flex: 1;
  }

  .levels-section-head {
    align-items: start;
  }

  .levels-section-head h3 {
    font-size: 22px;
  }

  .levels-section-head > p {
    max-width: 190px;
    font-size: 10px;
  }

  .mission-board {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 12px;
  }

  .mission-card,
  .mission-card.is-featured {
    min-height: 232px;
    grid-column: auto;
    grid-row: auto;
    padding: 18px;
  }

  .mission-card.is-featured {
    min-height: 320px;
  }

  .mission-card.is-featured .mission-visual {
    height: 80px;
    margin: 32px 0 20px;
  }

  .mission-card.is-featured .mission-visual strong {
    font-size: 42px;
  }

  .mission-card.is-featured h4 {
    font-size: 27px;
  }

  .mission-card.is-featured > footer {
    padding-right: 64px;
  }

  .video-review-form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "hint"
      "field";
    gap: 7px;
    padding: 18px;
  }

  .video-review-form > div {
    grid-template-columns: 1fr;
    margin-top: 8px;
  }

  .video-review-form .secondary-button {
    width: 100%;
  }

  .business-materials {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    grid-auto-columns: minmax(248px, 82vw);
    scroll-padding-left: 16px;
  }

  .business-material {
    min-height: 368px;
  }

  .material-cover {
    min-height: 148px;
  }

  .material-cover > strong {
    margin-top: 28px;
    font-size: 40px;
  }

  .rewards-track {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 78vw);
    scroll-padding-left: 16px;
    scroll-snap-type: x mandatory;
  }

  .reward-card {
    min-height: 224px;
  }

  .discovery-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .region-field {
    grid-column: 1;
  }

  .clear-filters {
    grid-column: 2;
  }

  .segment-control button {
    min-width: 0;
  }

  .deck,
  .deck-state,
  .match-card {
    min-height: 520px;
  }

  .card-head {
    align-items: start;
    gap: 12px;
    padding: 20px 16px;
  }

  .card-identity {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 11px;
  }

  .card-avatar {
    width: 54px;
    height: 54px;
  }

  .card-identity h2 {
    font-size: 24px;
  }

  .match-signal {
    min-width: 62px;
    padding-left: 9px;
  }

  .match-signal strong {
    font-size: 21px;
  }

  .collaboration-brief {
    grid-template-columns: 1fr;
  }

  .collaboration-brief section {
    min-height: 0;
    padding: 20px 16px;
  }

  .collaboration-brief section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .brief-offer h3 {
    font-size: 18px;
  }

  .brief-need p {
    font-size: 15px;
  }

  .match-context {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px 16px 0;
  }

  .interest-badge {
    justify-self: start;
  }

  .card-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }

  .action-dock {
    grid-template-columns: 1fr 1.18fr;
  }

  .round-action {
    min-height: 48px;
    padding: 0 10px;
    font-size: 11px;
  }

  .messages-layout {
    height: calc(100dvh - 220px - env(safe-area-inset-bottom));
    min-height: 480px;
    grid-template-columns: 1fr;
  }

  .thread-column {
    border-right: 0;
  }

  .messages-layout.is-thread-open .thread-column[hidden] {
    display: none !important;
  }

  .chat-head {
    grid-template-columns: 40px 42px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .chat-person { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; }

  .chat-avatar {
    width: 42px;
    height: 42px;
  }

  .chat-tools {
    display: grid;
    gap: 0;
  }

  .chat-tools button {
    min-height: 26px;
    padding: 0 6px;
    font-size: 9px;
  }

  .message-stack {
    padding: 14px 10px;
  }

  .bubble {
    max-width: 86%;
  }

  .collab-code ol {
    grid-template-columns: 1fr;
  }

  .message-form {
    padding: 9px;
  }

  .partner-profile {
    padding: 20px 16px;
  }

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

  .partner-profile dl .wide {
    grid-column: auto;
  }

  .profile-cover {
    min-height: 146px;
  }

  .profile-cover-logo {
    width: 112px;
    height: 68px;
    top: 28px;
    right: 22px;
  }

  .profile-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    margin: -48px 16px 0;
  }

  .profile-card .profile-photo {
    width: 92px;
    height: 92px;
    border-width: 5px;
  }

  .profile-title h3 {
    font-size: 23px;
  }

  .profile-hero > .primary-button {
    margin-top: 8px;
  }

  .profile-snapshot,
  .profile-status,
  .profile-story {
    margin-right: 16px;
    margin-left: 16px;
  }

  .profile-snapshot {
    margin-top: 22px;
  }

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

  .profile-snapshot span {
    font-size: 8px;
  }

  .profile-story p {
    font-size: 15px;
  }

  .profile-interests {
    padding-right: 16px;
    padding-left: 16px;
  }

  .settings-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .setting-action-row {
    align-items: start;
    padding: 14px 0;
  }

  .danger-zone,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .dialog-shell,
  .tour-shell {
    padding: 26px 20px;
  }

  .dialog-shell h2,
  .tour-shell h2 {
    margin-right: 0;
    font-size: 25px;
  }

  .tour-hint {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tour-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .tour-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tour-skip {
    align-self: center;
  }

  .toast {
    right: 16px;
    bottom: calc(94px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 370px) {
  .brand-copy strong {
    max-width: 130px;
    font-size: 13px;
  }

  .bottom-nav button {
    font-size: 7px;
  }

  .bottom-nav {
    right: 8px;
    left: 8px;
    width: calc(100% - 16px);
  }

  .nav-badge,
  .nav-level {
    right: 4px;
  }

  .action-dock {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 520px) {
  .password-reset-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .password-reset-form {
    padding: 26px 20px 20px;
  }

  .password-reset-actions {
    grid-template-columns: 1fr;
  }

  .password-reset-actions .primary-button {
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final outcome-card layer: kept after registration defaults by design. */

.goal-picker {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.goal-picker button {
  min-height: 134px;
  grid-column: span 4;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 19px;
  border-color: transparent;
  background: var(--goal-surface, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.goal-picker button:nth-child(4),
.goal-picker button:nth-child(5) {
  grid-column: span 6;
}

.goal-picker button:nth-child(6),
.goal-picker button:nth-child(7),
.goal-picker button:nth-child(8) {
  grid-column: span 4;
}

.goal-picker button:hover,
.goal-picker button.is-selected {
  border-color: var(--goal-accent);
  background: var(--goal-surface);
  box-shadow: inset 0 0 0 1px var(--goal-accent), 0 15px 34px color-mix(in srgb, var(--goal-accent) 12%, transparent);
}

.goal-picker button.is-selected::after {
  width: 22px;
  height: 22px;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--goal-accent);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.goal-picker svg,
.goal-picker button:nth-child(2n) svg,
.goal-picker button:nth-child(3n) svg,
.goal-picker button:nth-child(4n) svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--goal-accent) 22%, transparent);
  border-radius: 12px;
  color: var(--goal-accent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.goal-picker button em {
  display: block;
  margin: 1px 30px 8px 0;
  color: var(--goal-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.goal-picker button strong {
  font-size: 16px;
  line-height: 1.18;
}

.goal-picker button small {
  margin-top: 8px;
  max-width: 34ch;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: 12px;
  line-height: 1.38;
}

@media (max-width: 899px) {
  .goal-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-picker button,
  .goal-picker button:nth-child(4),
  .goal-picker button:nth-child(5),
  .goal-picker button:nth-child(6),
  .goal-picker button:nth-child(7),
  .goal-picker button:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .goal-picker {
    grid-template-columns: 1fr;
  }

  .goal-picker button {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .goal-picker svg,
  .goal-picker button:nth-child(2n) svg,
  .goal-picker button:nth-child(3n) svg,
  .goal-picker button:nth-child(4n) svg {
    width: 42px;
    height: 42px;
  }

  .goal-picker button strong {
    font-size: 15px;
  }

  .goal-picker button small {
    font-size: 11px;
  }
}

/* Sidebar identity and outcome-led onboarding */

@media (min-width: 900px) {
  .desktop-nav-brand .brand-logo {
    color: var(--accent);
  }

  .desktop-nav-user {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .desktop-nav-user > .nav-logout {
    width: auto;
    min-width: 76px;
    min-height: 38px;
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--ink-soft);
    background: var(--surface);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
  }

  .desktop-nav-user > .nav-logout:hover {
    border-color: #c95f56;
    color: #a13f38;
    background: #fff4f2;
  }

  .desktop-nav-user > .nav-logout:active {
    transform: translateY(1px);
  }

  .desktop-nav-user > .nav-logout svg {
    width: 15px;
    height: 15px;
  }
}

/* Desktop dossier redesign: one decisive blue field, quiet controls around it */

@media (min-width: 900px) {
  .phone-shell {
    grid-template-columns: 262px minmax(0, 1fr);
    grid-template-rows: 82px minmax(0, 1fr);
    background: #f4f6fa;
  }

  .topbar {
    min-height: 82px;
    justify-content: space-between;
    padding-inline: clamp(28px, 3.2vw, 52px);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: none;
  }

  .topbar-growth {
    width: min(100%, 850px);
    grid-template-columns: 44px minmax(158px, 0.7fr) minmax(190px, 1fr) auto minmax(155px, 0.72fr);
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar-growth:hover {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .topbar-level-mark {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    box-shadow: 0 10px 24px rgba(45, 80, 217, 0.18);
  }

  .topbar-next-task,
  .topbar-next-reward {
    min-width: 0;
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .topbar-next-points {
    min-width: 58px;
    min-height: 34px;
    border: 1px solid #dce4ff;
    border-radius: 7px;
  }

  .views {
    height: calc(100dvh - 82px);
    padding: 42px clamp(34px, 4.2vw, 68px) 86px;
    background-color: #f4f6fa;
    background-image:
      linear-gradient(rgba(89, 111, 153, 0.038) 1px, transparent 1px),
      linear-gradient(90deg, rgba(89, 111, 153, 0.038) 1px, transparent 1px);
    background-size: 36px 36px;
  }

  .view {
    width: min(100%, 1180px);
  }

  .bottom-nav {
    min-height: 100dvh;
    gap: 4px;
    padding: 18px 14px 14px;
    border-right: 1px solid #dfe4ec;
    background: #fbfcfe;
    box-shadow: none;
  }

  .desktop-nav-brand {
    min-height: 74px;
    gap: 12px;
    margin: 0 2px 18px;
    padding: 4px 8px 19px;
    border-bottom: 1px solid var(--line);
  }

  .desktop-nav-brand .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .desktop-nav-brand strong {
    font-size: 16px;
    font-weight: 720;
  }

  .desktop-nav-brand small {
    margin-top: 5px;
    font-size: 9px;
  }

  .desktop-nav-label {
    margin: 0 11px 8px;
    color: #9aa4b4;
    font-size: 8px;
  }

  .bottom-nav > button {
    min-height: 46px;
    grid-template-columns: 21px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 0 12px;
    border-radius: 7px;
    color: #697386;
    font-size: 12px;
  }

  .bottom-nav > button:hover {
    border-color: #e0e5ed;
    color: var(--ink);
    background: #f1f3f7;
    transform: translateX(2px);
  }

  .bottom-nav > button.is-active {
    border-color: #d9e1ff;
    color: #1f43c7;
    background: #edf1ff;
  }

  .bottom-nav > button.is-active::before {
    width: 3px;
    height: 24px;
    left: -1px;
    background: var(--accent);
  }

  .desktop-nav-user {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    gap: 9px;
    margin-top: auto;
    padding: 13px 4px 1px;
    overflow: hidden;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
  }

  .nav-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }

  .desktop-nav-user strong {
    font-size: 10px;
  }

  .desktop-nav-user small {
    font-size: 8px;
  }

  .desktop-nav-user > .nav-logout {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #778194;
    background: #ffffff;
    box-sizing: border-box;
  }

  .desktop-nav-user > .nav-logout span {
    display: none !important;
  }

  .desktop-nav-user > .nav-logout:hover {
    border-color: #ccd4e0;
    color: var(--ink);
    background: #f2f4f8;
  }

  .hero-strip {
    min-height: 80px;
    align-items: flex-start;
    padding-top: 0;
  }

  .hero-strip h1,
  .section-head h2 {
    max-width: 860px;
    margin-top: 8px;
    font-size: clamp(42px, 4.1vw, 58px);
    font-weight: 610;
    line-height: 1.01;
    letter-spacing: 0;
  }

  .panel-kicker {
    color: #3155d9;
    font-size: 9px;
  }

  .discovery-toolbar {
    grid-template-columns: 224px minmax(300px, 1fr) 184px auto;
    align-items: end;
    gap: 12px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .segment-control,
  .search-field,
  .region-field select {
    height: 54px;
    border: 1px solid #d9dfe8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(35, 52, 87, 0.045);
  }

  .segment-control {
    padding: 4px;
    background: #e9edf3;
  }

  .segment-control button.is-active {
    color: #173aaf;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(31, 52, 103, 0.09);
  }

  .search-field {
    padding-inline: 16px;
  }

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

  .region-field > span {
    margin: 0 0 6px 2px;
  }

  .deck {
    margin-top: 20px;
  }

  .match-card:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "identity identity"
      "brief brief"
      "context actions";
    overflow: hidden;
    border: 1px solid #d8deea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(30, 48, 91, 0.12);
  }

  .match-card::before {
    display: none;
  }

  .card-head {
    min-height: 188px;
    grid-area: identity;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 30px 34px;
    color: #ffffff;
    background-color: #2d50d9;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
  }

  .card-identity {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }

  .card-avatar {
    width: 96px;
    height: 96px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    color: #173356;
    font-size: 27px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 31, 84, 0.24);
  }

  .card-identity h2,
  .card-person,
  .card-identity h2.card-person {
    color: #ffffff;
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 660;
    line-height: 1.02;
  }

  .card-role {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
  }

  .card-company {
    margin-top: 7px;
    color: #ffffff;
    font-size: 14px;
  }

  .card-region {
    color: rgba(255, 255, 255, 0.72);
  }

  .card-level {
    color: #dfe6ff;
  }

  .card-awards {
    min-height: 32px;
    margin-top: 7px;
  }

  .match-signal {
    min-width: 118px;
    padding: 15px 18px 13px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 9px;
    color: var(--accent);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(18, 33, 88, 0.18);
  }

  .match-signal strong {
    color: var(--accent);
    font-size: 34px;
  }

  .match-signal span {
    color: #65739d;
    opacity: 1;
  }

  .collaboration-brief {
    grid-area: brief;
    grid-template-columns: 1.16fr 0.84fr;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

  .collaboration-brief section {
    min-height: 154px;
    padding: 29px 34px 32px;
  }

  .collaboration-brief section + section {
    border-left: 1px solid var(--line);
    background: #f6f8fc;
  }

  .brief-offer > span,
  .brief-need > span,
  .context-label {
    color: #3155d9;
    font-size: 9px;
  }

  .brief-offer h3 {
    max-width: 30ch;
    margin-top: 12px;
    font-size: clamp(23px, 2vw, 29px);
    font-weight: 620;
    line-height: 1.17;
  }

  .brief-offer p,
  .brief-need p {
    margin-top: 10px;
    color: #3e485a;
    font-size: 14px;
  }

  .brief-need p {
    max-width: 34ch;
    font-size: 17px;
    line-height: 1.38;
  }

  .match-context {
    min-height: 148px;
    grid-area: context;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 15px;
    padding: 26px 34px 30px;
    border-right: 1px solid var(--line);
    background: #ffffff;
  }

  .match-reasons {
    gap: 7px;
    margin-top: 12px;
  }

  .match-reasons span {
    min-height: 29px;
    padding-inline: 10px;
    border: 1px solid #dce4ff;
    border-radius: 6px;
    color: #2446b8;
    background: #f2f5ff;
  }

  .interest-badge {
    justify-self: start;
    border-radius: 6px;
  }

  .card-footer {
    min-height: 148px;
    grid-area: actions;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 18px;
    padding: 25px 24px 24px;
    background: #f6f8fc;
  }

  .privacy-note {
    max-width: 31ch;
    color: #707b8e;
    font-size: 10px;
    font-weight: 540;
    line-height: 1.5;
  }

  .action-dock {
    width: 100%;
    grid-template-columns: 1fr 1.12fr;
    gap: 8px;
  }

  .round-action {
    min-width: 0;
    min-height: 50px;
    padding-inline: 10px;
    border-radius: 7px;
    font-size: 11px;
  }

  .round-action.skip {
    border-color: #d5dce7;
    color: #536075;
    background: #ffffff;
  }

  .round-action.like {
    border-color: #16213a;
    background: #16213a;
    box-shadow: none;
  }

  .round-action.like:hover {
    border-color: #2d50d9;
    background: #2d50d9;
    box-shadow: 0 10px 24px rgba(45, 80, 217, 0.18);
  }

  .adjacent-recommendation {
    margin-top: 14px;
    border: 1px solid #dbe1eb;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(32, 55, 104, 0.06);
  }

  .messages-layout,
  .profile-card,
  .profile-awards-section,
  .settings-workspace,
  .reward-card,
  .business-material,
  .response-card {
    border: 1px solid #dbe1eb;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(32, 55, 104, 0.07);
  }

  .thread-column,
  .settings-tabs {
    background: #f5f7fb;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .phone-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .views {
    padding-inline: 28px;
  }

  .desktop-nav-user {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
  }

  .nav-user-avatar {
    width: 36px;
    height: 36px;
  }

  .desktop-nav-user > .nav-logout {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
  }

  .discovery-toolbar {
    grid-template-columns: 210px minmax(220px, 1fr) 166px;
  }

  .match-card:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) 286px;
  }

  .card-head {
    padding-inline: 28px;
  }

  .card-identity {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .card-avatar {
    width: 84px;
    height: 84px;
  }

  .collaboration-brief section,
  .match-context {
    padding-inline: 28px;
  }
}


/* Public product introduction */

body.is-landing {
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.phone-shell.is-landing {
  display: block;
  min-height: 100dvh;
  background: #fff;
}

.phone-shell.is-landing .topbar,
.phone-shell.is-landing .bottom-nav {
  display: none;
}

.phone-shell.is-landing .views {
  width: 100%;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
  padding: 0;
  background: #fff;
  background-image: none;
}

.phone-shell.is-landing .landing-view {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #152039;
  background: #fff;
  animation: none;
}

.landing-view * {
  letter-spacing: 0;
}

.landing-view h1,
.landing-view h2,
.landing-view p {
  margin: 0;
}

.landing-view h1,
.landing-view h2 {
  font-weight: 680;
  text-wrap: balance;
}

.landing-view button,
.landing-view a {
  -webkit-tap-highlight-color: transparent;
}

.landing-view a {
  color: inherit;
  text-decoration: none;
}

.landing-page {
  scroll-margin-top: 76px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 76px;
  gap: 28px;
  padding: 0 clamp(24px, 4.6vw, 84px);
  border-bottom: 1px solid #e5e9f0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

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

.landing-brand svg {
  width: 34px;
  height: 34px;
  fill: none;
}

.landing-brand .brand-room {
  fill: #17223c;
}

.landing-brand .brand-accent {
  fill: none;
  stroke: #3159e5;
  stroke-width: 6;
  stroke-linecap: square;
}

.landing-brand strong,
.landing-brand small {
  display: block;
  white-space: nowrap;
}

.landing-brand strong {
  font-size: 16px;
  font-weight: 760;
  line-height: 1.05;
}

.landing-brand small {
  margin-top: 3px;
  color: #7a859a;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.landing-nav,
.landing-header-actions,
.landing-hero-actions {
  display: flex;
  align-items: center;
}

.landing-nav {
  gap: clamp(18px, 2.4vw, 36px);
  color: #606c81;
  font-size: 13px;
  font-weight: 580;
}

.landing-nav a,
.landing-text-link,
.landing-login,
.landing-final-login,
.landing-footer button {
  transition: color 180ms ease;
}

.landing-nav a:hover,
.landing-text-link:hover,
.landing-login:hover,
.landing-final-login:hover,
.landing-footer button:hover {
  color: #3159e5;
}

.landing-header-actions {
  gap: 14px;
}

.landing-login {
  min-height: 42px;
  padding: 0 10px;
  color: #26334c;
  font-size: 13px;
  font-weight: 650;
}

.landing-primary,
.landing-light-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid #2851d5;
  border-radius: 7px;
  color: #fff;
  background: #2d50d9;
  box-shadow: 0 8px 20px rgba(45, 80, 217, 0.17);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.landing-primary:hover {
  background: #193aaf;
  box-shadow: 0 12px 26px rgba(45, 80, 217, 0.22);
  transform: translateY(-2px);
}

.landing-primary.compact {
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.landing-page > section:not(.landing-growth):not(.landing-final),
.landing-footer {
  padding-inline: clamp(24px, 5.2vw, 96px);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(32px, 3.4vw, 48px);
  padding-bottom: 0;
  background: #f7f9fe;
}

.landing-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(#dbe3f30d 1px, transparent 1px), linear-gradient(90deg, #dbe3f30d 1px, transparent 1px);
  background-size: 40px 40px;
}

.landing-hero-copy,
.landing-product-stage {
  position: relative;
  z-index: 1;
}

.landing-hero-copy {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3159d4;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.landing-eyebrow::before {
  width: 18px;
  height: 2px;
  content: "";
  background: currentColor;
}

.landing-eyebrow.light {
  color: #a8baff;
}

.landing-hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 4.7vw, 70px);
  line-height: 1.035;
}

.landing-hero-copy > p {
  max-width: 660px;
  margin: 18px auto 0;
  color: #5d6a80;
  font-size: clamp(15px, 1.28vw, 18px);
  line-height: 1.55;
}

.landing-hero-actions {
  justify-content: center;
  gap: 24px;
  margin-top: 27px;
}

.landing-text-link {
  color: #263b66;
  font-size: 13px;
  font-weight: 700;
}

.landing-text-link span {
  margin-left: 6px;
}

.landing-hero-proof {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 810px;
  margin: 25px auto 0;
  padding-bottom: 17px;
}

.landing-hero-proof > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 3px;
  padding-inline: 22px;
}

.landing-hero-proof > div + div {
  border-left: 1px solid #dfe5f0;
}

.landing-hero-proof strong {
  color: #1b2947;
  font-size: 16px;
  font-weight: 760;
}

.landing-hero-proof span {
  color: #68758c;
  font-size: 11px;
  line-height: 1.3;
}

.landing-product-stage {
  width: min(1120px, 100%);
  height: clamp(245px, 18vw, 260px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d7dfed;
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  background: #fff;
  box-shadow: 0 28px 70px rgba(34, 60, 111, 0.13);
}

.landing-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid #e6eaf0;
  color: #68758a;
  background: #fff;
  font-size: 10px;
}

.landing-stage-bar > span {
  display: flex;
  gap: 5px;
}

.landing-stage-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9d1df;
}

.landing-stage-bar em {
  font-style: normal;
  font-weight: 700;
}

.landing-stage-bar b {
  font-weight: 600;
}

.landing-product-stage picture,
.landing-product-stage picture img {
  display: block;
  width: 100%;
}

.landing-product-stage picture img {
  height: auto;
  max-width: none;
}

.landing-floating-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid #dbe3f0;
  border-radius: 8px;
  color: #253556;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 43, 77, 0.12);
  font-size: 11px;
  font-weight: 600;
}

.landing-floating-note.note-match {
  right: 22px;
  bottom: 80px;
}

.landing-floating-note.note-match strong {
  color: #2d50d9;
  font-size: 22px;
}

.landing-floating-note.note-dialog {
  left: 30px;
  bottom: 28px;
}

.landing-floating-note.note-dialog i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31a989;
}

.landing-context,
.landing-how,
.landing-product,
.landing-workspace,
.landing-community {
  scroll-margin-top: 76px;
}

.landing-context {
  display: grid;
  grid-template-columns: 180px minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: clamp(30px, 4vw, 72px);
  align-items: start;
  padding-block: clamp(50px, 6vw, 100px);
  border-bottom: 1px solid #e6eaf1;
}

.landing-section-label {
  color: #3159d4;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.landing-context h2,
.landing-section-head h2,
.landing-product h2,
.landing-workspace h2,
.landing-community h2,
.landing-growth h2,
.landing-final h2 {
  font-size: clamp(34px, 3.35vw, 54px);
  line-height: 1.11;
}

.landing-context-copy p,
.landing-product-copy > p,
.landing-workspace-copy > p,
.landing-community-copy > p,
.landing-growth-intro > p {
  max-width: 650px;
  margin-top: 24px;
  color: #5e6c82;
  font-size: 16px;
  line-height: 1.65;
}

.landing-context-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 0 26px;
  border-left: 2px solid #2d50d9;
}

.landing-context-result strong {
  max-width: 240px;
  font-size: 17px;
  line-height: 1.3;
}

.landing-context-result span {
  color: #69768b;
  font-size: 13px;
  line-height: 1.5;
}

.landing-how {
  padding-block: clamp(82px, 8vw, 132px);
}

.landing-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.landing-section-head h2 {
  margin-top: 18px;
}

.landing-section-head > p {
  max-width: 335px;
  padding-bottom: 4px;
  color: #647087;
  font-size: 14px;
  line-height: 1.55;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
}

.landing-steps li {
  min-width: 0;
  padding: 22px 28px 6px 0;
  border-top: 2px solid #dfe5ee;
}

.landing-steps li + li {
  padding-left: 25px;
}

.landing-steps li:first-child {
  border-color: #3159d4;
}

.landing-steps li > span {
  display: block;
  margin-bottom: 27px;
  color: #3159d4;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.landing-steps strong {
  display: block;
  font-size: 17px;
}

.landing-steps p {
  max-width: 250px;
  margin-top: 11px;
  color: #647087;
  font-size: 13px;
  line-height: 1.55;
}

.landing-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 8vw, 140px);
  min-height: 780px;
  padding-block: 90px;
  overflow: hidden;
  background: #f4f7fd;
}

.landing-product h2,
.landing-workspace h2,
.landing-community h2 {
  margin-top: 19px;
}

.landing-feature-list,
.landing-community-copy ul {
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

.landing-feature-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 17px 0;
  border-top: 1px solid #dbe3f0;
}

.landing-feature-list li > span {
  color: #3159d4;
  font-family: var(--mono);
  font-size: 12px;
}

.landing-feature-list strong,
.landing-feature-list small {
  display: block;
}

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

.landing-feature-list small {
  margin-top: 5px;
  color: #69778c;
  font-size: 12px;
  line-height: 1.5;
}

.landing-phone-scene,
.landing-workspace-visual,
.landing-event-visual {
  position: relative;
  min-width: 0;
}

.landing-phone-scene {
  display: flex;
  justify-content: center;
  min-height: 620px;
}

.landing-phone {
  position: relative;
  z-index: 2;
  width: min(345px, 82%);
  overflow: hidden;
  border: 8px solid #182139;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 35px 75px rgba(33, 53, 94, 0.17);
}

.landing-phone img {
  width: 100%;
  height: auto;
}

.landing-phone-caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  width: 210px;
  gap: 6px;
  padding: 17px 18px;
  border: 1px solid #dae2f0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 44, 84, 0.1);
}

.landing-phone-caption strong {
  font-size: 13px;
}

.landing-phone-caption span {
  color: #6d788c;
  font-size: 11px;
  line-height: 1.45;
}

.landing-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 9vw, 160px);
  min-height: 770px;
  padding-block: 90px;
}

.landing-workspace-visual {
  display: flex;
  justify-content: center;
  min-height: 610px;
  padding: 35px 0;
  background: #e8edfc;
}

.landing-workspace-visual .landing-phone {
  width: min(310px, 68%);
}

.landing-chat-summary {
  position: absolute;
  z-index: 3;
  right: -5%;
  bottom: 65px;
  width: 225px;
  padding: 18px;
  border: 1px solid #dce3f0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(22, 39, 75, 0.14);
}

.landing-chat-summary > span,
.landing-chat-summary > strong,
.landing-chat-summary > small {
  display: block;
}

.landing-chat-summary > span {
  color: #3159d4;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.landing-chat-summary > strong {
  margin-top: 5px;
  font-size: 13px;
}

.landing-chat-summary > div {
  display: flex;
  margin-top: 18px;
  padding-left: 5px;
}

.landing-chat-summary i,
.landing-chat-summary b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin-left: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #3258d5;
  font-size: 8px;
  font-style: normal;
}

.landing-chat-summary i:nth-child(2) { background: #1c7c78; }
.landing-chat-summary i:nth-child(3) { background: #a96370; }
.landing-chat-summary b { background: #e8edfa; color: #2843a5; }

.landing-chat-summary > small {
  margin-top: 11px;
  color: #6b778c;
  font-size: 10px;
}

.landing-inline-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 33px;
}

.landing-inline-facts span {
  padding: 9px 12px;
  border: 1px solid #d9e1ef;
  border-radius: 5px;
  color: #334264;
  font-size: 11px;
  font-weight: 650;
}

.landing-growth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(84px, 8vw, 130px) clamp(24px, 5.2vw, 96px);
  color: #fff;
  background: #172a78;
}

.landing-growth h2 {
  max-width: 670px;
  margin-top: 20px;
}

.landing-growth-intro > p {
  max-width: 550px;
  color: #c1ccee;
}

.landing-light-button {
  min-height: 48px;
  margin-top: 30px;
  border-color: #fff;
  color: #1d399b;
  background: #fff;
  box-shadow: none;
}

.landing-light-button:hover {
  background: #e6ecff;
  transform: translateY(-2px);
}

.landing-level-panel {
  padding: 27px 30px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 12, 59, 0.18);
  color: #1d2940;
}

.landing-level-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.landing-level-panel header span {
  font-weight: 730;
}

.landing-level-panel header strong {
  color: #3159d4;
  font-family: var(--mono);
  font-size: 11px;
}

.landing-level-track {
  height: 6px;
  margin: 18px 0 13px;
  overflow: hidden;
  border-radius: 4px;
  background: #e7ecf7;
}

.landing-level-track i {
  display: block;
  width: 66%;
  height: 100%;
  border-radius: inherit;
  background: #3159d4;
}

.landing-level-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-level-panel li {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 67px;
  border-top: 1px solid #e6eaf1;
  font-size: 11px;
}

.landing-level-panel li span {
  color: #7b879a;
}

.landing-level-panel li strong {
  font-size: 12px;
  font-weight: 700;
}

.landing-level-panel li em {
  color: #3159d4;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.landing-community {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.84fr);
  align-items: center;
  gap: clamp(50px, 9vw, 150px);
  min-height: 750px;
  padding-block: 90px;
}

.landing-community-copy ul li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #e3e8f0;
  font-size: 12px;
}

.landing-community-copy li span {
  color: #6b778a;
}

.landing-event-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: #2e52d6 !important;
  font-size: 13px;
  font-weight: 740;
}

.landing-event-link:hover {
  text-decoration: underline;
}

.landing-event-visual {
  display: flex;
  justify-content: center;
  min-height: 640px;
  padding: 30px 0 0;
  overflow: hidden;
  background: #e8edfc;
}

.landing-event-visual .landing-phone {
  width: min(315px, 68%);
  align-self: flex-start;
}

.landing-event-date {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 6px;
  color: #fff;
  background: #182a73;
  box-shadow: 0 16px 32px rgba(18, 39, 91, 0.18);
}

.landing-event-date strong {
  font-size: 21px;
}

.landing-event-date span {
  font-size: 10px;
}

.landing-final {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 70px;
  padding: clamp(82px, 9vw, 146px) clamp(24px, 5.2vw, 96px);
  color: #fff;
  background: #101a35;
}

.landing-final h2 {
  max-width: 760px;
  margin-top: 17px;
}

.landing-final-action p {
  color: #c4cce0;
  font-size: 13px;
  line-height: 1.6;
}

.landing-final-action .landing-light-button {
  width: 100%;
  margin-top: 20px;
}

.landing-final-login {
  display: block;
  margin: 19px auto 0;
  color: #bdc8e6;
  font-size: 12px;
  font-weight: 650;
}

.landing-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 116px;
  border-top: 1px solid #e5e9f0;
  background: #fff;
}

.landing-footer p {
  color: #728096;
  font-size: 12px;
}

.landing-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.landing-footer button {
  color: #657289;
  font-size: 11px;
}

.auth-landing-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: #5d6a81;
  font-size: 12px;
  font-weight: 650;
}

.auth-landing-back:hover {
  color: #2d50d9;
}

.auth-landing-back span {
  font-size: 17px;
}

@media (max-width: 1050px) {
  .landing-nav {
    display: none;
  }

  .landing-context {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .landing-context-result {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .landing-page {
    scroll-margin-top: 62px;
  }

  .landing-header {
    height: 62px;
    padding-inline: 16px;
  }

  .landing-brand svg {
    width: 31px;
    height: 31px;
  }

  .landing-brand strong {
    font-size: 14px;
  }

  .landing-brand small {
    display: none;
  }

  .landing-header-actions {
    gap: 5px;
  }

  .landing-login {
    padding: 0 8px;
    font-size: 12px;
  }

  .landing-primary.compact {
    min-height: 36px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .landing-page > section:not(.landing-growth):not(.landing-final),
  .landing-footer {
    padding-inline: 20px;
  }

  .landing-hero {
    padding-top: 24px;
  }

  .landing-hero h1 {
    margin-top: 15px;
    font-size: clamp(35px, 8.7vw, 48px);
    line-height: 1.05;
  }

  .landing-hero-copy > p {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.52;
  }

  .landing-hero-actions {
    flex-direction: column;
    gap: 13px;
    margin-top: 23px;
  }

  .landing-hero-actions .landing-primary {
    width: 100%;
    min-height: 46px;
  }

  .landing-text-link {
    font-size: 11px;
  }

  .landing-hero-proof {
    justify-content: space-between;
    margin-top: 15px;
    padding-bottom: 22px;
  }

  .landing-hero-proof > div {
    padding-inline: 7px;
  }

  .landing-hero-proof strong {
    font-size: 12px;
  }

  .landing-hero-proof span {
    font-size: 9px;
  }

  .landing-product-stage {
    width: min(330px, 87%);
    height: 150px;
  }

  .landing-product-stage picture img {
    width: 100%;
  }

  .landing-stage-bar {
    height: 24px;
  }

  .landing-stage-bar b {
    display: none;
  }

  .landing-floating-note {
    display: none;
  }

  .landing-context,
  .landing-how,
  .landing-product,
  .landing-workspace,
  .landing-community {
    scroll-margin-top: 62px;
  }

  .landing-context,
  .landing-product,
  .landing-workspace,
  .landing-growth,
  .landing-community,
  .landing-final {
    display: block;
    min-height: 0;
    padding-block: 70px;
  }

  .landing-context {
    padding-top: 24px;
  }

  .landing-section-label {
    margin-bottom: 23px;
  }

  .landing-context h2,
  .landing-section-head h2,
  .landing-product h2,
  .landing-workspace h2,
  .landing-community h2,
  .landing-growth h2,
  .landing-final h2 {
    font-size: clamp(30px, 7.5vw, 41px);
    line-height: 1.13;
  }

  .landing-context-copy p,
  .landing-product-copy > p,
  .landing-workspace-copy > p,
  .landing-community-copy > p,
  .landing-growth-intro > p {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.6;
  }

  .landing-context-result {
    margin-top: 28px;
    padding-top: 0;
  }

  .landing-how {
    padding-block: 70px;
  }

  .landing-section-head {
    display: block;
  }

  .landing-section-head > p {
    margin-top: 18px;
    font-size: 13px;
  }

  .landing-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
    margin-top: 38px;
  }

  .landing-steps li,
  .landing-steps li + li {
    padding: 15px 0 0;
  }

  .landing-steps li > span {
    margin-bottom: 17px;
  }

  .landing-steps strong {
    font-size: 14px;
  }

  .landing-steps p {
    font-size: 11px;
  }

  .landing-product {
    overflow: hidden;
  }

  .landing-feature-list {
    margin-top: 26px;
  }

  .landing-phone-scene {
    min-height: 0;
    margin-top: 40px;
    padding-bottom: 0;
  }

  .landing-phone-scene .landing-phone,
  .landing-workspace-visual .landing-phone,
  .landing-event-visual .landing-phone {
    width: min(270px, 77%);
  }

  .landing-phone-caption {
    right: 0;
    bottom: 6%;
    width: 170px;
  }

  .landing-workspace-visual {
    min-height: 510px;
    margin-bottom: 44px;
    padding: 28px 0;
  }

  .landing-chat-summary {
    right: -5px;
    bottom: 35px;
    width: 180px;
  }

  .landing-growth {
    padding-inline: 20px;
    color: #fff;
  }

  .landing-level-panel {
    margin-top: 42px;
    padding: 20px 18px 10px;
  }

  .landing-level-panel li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 9px;
    padding: 12px 0;
  }

  .landing-level-panel li span {
    grid-column: 1 / -1;
  }

  .landing-community-copy ul li {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 10px;
  }

  .landing-event-visual {
    min-height: 500px;
    margin-top: 38px;
  }

  .landing-final {
    padding-inline: 20px;
  }

  .landing-final-action {
    margin-top: 30px;
  }

  .landing-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 30px;
  }
}

@media (max-width: 390px) {
  .landing-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .landing-brand strong {
    font-size: 12px;
  }

  .landing-primary.compact {
    padding-inline: 8px;
    font-size: 10px;
  }

  .landing-login {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-view button,
  .landing-view a {
    transition: none;
  }
}

.goal-picker {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.goal-picker button {
  min-height: 134px;
  grid-column: span 4;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 19px;
  border-color: transparent;
  background: var(--goal-surface, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.goal-picker button:nth-child(4),
.goal-picker button:nth-child(5) {
  grid-column: span 6;
}

.goal-picker button:nth-child(6),
.goal-picker button:nth-child(7),
.goal-picker button:nth-child(8) {
  grid-column: span 4;
}

.goal-picker button[data-goal-tone="partnership"] { --goal-surface: #eef2ff; --goal-accent: #2b58c7; }
.goal-picker button[data-goal-tone="growth"] { --goal-surface: #f0f6eb; --goal-accent: #3e7138; }
.goal-picker button[data-goal-tone="team"] { --goal-surface: #f6f1e8; --goal-accent: #806026; }
.goal-picker button[data-goal-tone="materials"] { --goal-surface: #e9f4f1; --goal-accent: #177064; }
.goal-picker button[data-goal-tone="community"] { --goal-surface: #fff0ed; --goal-accent: #ac4f45; }
.goal-picker button[data-goal-tone="expertise"] { --goal-surface: #f1eff8; --goal-accent: #5e4f9c; }
.goal-picker button[data-goal-tone="scale"] { --goal-surface: #edf4f8; --goal-accent: #356b89; }
.goal-picker button[data-goal-tone="contribution"] { --goal-surface: #f6efeb; --goal-accent: #8a5842; }

.goal-picker button:hover,
.goal-picker button.is-selected {
  border-color: var(--goal-accent);
  background: var(--goal-surface);
  box-shadow: inset 0 0 0 1px var(--goal-accent), 0 15px 34px color-mix(in srgb, var(--goal-accent) 12%, transparent);
}

.goal-picker button.is-selected::after {
  width: 22px;
  height: 22px;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--goal-accent);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.goal-picker svg,
.goal-picker button:nth-child(2n) svg,
.goal-picker button:nth-child(3n) svg,
.goal-picker button:nth-child(4n) svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--goal-accent) 22%, transparent);
  border-radius: 12px;
  color: var(--goal-accent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.goal-picker button em {
  display: block;
  margin: 1px 30px 8px 0;
  color: var(--goal-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.goal-picker button strong {
  font-size: 16px;
  line-height: 1.18;
}

.goal-picker button small {
  margin-top: 8px;
  max-width: 34ch;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: 12px;
  line-height: 1.38;
}

@media (max-width: 899px) {
  .goal-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-picker button,
  .goal-picker button:nth-child(4),
  .goal-picker button:nth-child(5),
  .goal-picker button:nth-child(6),
  .goal-picker button:nth-child(7),
  .goal-picker button:nth-child(8) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .goal-picker {
    grid-template-columns: 1fr;
  }

  .goal-picker button {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .goal-picker svg,
  .goal-picker button:nth-child(2n) svg,
  .goal-picker button:nth-child(3n) svg,
  .goal-picker button:nth-child(4n) svg {
    width: 42px;
    height: 42px;
  }

  .goal-picker button strong {
    font-size: 15px;
  }

  .goal-picker button small {
    font-size: 11px;
  }
}

/* Softer Creative Code geometry and secondary brand accents */

.primary-button,
.secondary-button,
.danger-button,
.round-action,
.topbar-materials,
.reward-action,
.mission-card > footer > button,
.setting-action-row button,
.dialog-actions button,
.tour-actions button {
  border-radius: var(--radius-control);
}

.auth-form input,
.profile-form input,
.profile-form textarea,
.search-field,
.region-field,
.thread-search,
.message-form input,
.video-review-form input,
.referral-link {
  border-radius: var(--radius-control);
}

.segment-control {
  border-radius: 16px;
}

.segment-control button,
.tag-picker button,
.match-reasons span,
.profile-tags span,
.interest-badge,
.card-region,
.card-level {
  border-radius: var(--radius-small);
}

.form-step,
.deck-state,
.match-card,
.messages-layout,
.profile-card,
.level-overview,
.referral-panel,
.mission-card,
.business-material,
.settings-card,
.app-dialog,
.product-tour {
  border-radius: var(--radius-panel);
}

.photo-picker,
.form-error,
.reward-card,
.video-review-form,
.profile-snapshot,
.profile-status,
.partner-avatar,
.profile-card .profile-photo,
.tour-visual,
.dialog-close,
.icon-button,
.chat-tools button,
.message-form button {
  border-radius: 14px;
}

.card-avatar,
.thread-avatar,
.chat-avatar {
  border-radius: 16px;
}

.bubble.them {
  border-radius: 18px 18px 18px 5px;
}

.bubble.me {
  border-radius: 18px 18px 5px 18px;
  background: var(--nav);
}

.match-card::before {
  background: var(--warm);
}

.match-signal strong,
.mission-card > footer > strong {
  color: var(--warm-strong);
}

.round-action.like {
  border-color: var(--nav);
  background: var(--nav);
}

.round-action.like:hover {
  border-color: var(--warm);
  background: var(--warm);
}

.thread-item.is-active {
  background: var(--warm-soft);
  box-shadow: inset 3px 0 0 var(--warm);
}

.profile-cover {
  background: var(--nav);
}

.profile-cover::after {
  background: var(--warm);
}

.levels-head h2 {
  color: var(--ink);
}

.level-overview {
  background-color: #162236;
  box-shadow: 0 22px 52px rgba(22, 34, 54, 0.22);
}

.level-overview h3 > span {
  color: #ff9c94;
}

.level-progress > span {
  background: var(--warm);
}

.referral-panel > .panel-kicker,
.referral-panel h3 {
  color: var(--warm-strong);
}

.referral-actions .primary-button {
  background: var(--warm);
}

.referral-actions .primary-button:hover {
  background: var(--warm-strong);
}

.auth-edition::before,
.auth-mode button.is-active::after {
  background: var(--warm);
}

.auth-principles strong {
  color: #ffaaa3;
}

.auth-access-panel .panel-kicker {
  color: var(--warm-strong);
}

.reward-card.is-unlocked {
  border-color: color-mix(in srgb, var(--warm) 35%, var(--line));
}

.message-form button,
.tour-visual {
  background: var(--nav);
}

@media (max-width: 899px) {
  .mobile-account-logout {
    display: inline-flex;
  }

  .danger-zone {
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav {
    border-radius: 24px;
  }

  .bottom-nav button {
    border-radius: 16px;
  }

  .bottom-nav button.is-active {
    color: var(--nav);
    background: #ffffff;
  }
}

/* Registration geometry takes precedence over shared product controls. */

.auth-form input,
.profile-form input,
.profile-form textarea {
  border-radius: 16px;
}

.auth-submit {
  border-radius: 16px;
}

.form-step {
  border-radius: 0;
}

.photo-picker {
  border-radius: 18px;
}

.tag-picker button {
  border-radius: 12px;
}

@media (max-width: 640px) {
  .phone-shell.is-registering .views {
    padding: 0;
  }

  .onboarding-view.is-active {
    min-height: 100dvh;
  }

  .auth-edition {
    font-size: 12px;
  }

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

  .form-step {
    min-height: 0;
    padding: 34px 0 26px;
  }

  .photo-picker {
    border-radius: 16px;
  }
}

/* Eleven-inspired product language, adapted for Creative Code. */

:root {
  --page: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --surface-3: #e9e9e6;
  --ink: #121212;
  --ink-soft: #343434;
  --muted: #747474;
  --line: #e3e3e0;
  --line-strong: #d4d4d0;
  --nav: #111111;
  --font: "Helvetica Neue", Arial, sans-serif;
  --shadow-1: 0 8px 24px rgba(17, 17, 17, 0.055);
  --shadow-2: 0 24px 64px rgba(17, 17, 17, 0.12);
}

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

.primary-button:hover {
  background: #2a2a2a;
}

.secondary-button {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.topbar {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.match-card,
.messages-layout,
.profile-card,
.settings-card,
.referral-panel,
.reward-card,
.business-material {
  border-color: var(--line);
  box-shadow: none;
}

@media (min-width: 900px) {
  .bottom-nav {
    border-right: 1px solid var(--line);
    color: var(--ink);
    background: var(--surface);
  }

  .desktop-nav-brand small,
  .desktop-nav-label,
  .desktop-nav-progress span,
  .desktop-nav-progress small,
  .desktop-nav-user small {
    color: var(--muted);
  }

  .bottom-nav > button {
    color: var(--muted);
  }

  .bottom-nav > button:hover {
    color: var(--ink);
    background: var(--surface-2);
  }

  .bottom-nav > button.is-active {
    color: var(--ink);
    background: var(--surface-2);
    box-shadow: inset 3px 0 0 var(--accent);
  }

  .desktop-nav-progress,
  .desktop-nav-user {
    border-color: var(--line);
    background: var(--surface-2);
  }

  .nav-logout {
    color: var(--muted);
  }
}

.auth-view.is-active {
  align-items: start;
  padding-top: 72px;
}

.auth-form-shell {
  width: min(100%, 420px);
}

.auth-wordmark .register-logo {
  width: 56px;
  height: 35px;
}

.auth-edition {
  margin-top: 62px;
  color: var(--muted);
}

.auth-form-shell > h1 {
  margin-top: 10px;
  font-size: 42px;
  font-weight: 720;
}

.auth-form {
  gap: 14px;
  margin-top: 36px;
}

.auth-form label > span {
  font-size: 14px;
  font-weight: 540;
}

.auth-form input {
  min-height: 58px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 430;
}

.auth-step-actions {
  display: grid;
  grid-template-columns: minmax(108px, 0.62fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 4px;
}

.auth-step-actions:has(.auth-step-back[hidden]) {
  grid-template-columns: 1fr;
}

.auth-step-back,
.auth-submit {
  min-height: 56px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 650;
}

.auth-step-back {
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.auth-step-back:hover {
  background: var(--surface-2);
}

.auth-submit {
  margin-top: 0;
}

.auth-email-field.is-entering,
.auth-password-field.is-entering {
  animation: kk-quiet-reveal 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.profile-form {
  width: min(100%, 1188px);
  padding: 34px 24px 30px;
}

.form-step[data-step="0"],
.form-step[data-step="3"] {
  width: min(100%, 700px);
  justify-self: center;
}

.form-step[data-step="1"],
.form-step[data-step="2"] {
  width: 100%;
  justify-self: stretch;
}

.step-head h2 {
  max-width: 820px;
  font-size: 48px;
  font-weight: 730;
  line-height: 1.02;
}

.step-head > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.role-picker,
.goal-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.role-picker button,
.goal-picker button {
  position: relative;
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.role-picker button:hover,
.goal-picker button:hover,
.role-picker button.is-selected,
.goal-picker button.is-selected {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.07);
  transform: translateY(-2px);
}

.role-picker button.is-selected,
.goal-picker button.is-selected {
  box-shadow: inset 0 0 0 1px var(--ink), 0 14px 36px rgba(17, 17, 17, 0.07);
}

.role-picker button.is-selected::after,
.goal-picker button.is-selected::after {
  content: "";
  width: 9px;
  height: 9px;
  position: absolute;
  top: 11px;
  right: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.role-picker svg,
.goal-picker svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 11px;
  background: #f0f0ee;
  stroke-width: 2;
}

.role-picker button:nth-child(2n) svg,
.goal-picker button:nth-child(2n) svg {
  background: #eef3ff;
}

.role-picker button:nth-child(3n) svg,
.goal-picker button:nth-child(3n) svg {
  background: #edf7f0;
}

.role-picker button:nth-child(4n) svg,
.goal-picker button:nth-child(4n) svg {
  background: #fff1ee;
}

.role-picker button > span,
.goal-picker button strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.14;
}

.goal-picker button span,
.goal-picker button strong,
.goal-picker button small {
  display: block;
  min-width: 0;
}

.goal-picker button small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 430;
  line-height: 1.3;
}

.profile-form input,
.profile-form textarea {
  border-radius: 12px;
}

.profile-form-actions {
  max-width: 1188px;
}

@keyframes kk-premium-in {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes kk-quiet-reveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.auth-form-shell,
.form-step.is-active {
  animation: kk-premium-in 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform, filter;
}

.auth-wordmark,
.auth-edition,
.auth-form-shell > h1,
.auth-form-shell > p,
.auth-form,
.auth-mode,
.register-head,
.step-meter,
.form-step.is-active .step-head,
.form-step.is-active > label,
.form-step.is-active .tag-picker,
.profile-form-actions {
  animation: kk-quiet-reveal 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

.auth-wordmark,
.register-head {
  animation-delay: 40ms;
}

.auth-edition,
.step-meter {
  animation-delay: 110ms;
}

.auth-form-shell > h1,
.form-step.is-active .step-head {
  animation-delay: 170ms;
}

.auth-form-shell > p,
.form-step.is-active > label:nth-of-type(1) {
  animation-delay: 230ms;
}

.auth-form,
.form-step.is-active > label:nth-of-type(2),
.form-step.is-active .onboarding-choice-grid {
  animation-delay: 290ms;
}

.auth-mode,
.form-step.is-active > label:nth-of-type(3),
.form-step.is-active .tag-picker,
.profile-form-actions {
  animation-delay: 350ms;
}

.form-step.is-active .role-picker button,
.form-step.is-active .goal-picker button {
  animation: kk-premium-in 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform, filter;
}

.form-step.is-active .onboarding-choice-grid button:nth-child(1) { animation-delay: 120ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(2) { animation-delay: 160ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(3) { animation-delay: 200ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(4) { animation-delay: 240ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(5) { animation-delay: 280ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(6) { animation-delay: 320ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(7) { animation-delay: 360ms; }
.form-step.is-active .onboarding-choice-grid button:nth-child(8) { animation-delay: 400ms; }

@media (max-width: 899px) {
  .role-picker,
  .goal-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .auth-view.is-active {
    padding-top: 30px;
  }

  .auth-form-shell {
    width: 100%;
  }

  .auth-edition {
    margin-top: 46px;
  }

  .auth-form-shell > h1 {
    font-size: 36px;
  }

  .profile-form {
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .step-head h2 {
    font-size: 34px;
  }

  .role-picker,
  .goal-picker {
    gap: 10px;
  }

  .role-picker button,
  .goal-picker button {
    min-height: 122px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .role-picker svg,
  .goal-picker svg {
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 9px;
  }

  .role-picker button > span,
  .goal-picker button strong {
    font-size: 13px;
  }

  .goal-picker button small {
    font-size: 10px;
  }

  .auth-step-actions {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form-shell,
  .form-step.is-active,
  .auth-email-field,
  .auth-password-field,
  .auth-wordmark,
  .auth-edition,
  .auth-form-shell > h1,
  .auth-form-shell > p,
  .auth-form,
  .auth-mode,
  .register-head,
  .step-meter,
  .form-step.is-active .step-head,
  .form-step.is-active > label,
  .form-step.is-active .tag-picker,
  .profile-form-actions,
  .form-step.is-active .role-picker button,
  .form-step.is-active .goal-picker button {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Outcome cards must follow the shared Eleven-inspired registration rules. */
.goal-picker {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.goal-picker button {
  min-height: 134px;
  grid-column: span 4;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 19px;
  border-color: transparent;
  background: var(--goal-surface, var(--surface-2));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}

.goal-picker button:nth-child(4),
.goal-picker button:nth-child(5) { grid-column: span 6; }

.goal-picker button:nth-child(6),
.goal-picker button:nth-child(7),
.goal-picker button:nth-child(8) { grid-column: span 4; }

.goal-picker button:hover,
.goal-picker button.is-selected {
  border-color: var(--goal-accent);
  background: var(--goal-surface);
  box-shadow: inset 0 0 0 1px var(--goal-accent), 0 15px 34px color-mix(in srgb, var(--goal-accent) 12%, transparent);
}

.goal-picker button.is-selected::after {
  width: 22px;
  height: 22px;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #ffffff;
  background: var(--goal-accent);
  content: "✓";
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.goal-picker svg,
.goal-picker button:nth-child(2n) svg,
.goal-picker button:nth-child(3n) svg,
.goal-picker button:nth-child(4n) svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--goal-accent) 22%, transparent);
  border-radius: 12px;
  color: var(--goal-accent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.goal-picker button em {
  display: block;
  margin: 1px 30px 8px 0;
  color: var(--goal-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.goal-picker button strong {
  font-size: 16px;
  line-height: 1.18;
}

.goal-picker button small {
  margin-top: 8px;
  max-width: 34ch;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
  font-size: 12px;
  line-height: 1.38;
}

@media (max-width: 899px) {
  .goal-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .goal-picker button,
  .goal-picker button:nth-child(4),
  .goal-picker button:nth-child(5),
  .goal-picker button:nth-child(6),
  .goal-picker button:nth-child(7),
  .goal-picker button:nth-child(8) { grid-column: auto; }
}

@media (max-width: 640px) {
  .goal-picker { grid-template-columns: 1fr; }
  .goal-picker button {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .goal-picker svg,
  .goal-picker button:nth-child(2n) svg,
  .goal-picker button:nth-child(3n) svg,
  .goal-picker button:nth-child(4n) svg {
    width: 42px;
    height: 42px;
  }

  .goal-picker button strong { font-size: 15px; }
  .goal-picker button small { font-size: 11px; }
}

/* Decision-maker profiles */
.card-identity {
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.card-avatar {
  width: 84px;
  height: 84px;
  background: var(--surface-2);
}

.card-avatar img,
.thread-avatar img,
.chat-avatar img,
.partner-avatar img {
  object-position: center 22%;
}

.card-person,
.card-identity h2.card-person {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 29px;
  font-weight: 760;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.card-role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.card-company {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 740;
  line-height: 1.25;
}

.thread-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-head > div > small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.partner-position {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .card-head {
    align-items: flex-start;
    gap: 14px;
    padding: 22px 20px;
  }

  .card-identity {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
  }

  .card-avatar {
    width: 62px;
    height: 62px;
    border-radius: 13px;
  }

  .card-person,
  .card-identity h2.card-person {
    font-size: 22px;
  }

  .card-role {
    margin-top: 4px;
    font-size: 11px;
  }

  .card-company {
    margin-top: 7px;
    font-size: 13px;
  }

  .card-meta-line {
    margin-top: 7px;
  }

  .match-signal {
    min-width: 66px;
    padding-left: 10px;
  }

  .match-signal strong {
    font-size: 23px;
  }

  .match-signal span {
    font-size: 8px;
  }

  .partner-avatar {
    width: 104px;
    height: 104px;
  }
}

/* Registration consent and verified profile fields */
.auth-consents {
  display: grid;
  gap: 12px;
  margin-top: 2px;
  padding: 16px 0 2px;
  border-top: 1px solid var(--line);
}

.auth-consents[hidden] {
  display: none;
}

.auth-consents label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.42;
}

.auth-consents input {
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 0;
  accent-color: var(--accent);
}

.auth-consents button {
  display: inline;
  padding: 0;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.profile-form select,
.tool-form select {
  width: 100%;
  min-height: 56px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.profile-form select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

/* Contextual discovery suggestion */
.adjacent-recommendation {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 66%, var(--surface));
}

.adjacent-recommendation[hidden] {
  display: none;
}

.adjacent-label {
  max-width: 108px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.adjacent-avatar,
.member-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 13px;
  color: #ffffff;
  background: var(--nav);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.adjacent-avatar img,
.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.adjacent-copy,
.adjacent-copy strong,
.adjacent-copy small,
.adjacent-copy > span {
  min-width: 0;
  display: block;
}

.adjacent-copy strong {
  font-size: 14px;
}

.adjacent-copy small,
.adjacent-copy > span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adjacent-recommendation > button,
.new-chat-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
}

.adjacent-recommendation > button:hover,
.new-chat-button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Direct and group chats */
.messages-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.new-chat-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.new-chat-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.group-avatar {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: var(--surface-3);
}

.group-avatar i {
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--nav);
  font-size: 8px;
  font-style: normal;
}

.group-avatar i:first-child {
  border-radius: 10px 3px 3px 10px;
}

.group-avatar i:last-child {
  border-radius: 3px 10px 10px 3px;
}

.group-avatar i:only-child {
  grid-column: 1 / -1;
  border-radius: 10px;
}

.group-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.bubble > small {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
}

.group-dialog,
.tool-dialog {
  width: min(calc(100% - 32px), 760px);
  max-height: min(88dvh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.group-dialog::backdrop,
.tool-dialog::backdrop {
  background: rgba(17, 17, 17, 0.48);
  backdrop-filter: blur(5px);
}

.group-dialog-shell,
.tool-dialog-shell {
  max-height: min(88dvh, 900px);
  overflow: auto;
  padding: 28px;
}

.group-dialog-shell > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.group-dialog-shell h2,
.tool-dialog-shell h2 {
  margin: 8px 0 0;
  font-size: 30px;
  line-height: 1.08;
}

.group-dialog-shell header p,
.tool-dialog-shell > div > p,
#tool-dialog-content > p {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.group-name-field,
.tool-form label {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.group-name-field input,
.tool-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

.group-member-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-member-option,
.group-member-manager article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  background: var(--surface);
}

.group-member-option + .group-member-option,
.group-member-manager article + article {
  border-top: 1px solid var(--line);
}

.group-member-option > label:first-child,
.group-member-manager article {
  min-width: 0;
}

.group-member-option > label:first-child {
  display: grid;
  grid-template-columns: 20px 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.group-member-option span,
.group-member-manager article > span {
  min-width: 0;
}

.group-member-option strong,
.group-member-option small,
.group-member-manager strong,
.group-member-manager small {
  display: block;
}

.group-member-option small,
.group-member-manager small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moderator-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.moderator-choice input,
.group-member-option input[name="member"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.group-dialog-shell > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.group-dialog-shell > footer > span {
  color: var(--muted);
  font-size: 11px;
}

.group-member-manager {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-member-manager article {
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.group-member-manager em,
.group-member-manager button {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.group-member-manager button[aria-pressed="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.danger-text-button {
  margin-top: 24px;
  padding: 0;
  color: #b83e36;
  font-size: 11px;
  font-weight: 750;
}

/* Useful tools */
.material-copy > button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 13px;
  border-radius: 11px;
  color: #ffffff;
  background: var(--nav);
  font-size: 10px;
  font-weight: 800;
}

.material-copy > button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tool-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.tool-form label {
  margin-top: 0;
}

.tool-form .primary-button {
  justify-self: start;
}

.tool-result {
  margin-top: 22px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.5;
}

.tool-result[hidden] {
  display: none;
}

.tool-result ol {
  margin: 12px 0;
  padding-left: 20px;
}

.tool-result .secondary-button {
  margin-top: 10px;
}

.profile-audit-form {
  display: grid;
  gap: 0;
  margin-top: 24px;
}

.profile-audit-form h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.profile-audit-form label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.42;
}

.profile-audit-form input {
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
}

.profile-audit-form label small {
  display: inline-block;
  min-width: 28px;
  color: var(--muted);
  font-family: var(--mono);
}

.profile-audit-form > .primary-button {
  justify-self: start;
  margin-top: 22px;
}

/* Profile without decorative cover */
.profile-card {
  grid-template-areas:
    "hero hero"
    "snapshot status"
    "offer need"
    "interests interests";
}

.profile-hero {
  align-items: center;
  margin: 0;
  padding: 34px 28px 12px;
}

.profile-card .profile-photo {
  width: 112px;
  height: 112px;
  border-width: 0;
  box-shadow: none;
}

.profile-title {
  padding-bottom: 0;
}

.profile-hero > .primary-button {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .auth-consents {
    padding-top: 14px;
  }

  .adjacent-recommendation {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px 14px;
  }

  .adjacent-label {
    grid-column: 1 / -1;
    max-width: none;
  }

  .adjacent-avatar {
    width: 46px;
    height: 46px;
  }

  .adjacent-copy > span {
    display: none;
  }

  .adjacent-recommendation > button {
    min-height: 38px;
    padding: 0 10px;
  }

  .messages-head {
    align-items: center;
  }

  .new-chat-button {
    width: 44px;
    height: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .new-chat-button svg {
    width: 20px;
    height: 20px;
  }

  .group-dialog,
  .tool-dialog {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 22px 22px 0 0;
  }

  .group-dialog-shell,
  .tool-dialog-shell {
    max-height: 94dvh;
    padding: 22px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .group-dialog-shell h2,
  .tool-dialog-shell h2 {
    font-size: 25px;
  }

  .group-member-option {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .moderator-choice {
    margin-left: 102px;
  }

  .group-dialog-shell > footer {
    position: sticky;
    bottom: 0;
    padding: 12px 0 0;
    background: var(--surface);
  }

  .group-dialog-shell > footer > span {
    display: none;
  }

  .group-dialog-shell > footer .primary-button {
    width: 100%;
  }

  .group-member-manager article {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .group-member-manager .member-avatar {
    width: 46px;
    height: 46px;
  }

  .profile-hero {
    margin: 0;
    padding: 24px 20px 8px;
  }

  .profile-card .profile-photo {
    width: 86px;
    height: 86px;
  }
}
/* Product refinement: social workspace, 2026-09-04 */
@media (min-width: 900px) {
  .phone-shell {
    grid-template-rows: 92px minmax(0, 1fr);
  }

  .views {
    height: calc(100dvh - 92px);
    padding-top: 30px;
  }
}

.topbar {
  gap: 18px;
  padding-inline: clamp(22px, 3.2vw, 48px);
}

.topbar-growth {
  width: min(100%, 940px);
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(150px, .72fr) minmax(190px, 1fr) auto minmax(160px, .8fr);
  align-items: center;
  gap: 14px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-2) 62%, var(--surface));
  text-align: left;
  transition: border-color 180ms ease-out, background 180ms ease-out;
}

.topbar-growth:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: var(--surface);
}

.topbar-level-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
}

.topbar-level-copy,
.topbar-next-step,
.topbar-next-reward {
  min-width: 0;
}

.topbar-level-copy small,
.topbar-level-copy em,
.topbar-next-step small,
.topbar-next-reward small,
.topbar-next-step strong,
.topbar-next-reward strong {
  display: block;
}

.topbar-level-copy small,
.topbar-next-step small,
.topbar-next-reward small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.topbar-level-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.topbar-progress-track {
  height: 4px;
  display: block;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface-3);
}

.topbar-progress-track i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--warm);
  transition: width 480ms var(--ease);
}

.topbar-next-step strong,
.topbar-next-reward strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-next-points {
  min-width: 54px;
  padding: 7px 9px;
  border-radius: 7px;
  color: var(--warm-strong);
  background: var(--warm-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.topbar-next-reward {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.topbar-user {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px auto;
  align-items: center;
  gap: 9px;
  padding: 4px;
  border-radius: 9px;
}

.topbar-user > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--nav);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.topbar-user img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-user strong {
  max-width: 86px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desktop-nav-progress {
  display: none;
}

.deck {
  min-height: 430px;
  margin-top: 16px;
}

.deck-state,
.match-card {
  min-height: 430px;
}

.match-card {
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(24, 37, 61, .08);
}

.match-card::before {
  width: 6px;
  background: var(--warm);
}

.card-head {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  padding: 24px 26px 22px 30px;
}

.card-avatar {
  width: 78px;
  height: 78px;
  border-radius: 12px;
}

.card-identity {
  grid-template-columns: 78px minmax(0, 1fr);
}

.card-identity h2,
.card-person,
.card-identity h2.card-person {
  color: var(--ink);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 760;
}

.card-role {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.card-company {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.match-signal {
  min-width: 88px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--warm-soft);
  text-align: center;
}

.match-signal strong {
  color: var(--warm-strong);
  font-size: 27px;
}

.card-profile-link {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
}

.card-profile-link:hover {
  border-color: var(--ink);
}

.collaboration-brief {
  grid-template-columns: 1.12fr .88fr;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

.collaboration-brief section {
  min-height: 132px;
  padding: 22px 30px;
}

.brief-offer h3 {
  margin-top: 8px;
  font-size: 21px;
}

.brief-offer p,
.brief-need p {
  margin-top: 7px;
  font-size: 14px;
}

.match-context {
  padding: 18px 30px 0;
}

.card-footer {
  padding: 18px 30px 22px;
}

.action-dock {
  grid-template-columns: 132px 148px;
}

.round-action {
  min-height: 46px;
  border-radius: 8px;
}

.adjacent-recommendation {
  grid-template-columns: auto 56px minmax(0, 1fr) auto auto;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.adjacent-label {
  max-width: 90px;
  color: var(--warm-strong);
}

.adjacent-copy > em {
  max-width: 520px;
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adjacent-score {
  min-width: 72px;
  display: block;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.adjacent-score strong,
.adjacent-score small {
  display: block;
}

.adjacent-score strong {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 18px;
}

.adjacent-score small {
  color: var(--muted);
  font-size: 8px;
}

.settings-view {
  max-width: 1080px;
}

.settings-workspace {
  min-height: 500px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
}

.settings-tabs button {
  min-height: 44px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.settings-tabs button:hover,
.settings-tabs button.is-active {
  color: var(--ink);
  background: var(--surface);
}

.settings-tabs button.is-active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.settings-panels {
  min-width: 0;
  padding: 28px 34px;
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
  animation: view-enter 220ms var(--ease) both;
}

.settings-panel > header {
  margin-bottom: 12px;
}

.settings-panel > header span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-panel > header h3 {
  margin: 5px 0 0;
  font-size: 24px;
}

.settings-panel > header:not(:first-child) {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.preference-row,
.settings-action {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.preference-row strong,
.preference-row small,
.settings-action strong,
.settings-action small {
  display: block;
}

.preference-row strong,
.settings-action strong {
  font-size: 13px;
}

.preference-row small,
.settings-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.preference-row input[role="switch"] {
  width: 44px;
  height: 24px;
  position: relative;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-3);
  cursor: pointer;
  transition: background 180ms ease-out, border-color 180ms ease-out;
}

.preference-row input[role="switch"]::after {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  content: "";
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(13, 28, 51, .22);
  transition: transform 180ms var(--ease);
}

.preference-row input[role="switch"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.preference-row input[role="switch"]:checked::after {
  transform: translateX(20px);
}

.settings-action > button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 750;
}

.passed-profiles:empty { display: none; }
.passed-profile-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.passed-profile-row .thread-avatar { width: 40px; height: 40px; }
.passed-profile-row > span:nth-child(2) { min-width: 0; }
.passed-profile-row strong,
.passed-profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passed-profile-row strong { font-size: 13px; }
.passed-profile-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.passed-profile-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
}
.passed-profile-row button:hover { background: var(--surface-2); }

.account-actions {
  display: flex;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mission-board {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 8px;
}

.mission-card,
.mission-card.is-featured {
  min-height: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(154px, auto);
  grid-row: auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  background-image: none;
  box-shadow: none;
}

.mission-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: inset 4px 0 0 var(--accent), var(--shadow-1);
}

.mission-card.is-featured::after {
  display: none;
}

.mission-card:hover {
  transform: translateX(2px);
}

.mission-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 850;
}

.mission-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--success);
  stroke-width: 2;
}

.mission-card.is-done .mission-mark {
  background: var(--success-soft);
}

.mission-copy {
  min-width: 0;
}

.mission-card .mission-state,
.mission-card.is-featured .mission-state {
  min-height: 0;
  display: block;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
}

.mission-card.is-featured .mission-state {
  color: var(--accent-strong);
}

.mission-card h4,
.mission-card.is-featured h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 16px;
}

.mission-card .mission-copy p,
.mission-card.is-featured .mission-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.mission-card > footer,
.mission-card.is-featured > footer {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  justify-items: end;
  gap: 0 5px;
  margin: 0;
  padding: 0;
}

.mission-card > footer > strong,
.mission-card.is-featured > footer > strong {
  color: var(--warm-strong);
  font-family: var(--mono);
  font-size: 15px;
}

.mission-card > footer > small {
  align-self: center;
  color: var(--muted);
  font-size: 8px;
}

.mission-card > footer > button,
.mission-card.is-featured > footer > button,
.mission-card > footer > span {
  grid-column: 1 / -1;
  min-height: 34px;
  margin-top: 5px;
  padding: 0 11px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--surface-2);
  font-size: 9px;
  font-weight: 750;
}

.mission-card > footer > span {
  min-height: 0;
  padding: 0;
  color: var(--success);
  background: transparent;
}

.business-materials {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scrollbar-width: thin;
}

.business-material {
  flex: 0 0 clamp(260px, 27vw, 320px);
  min-height: 380px;
  border-radius: 13px;
}

.material-cover {
  min-height: 148px;
}

.group-dialog,
.participant-dialog {
  width: min(calc(100% - 32px), 780px);
  max-height: min(88dvh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.group-dialog::backdrop,
.participant-dialog::backdrop {
  background: rgba(12, 17, 25, .55);
  backdrop-filter: blur(6px);
}

.group-dialog-shell {
  height: min(88dvh, 820px);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 24px;
}

.chat-create-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-2);
}

.chat-create-tabs button {
  min-height: 40px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.chat-create-tabs button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(24, 37, 61, .08);
}

.group-photo-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  cursor: pointer;
}

.group-photo-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.group-photo-preview {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

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

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

.group-photo-field small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.group-name-field {
  margin-top: 12px;
}

.people-search-field {
  min-height: 46px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
}

.people-search-field svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.people-search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.group-member-list {
  min-height: 0;
  margin-top: 12px;
  overflow: auto;
  padding-top: 5px;
}

.people-result {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.people-result > span,
.people-result strong,
.people-result small,
.people-result em {
  min-width: 0;
  display: block;
}

.people-result small,
.people-result em {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.people-result > button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.group-dialog-shell > footer {
  position: relative;
  bottom: auto;
  margin: 0 -24px -24px;
  padding: 13px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.group-avatar.has-custom-photo {
  display: block;
  padding: 0;
}

.participant-dialog-shell {
  position: relative;
  max-height: min(88dvh, 820px);
  overflow: auto;
  padding: 28px;
}

.participant-dialog-shell > .dialog-close {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
}

.participant-profile-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 28px;
}

.participant-profile-avatar {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: var(--nav);
  font-family: var(--mono);
}
.profile-photo-open .participant-profile-avatar { display: grid; }

.participant-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.participant-profile-head h2 {
  margin: 7px 0 0;
  font-size: 30px;
}

.participant-profile-head p,
.participant-profile-head > div > span:last-child {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.participant-profile-score {
  min-width: 92px;
  padding: 14px;
  border-radius: 10px;
  background: var(--warm-soft);
  text-align: center;
}

.participant-profile-score strong,
.participant-profile-score small {
  display: block;
}

.participant-profile-score strong {
  color: var(--warm-strong);
  font-family: var(--mono);
  font-size: 24px;
}

.participant-profile-score small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.participant-profile-brief {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.participant-profile-brief section {
  min-height: 152px;
  padding: 22px;
}

.participant-profile-brief section + section {
  border-left: 1px solid var(--line);
}

.participant-profile-brief section > span,
.participant-profile-reasons > strong {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.participant-profile-brief h3 {
  margin: 10px 0 0;
  font-size: 18px;
}

.participant-profile-brief p {
  margin: 8px 0 0;
  color: var(--muted);
}

.participant-profile-reasons {
  padding: 22px 0;
}

.participant-profile-reasons > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.participant-profile-reasons span {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 9px;
}

.participant-profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.participant-profile-actions > span {
  color: var(--muted);
  font-size: 10px;
}

.dialog-external-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 899px) {
  body {
    background: var(--surface);
  }

  .phone-shell {
    background: var(--surface);
  }

  .topbar {
    min-height: calc(62px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: env(safe-area-inset-top) 12px 0;
  }

  .brand-copy {
    gap: 7px;
  }

  .brand-copy .brand-logo {
    width: 35px;
    height: 24px;
  }

  .brand-copy > span {
    display: none;
  }

  .topbar-growth {
    width: 100%;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 8px;
    padding: 5px 8px 5px 5px;
    border-radius: 9px;
  }

  .topbar-level-mark {
    width: 31px;
    height: 31px;
    border-radius: 7px;
    font-size: 13px;
  }

  .topbar-level-copy small {
    font-size: 7px;
  }

  .topbar-level-copy em {
    display: none;
  }

  .topbar-progress-track {
    margin-top: 4px;
  }

  .topbar-next-step,
  .topbar-next-points,
  .topbar-next-reward,
  .topbar-user strong {
    display: none;
  }

  .topbar-user {
    display: block;
    padding: 0;
  }

  .topbar-user > span {
    width: 34px;
    height: 34px;
  }

  .views {
    min-height: calc(100dvh - 62px);
    padding: 18px 14px calc(94px + env(safe-area-inset-bottom));
  }

  .view {
    max-width: 620px;
  }

  .hero-strip,
  .section-head {
    align-items: start;
  }

  .hero-strip h1,
  .section-head h2 {
    font-size: clamp(27px, 9vw, 38px);
  }

  .bottom-nav {
    width: calc(100% - 16px);
    right: 8px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    left: 8px;
    border-radius: 16px;
  }

  .discovery-toolbar {
    gap: 8px;
  }

  .deck {
    min-height: 0;
    margin-top: 12px;
  }

  .match-card,
  .deck-state {
    min-height: 0;
    border-radius: 15px;
  }

  .card-head {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 16px 14px 15px 19px;
  }

  .card-identity {
    display: contents;
  }

  .card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .card-identity h2,
  .card-person,
  .card-identity h2.card-person {
    font-size: 20px;
  }

  .card-role,
  .card-company {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .match-signal {
    min-width: 60px;
    padding: 8px 7px;
  }

  .match-signal strong {
    font-size: 19px;
  }

  .card-profile-link {
    grid-column: 2 / -1;
    min-height: 34px;
    justify-self: start;
    padding-inline: 11px;
  }

  .collaboration-brief {
    grid-template-columns: 1fr;
  }

  .collaboration-brief section {
    min-height: 0;
    padding: 17px 19px;
  }

  .collaboration-brief section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .brief-offer h3 {
    font-size: 18px;
  }

  .brief-need p {
    font-size: 14px;
  }

  .match-context {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px 19px 0;
  }

  .interest-badge {
    justify-self: start;
  }

  .card-footer {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 16px 19px 19px;
  }

  .privacy-note {
    font-size: 10px;
  }

  .action-dock {
    grid-template-columns: 1fr 1fr;
  }

  .round-action {
    min-width: 0;
    min-height: 46px;
    padding: 0 10px;
  }

  .adjacent-recommendation {
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px;
    border-radius: 13px;
  }

  .adjacent-label {
    grid-column: 1 / -1;
    max-width: none;
  }

  .adjacent-avatar {
    width: 50px;
    height: 50px;
  }

  .adjacent-copy > em,
  .adjacent-score small {
    display: none;
  }

  .adjacent-score {
    min-width: 48px;
    padding-left: 8px;
  }

  .adjacent-recommendation > button {
    grid-column: 2 / -1;
    width: 100%;
  }

  .messages-view {
    margin: -18px -14px calc(-94px - env(safe-area-inset-bottom));
  }

  .messages-head {
    min-height: 76px;
    position: sticky;
    z-index: 3;
    top: calc(62px + env(safe-area-inset-top));
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  .messages-head h2 {
    font-size: 26px;
  }

  .messages-layout {
    height: calc(100dvh - 62px - 76px);
    min-height: 540px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .thread-search {
    width: calc(100% - 24px);
    margin: 12px;
    border-radius: 10px;
  }

  .thread-item {
    min-height: 82px;
    padding: 12px 14px;
  }

  .thread-avatar,
  .chat-avatar {
    border-radius: 12px;
  }

  .chat-head {
    min-height: 72px;
    padding: 10px 12px;
  }

  .chat-tools button:first-child {
    display: none;
  }

  .message-stack {
    padding: 16px 14px;
    background: color-mix(in srgb, var(--surface-2) 64%, var(--surface));
  }

  .message-form {
    padding: 10px 12px calc(88px + env(safe-area-inset-bottom));
  }

  .settings-workspace {
    min-height: 0;
    display: block;
    margin-top: 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .settings-tabs {
    flex-direction: row;
    gap: 5px;
    margin: 0 -14px;
    padding: 7px 14px 12px;
    overflow-x: auto;
    border: 0;
    background: transparent;
  }

  .settings-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
  }

  .settings-tabs button.is-active {
    color: #fff;
    background: var(--nav);
    box-shadow: none;
  }

  .settings-panels {
    padding: 4px 0 0;
  }

  .settings-panel > header h3 {
    font-size: 22px;
  }

  .preference-row,
  .settings-action {
    min-height: 76px;
  }

  .mission-board {
    gap: 9px;
  }

  .mission-card,
  .mission-card.is-featured {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
    border-radius: 11px;
  }

  .mission-mark {
    width: 44px;
    height: 44px;
    font-size: 8px;
  }

  .mission-card > footer,
  .mission-card.is-featured > footer {
    grid-column: 2;
    grid-template-columns: auto auto minmax(96px, auto);
    justify-content: start;
    justify-items: start;
  }

  .mission-card > footer > button,
  .mission-card.is-featured > footer > button,
  .mission-card > footer > span {
    grid-column: auto;
    margin: 0 0 0 5px;
  }

  .business-material {
    flex-basis: min(82vw, 300px);
  }

  .group-dialog,
  .participant-dialog {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .group-dialog-shell {
    height: 94dvh;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .group-dialog-shell > footer {
    margin: 0 -16px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .group-member-option {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .moderator-choice {
    margin-left: 84px;
  }

  .participant-dialog-shell {
    max-height: 94dvh;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .participant-profile-head {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 12px;
    padding-top: 26px;
  }

  .participant-profile-avatar {
    width: 74px;
    height: 74px;
    border-radius: 12px;
  }

  .participant-profile-head h2 {
    font-size: 21px;
  }

  .participant-profile-score {
    min-width: 61px;
    padding: 9px 6px;
  }

  .participant-profile-score strong {
    font-size: 18px;
  }

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

  .participant-profile-brief section {
    min-height: 0;
    padding: 18px;
  }

  .participant-profile-brief section + section {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .participant-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .participant-profile-actions .primary-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .mission-card > footer,
  .mission-card.is-featured > footer {
    grid-template-columns: auto auto;
  }

  .mission-card > footer > button,
  .mission-card.is-featured > footer > button,
  .mission-card > footer > span {
    grid-column: 1 / -1;
    margin: 5px 0 0;
  }

  .participant-profile-head {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .participant-profile-avatar {
    width: 66px;
    height: 66px;
  }

  .participant-profile-score {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* Legacy brand layer; Peregovorka overrides are kept at the end of the file. */

:root {
  --page: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #f1f3ed;
  --surface-3: #e6e9df;
  --ink: #11130f;
  --ink-soft: #30342c;
  --muted: #747b6d;
  --line: #e3e6dd;
  --line-strong: #cdd2c5;
  --accent: #2f55ff;
  --accent-strong: #2445df;
  --accent-soft: #e7ebff;
  --accent-faint: #f3f5ff;
  --accent-panel: #2449ea;
  --brand-lime: #c7f34b;
  --brand-lime-soft: #effbc7;
  --brand-lime-ink: #40550b;
  --success: #68891b;
  --success-soft: #eff8d7;
  --warm: #9ac52f;
  --warm-strong: #526b0d;
  --warm-soft: #f1f9d9;
  --nav: #11130f;
  --shadow-1: 0 8px 24px rgba(40, 52, 22, 0.06);
  --shadow-2: 0 24px 64px rgba(36, 47, 18, 0.13);
}

:root[data-theme="dark"] {
  --page: #0e100c;
  --surface: #151812;
  --surface-2: #1c2018;
  --surface-3: #282d22;
  --ink: #f5f7ef;
  --ink-soft: #d9ddcf;
  --muted: #a3aa98;
  --line: #30362a;
  --line-strong: #454d3c;
  --accent: #7188ff;
  --accent-strong: #9aaaff;
  --accent-soft: #26345e;
  --accent-faint: #1c243b;
  --accent-panel: #2d48bd;
  --brand-lime: #c7f34b;
  --brand-lime-soft: #344019;
  --brand-lime-ink: #dffb8f;
  --success: #b0d842;
  --success-soft: #2b3518;
  --warm: #c7f34b;
  --warm-strong: #dffb8f;
  --warm-soft: #344019;
  --nav: #090b08;
}

.brand-logo,
.register-logo {
  overflow: visible;
}

.brand-logo path,
.register-logo path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 13px;
  vector-effect: non-scaling-stroke;
  transition: transform 240ms var(--ease), stroke 240ms var(--ease);
}

.brand-link-blue {
  stroke: var(--accent);
  transform-origin: 31px 24px;
}

.brand-link-lime {
  stroke: var(--brand-lime);
  transform-origin: 41px 24px;
}

.brand-copy:hover .brand-link-blue,
.desktop-nav-brand:hover .brand-link-blue {
  transform: translate3d(-1px, -1px, 0);
}

.brand-copy:hover .brand-link-lime,
.desktop-nav-brand:hover .brand-link-lime {
  transform: translate3d(1px, 1px, 0);
}

.brand-copy strong,
.desktop-nav-brand strong,
.auth-wordmark strong,
.register-wordmark strong {
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: none;
}

.brand-copy small,
.desktop-nav-brand small,
.auth-wordmark small,
.register-wordmark small {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: lowercase;
}

.auth-wordmark {
  gap: 17px;
}

.auth-wordmark strong {
  font-size: 23px;
}

.auth-wordmark small {
  margin-top: 4px;
  font-size: 10px;
}

.register-wordmark strong,
.desktop-nav-brand strong {
  font-size: 20px;
}

.auth-edition {
  color: var(--accent-strong);
}

.auth-form-shell > h1,
.hero-strip h1,
.profile-view > .section-head h1,
.levels-view > .section-head h1 {
  color: var(--ink);
  font-weight: 780;
  letter-spacing: 0;
}

.primary-button,
.auth-submit,
.match-actions .like-action {
  color: #ffffff;
  background: var(--nav);
}

.primary-button:hover,
.auth-submit:hover,
.match-actions .like-action:hover {
  color: #11130f;
  background: var(--brand-lime);
}

.topbar-progress-track i,
.level-progress i,
.progress-bar i {
  background: var(--brand-lime);
}

.topbar-next-points,
.nav-badge {
  color: #263306;
  background: var(--brand-lime);
}

.interest-badge,
.profile-status.is-active {
  color: var(--brand-lime-ink);
  background: var(--brand-lime-soft);
}

:root[data-theme="dark"] .primary-button:hover,
:root[data-theme="dark"] .auth-submit:hover,
:root[data-theme="dark"] .match-actions .like-action:hover {
  color: #11130f;
}

@media (max-width: 899px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 8px;
  }
}

/* Profile awards */

.profile-featured-awards {
  min-height: 42px;
  display: flex;
  align-items: end;
  gap: 7px;
  margin-top: 12px;
}

.profile-awards-section {
  margin-top: 26px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.profile-awards-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-awards-head h3 {
  max-width: 700px;
  margin: 8px 0 0;
  font-size: 32px;
  line-height: 1.08;
  text-wrap: balance;
}

.profile-awards-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.profile-awards-head > strong {
  min-width: 86px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

.profile-awards-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1px;
  background: var(--line);
}

.award-card {
  min-width: 0;
  min-height: 196px;
  position: relative;
  display: grid;
  grid-template-columns: 28px 92px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 14px 18px;
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: background 180ms ease, transform 180ms var(--ease);
}

.award-card:first-child {
  min-height: 224px;
  grid-column: 1 / -1;
  grid-template-columns: 34px 116px minmax(0, 1fr) auto;
  padding: 28px 30px;
}

button.award-card:hover {
  z-index: 1;
  background: var(--accent-faint);
}

button.award-card:active {
  transform: scale(0.992);
}

button.award-card:focus-visible {
  z-index: 2;
  outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: -3px;
}

.award-card.is-featured {
  box-shadow: inset 4px 0 var(--accent);
}

.award-card.is-locked {
  color: color-mix(in srgb, var(--ink) 48%, var(--surface));
  background: color-mix(in srgb, var(--surface-2) 64%, var(--surface));
}

.award-index {
  align-self: start;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.award-card-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
}

.award-category {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.award-card-copy > strong {
  font-size: 21px;
  line-height: 1.1;
}

.award-card:first-child .award-card-copy > strong {
  font-size: 29px;
}

.award-card-copy > span:not(.award-category) {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
  text-wrap: pretty;
}

.award-card-copy > small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.award-card-state {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.award-card:first-child .award-card-state {
  grid-column: 3;
}

.award-card-action {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 800;
}

.award-card:first-child .award-card-action {
  grid-column: 4;
  grid-row: 1 / 3;
  align-self: end;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.award-lock {
  width: 26px;
  height: 26px;
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.award-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.award-medal {
  --award-color: #414854;
  --award-color-2: #272d36;
  --award-ink: #fff;
  width: 86px;
  height: 98px;
  position: relative;
  display: grid;
  place-items: end center;
  justify-self: center;
  color: var(--award-ink);
}

.award-card:first-child .award-medal {
  width: 108px;
  height: 120px;
}

.award-tab {
  width: 38px;
  height: 33px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--award-color-2);
  clip-path: polygon(9% 0, 91% 0, 78% 100%, 50% 82%, 22% 100%);
}

.award-plate {
  width: 78px;
  height: 76px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--award-color) 58%, var(--surface));
  border-radius: 25px 15px 27px 17px;
  background: var(--award-color);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--award-ink) 34%, transparent),
    0 9px 18px color-mix(in srgb, var(--award-color) 20%, transparent);
}

.award-card:first-child .award-plate {
  width: 96px;
  height: 94px;
  border-radius: 30px 18px 34px 20px;
}

.award-plate::after {
  content: "";
  width: 34px;
  height: 34px;
  position: absolute;
  right: -15px;
  bottom: -12px;
  border: 7px solid color-mix(in srgb, var(--award-ink) 28%, transparent);
  border-radius: 50%;
}

.award-plate svg {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.award-plate svg text {
  fill: currentColor;
  stroke: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
}

.award-plate > small {
  min-width: 19px;
  height: 19px;
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 7px;
  color: var(--award-color);
  background: var(--award-ink);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}

.award-medal.tone-heritage { --award-color: #ef5a50; --award-color-2: #1736da; }
.award-medal.tone-coral { --award-color: #ed6b60; --award-color-2: #a93439; }
.award-medal.tone-cobalt { --award-color: #2858ec; --award-color-2: #17319d; }
.award-medal.tone-emerald { --award-color: #238069; --award-color-2: #124d42; }
.award-medal.tone-violet { --award-color: #765dc7; --award-color-2: #403273; }
.award-medal.tone-amber { --award-color: #d68b28; --award-color-2: #825018; }
.award-medal.tone-lime { --award-color: #cbf45a; --award-color-2: #2547e5; --award-ink: #17201c; }
.award-medal.tone-graphite { --award-color: #495261; --award-color-2: #272d36; }

.award-medal.visual-cohort .award-plate {
  background: linear-gradient(135deg, #2858ec 0 62%, #cbf45a 62% 100%);
}

.award-medal.visual-forum-28 .award-plate { transform: rotate(-2deg); }
.award-medal.visual-forum-29 .award-plate { transform: rotate(2deg); }
.award-medal.visual-speaker .award-plate { border-radius: 18px 31px 19px 28px; }
.award-medal.visual-expert .award-plate { clip-path: polygon(50% 0, 93% 22%, 88% 76%, 50% 100%, 12% 76%, 7% 22%); }
.award-medal.visual-in-demand .award-plate { border-radius: 38px 18px 38px 18px; }
.award-medal.visual-inviter .award-plate { border-radius: 17px 17px 34px 34px; }

.award-medal.is-locked {
  --award-color: #9da3ab;
  --award-color-2: #7b828b;
  --award-ink: #f2f3f5;
  filter: grayscale(1);
  opacity: 0.52;
}

.award-medal.is-compact {
  width: 36px;
  height: 41px;
  justify-self: auto;
}

.award-medal.is-compact .award-tab {
  width: 16px;
  height: 14px;
  top: 0;
}

.award-medal.is-compact .award-plate {
  width: 34px;
  height: 33px;
  border-width: 1px;
  border-radius: 11px 7px 12px 8px;
  box-shadow: none;
}

.award-medal.is-compact .award-plate svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.8;
}

.award-medal.is-compact .award-plate svg text { font-size: 10px; }
.award-medal.is-compact .award-plate::after { display: none; }

.award-medal.is-compact .award-plate > small {
  min-width: 12px;
  height: 12px;
  right: -2px;
  top: -3px;
  padding: 0 2px;
  border: 1px solid var(--surface);
  border-radius: 4px;
  font-size: 6px;
}

.participant-featured-awards,
.card-awards {
  display: flex;
  align-items: end;
  gap: 5px;
}

.card-awards {
  min-height: 41px;
  margin-top: 7px;
}

.participant-profile-head .participant-featured-awards {
  min-height: 41px;
  margin-top: 8px;
}

.award-progress-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 650;
}

.award-progress-copy strong {
  color: var(--ink);
  font-family: var(--mono);
}

.award-progress {
  width: min(260px, 100%);
  height: 5px;
  display: block;
  overflow: hidden;
  border-radius: 0;
  background: var(--surface-3);
}

.award-progress > i {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: left center;
  background: var(--accent);
  transition: transform 360ms var(--ease);
}

.awards-loading {
  grid-column: 1 / -1;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}

.awards-loading i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: loading-pulse 900ms ease-in-out infinite alternate;
}

.awards-loading i:nth-child(2) { animation-delay: 120ms; }
.awards-loading i:nth-child(3) { animation-delay: 240ms; }

@media (max-width: 899px) {
  .profile-awards-section {
    margin-top: 14px;
    padding: 22px 18px;
  }

  .profile-awards-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .award-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .profile-awards-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }

  .profile-awards-head h3 {
    font-size: 25px;
  }

  .profile-awards-head p {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .profile-awards-head > strong {
    min-width: 72px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .award-card,
  .award-card:first-child {
    min-height: 184px;
    grid-template-columns: 22px 76px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 12px;
    padding: 20px 14px;
  }

  .award-card:first-child .award-medal,
  .award-medal {
    width: 74px;
    height: 88px;
  }

  .award-card:first-child .award-plate,
  .award-plate {
    width: 66px;
    height: 64px;
    border-width: 2px;
  }

  .award-card:first-child .award-plate svg,
  .award-plate svg {
    width: 38px;
    height: 38px;
  }

  .award-card-copy > strong,
  .award-card:first-child .award-card-copy > strong {
    font-size: 19px;
  }

  .award-card-copy > span:not(.award-category) {
    font-size: 11px;
  }

  .award-card-state,
  .award-card:first-child .award-card-state {
    grid-column: 2 / 4;
  }

  .award-card-action,
  .award-card:first-child .award-card-action {
    grid-column: 3;
    grid-row: 2;
    align-self: auto;
    justify-self: end;
    padding: 0;
    border: 0;
  }

  .award-lock {
    right: 14px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .award-card,
  .awards-loading i {
    transition: none;
    animation: none;
  }
}

/* Level-gated materials, compact missions and pinned conversations */

@media (min-width: 900px) {
  .desktop-nav-user {
    margin-top: auto;
  }
}

.missions-open-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
  font-weight: 750;
}

.missions-open-button:hover {
  border-color: var(--ink-soft);
  background: var(--surface-2);
}

.missions-open-button > span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.missions-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.missions-dialog::backdrop {
  background: rgba(12, 17, 25, .56);
  backdrop-filter: blur(7px);
}

.missions-dialog-shell {
  max-height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.missions-dialog-shell > header {
  position: relative;
  padding: 24px 72px 20px 24px;
  border-bottom: 1px solid var(--line);
}

.missions-dialog-shell > header h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

.missions-dialog-shell > header p {
  max-width: 58ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

#missions-dialog-content {
  min-height: 0;
  overflow: auto;
  padding: 20px 24px 28px;
}

.mission-board-full {
  gap: 9px;
}

.thread-row {
  position: relative;
  border-top: 1px solid var(--line);
}

.thread-row .thread-item {
  padding-right: 54px;
  border-top: 0;
}

.thread-pin-button {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-50%);
  transition: color 180ms ease-out, background 180ms ease-out, opacity 180ms ease-out;
}

.thread-row:hover .thread-pin-button,
.thread-row.is-pinned .thread-pin-button,
.thread-pin-button:focus-visible {
  opacity: 1;
}

.thread-pin-button:hover,
.thread-pin-button[aria-pressed="true"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.thread-pin-button svg,
.chat-pin-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.chat-tools .chat-pin-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-network-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.social-network-list > a {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 180ms ease-out, background 180ms ease-out, transform 180ms ease-out;
}

.social-network-list > a:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateX(2px);
}

.social-network-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-2);
}

.social-network-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-network-icon.telegram { color: #268bd2; }
.social-network-icon.telegram svg { width: 22px; height: 22px; }

.social-network-list strong,
.social-network-list small {
  display: block;
}

.social-network-list strong {
  font-size: 13px;
}

.social-network-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.social-network-list > a > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

@media (max-width: 899px) {
  .levels-section-head {
    align-items: center;
  }

  .missions-open-button {
    min-height: 38px;
  }

  .missions-dialog {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .missions-dialog-shell {
    max-height: 94dvh;
  }

  .missions-dialog-shell > header {
    padding: 20px 64px 17px 16px;
  }

  .missions-dialog-shell > header h2 {
    font-size: 24px;
  }

  #missions-dialog-content {
    padding: 14px 14px calc(24px + env(safe-area-inset-bottom));
  }

  .thread-pin-button {
    right: 10px;
    opacity: 1;
  }

  .chat-tools button:first-child {
    display: inline-flex;
  }

  .chat-tools [data-action="toggle-collab-rules"] {
    display: none;
  }

  .chat-pin-button span {
    display: none;
  }
}

@media (max-width: 560px) {
  .levels-section-head {
    align-items: flex-start;
  }

  .levels-section-head h3 {
    font-size: 21px;
  }

  .missions-open-button {
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .missions-open-button > span {
    display: none;
  }

  .video-review-form {
    grid-template-columns: 1fr;
    grid-template-areas: "label" "field" "hint";
    gap: 8px;
    padding: 16px;
  }

  .video-review-form > div {
    grid-template-columns: 1fr;
  }
}

/* Business diagnostic bot */
.tool-dialog.is-audit {
  width: min(calc(100% - 32px), 1080px);
  max-height: min(92dvh, 920px);
  border-radius: 16px;
}

.tool-dialog.is-audit .tool-dialog-shell {
  max-height: min(92dvh, 920px);
  padding: 0;
}

.tool-dialog.is-audit .dialog-close {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  color: #101722;
  background: rgba(255, 255, 255, .9);
  border-color: rgba(17, 17, 17, .16);
}

.business-audit-bot {
  min-height: 620px;
}

.audit-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-brand i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #2161f5;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.audit-intro {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr);
}

.audit-intro-main {
  align-self: center;
  padding: 58px clamp(36px, 6vw, 76px);
}

.audit-intro-main h2 {
  max-width: 680px;
  margin: 38px 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: .98;
  letter-spacing: 0;
}

.audit-intro-main > p {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.audit-facts {
  display: flex;
  gap: 30px;
  margin-top: 34px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.audit-facts span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.audit-facts strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 22px;
}

.audit-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.audit-intro-actions .primary-button,
.audit-intro-actions .secondary-button {
  min-height: 52px;
}

.audit-text-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  color: var(--accent-strong);
  background: transparent;
  font-weight: 750;
}

.audit-intro-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 42px 44px;
  color: #f7f9fc;
  background: #101722;
}

.audit-intro-aside > span {
  color: #89a8ff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-intro-aside ol {
  display: grid;
  gap: 0;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.audit-intro-aside li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.audit-intro-aside li i {
  grid-row: 1 / 3;
  color: #ff8379;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
}

.audit-intro-aside li strong {
  font-size: 15px;
}

.audit-intro-aside li small,
.audit-intro-aside > p {
  color: #9aa6b8;
  font-size: 10px;
  line-height: 1.45;
}

.audit-intro-aside > p {
  margin: auto 0 0;
}

.audit-workspace {
  min-height: 670px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.audit-rail {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  color: #f7f9fc;
  background: #101722;
}

.audit-rail .audit-brand i {
  background: #ff746a;
}

.audit-progress-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 52px;
}

.audit-progress-copy strong {
  font-family: var(--mono);
  font-size: 30px;
}

.audit-progress-copy span {
  color: #9aa6b8;
  font-size: 10px;
}

.audit-progress-track {
  height: 3px;
  margin: 13px 0 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, .15);
}

.audit-progress-track i {
  display: block;
  height: 100%;
  background: #ff746a;
  transition: width .3s ease;
}

.audit-rail ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-rail li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 9px;
  border-left: 2px solid transparent;
  color: #8995a7;
  font-size: 10px;
  transition: color .2s ease, background .2s ease;
}

.audit-rail li.is-active {
  border-left-color: #ff746a;
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.audit-rail li.is-complete strong {
  color: #61c29b;
}

.audit-rail li strong {
  font-family: var(--mono);
  font-size: 9px;
}

.audit-rail > button {
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  color: #9aa6b8;
  background: transparent;
  font-size: 10px;
  text-align: left;
}

.audit-conversation {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px clamp(24px, 5vw, 64px) 34px;
  background: var(--surface);
}

.audit-conversation > header {
  display: flex;
  justify-content: space-between;
  padding-right: 50px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-conversation > header strong {
  color: var(--accent-strong);
  font-family: var(--mono);
}

.audit-bot-message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  margin-top: 70px;
}

.audit-bot-message > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2161f5;
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.audit-bot-message span,
.audit-answer-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-bot-message h3 {
  max-width: 760px;
  margin: 10px 0 12px;
  font-size: clamp(25px, 3.2vw, 38px);
  line-height: 1.08;
}

.audit-bot-message p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.audit-answer-label {
  margin: 44px 0 12px 58px;
}

.audit-answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-left: 58px;
}

.audit-answer-grid button {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.audit-answer-grid button:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.audit-answer-grid button.is-selected {
  border-color: #2161f5;
  color: #101722;
  background: #edf3ff;
  box-shadow: inset 0 0 0 1px #2161f5;
}

.audit-answer-grid button strong {
  font-size: 12px;
}

.audit-answer-grid button span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.audit-answer-grid button i {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
}

.audit-answer-grid button.is-selected i {
  color: #2161f5;
}

.audit-conversation > footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: auto 0 0 58px;
  padding-top: 36px;
}

.audit-nav-back {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
}

.audit-nav-back:disabled {
  opacity: .35;
}

.audit-conversation > footer .primary-button {
  min-width: 180px;
}

.audit-result {
  padding: 30px clamp(24px, 4vw, 52px) 42px;
}

.audit-result > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 58px;
}

.audit-result > header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.audit-result > header > button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 750;
}

.audit-scoreboard {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  margin-top: 30px;
  color: #fff;
  background: #101722;
}

.audit-score,
.audit-verdict {
  padding: 34px;
}

.audit-score {
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.audit-score > span,
.audit-verdict > span,
.audit-category-card > span,
.audit-summary-card > span,
.audit-priority-plan > div:first-child > span {
  color: #89a8ff;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.audit-score > strong {
  display: block;
  margin-top: 22px;
  color: #ff8379;
  font-family: var(--mono);
  font-size: 72px;
  line-height: .9;
}

.audit-score > strong small {
  color: #8d99aa;
  font-size: 18px;
}

.audit-verdict h2 {
  margin: 16px 0 9px;
  color: #fff;
  font-size: 34px;
}

.audit-verdict p {
  max-width: 58ch;
  margin: 0;
  color: #aeb8c7;
  font-size: 11px;
  line-height: 1.55;
}

.audit-verdict small {
  display: inline-block;
  margin-top: 22px;
  color: #61c29b;
  font-size: 9px;
  font-weight: 800;
}

.audit-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 12px;
  margin-top: 12px;
}

.audit-category-card,
.audit-summary-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.audit-category-card > span,
.audit-summary-card > span,
.audit-priority-plan > div:first-child > span {
  color: var(--accent-strong);
}

.audit-category-card h3,
.audit-summary-card h3,
.audit-priority-plan h3 {
  margin: 8px 0 20px;
  font-size: 22px;
}

.audit-category-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audit-category-card li span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 10px;
}

.audit-category-card li em {
  color: var(--muted);
  font-family: var(--mono);
  font-style: normal;
}

.audit-category-card li > div {
  height: 5px;
  overflow: hidden;
  background: var(--surface-3);
}

.audit-category-card li > div i {
  display: block;
  height: 100%;
  background: #2161f5;
}

.audit-summary-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.58;
}

.audit-summary-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 0;
}

.audit-summary-card dl div {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.audit-summary-card dt {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.audit-summary-card dd {
  margin: 5px 0 0;
  font-size: 10px;
  font-weight: 800;
}

.audit-priority-plan {
  margin-top: 34px;
}

.audit-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-priority-grid article {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-top: 3px solid #ff746a;
  background: var(--surface-2);
}

.audit-priority-grid article > span {
  color: #c94b44;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.audit-priority-grid h4 {
  margin: 18px 0 12px;
  font-size: 14px;
  line-height: 1.35;
}

.audit-priority-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.audit-priority-grid footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.audit-priority-grid footer small,
.audit-priority-grid footer strong {
  display: block;
}

.audit-priority-grid footer small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.audit-priority-grid footer strong {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.4;
}

.audit-result-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .tool-dialog.is-audit {
    width: 100%;
    max-height: 96dvh;
    margin: auto 0 0;
    border-radius: 16px 16px 0 0;
  }

  .tool-dialog.is-audit .tool-dialog-shell {
    max-height: 96dvh;
    padding: 0;
  }

  .tool-dialog.is-audit .dialog-close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
  }

  .business-audit-bot {
    min-height: 0;
  }

  .audit-intro {
    min-height: 0;
    display: block;
  }

  .audit-intro-main {
    padding: 34px 18px 30px;
  }

  .audit-intro-main h2 {
    margin: 42px 0 16px;
    padding-right: 28px;
    font-size: 38px;
  }

  .audit-intro-main > p {
    font-size: 12px;
  }

  .audit-facts {
    gap: 16px;
    justify-content: space-between;
  }

  .audit-facts span {
    display: grid;
    gap: 3px;
  }

  .audit-intro-actions,
  .audit-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .audit-intro-actions button,
  .audit-result-actions button {
    width: 100%;
  }

  .audit-intro-aside {
    min-height: 420px;
    padding: 36px 20px 28px;
  }

  .audit-workspace {
    min-height: calc(96dvh - env(safe-area-inset-bottom));
    display: block;
  }

  .audit-rail {
    min-height: auto;
    padding: 16px 64px 14px 16px;
  }

  .audit-rail .audit-brand {
    font-size: 9px;
  }

  .audit-rail .audit-brand i {
    width: 30px;
    height: 30px;
  }

  .audit-progress-copy {
    margin-top: 16px;
  }

  .audit-progress-copy strong {
    font-size: 20px;
  }

  .audit-progress-track {
    margin: 8px 0 0;
  }

  .audit-rail ul,
  .audit-rail > button {
    display: none;
  }

  .audit-conversation {
    min-height: calc(96dvh - 112px - env(safe-area-inset-bottom));
    padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  }

  .audit-conversation > header {
    padding-right: 0;
  }

  .audit-bot-message {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    margin-top: 34px;
  }

  .audit-bot-message > i {
    width: 34px;
    height: 34px;
  }

  .audit-bot-message h3 {
    font-size: 26px;
  }

  .audit-bot-message p {
    font-size: 11px;
  }

  .audit-answer-label {
    margin: 34px 0 10px;
  }

  .audit-answer-grid {
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
  }

  .audit-answer-grid button {
    min-height: 92px;
    padding: 13px;
  }

  .audit-conversation > footer {
    position: sticky;
    bottom: 0;
    margin: auto -16px -20px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }

  .audit-conversation > footer .primary-button {
    min-width: 0;
  }

  .audit-result {
    padding: 24px 14px calc(28px + env(safe-area-inset-bottom));
  }

  .audit-result > header {
    padding-right: 52px;
  }

  .audit-result > header > button {
    display: none;
  }

  .audit-scoreboard {
    grid-template-columns: 112px minmax(0, 1fr);
    margin-top: 24px;
  }

  .audit-score,
  .audit-verdict {
    padding: 20px 14px;
  }

  .audit-score > strong {
    font-size: 42px;
  }

  .audit-score > span {
    font-size: 7px;
  }

  .audit-verdict h2 {
    font-size: 22px;
  }

  .audit-result-grid,
  .audit-priority-grid {
    grid-template-columns: 1fr;
  }

  .audit-priority-grid article {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audit-progress-track i,
  .audit-answer-grid button {
    transition: none;
  }
}

/* Mobile app layout: compact discovery, stable profile stats and full-screen chat */

.mobile-discovery-bar {
  display: none;
}

.discovery-filter-dialog {
  width: min(560px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.discovery-filter-dialog::backdrop {
  background: rgba(12, 17, 25, 0.5);
  backdrop-filter: blur(7px);
}

.discovery-filter-shell {
  padding: 24px;
}

.discovery-filter-shell > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.discovery-filter-shell h2 {
  margin: 8px 0 0;
  font-size: 28px;
}

.mobile-mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.mobile-mode-picker legend,
.mobile-region-picker > span {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-mode-picker button {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  text-align: left;
}

.mobile-mode-picker button.is-active {
  border-color: var(--ink);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.mobile-mode-picker button span {
  font-weight: 800;
}

.mobile-mode-picker button small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.mobile-region-picker {
  display: block;
  margin-top: 22px;
}

.mobile-region-picker select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
}

.discovery-filter-shell > footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 899px) {
  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .topbar-growth {
    display: none;
  }

  .mobile-discovery-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .mobile-discovery-search {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
  }

  .mobile-discovery-search:focus-within {
    border-color: var(--ink-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
  }

  .mobile-discovery-search svg,
  .mobile-filter-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-discovery-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
  }

  .mobile-filter-button {
    width: 48px;
    height: 48px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface);
  }

  .mobile-filter-button > span {
    min-width: 18px;
    height: 18px;
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--surface);
    border-radius: 9px;
    color: #fff;
    background: var(--accent);
    font-family: var(--mono);
    font-size: 8px;
  }

  .discovery-toolbar,
  .discovery-view > .filter-status {
    display: none;
  }

  .discovery-view .hero-strip h1 {
    max-width: 12ch;
    font-size: clamp(30px, 8.7vw, 36px);
  }

  .discovery-view .deck {
    margin-top: 10px;
  }

  .discovery-filter-dialog {
    width: 100%;
    max-width: none;
    max-height: 92dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .discovery-filter-shell {
    max-height: 92dvh;
    overflow: auto;
    padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
  }

  .discovery-filter-shell h2 {
    font-size: 25px;
  }

  .profile-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "snapshot"
      "status"
      "offer"
      "need"
      "interests";
  }

  .profile-snapshot {
    width: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-snapshot div {
    min-width: 0;
    padding: 15px 5px;
  }

  .profile-snapshot span {
    min-height: 24px;
    display: grid;
    place-items: start center;
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .profile-status {
    width: auto;
    min-height: 74px;
  }

  body[data-view="messages"].is-chat-open {
    overflow: hidden;
  }

  body[data-view="messages"].is-chat-open .topbar,
  body[data-view="messages"].is-chat-open .bottom-nav,
  body[data-view="messages"].is-chat-open .messages-head {
    display: none;
  }

  .phone-shell.is-chat-open,
  .phone-shell.is-chat-open .views,
  .phone-shell.is-chat-open .messages-view,
  .phone-shell.is-chat-open .messages-layout,
  .phone-shell.is-chat-open .chat-panel {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
  }

  .phone-shell.is-chat-open .views {
    overflow: hidden;
    padding: 0;
  }

  .phone-shell.is-chat-open .messages-view,
  .phone-shell.is-chat-open .messages-layout {
    max-width: none;
    margin: 0;
  }

  .phone-shell.is-chat-open .chat-head {
    min-height: calc(72px + env(safe-area-inset-top));
    padding-top: calc(10px + env(safe-area-inset-top));
  }

  .phone-shell.is-chat-open .message-stack {
    padding: 18px 14px;
  }

  .phone-shell.is-chat-open .bubble {
    max-width: 88%;
    font-size: 16px;
    line-height: 1.45;
  }

  .phone-shell.is-chat-open .message-form {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .mobile-mode-picker {
    grid-template-columns: 1fr;
  }

  .discovery-filter-shell > footer {
    grid-template-columns: 1fr 1.35fr;
  }

  .profile-snapshot {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* Final brand cascade: keep the product palette authoritative. */

:root {
  --page: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #f1f3ed;
  --surface-3: #e6e9df;
  --ink: #11130f;
  --ink-soft: #30342c;
  --muted: #747b6d;
  --line: #e3e6dd;
  --line-strong: #cdd2c5;
  --accent: #2f55ff;
  --accent-strong: #2445df;
  --accent-soft: #e7ebff;
  --accent-faint: #f3f5ff;
  --accent-panel: #2449ea;
  --brand-lime: #c7f34b;
  --brand-lime-soft: #effbc7;
  --brand-lime-ink: #40550b;
  --success: #68891b;
  --success-soft: #eff8d7;
  --warm: #9ac52f;
  --warm-strong: #40550b;
  --warm-soft: #effbc7;
  --nav: #11130f;
}

:root[data-theme="dark"] {
  --page: #0e100c;
  --surface: #151812;
  --surface-2: #1c2018;
  --surface-3: #282d22;
  --ink: #f5f7ef;
  --ink-soft: #d9ddcf;
  --muted: #a3aa98;
  --line: #30362a;
  --line-strong: #454d3c;
  --accent: #7188ff;
  --accent-strong: #9aaaff;
  --accent-soft: #26345e;
  --accent-faint: #1c243b;
  --accent-panel: #2d48bd;
  --brand-lime: #c7f34b;
  --brand-lime-soft: #344019;
  --brand-lime-ink: #dffb8f;
  --success: #b0d842;
  --success-soft: #2b3518;
  --warm: #c7f34b;
  --warm-strong: #dffb8f;
  --warm-soft: #344019;
  --nav: #090b08;
}

.match-card::before {
  background: var(--accent);
}

.match-signal {
  background: var(--brand-lime-soft);
}

.match-signal strong {
  color: var(--brand-lime-ink);
}

.mobile-home {
  display: none;
}

.award-medal.visual-early .award-plate {
  border-radius: 12px 12px 26px 26px;
  background: var(--award-color);
  box-shadow: inset 0 -11px 0 color-mix(in srgb, var(--award-color-2) 72%, transparent);
}

@media (max-width: 899px) {
  .discovery-view > .hero-strip,
  .discovery-view > .discovery-toolbar,
  .discovery-view > .filter-status,
  .discovery-view > .deck {
    display: none;
  }

  .mobile-home {
    display: block;
    padding-bottom: 18px;
  }

  .mobile-home-intro h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--ink);
    font-size: 34px;
    line-height: 1.03;
    letter-spacing: 0;
  }

  .mobile-home-intro p {
    max-width: 34ch;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.42;
  }

  .mobile-home-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
  }

  .mobile-home-search-row .mobile-discovery-search {
    min-height: 52px;
    border-color: var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
  }

  .mobile-home-search-row .mobile-filter-button {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .mobile-home-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
  }

  .mobile-home-tabs > button {
    min-width: 0;
    min-height: 88px;
    display: grid;
    grid-template-rows: 42px auto;
    align-items: center;
    justify-items: center;
    gap: 7px;
    padding: 9px 3px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink-soft);
    background: var(--surface);
    font-size: 10px;
    font-weight: 760;
    line-height: 1.1;
  }

  .mobile-home-tabs > button > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--accent);
    background: var(--accent-faint);
  }

  .mobile-home-tabs > button:nth-child(2) > span {
    color: #a5650c;
    background: #fff2d6;
  }

  .mobile-home-tabs > button:nth-child(3) > span {
    color: #18755f;
    background: #e4f6ef;
  }

  .mobile-home-tabs > button:nth-child(4) > span {
    color: #ac3f37;
    background: #fff0ed;
  }

  .mobile-home-tabs > button.is-active {
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--ink);
  }

  .mobile-home-tabs svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-home-feed {
    margin-top: 26px;
  }

  .mobile-home-feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }

  .mobile-home-feed-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
  }

  .mobile-home-feed-head > span {
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-home-content {
    display: grid;
    gap: 9px;
  }

  .mobile-home-person,
  .mobile-home-project,
  .mobile-event-card {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    overflow: hidden;
  }

  .mobile-home-person > button,
  .mobile-home-project > button {
    width: 100%;
    min-width: 0;
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
  }

  .mobile-home-project > button {
    align-items: start;
  }

  .mobile-home-avatar {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    align-self: start;
    overflow: hidden;
    border-radius: 13px;
    color: #ffffff;
    background: var(--accent);
    font-size: 16px;
    font-weight: 850;
  }

  .mobile-home-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .mobile-home-person-copy,
  .mobile-home-project-copy {
    min-width: 0;
    display: grid;
  }

  .mobile-home-person-copy > strong,
  .mobile-home-project-copy > strong {
    font-size: 16px;
    line-height: 1.15;
  }

  .mobile-home-person-copy > small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-home-person-copy > em {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-home-person-copy .participant-featured-awards {
    margin-top: 7px;
  }

  .mobile-home-person-copy .award-medal.is-compact {
    width: 25px;
    height: 29px;
  }

  .mobile-home-person-copy .award-medal.is-compact .award-tab {
    width: 11px;
    height: 9px;
  }

  .mobile-home-person-copy .award-medal.is-compact .award-plate {
    width: 25px;
    height: 25px;
  }

  .mobile-home-person-copy .award-medal.is-compact svg {
    width: 15px;
    height: 15px;
  }

  .mobile-home-match {
    min-width: 58px;
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 7px 6px;
    border-radius: 10px;
    color: var(--brand-lime-ink);
    background: var(--brand-lime-soft);
  }

  .mobile-home-match strong {
    font-size: 15px;
  }

  .mobile-home-match small {
    font-size: 7px;
    font-weight: 760;
    text-transform: uppercase;
  }

  .mobile-home-arrow,
  .mobile-interest-list svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  .mobile-home-project-copy > span {
    margin-bottom: 4px;
    color: var(--accent-strong);
    font-size: 8px;
    font-weight: 820;
    text-transform: uppercase;
  }

  .mobile-home-project-copy p {
    display: -webkit-box;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-home-project-copy small {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobile-home-project-score {
    min-width: 42px;
    padding: 7px 5px;
    border-radius: 9px;
    color: var(--brand-lime-ink);
    background: var(--brand-lime-soft);
    font-size: 13px;
    font-weight: 850;
    text-align: center;
  }

  .mobile-interest-list {
    display: grid;
    border-top: 1px solid var(--line);
  }

  .mobile-interest-list > button {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    text-align: left;
  }

  .mobile-interest-list > button > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #18755f;
    background: #e4f6ef;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-interest-list > button > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-interest-list > button > small {
    color: var(--muted);
    font-size: 9px;
  }

  .mobile-event-card {
    padding: 15px;
  }

  .mobile-event-card > header {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .mobile-event-date {
    min-height: 66px;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 12px;
    color: #0e2607;
    background: var(--brand-lime);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
  }

  .mobile-event-card header strong,
  .mobile-event-card header small {
    display: block;
  }

  .mobile-event-card header strong {
    font-size: 18px;
    line-height: 1.15;
  }

  .mobile-event-card header small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-event-card ol {
    margin: 16px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
  }

  .mobile-event-card li {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .mobile-event-card time {
    color: var(--accent-strong);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .mobile-event-card li strong {
    font-size: 12px;
    line-height: 1.35;
  }

  .mobile-event-card > a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 0 14px;
    border-radius: 11px;
    color: #ffffff;
    background: var(--ink);
    font-size: 12px;
    font-weight: 780;
    text-decoration: none;
  }

  .mobile-event-card > a svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-home-loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .mobile-home-loading i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 900ms ease-in-out infinite alternate;
  }

  .mobile-home-loading i:nth-child(2) { animation-delay: 120ms; }
  .mobile-home-loading i:nth-child(3) { animation-delay: 240ms; }

  .mobile-home-empty {
    margin: 0;
    padding: 24px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    background: var(--surface);
    font-size: 13px;
    line-height: 1.45;
  }
}

@media (max-width: 370px) {
  .mobile-home-intro h1 {
    font-size: 31px;
  }

  .mobile-home-tabs {
    gap: 5px;
  }

  .mobile-home-tabs > button {
    font-size: 9px;
  }

  .mobile-home-person > button,
  .mobile-home-project > button {
    grid-template-columns: 56px minmax(0, 1fr) 16px;
  }

  .mobile-home-avatar {
    width: 56px;
    height: 56px;
  }

  .mobile-home-match,
  .mobile-home-project-score {
    display: none;
  }
}

/* Mobile response flow and gesture polish */
.bottom-nav .mobile-responses-nav,
.profile-settings-button {
  display: none;
}

.responses-view {
  max-width: 980px;
}

.responses-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 22px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.responses-tabs button {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  transition: color 180ms ease, background-color 180ms ease, transform 150ms ease;
}

.responses-tabs button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

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

.response-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.response-person {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.response-person > span:nth-child(2) {
  min-width: 0;
  display: grid;
}

.response-person strong {
  font-size: 17px;
  line-height: 1.2;
}

.response-person small,
.response-person em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.response-person em {
  margin-top: 5px;
  color: var(--ink-soft);
}

.response-person b {
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--brand-lime-ink);
  background: var(--brand-lime-soft);
  font-size: 14px;
}

.response-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--line);
}

.response-actions button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  transition: transform 150ms ease, background-color 180ms ease, border-color 180ms ease;
}

.response-profile,
.response-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.response-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--ink);
  color: var(--surface);
  background: var(--ink);
}

.response-primary svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.response-status {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.responses-empty {
  padding: 34px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-align: center;
}

.responses-empty strong {
  font-size: 18px;
}

.responses-empty p {
  max-width: 42ch;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes mobile-view-enter {
  from { opacity: 0.45; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mobile-item-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 899px) {
  .settings-nav-button {
    display: none !important;
  }

  .bottom-nav .mobile-responses-nav {
    display: flex;
  }

  .view.is-active {
    animation: mobile-view-enter 280ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .bottom-nav > button,
  .mobile-home-tabs > button,
  .mobile-filter-button,
  .profile-settings-button,
  .mobile-home-card-actions button,
  .response-actions button,
  .responses-tabs button {
    -webkit-tap-highlight-color: transparent;
    transition: transform 150ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
  }

  .bottom-nav > button:active,
  .mobile-home-tabs > button:active,
  .mobile-filter-button:active,
  .profile-settings-button:active,
  .mobile-home-card-actions button:active,
  .response-actions button:active,
  .responses-tabs button:active {
    transform: scale(0.96);
  }

  .mobile-home-intro {
    padding-bottom: 12px;
  }

  .mobile-home-intro h1 {
    max-width: none;
    font-size: 30px;
    line-height: 1.04;
  }

  .mobile-home-intro p {
    display: none;
  }

  .mobile-home-search-row {
    margin-top: 16px;
  }

  .mobile-home-feed {
    margin-top: 20px;
  }

  .mobile-home-person,
  .mobile-home-project,
  .mobile-event-card,
  .response-card {
    animation: mobile-item-enter 300ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .mobile-home-person {
    position: relative;
    touch-action: pan-y;
    background: var(--surface-2);
  }

  .mobile-swipe-cue {
    position: absolute;
    inset-block: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 820;
    opacity: 0;
    transition: opacity 130ms ease;
  }

  .mobile-swipe-cue.is-like {
    left: 16px;
    color: #163b0b;
  }

  .mobile-swipe-cue.is-skip {
    right: 16px;
    color: #a8322b;
  }

  .mobile-home-person[data-swipe-direction="like"] .mobile-swipe-cue.is-like,
  .mobile-home-person[data-swipe-direction="skip"] .mobile-swipe-cue.is-skip,
  .mobile-home-person.is-leaving-right .mobile-swipe-cue.is-like,
  .mobile-home-person.is-leaving-left .mobile-swipe-cue.is-skip {
    opacity: 1;
  }

  .mobile-home-swipe-surface {
    position: relative;
    z-index: 1;
    background: var(--surface);
    will-change: transform, opacity;
    transition: transform 260ms cubic-bezier(0.2, 0.76, 0.26, 1), opacity 220ms ease;
  }

  .mobile-home-swipe-surface.is-dragging {
    transition: none;
  }

  .mobile-home-person-main {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 0;
    color: var(--ink);
    background: transparent;
    text-align: left;
  }

  .mobile-home-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .mobile-home-card-actions button {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 8px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 760;
  }

  .mobile-home-card-actions button + button {
    border-left: 1px solid var(--line);
    color: var(--ink);
  }

  .mobile-home-card-actions svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .profile-view > .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px 12px;
  }

  .profile-view > .section-head .panel-kicker,
  .profile-view > .section-head h2 {
    grid-column: 1;
  }

  .profile-view > .section-head h2 {
    font-size: 29px;
    line-height: 1.05;
  }

  .profile-settings-button {
    width: 44px;
    height: 44px;
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--ink);
    background: var(--surface);
  }

  .profile-settings-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
  }

  .responses-head h2 {
    max-width: none;
    font-size: 28px;
    line-height: 1.04;
  }

  .responses-tabs {
    margin: 18px 0 14px;
  }

  .responses-tabs button {
    min-height: 40px;
    padding-inline: 5px;
    font-size: 11px;
  }

  .response-person {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 13px;
  }

  .response-person .mobile-home-avatar {
    width: 56px;
    height: 56px;
  }

  .response-person strong {
    font-size: 15px;
  }

  .response-person small,
  .response-person em {
    font-size: 10px;
  }

  .response-person b {
    padding: 6px;
    font-size: 12px;
  }

  .response-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 9px 12px 12px;
  }

  .response-actions button {
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    font-size: 10px;
  }

  .response-primary {
    grid-column: span 1;
  }

  .response-card[data-response-kind="matches"] .response-actions,
  .response-card[data-response-kind="sent"] .response-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .response-status {
    grid-column: span 2;
    align-self: center;
    margin: 0;
    text-align: right;
  }

  .response-card[data-response-kind="sent"] .response-status {
    grid-column: auto;
  }

  .mobile-home-person[data-swipe-direction="like"],
  .mobile-home-person.is-leaving-right {
    background: var(--brand-lime-soft);
  }

  .mobile-home-person[data-swipe-direction="skip"],
  .mobile-home-person.is-leaving-left {
    background: var(--warm-soft);
  }
}

@media (max-width: 370px) {
  .mobile-home-intro h1 {
    font-size: 28px;
  }

  .mobile-home-person-main {
    grid-template-columns: 56px minmax(0, 1fr) 16px;
  }

  .mobile-home-person-main .mobile-home-match {
    display: none;
  }

  .response-person {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .response-person b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view.is-active,
  .mobile-home-person,
  .mobile-home-project,
  .mobile-event-card,
  .response-card {
    animation: none !important;
  }

  .mobile-home-swipe-surface,
  .bottom-nav > button,
  .mobile-home-tabs > button,
  .mobile-filter-button,
  .profile-settings-button,
  .mobile-home-card-actions button,
  .response-actions button,
  .responses-tabs button {
    transition: none !important;
  }
}

/* Peregovorka: premium product language */

@font-face {
  font-family: "Inter UI";
  src: url("/assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --surface-3: #e4e9f1;
  --ink: #111827;
  --ink-soft: #30394a;
  --muted: #758094;
  --line: #e0e5ed;
  --line-strong: #cdd4df;
  --accent: #2d50d9;
  --accent-strong: #1e3da8;
  --accent-soft: #e7ecff;
  --accent-faint: #f3f5ff;
  --accent-panel: #101b42;
  --brand-lime: #2d50d9;
  --brand-lime-soft: #e7ecff;
  --brand-lime-ink: #1e3da8;
  --success: #23735f;
  --success-soft: #e6f2ee;
  --warm: #2d50d9;
  --warm-strong: #1e3da8;
  --warm-soft: #e7ecff;
  --danger: #b7443e;
  --danger-soft: #f8e9e7;
  --nav: #101827;
  --shadow-1: 0 10px 30px rgba(34, 59, 112, 0.06);
  --shadow-2: 0 22px 54px rgba(34, 59, 112, 0.12);
  --font: "Inter UI", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Consolas, monospace;
  --radius-small: 6px;
  --radius-control: 8px;
  --radius-panel: 10px;
}

:root[data-theme="dark"] {
  --page: #11110f;
  --surface: #191916;
  --surface-2: #22221e;
  --surface-3: #2c2c27;
  --ink: #f5f4ed;
  --ink-soft: #d8d7cf;
  --muted: #a3a198;
  --line: #30302b;
  --line-strong: #45453e;
  --accent: #7795ff;
  --accent-strong: #a6b9ff;
  --accent-soft: #1d2d62;
  --accent-faint: #161f40;
  --brand-lime: #7795ff;
  --brand-lime-soft: #1d2d62;
  --brand-lime-ink: #cbd5ff;
  --nav: #0b1020;
}

body {
  background: var(--page);
  font-family: var(--font);
  font-feature-settings: "kern" 1, "tnum" 1;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

.phone-shell {
  grid-template-columns: 256px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
}

.topbar {
  padding-inline: clamp(26px, 4vw, 54px);
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--surface) 95%, transparent);
  box-shadow: 0 1px 0 rgba(23, 23, 19, 0.02);
}

.brand-logo,
.register-logo {
  overflow: visible;
}

.brand-logo path,
.register-logo path,
.brand-logo circle,
.register-logo circle {
  vector-effect: non-scaling-stroke;
  transition: transform 220ms var(--ease), fill 220ms var(--ease), stroke 220ms var(--ease);
}

.brand-logo .brand-room,
.register-logo .brand-room {
  fill: var(--ink);
  stroke: none;
}

.brand-logo .brand-table,
.register-logo .brand-table {
  fill: none;
  stroke: var(--surface);
  stroke-width: 3.8px;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.brand-logo .brand-accent,
.register-logo .brand-accent {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4px;
  stroke-linecap: round;
}

.brand-copy:hover .brand-room,
.desktop-nav-brand:hover .brand-room,
.auth-wordmark:hover .brand-room {
  transform: translateY(-1px);
}

.brand-copy strong,
.desktop-nav-brand strong,
.auth-wordmark strong,
.register-wordmark strong {
  color: var(--ink);
  font-family: var(--font);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-copy small,
.desktop-nav-brand small,
.auth-wordmark small,
.register-wordmark small {
  color: var(--muted);
  font-weight: 560;
}

.desktop-nav-brand strong,
.register-wordmark strong {
  font-size: 19px;
}

.auth-wordmark strong {
  font-size: 24px;
}

.panel-kicker,
.desktop-nav-label,
.desktop-topbar-context span {
  letter-spacing: 0;
}

.panel-kicker {
  color: var(--accent-strong);
  font-weight: 720;
}

.primary-button,
.auth-submit,
.match-actions .like-action {
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: none;
}

.primary-button:hover,
.auth-submit:hover,
.match-actions .like-action:hover {
  color: #ffffff;
  background: var(--accent);
  transform: translateY(-1px);
}

.secondary-button,
.danger-button,
.topbar-materials,
.new-chat-button,
.card-profile-link {
  border-radius: 8px;
}

.bottom-nav {
  gap: 4px;
  padding: 22px 16px 16px;
  border-right: 0;
  color: #ffffff;
  background: var(--nav);
}

.desktop-nav-brand {
  min-height: 96px;
  gap: 12px;
  padding: 2px 10px 22px;
}

.desktop-nav-brand .brand-logo {
  width: 48px;
  height: 36px;
}

.desktop-nav-brand strong {
  color: #ffffff;
}

.desktop-nav-brand small,
.desktop-nav-label,
.desktop-nav-progress span,
.desktop-nav-progress small,
.desktop-nav-user small {
  color: rgba(255, 255, 255, 0.5);
}

.desktop-nav-label {
  margin: 8px 13px 10px;
  font-size: 9px;
}

.bottom-nav > button {
  min-height: 48px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.bottom-nav > button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.bottom-nav > button.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.bottom-nav > button.is-active::before {
  width: 5px;
  height: 5px;
  left: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.bottom-nav > button.is-active svg {
  color: #d7a4ac;
}

.desktop-nav-progress,
.desktop-nav-user {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.desktop-nav-progress {
  padding: 14px;
}

.desktop-nav-user {
  padding: 8px;
}

.nav-user-avatar {
  color: #ffffff;
  background: var(--accent);
}

.desktop-nav-user > button {
  color: rgba(255, 255, 255, 0.68);
}

.topbar-growth {
  border-radius: 8px;
  background: var(--surface-2);
}

.topbar-level-mark {
  border-radius: 6px;
  background: var(--accent);
}

.topbar-next-points,
.nav-badge {
  color: #ffffff;
  background: var(--accent);
}

.hero-strip h1,
.section-head h2,
.profile-awards-head h3 {
  color: var(--ink);
  font-weight: 690;
}

.discovery-toolbar,
.messages-layout,
.settings-workspace {
  margin-top: 24px;
}

.segment-control,
.search-field,
.region-field select,
.thread-search,
.message-form,
.responses-tabs {
  border-radius: 8px;
}

.message-form .attach-button {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.message-form .attach-button svg { width: 20px; height: 20px; }
.message-form #message-attachment-input[hidden] { display: none; }
.message-form {
  grid-template-columns: 38px minmax(0, 1fr) 48px;
  align-items: center;
}
.message-form .attach-button { grid-column: 1; }
.message-form textarea[name="message"] { grid-column: 2; width: 100%; }
.message-form button[type="submit"] { grid-column: 3; }
.message-attachment-preview img,
.message-attachment-preview video {
  display: block;
  max-width: min(320px, 100%);
  max-height: 320px;
  margin-top: 8px;
  border-radius: 8px;
  object-fit: contain;
}
.message-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.message-attachment svg { width: 16px; height: 16px; flex: none; }
.message-attachment span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-attachment small { flex: none; opacity: .65; }
.group-add-members { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.group-add-members h4 { margin: 0 0 12px; font-size: 16px; }
.group-add-members article { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.group-add-members article > span:not(.member-avatar) { min-width: 0; flex: 1; display: grid; }
.group-add-members small { color: var(--muted); }
.group-add-members button { flex: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }

.segment-control button,
.responses-tabs button {
  border-radius: 6px;
}

.deck-state,
.match-card,
.messages-layout,
.profile-card,
.profile-awards-section,
.settings-panel,
.reward-card,
.business-material,
.response-card,
.dialog-shell,
.group-dialog-shell,
.participant-dialog-shell,
.tool-dialog-shell,
.missions-dialog-shell {
  border-radius: 10px;
  box-shadow: none;
}

.match-card,
.profile-card,
.profile-awards-section,
.response-card,
.messages-layout {
  border-color: var(--line);
}

.match-card::before {
  width: 4px;
  background: var(--accent);
}

.match-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card-avatar,
.profile-avatar,
.participant-profile-avatar,
.mobile-home-avatar,
.thread-avatar,
.group-avatar,
.nav-user-avatar {
  border-radius: 8px;
}

.match-signal,
.mobile-home-match,
.mobile-home-project-score,
.interest-badge {
  border-radius: 6px;
  color: var(--brand-lime-ink);
  background: var(--brand-lime-soft);
}

.tag-picker button,
.profile-tags span,
.partner-tags span,
.match-reasons span {
  border-radius: 5px;
}

.auth-view.is-active {
  position: relative;
  align-items: start;
  padding: 64px 24px 58px;
  background: var(--page);
}

.auth-view.is-active::before {
  width: 1px;
  height: 76px;
  position: absolute;
  top: 0;
  left: 50%;
  content: "";
  background: var(--line-strong);
}

.auth-form-shell {
  width: min(100%, 440px);
}

.auth-wordmark {
  gap: 13px;
}

.auth-wordmark .register-logo {
  width: 58px;
  height: 44px;
}

.auth-edition {
  margin-top: 72px;
  color: var(--muted);
  font-size: 12px;
}

.auth-form-shell > h1 {
  margin-top: 13px;
  font-size: clamp(40px, 5vw, 54px);
  font-weight: 660;
  line-height: 0.98;
}

.auth-form-shell > p:not(.auth-legal) {
  max-width: 380px;
  font-size: 14px;
}

.auth-form {
  gap: 16px;
  margin-top: 38px;
}

.auth-form input {
  min-height: 58px;
  border-radius: 8px;
  background: var(--surface);
}

.auth-step-back,
.auth-submit,
.password-field button,
.auth-error {
  border-radius: 8px;
}

.auth-mode {
  margin-top: 24px;
}

.profile-form {
  max-width: 1180px;
}

.step-meter span {
  border-radius: 0;
}

.photo-picker,
.onboarding-choice-grid button,
.profile-form input,
.profile-form textarea,
.profile-form select {
  border-radius: 8px;
}

.form-step {
  animation-duration: 360ms;
}

.toast {
  border-radius: 8px;
}

.profile-region-field {
  position: relative;
  width: 100%;
}

.profile-region-field > label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.profile-region-all {
  display: flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-region-all span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
}

@media (max-width: 480px) {
  .profile-region-all { flex-wrap: wrap; }
}

.profile-region-options:not([hidden]) {
  position: absolute;
  z-index: 15;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(20, 31, 58, .14);
}

.profile-region-options button {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  font: inherit;
}

.profile-region-options button:hover,
.profile-region-options button:focus-visible {
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.auth-code-field:not([hidden]) {
  display: grid;
  gap: 12px;
}

.auth-code-field label > span {
  display: block;
  margin-bottom: 7px;
}

.auth-code-field input {
  width: 100%;
  font-variant-numeric: tabular-nums;
}

.auth-code-note,
.auth-code-debug {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-resend-code {
  justify-self: start;
  min-height: 36px;
  padding: 0;
  border: 0;
  color: var(--accent-strong);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.auth-resend-code:disabled {
  color: var(--muted);
  cursor: default;
}

@media (max-width: 899px) {
  .phone-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .topbar {
    min-height: 68px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: color-mix(in srgb, var(--surface) 97%, transparent);
  }

  .brand-copy {
    display: flex;
    gap: 8px;
  }

  .brand-copy > span {
    display: block;
  }

  .brand-copy .brand-logo {
    width: 38px;
    height: 30px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .topbar-growth {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  .bottom-nav {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--nav) 97%, transparent);
    box-shadow: 0 -8px 24px rgba(23, 23, 19, 0.08);
  }

  .bottom-nav > button {
    min-height: 56px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.58);
  }

  .bottom-nav > button.is-active {
    color: var(--ink);
    background: #ffffff;
  }

  .bottom-nav > button.is-active svg {
    color: var(--accent);
  }

  .bottom-nav > button.is-active::before {
    display: none;
  }

  .mobile-home-intro {
    padding-bottom: 8px;
  }

  .mobile-home-intro h1 {
    max-width: 16ch;
    font-size: 28px;
    font-weight: 680;
    line-height: 1.03;
  }

  .mobile-home-search-row {
    margin-top: 14px;
  }

  .mobile-home-search-row .mobile-discovery-search,
  .mobile-home-search-row .mobile-filter-button {
    min-height: 48px;
    height: 48px;
    border-radius: 8px;
  }

  .mobile-home-tabs {
    gap: 6px;
    margin-top: 10px;
  }

  .mobile-home-tabs > button {
    min-height: 74px;
    grid-template-rows: 34px auto;
    gap: 5px;
    padding: 8px 2px;
    border-radius: 8px;
    background: var(--surface);
  }

  .mobile-home-tabs > button > span {
    width: 34px;
    height: 34px;
    border-radius: 7px;
  }

  .mobile-home-tabs > button.is-active {
    border-color: var(--accent);
    color: var(--accent-strong);
    box-shadow: inset 0 0 0 1px var(--accent);
  }

  .mobile-home-feed {
    margin-top: 20px;
  }

  .mobile-home-person,
  .mobile-home-project,
  .mobile-event-card,
  .response-card,
  .responses-empty {
    border-radius: 8px;
  }

  .mobile-home-person-main,
  .mobile-home-person > button,
  .mobile-home-project > button {
    padding: 12px;
  }

  .mobile-event-date,
  .mobile-event-card > a,
  .profile-settings-button,
  .responses-tabs {
    border-radius: 8px;
  }

  .mobile-event-date {
    background: var(--brand-lime);
  }

  .profile-view > .section-head h2,
  .responses-head h2 {
    font-size: 27px;
  }

  .auth-view.is-active {
    min-height: 100dvh;
    padding: calc(34px + env(safe-area-inset-top)) 20px 34px;
  }

  .auth-view.is-active::before {
    display: none;
  }

  .auth-edition {
    margin-top: 46px;
  }

  .auth-form-shell > h1 {
    font-size: 39px;
  }

  .auth-form {
    margin-top: 32px;
  }

  .phone-shell.is-registering .views {
    background: var(--page);
  }
}

@media (max-width: 370px) {
  .mobile-home-intro h1 {
    font-size: 26px;
  }
}

@media (min-width: 900px) {
  .auth-form-shell {
    width: min(100%, 520px);
  }

  .auth-form-shell > h1 {
    font-size: 50px;
    white-space: nowrap;
  }
}

/* Peregovorka refinement: restrained identity and precise controls */

.desktop-nav-brand .brand-room {
  fill: #f5f2ed;
}

.desktop-nav-brand .brand-table {
  stroke: var(--nav);
}

.desktop-nav-brand .brand-accent {
  stroke: var(--accent);
}

.auth-form .auth-consents {
  gap: 15px;
  margin-top: 4px;
  padding-top: 18px;
}

.auth-form .auth-consents label {
  min-height: 24px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.42;
}

.auth-form .auth-consents label > span {
  align-self: center;
  color: inherit;
  font: inherit;
}

.auth-form .auth-consents input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 21px;
  min-width: 21px;
  height: 21px;
  min-height: 21px;
  display: grid;
  place-content: center;
  margin: 1px 0 0;
  padding: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
}

.auth-form .auth-consents input[type="checkbox"]::before {
  width: 10px;
  height: 6px;
  content: "";
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.7);
  transition: opacity 140ms ease, transform 140ms ease;
}

.auth-form .auth-consents input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.auth-form .auth-consents input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.auth-form .auth-consents input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 2px;
}

.profile-form-actions.is-first-step,
.profile-form-actions.is-last-step {
  width: min(100%, 700px);
  justify-self: center;
}

.profile-form-actions.is-first-step {
  justify-content: flex-end;
}

.tag-picker {
  display: grid;
  gap: 14px;
  padding-top: 2px;
}

.tag-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.tag-picker-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.tag-picker-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.tag-picker .tag-picker-options button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 12px;
  font-weight: 650;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.tag-picker .tag-picker-options button::before {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  content: "";
  border-radius: 1px;
  background: var(--line-strong);
}

.tag-picker .tag-picker-options button:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px);
}

.tag-picker .tag-picker-options button.is-selected {
  border-color: var(--ink);
  color: #ffffff;
  background: var(--ink);
  box-shadow: none;
}

.tag-picker .tag-picker-options button.is-selected::before {
  background: var(--accent);
}

.award-medal {
  position: relative;
  outline: none;
}

.award-medal::after {
  width: max-content;
  max-width: 210px;
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  background: #24231f;
  box-shadow: 0 12px 30px rgba(27, 27, 24, 0.18);
  content: attr(data-award-hint);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.award-medal:hover::after,
.award-medal:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.card-awards,
.participant-featured-awards,
.participant-profile-head {
  overflow: visible;
}

@media (min-width: 900px) {
  .card-profile-link {
    display: none;
  }

  .card-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 899px) {
  .bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .bottom-nav .mobile-responses-nav,
  .bottom-nav > button {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 24px 14px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 5px 2px;
    text-align: center;
  }

  .bottom-nav > button svg {
    grid-row: 1;
    grid-column: 1;
    margin: 0;
  }

  .bottom-nav > button > span {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
    font-size: 9px;
    line-height: 1;
  }

  .bottom-nav .nav-badge,
  .bottom-nav .nav-level {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
  }

  .mobile-event-date {
    color: #ffffff;
    background: var(--accent);
  }

  .mobile-event-card {
    overflow: hidden;
    padding: 0;
    border-color: #cfd4dc;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(14, 34, 72, 0.1);
  }

  .mobile-event-cover {
    min-height: 286px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 18px;
    isolation: isolate;
    overflow: hidden;
    color: #ffffff;
    background: #062b70;
  }

  .mobile-event-cover::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(3, 17, 46, 0.08) 0%, rgba(3, 17, 46, 0.18) 38%, rgba(3, 15, 39, 0.86) 100%);
  }

  .mobile-event-cover > img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: -2;
    inset: 0;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
  }

  .mobile-event-cover-top {
    width: 100%;
    position: absolute;
    top: 16px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-inline: 18px;
  }

  .mobile-event-cover-top span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(3, 18, 47, 0.34);
    backdrop-filter: blur(12px);
    font-size: 10px;
    font-weight: 650;
  }

  .mobile-event-cover-copy {
    max-width: 290px;
  }

  .mobile-event-cover-copy small,
  .mobile-event-cover-copy strong,
  .mobile-event-cover-copy p {
    display: block;
  }

  .mobile-event-cover-copy small {
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .mobile-event-cover-copy strong {
    max-width: 260px;
    font-size: 28px;
    font-weight: 690;
    line-height: 0.98;
  }

  .mobile-event-cover-copy p {
    max-width: 270px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    line-height: 1.35;
  }

  .mobile-event-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 0 14px;
    border-radius: 7px;
    color: #111111;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(3, 14, 36, 0.2);
    font-size: 11px;
    font-weight: 680;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease;
  }

  .mobile-event-cta:active {
    transform: scale(0.98);
  }

  .mobile-event-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-event-program {
    padding: 17px 18px 5px;
  }

  .mobile-event-program > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-event-program > header strong {
    font-size: 13px;
    font-weight: 680;
  }

  .mobile-event-program > header span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 550;
  }

  .mobile-event-program ol {
    margin: 10px 0 0;
    padding: 0;
    border-top: 1px solid #eceff4;
    list-style: none;
  }

  .mobile-event-program li {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #eceff4;
  }

  .mobile-event-program time {
    color: #2459ad;
    font-size: 9px;
    font-weight: 720;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .mobile-event-program li strong {
    font-size: 11px;
    font-weight: 610;
    line-height: 1.35;
  }

  .mobile-home-card-actions {
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 7px;
    padding: 8px;
    border-top: 1px solid #ebe9e4;
    background: #f5f3ef;
  }

  .mobile-home-card-actions button {
    min-height: 43px;
    gap: 6px;
    border: 1px solid #d9d5ce;
    border-radius: 7px;
    color: #66635d;
    background: #ffffff;
    font-size: 10px;
    font-weight: 650;
    box-shadow: 0 2px 6px rgba(28, 27, 24, 0.03);
    transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background-color 150ms ease;
  }

  .mobile-home-card-actions button + button {
    border: 1px solid #1b1b18;
    color: #ffffff;
    background: #1b1b18;
  }

  .mobile-home-card-actions button:active {
    transform: scale(0.98);
  }

  .mobile-home-card-actions svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.9;
  }

  .tag-picker-head {
    display: grid;
    gap: 3px;
  }

  .tag-picker-options {
    gap: 7px;
  }

  .tag-picker .tag-picker-options button {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 11px;
  }
}

/* Desktop product studio: cool neutrals, cobalt actions, precise navigation */

@media (min-width: 900px) {
  .phone-shell {
    grid-template-columns: 244px minmax(0, 1fr);
    grid-template-rows: 76px minmax(0, 1fr);
    background: var(--page);
  }

  .topbar {
    min-height: 76px;
    gap: 20px;
    padding-inline: clamp(24px, 3vw, 46px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(32, 54, 100, 0.025);
    backdrop-filter: blur(18px);
  }

  .views {
    height: calc(100dvh - 76px);
    padding: 38px clamp(28px, 4vw, 62px) 72px;
    background-color: var(--page);
    background-image:
      linear-gradient(rgba(128, 146, 178, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(128, 146, 178, 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
  }

  .view {
    width: min(100%, 1240px);
  }

  .topbar-growth {
    width: min(100%, 900px);
    grid-template-columns: 40px minmax(150px, 0.72fr) minmax(180px, 1fr) auto minmax(150px, 0.78fr);
    gap: 14px;
    padding: 7px 13px 7px 7px;
    border: 1px solid #dfe5ef;
    border-radius: 10px;
    background: #f7f9fc;
    box-shadow: inset 0 1px 0 #ffffff;
  }

  .topbar-growth:hover {
    border-color: #bdc9e8;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(45, 80, 217, 0.07);
  }

  .topbar-level-mark {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    box-shadow: 0 7px 15px rgba(45, 80, 217, 0.18);
  }

  .topbar-progress-track {
    height: 4px;
    background: #dfe4ed;
  }

  .topbar-progress-track i {
    background: var(--accent);
  }

  .topbar-next-points {
    color: var(--accent-strong);
    background: var(--accent-soft);
  }

  .topbar-user {
    border: 1px solid transparent;
    transition: border-color 160ms ease, background-color 160ms ease;
  }

  .topbar-user:hover {
    border-color: var(--line);
    background: #f7f9fc;
  }

  .topbar-user > span {
    color: #ffffff;
    background: var(--ink);
  }

  .bottom-nav {
    min-height: 100dvh;
    gap: 3px;
    padding: 18px 12px 14px;
    border-right: 1px solid var(--line);
    color: var(--ink);
    background: rgba(252, 253, 255, 0.98);
    box-shadow: 8px 0 30px rgba(38, 59, 96, 0.035);
  }

  .desktop-nav-brand {
    min-height: 84px;
    gap: 11px;
    padding: 2px 9px 18px;
  }

  .desktop-nav-brand .brand-logo {
    width: 43px;
    height: 32px;
  }

  .desktop-nav-brand .brand-room {
    fill: var(--ink);
  }

  .desktop-nav-brand .brand-table {
    stroke: #ffffff;
  }

  .desktop-nav-brand .brand-accent {
    stroke: var(--accent);
  }

  .desktop-nav-brand strong {
    color: var(--ink);
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -0.03em;
  }

  .desktop-nav-brand small {
    color: var(--muted);
    font-size: 9px;
  }

  .desktop-nav-label {
    margin: 8px 12px 9px;
    color: #9aa4b5;
    font-size: 8px;
    font-weight: 650;
  }

  .bottom-nav > button {
    min-height: 44px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #687386;
    font-size: 12px;
    font-weight: 580;
  }

  .bottom-nav > button svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.75;
  }

  .bottom-nav > button:hover {
    border-color: #e3e7ef;
    color: var(--ink);
    background: #f4f6fa;
  }

  .bottom-nav > button.is-active {
    border-color: #dfe5fb;
    color: var(--accent-strong);
    background: var(--accent-soft);
    box-shadow: none;
  }

  .bottom-nav > button.is-active::before {
    width: 3px;
    height: 20px;
    left: -1px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
  }

  .bottom-nav > button.is-active svg {
    color: var(--accent);
  }

  .nav-badge {
    min-width: 21px;
    height: 19px;
    padding-inline: 5px;
    border-radius: 5px;
    color: #ffffff;
    background: var(--accent);
    font-size: 8px;
  }

  .nav-level {
    min-width: 20px;
    height: 19px;
    border-color: #cbd4eb;
    border-radius: 5px;
    color: #65708a;
    background: #ffffff;
    font-size: 8px;
  }

  .desktop-nav-user {
    grid-template-columns: 38px minmax(0, 1fr) 32px;
    gap: 9px;
    margin-top: auto;
    padding: 12px 8px 3px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .nav-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--accent);
  }

  .desktop-nav-user strong {
    color: var(--ink);
    font-size: 10px;
  }

  .desktop-nav-user small {
    color: var(--muted);
    font-size: 8px;
  }

  .desktop-nav-user > button {
    min-width: 32px;
    min-height: 32px;
    color: #8993a4;
  }

  .desktop-nav-user > button:hover {
    color: var(--ink);
    background: var(--surface-2);
  }

  .hero-strip {
    align-items: end;
    padding-top: 4px;
  }

  .panel-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 680;
  }

  .panel-kicker::before {
    width: 20px;
    height: 2px;
    border-radius: 1px;
  }

  .hero-strip h1,
  .section-head h2 {
    margin-top: 9px;
    color: var(--ink);
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 625;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .section-head h2 {
    font-size: clamp(34px, 3.4vw, 46px);
  }

  .discovery-toolbar {
    grid-template-columns: 240px minmax(280px, 1fr) 190px auto;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 34px rgba(37, 59, 105, 0.055);
    backdrop-filter: blur(12px);
  }

  .segment-control,
  .search-field,
  .region-field select {
    height: 46px;
    border-radius: 8px;
  }

  .segment-control {
    border-color: transparent;
    background: #eef1f6;
  }

  .segment-control button {
    border-radius: 6px;
    font-weight: 620;
  }

  .segment-control button.is-active {
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(32, 54, 95, 0.08);
  }

  .search-field,
  .region-field select {
    border-color: #dce2eb;
    background: #ffffff;
  }

  .search-field:focus-within,
  .region-field:focus-within select {
    border-color: #91a7ee;
    box-shadow: 0 0 0 3px rgba(45, 80, 217, 0.09);
  }

  .region-field > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 650;
  }

  .deck {
    margin-top: 18px;
  }

  .match-card {
    overflow: hidden;
    border: 1px solid #dbe1eb;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 54px rgba(32, 55, 104, 0.09);
  }

  .match-card::before {
    width: 3px;
    background: var(--accent);
  }

  .card-head {
    min-height: 126px;
    gap: 22px;
    padding: 25px 28px 23px 31px;
    background: #ffffff;
  }

  .card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 11px;
    box-shadow: 0 0 0 1px rgba(20, 32, 54, 0.06);
  }

  .card-identity {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 18px;
  }

  .card-identity h2,
  .card-person,
  .card-identity h2.card-person {
    font-size: clamp(25px, 2.25vw, 34px);
    font-weight: 650;
    letter-spacing: -0.035em;
  }

  .card-role {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 540;
  }

  .card-company {
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 650;
  }

  .card-level {
    color: var(--accent);
  }

  .match-signal {
    min-width: 96px;
    padding: 11px 15px;
    border: 1px solid #dce4ff;
    border-radius: 9px;
    background: var(--accent-faint);
  }

  .match-signal strong {
    color: var(--accent);
    font-size: 29px;
    font-weight: 680;
  }

  .match-signal span {
    color: #61709a;
  }

  .collaboration-brief {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f8f9fc;
  }

  .collaboration-brief section {
    min-height: 142px;
    padding: 25px 31px;
  }

  .collaboration-brief section + section {
    border-left-color: var(--line);
  }

  .brief-offer > span,
  .brief-need > span,
  .context-label {
    color: var(--accent);
    font-size: 9px;
    font-weight: 720;
  }

  .brief-offer h3 {
    margin-top: 11px;
    font-size: 22px;
    font-weight: 620;
    letter-spacing: -0.025em;
  }

  .brief-offer p,
  .brief-need p {
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
  }

  .match-context {
    padding: 18px 31px 0;
  }

  .match-reasons span {
    min-height: 28px;
    border-color: #dce4ff;
    border-radius: 6px;
    color: var(--accent-strong);
    background: var(--accent-faint);
    font-size: 9px;
    font-weight: 620;
  }

  .interest-badge {
    border-color: #dce4ff;
    color: var(--accent-strong);
    background: var(--accent-soft);
  }

  .card-footer {
    padding: 18px 31px 23px;
  }

  .privacy-note {
    color: var(--muted);
    font-size: 10px;
    font-weight: 520;
  }

  .round-action {
    min-height: 46px;
    border-radius: 8px;
    font-weight: 630;
  }

  .round-action.skip {
    border-color: #d7dde7;
    color: #505b6d;
    background: #ffffff;
  }

  .round-action.like {
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(45, 80, 217, 0.16);
  }

  .round-action.like:hover {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    transform: translateY(-1px);
  }

  .adjacent-recommendation {
    border-color: #dbe2ee;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(32, 55, 104, 0.055);
  }

  .adjacent-label,
  .adjacent-score strong {
    color: var(--accent);
  }

  .messages-layout,
  .profile-card,
  .profile-awards-section,
  .settings-workspace,
  .reward-card,
  .business-material,
  .response-card {
    border-color: #dbe1eb;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 16px 40px rgba(32, 55, 104, 0.065);
  }

  .settings-tabs,
  .thread-column {
    background: #f6f8fb;
  }

  .settings-tabs button.is-active {
    color: var(--accent-strong);
    background: #ffffff;
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .phone-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .topbar-next-reward,
  .topbar-user strong {
    display: none;
  }

  .topbar-growth {
    grid-template-columns: 40px minmax(140px, 0.75fr) minmax(160px, 1fr) auto;
  }

  .discovery-toolbar {
    grid-template-columns: 220px minmax(240px, 1fr) 170px;
  }

  .clear-filters {
    grid-column: 3;
  }
}

/* Desktop visual pass: stronger brand signal and denser information rhythm */

@media (min-width: 900px) {
  .phone-shell :is(h1, h2, h3, h4, strong, button, .panel-kicker) {
    letter-spacing: 0;
  }

  .desktop-nav-brand .brand-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .desktop-nav-brand .brand-accent {
    stroke-width: 4.5px;
  }

  .desktop-nav-brand strong {
    font-size: 15px;
    font-weight: 700;
  }

  .bottom-nav .mobile-responses-nav {
    display: grid;
  }

  #view-profile > .section-head,
  #view-settings > .section-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
  }

  #view-profile > .section-head h2,
  #view-settings > .section-head h2 {
    margin-top: 0;
  }

  .match-card {
    border-radius: 10px;
  }

  .card-head {
    align-items: center;
    padding-block: 22px;
  }

  .card-identity {
    align-items: center;
  }

  .card-awards {
    min-height: 34px;
    margin-top: 5px;
  }

  .card-awards .award-medal.is-compact {
    width: 30px;
    height: 34px;
  }

  .card-awards .award-medal.is-compact .award-tab {
    width: 13px;
    height: 11px;
  }

  .card-awards .award-medal.is-compact .award-plate {
    width: 28px;
    height: 27px;
    border-radius: 8px 5px 9px 6px;
  }

  .card-awards .award-medal.is-compact .award-plate svg {
    width: 17px;
    height: 17px;
  }

  .match-signal {
    min-width: 102px;
    padding: 12px 16px;
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 10px 22px rgba(45, 80, 217, 0.2);
  }

  .match-signal strong,
  .match-signal span {
    color: #ffffff;
  }

  .match-signal span {
    opacity: 0.76;
  }

  .collaboration-brief {
    background: #f7f9fc;
  }

  .adjacent-recommendation,
  .messages-layout,
  .profile-card,
  .profile-awards-section,
  .settings-workspace,
  .reward-card,
  .business-material,
  .response-card {
    border-radius: 10px;
  }
}

/* Desktop dossier final cascade */

@media (min-width: 900px) {
  .phone-shell {
    grid-template-columns: 262px minmax(0, 1fr);
    grid-template-rows: 82px minmax(0, 1fr);
  }

  .topbar {
    min-height: 82px;
    padding-inline: clamp(28px, 3.2vw, 52px);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: none;
  }

  .topbar-growth,
  .topbar-growth:hover {
    width: min(100%, 850px);
    grid-template-columns: 44px minmax(158px, 0.7fr) minmax(190px, 1fr) auto minmax(155px, 0.72fr);
    gap: 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .topbar-level-mark {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .topbar-next-task,
  .topbar-next-reward {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

  .views {
    height: calc(100dvh - 82px);
    padding: 42px clamp(34px, 4.2vw, 68px) 86px;
    background-color: #f4f6fa;
    background-image:
      linear-gradient(rgba(89, 111, 153, 0.038) 1px, transparent 1px),
      linear-gradient(90deg, rgba(89, 111, 153, 0.038) 1px, transparent 1px);
    background-size: 36px 36px;
  }

  .view {
    width: min(100%, 1180px);
  }

  .bottom-nav {
    min-height: 100dvh;
    gap: 4px;
    padding: 18px 14px 14px;
    border-right: 1px solid #dfe4ec;
    background: #fbfcfe;
    box-shadow: none;
  }

  .desktop-nav-brand {
    min-height: 74px;
    gap: 12px;
    margin: 0 2px 18px;
    padding: 4px 8px 19px;
    border-bottom: 1px solid var(--line);
  }

  .desktop-nav-brand .brand-logo {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .desktop-nav-brand strong {
    font-size: 16px;
    font-weight: 720;
  }

  .desktop-nav-label {
    margin: 0 11px 8px;
  }

  .bottom-nav > button {
    min-height: 46px;
    grid-template-columns: 21px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 0 12px;
    border-radius: 7px;
    color: #697386;
  }

  .bottom-nav > button:hover {
    border-color: #e0e5ed;
    color: var(--ink);
    background: #f1f3f7;
    transform: translateX(2px);
  }

  .bottom-nav > button.is-active {
    border-color: #d9e1ff;
    color: #1f43c7;
    background: #edf1ff;
  }

  .desktop-nav-user {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 40px minmax(0, 1fr) 34px;
    gap: 9px;
    margin-top: auto;
    padding: 13px 4px 1px;
    overflow: hidden;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
  }

  .nav-user-avatar {
    width: 40px;
    height: 40px;
  }

  .desktop-nav-user > .nav-logout {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    min-height: 34px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #778194;
    background: #ffffff;
    box-sizing: border-box;
  }

  .desktop-nav-user > .nav-logout span {
    display: none !important;
  }

  .hero-strip {
    min-height: 80px;
    align-items: flex-start;
    padding-top: 0;
  }

  .hero-strip h1,
  .section-head h2 {
    max-width: 860px;
    margin-top: 8px;
    font-size: clamp(42px, 4.1vw, 58px);
    font-weight: 610;
    line-height: 1.01;
    letter-spacing: 0;
  }

  .discovery-toolbar {
    grid-template-columns: 224px minmax(300px, 1fr) 184px auto;
    align-items: end;
    gap: 12px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .segment-control,
  .search-field,
  .region-field select {
    height: 54px;
    border: 1px solid #d9dfe8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(35, 52, 87, 0.045);
  }

  .segment-control {
    padding: 4px;
    background: #e9edf3;
  }

  .segment-control button.is-active {
    color: #173aaf;
  }

  .deck {
    margin-top: 20px;
  }

  .match-card:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas:
      "identity identity"
      "brief brief"
      "context actions";
    overflow: hidden;
    border: 1px solid #d8deea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(30, 48, 91, 0.12);
  }

  .match-card::before {
    display: none;
  }

  .card-head {
    min-height: 188px;
    grid-area: identity;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 30px 34px;
    color: #ffffff;
    background-color: #2d50d9;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
  }

  .card-identity {
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
  }

  .card-avatar {
    width: 96px;
    height: 96px;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 31, 84, 0.24);
  }

  .card-identity h2,
  .card-person,
  .card-identity h2.card-person {
    color: #ffffff;
    font-size: clamp(30px, 2.8vw, 40px);
    font-weight: 660;
    line-height: 1.02;
  }

  .card-role,
  .card-region {
    color: rgba(255, 255, 255, 0.72);
  }

  .card-company {
    color: #ffffff;
  }

  .card-level {
    color: #dfe6ff;
  }

  .match-signal {
    min-width: 118px;
    padding: 15px 18px 13px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 9px;
    color: var(--accent);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(18, 33, 88, 0.18);
  }

  .match-signal strong {
    color: var(--accent);
    font-size: 34px;
  }

  .match-signal span {
    color: #65739d;
    opacity: 1;
  }

  .collaboration-brief {
    grid-area: brief;
    grid-template-columns: 1.16fr 0.84fr;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

  .collaboration-brief section {
    min-height: 154px;
    padding: 29px 34px 32px;
  }

  .collaboration-brief section + section {
    border-left: 1px solid var(--line);
    background: #f6f8fc;
  }

  .brief-offer h3 {
    max-width: 30ch;
    margin-top: 12px;
    font-size: clamp(23px, 2vw, 29px);
    font-weight: 620;
    line-height: 1.17;
  }

  .brief-offer p,
  .brief-need p {
    margin-top: 10px;
    color: #3e485a;
  }

  .match-context {
    min-height: 148px;
    grid-area: context;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 15px;
    padding: 26px 34px 30px;
    border-right: 1px solid var(--line);
    background: #ffffff;
  }

  .match-reasons {
    gap: 7px;
    margin-top: 12px;
  }

  .match-reasons span {
    min-height: 29px;
    border: 1px solid #dce4ff;
    border-radius: 6px;
    color: #2446b8;
    background: #f2f5ff;
  }

  .interest-badge {
    justify-self: start;
    border-radius: 6px;
  }

  .card-footer {
    min-height: 148px;
    grid-area: actions;
    grid-template-columns: 1fr;
    align-content: space-between;
    gap: 18px;
    padding: 25px 24px 24px;
    background: #f6f8fc;
  }

  .privacy-note {
    max-width: 31ch;
    color: #707b8e;
    font-size: 10px;
    font-weight: 540;
    line-height: 1.5;
  }

  .action-dock {
    width: 100%;
    grid-template-columns: 1fr 1.12fr;
    gap: 8px;
  }

  .round-action {
    min-width: 0;
    min-height: 50px;
    padding-inline: 10px;
    border-radius: 7px;
    font-size: 11px;
  }

  .round-action.like {
    border-color: #16213a;
    background: #16213a;
    box-shadow: none;
  }

  .round-action.like:hover {
    border-color: #2d50d9;
    background: #2d50d9;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .phone-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .views {
    padding-inline: 28px;
  }

  .discovery-toolbar {
    grid-template-columns: 210px minmax(220px, 1fr) 166px;
  }

  .match-card:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) 286px;
  }
}

/* Final brand and mobile navigation layer. */
.brand-logo,
.register-logo,
.landing-brand > img {
  display: block;
  object-fit: contain;
}

.landing-brand > img {
  width: 34px;
  height: 34px;
}

@media (max-width: 899px) {
  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .brand-copy > span {
    display: none;
  }

  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .brand-copy .brand-logo {
    width: 42px;
    height: 42px;
  }

  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .bottom-nav {
    right: 12px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    min-height: 70px;
    padding: 7px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(11, 20, 38, 0.86);
    box-shadow: 0 18px 44px rgba(7, 13, 28, 0.26);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
  }

  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .bottom-nav > button {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.64);
    background: transparent;
  }

  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .bottom-nav > button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
  }

  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .bottom-nav > button.is-active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .phone-shell:not(.is-auth):not(.is-landing):not(.is-registering) .bottom-nav > button.is-active svg {
    color: #8ea7ff;
  }

  .tour-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  .tour-actions > div {
    display: contents;
  }

  .tour-actions .tour-skip,
  .tour-actions .secondary-button,
  .tour-actions .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
  }

  .tour-actions .tour-skip,
  .tour-actions .secondary-button {
    grid-column: 1;
    grid-row: 1;
  }

  .tour-actions .primary-button {
    grid-column: 2;
    grid-row: 1;
  }

  .tour-actions:has(.secondary-button:not([hidden])) .tour-skip {
    display: none;
  }
}
