:root {
  --yellow: #ffdd2d;
  --yellow-hover: #f4d21f;
  --black: #0f0f10;
  --text: #242424;
  --muted: #72757b;
  --soft: #f5f6f7;
  --soft-2: #eef0f2;
  --line: #e8eaed;
  --white: #fff;
  --green: #178c56;
  --green-soft: #e9f7ef;
  --blue: #126df7;
  --blue-soft: #edf4ff;
  --red: #d63a3a;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --sidebar: 248px;
  --rail: 316px;
  --max-content: 720px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Tinkoff Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--white); overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.is-hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, opacity .16s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .48; cursor: not-allowed; }
.btn--primary { background: var(--yellow); color: var(--black); }
.btn--primary:hover { background: var(--yellow-hover); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--soft { background: var(--soft-2); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--small { min-height: 40px; border-radius: 12px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.icon-button, .avatar-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
}
.avatar-button { padding: 0; overflow: hidden; }
.avatar-button img { width: 100%; height: 100%; object-fit: cover; }
.notification-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #e8483f; right: 7px; top: 7px; border: 2px solid var(--white); }

.brand {
  border: 0;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 750;
  cursor: pointer;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
}

/* Onboarding */
.onboarding {
  min-height: 100svh;
  background: var(--white);
}
.onboarding-shell {
  min-height: 100svh;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 20px calc(20px + var(--safe-bottom));
}
.onboarding-top {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}
.onboarding-top .brand { font-size: 18px; }
.onboarding-progress { display: flex; gap: 5px; flex: 1; max-width: 240px; margin-left: 24px; }
.onboarding-progress span { height: 4px; flex: 1; border-radius: 99px; background: var(--soft-2); }
.onboarding-progress span.is-done { background: var(--black); }
.onboarding-content {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 0 108px;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.onboarding-content--wide { max-width: 980px; }
.onboarding-content--compact { justify-content: flex-start; padding-top: 28px; }
.onboarding-content--photo { justify-content: flex-start; padding-top: 18px; padding-bottom: 112px; }
.onboarding-kicker { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-weight: 650; }
.onboarding h1 { margin: 0; max-width: 820px; font-size: clamp(40px, 7vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 760; }
.onboarding h2 { margin: 0; font-size: clamp(28px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -.04em; }
.onboarding-lead { max-width: 620px; margin: 16px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.42; }
.onboarding-footer {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px max(20px, calc((100vw - 760px) / 2)) calc(12px + var(--safe-bottom));
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--white) 28%);
}
.onboarding-footer__inner { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; }
.welcome-visual {
  width: min(100%, 600px);
  margin: 34px 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
}
.welcome-visual__portrait { border-radius: 24px; overflow: hidden; background: var(--soft); }
.welcome-visual__portrait img { width: 100%; height: 100%; object-fit: cover; }
.welcome-visual__portrait:nth-child(1) { height: 132px; }
.welcome-visual__portrait:nth-child(2) { height: 190px; }
.welcome-visual__portrait:nth-child(3) { height: 154px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.choice-grid--tight { gap: 10px; margin-top: 12px; }
.choice-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  background: var(--white);
  text-align: left;
  font-weight: 620;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.choice-card:hover { background: var(--soft); }
.choice-card.is-selected { background: #fff8d8; border-color: #ecd16b; }
.choice-card:active { transform: scale(.985); }
.choice-card small { display: block; color: var(--muted); font-weight: 450; margin-top: 7px; line-height: 1.35; }
.field { margin-top: 30px; }
.field label { display: block; margin-bottom: 9px; font-size: 14px; color: var(--muted); }
.text-input, .search-input, .select-input, .composer textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: var(--soft);
  border-radius: 15px;
}
.text-input { height: 60px; padding: 0 18px; font-size: 18px; }
.text-input:focus, .search-input:focus, .composer textarea:focus { box-shadow: inset 0 0 0 2px var(--black); }
.suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  padding: 9px 13px;
  font-size: 14px;
  cursor: pointer;
}
.chip.is-selected, .chip--dark { background: var(--black); color: var(--white); }
.chip--yellow { background: #fff3b0; color: #574900; }

.focus-list { display: grid; gap: 10px; margin-top: 4px; }
.focus-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.focus-row::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: 0 0 auto;
}
.focus-row:hover { background: var(--soft); }
.focus-row.is-selected { background: #fff8d8; border-color: #ecd16b; }
.focus-row.is-selected::after { border-color: var(--black); background: radial-gradient(var(--black) 45%, transparent 50%); }

.baseline-list { display: grid; gap: 10px; margin-top: 26px; max-width: 480px; }
.baseline-tag {
  padding: 16px 20px;
  border-radius: 15px;
  background: var(--soft);
  font-weight: 620;
  font-size: 16px;
}

.psych-grid { display: grid; gap: 10px; margin-top: 22px; }
.psych-card {
  min-height: 64px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-align: left;
  font-weight: 580;
  line-height: 1.35;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.psych-card:hover { background: var(--soft); }
.psych-card:active { transform: scale(.985); }
.psych-card--chosen { background: #fff8d8; border-color: #ecd16b; cursor: default; margin-top: 22px; }
.psych-card__tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-right: 10px;
  vertical-align: middle;
}
.psych-card__tag--least { background: #d6472e; }
.psych-summary { margin-top: 22px; display: grid; gap: 12px; }
.psych-summary__row { padding: 16px 20px; border-radius: 16px; background: var(--soft); line-height: 1.4; }
.psych-summary__row--least { background: #fbeae6; }

.verdict-sources { display: grid; gap: 10px; margin-top: 24px; max-width: 460px; }
.source-card { padding: 14px 18px; border-radius: 15px; background: var(--soft); }
.source-card small { display: block; color: var(--muted); margin-bottom: 4px; }
.source-card strong { font-size: 16px; line-height: 1.3; }

.portrait-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  width: 100%;
}
.portrait-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--soft-2);
  box-shadow: 0 18px 40px rgba(15, 15, 16, .08);
}
.portrait-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait-photo .scan-frame { inset: 10%; }
.portrait-photo__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 15, 16, .72);
  color: var(--white);
  font-size: 12px;
  font-weight: 620;
  backdrop-filter: blur(8px);
}
.portrait-copy { min-width: 0; }
.portrait-copy .trait-list { margin-top: 22px; }
.trait-list--compact { gap: 13px; padding: 20px; }
.portrait-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
  width: 100%;
}
.suggestions { max-width: 100%; }
.suggestions .chip { white-space: nowrap; }
.suggestions .chip:disabled,
.focus-row:disabled,
.text-input:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.resume-card {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed #cfd3d8;
  background: var(--soft);
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.resume-card--action:hover { background: #eceef0; border-color: #b8bdc3; }
.resume-card--action:active { transform: scale(.985); }
.resume-card--loading,
.resume-card--done {
  border-style: solid;
  border-color: transparent;
  cursor: default;
}
.resume-card--done { background: #e9f7ef; }
.resume-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-weight: 750;
  flex: 0 0 auto;
}
.resume-card--done .resume-card__icon {
  background: var(--green);
  color: var(--white);
}
.resume-card__meta { min-width: 0; flex: 1; }
.resume-card__meta strong,
.resume-card strong { display: block; font-size: 16px; }
.resume-card__meta small,
.resume-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.resume-card__spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid #d5d8dc;
  border-top-color: var(--black);
  animation: spin .7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.photo-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}
.photo-copy { min-width: 0; }
.camera-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(560px, 68vh);
  border-radius: 28px;
  overflow: hidden;
  background: var(--soft-2);
  position: relative;
  display: grid;
  place-items: center;
}
.camera-frame video,
.camera-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-placeholder {
  text-align: center;
  color: var(--muted);
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.camera-placeholder strong { color: var(--text); font-size: 16px; }
.camera-placeholder span:last-child { font-size: 13px; }
.camera-placeholder svg { width: 40px; height: 40px; margin-bottom: 4px; }
.face-guide {
  position: absolute;
  inset: 14% 18%;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50% / 42%;
  box-shadow: 0 0 0 999px rgba(15, 15, 16, .18);
  pointer-events: none;
}
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.photo-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 420px;
}

.scan-screen { background: #f3f4f4; color: var(--black); }
.scan-screen .onboarding-shell {
  min-height: 100svh;
  padding-bottom: max(20px, var(--safe-bottom));
}
.scan-screen .onboarding-top { position: relative; z-index: 2; }
.scan-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  max-width: 960px;
  width: 100%;
  margin: auto;
  padding: 28px 0 40px;
}
.scan-portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #dfe2e3;
  margin: 0 auto;
  box-shadow: 0 18px 40px rgba(15, 15, 16, .08);
}
.scan-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.scan-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(15, 15, 16, .22) 100%);
  pointer-events: none;
}
.scan-frame {
  position: absolute;
  inset: 12%;
  border: 1.5px solid rgba(255, 255, 255, .85);
  border-radius: 22px;
  pointer-events: none;
}
.scan-frame::before,
.scan-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--yellow);
}
.scan-frame::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 8px 0 0;
}
.scan-frame::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 8px;
}
.scan-line {
  position: absolute;
  left: 14%;
  right: 14%;
  height: 2px;
  background: rgba(255, 221, 45, .95);
  animation: scan 2.3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes scan {
  0%, 100% { top: 18%; opacity: .4; }
  50% { top: 78%; opacity: 1; }
}
.scan-copy h2 { font-size: clamp(30px, 5vw, 52px); margin: 0; }
.scan-status { margin-top: 28px; display: grid; gap: 12px; }
.scan-status__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #96999d;
  font-size: 16px;
  transition: color .3s;
}
.scan-status__item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c9cccf;
  flex: 0 0 auto;
}
.scan-status__item.is-active { color: var(--black); font-weight: 650; }
.scan-status__item.is-active::before {
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 221, 45, .25);
}
.scan-status__item.is-done { color: #5d6165; }
.scan-status__item.is-done::before { background: var(--green); }

.result-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); gap: 56px; align-items: center; margin-top: 34px; }
.archetype-name { font-size: clamp(64px, 11vw, 126px); line-height: .88; letter-spacing: -.07em; margin: 12px 0 22px; }
.archetype-description { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.3; max-width: 640px; }
.trait-list { display: grid; gap: 17px; padding: 24px; background: var(--soft); border-radius: 24px; }
.trait-row__top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.trait-bar { height: 7px; border-radius: 99px; background: #dfe2e4; overflow: hidden; }
.trait-bar span { display: block; height: 100%; border-radius: inherit; background: var(--black); animation: grow .8s ease both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.disclaimer { margin-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.45; max-width: 620px; }

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.work-card {
  min-height: 145px;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: 21px;
  background: var(--soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s;
}
.work-card:hover { background: #eceef0; }
.work-card:active { transform: scale(.985); }
.work-card small { color: var(--muted); }
.work-card strong { font-size: 22px; line-height: 1.15; }
.match-feature { margin-top: 30px; background: var(--black); color: var(--white); border-radius: 28px; padding: clamp(24px, 5vw, 42px); }
.match-feature__score { color: var(--yellow); font-size: 54px; font-weight: 750; letter-spacing: -.04em; }
.match-feature h3 { font-size: clamp(30px, 4vw, 48px); margin: 14px 0 22px; }
.reason-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; color: #d8dadc; }
.reason-list span::before { content: "✓"; color: var(--yellow); margin-right: 9px; }
.other-matches { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.other-match { padding: 18px; background: var(--soft); border-radius: 17px; display: flex; justify-content: space-between; gap: 10px; }
.profile-ready { text-align: center; align-items: center; }
.profile-ready__photo { width: 152px; height: 152px; border-radius: 50%; object-fit: cover; margin-bottom: 24px; }
.profile-ready h2 { font-size: clamp(40px, 6vw, 64px); }
.profile-ready__meta { color: var(--muted); font-size: 18px; margin-top: 9px; }
.profile-ready__stats { display: flex; justify-content: center; gap: 32px; margin-top: 26px; }
.profile-ready__stats strong { display: block; font-size: 22px; }
.profile-ready__stats small { color: var(--muted); }

/* App shell */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--rail); max-width: 1440px; margin: 0 auto; }
.sidebar { height: 100vh; position: sticky; top: 0; padding: 26px 20px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar .brand { margin: 0 10px 30px; }
.desktop-nav { display: grid; gap: 4px; }
.nav-label { margin: 22px 12px 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #a0a3a7; font-weight: 650; }
.nav-item {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 560;
  text-align: left;
}
.nav-item:hover { background: var(--soft); }
.nav-item.is-active { background: var(--black); color: var(--white); }
.nav-item svg { width: 20px; height: 20px; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; background: var(--yellow); color: var(--black); border-radius: 99px; font-size: 11px; font-weight: 700; }
.sidebar-profile { margin-top: auto; padding: 10px; border: 0; border-radius: 14px; background: var(--soft); display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.sidebar-profile img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sidebar-profile span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-profile strong, .sidebar-profile small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-profile strong { font-size: 13px; }
.sidebar-profile small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.sidebar-profile svg { width: 16px; }
.main-content { width: 100%; min-width: 0; padding: 36px clamp(24px, 3vw, 48px) 70px; outline: 0; }
.content-wrap { width: 100%; max-width: var(--max-content); margin: 0 auto; }
.content-wrap--wide { max-width: 860px; }
.right-rail { min-width: 0; padding: 36px 28px 40px 0; }
.right-rail__sticky { position: sticky; top: 32px; display: grid; gap: 16px; }
.mobile-header, .bottom-nav { display: none; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-header h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.03; margin: 0; }
.page-header p { color: var(--muted); margin: 9px 0 0; line-height: 1.45; }
.section-title { margin: 32px 0 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; }
.section-title h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.section-title button { border: 0; background: none; color: var(--blue); cursor: pointer; font-size: 14px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

.composer { padding: 15px; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; margin-bottom: 16px; }
.composer img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.composer textarea { min-height: 42px; resize: none; padding: 11px 14px; line-height: 20px; }
.feed { display: grid; gap: 14px; }
.post-card { padding: 20px; }
.post-author { display: flex; align-items: center; gap: 11px; }
.post-author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.post-author__meta { min-width: 0; flex: 1; }
.post-author strong, .post-author small { display: block; }
.post-author small { margin-top: 3px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-more { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 22px; letter-spacing: 2px; }
.post-text { margin: 17px 0; line-height: 1.55; font-size: 16px; }
.post-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 15px; margin: 15px 0 4px; }
.post-actions { display: flex; gap: 4px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 11px; }
.post-action { min-height: 38px; padding: 0 11px; border: 0; background: none; border-radius: 10px; display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; font-size: 13px; }
.post-action:hover { background: var(--soft); }
.post-action.is-active { color: var(--red); }
.post-action svg { width: 18px; height: 18px; }

.rail-card { padding: 19px; border-radius: 19px; background: var(--soft); }
.rail-card h3 { margin: 0 0 16px; font-size: 16px; }
.rail-list { display: grid; gap: 14px; }
.rail-person { display: flex; gap: 9px; align-items: center; }
.rail-person img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.rail-person__meta { min-width: 0; flex: 1; }
.rail-person strong, .rail-person small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-person strong { font-size: 13px; }
.rail-person small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.rail-link { border: 0; background: none; padding: 0; color: var(--blue); font-size: 13px; cursor: pointer; }
.rail-metric {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #dfe2e4;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.rail-metric:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-metric:first-of-type { padding-top: 0; }
.rail-metric strong { font-size: 14px; flex: 0 1 auto; min-width: 0; }
.rail-metric span {
  color: var(--muted);
  font-size: 13px;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

.career-hero { padding: clamp(24px, 5vw, 42px); border-radius: var(--radius-lg); background: var(--yellow); margin-bottom: 28px; position: relative; overflow: hidden; }
.career-hero h1 { max-width: 580px; margin: 0; font-size: clamp(38px, 6vw, 62px); line-height: .98; letter-spacing: -.055em; }
.career-hero p { max-width: 480px; margin: 20px 0 0; line-height: 1.45; }
.career-hero__mark { position: absolute; right: -14px; bottom: -62px; font-size: 230px; line-height: 1; font-weight: 800; opacity: .09; transform: rotate(-9deg); }
.search-row { display: flex; gap: 9px; margin-bottom: 14px; }
.search-box { flex: 1; position: relative; }
.search-box svg { position: absolute; left: 15px; top: 13px; width: 19px; color: var(--muted); }
.search-input { height: 46px; padding: 0 16px 0 44px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.filter-button { height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--soft); cursor: pointer; font-size: 13px; }
.filter-button.is-active { background: var(--black); color: var(--white); }
.jobs-list { display: grid; gap: 12px; }
.job-card { padding: 21px; cursor: pointer; transition: transform .18s, border-color .18s; }
.job-card:hover { transform: translateY(-2px); border-color: #cfd2d5; }
.job-card__top { display: flex; justify-content: space-between; gap: 16px; }
.job-card h3 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.job-company { margin: 6px 0 0; color: var(--muted); }
.match-badge { white-space: nowrap; height: fit-content; padding: 7px 10px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.job-details { display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.job-salary { margin-top: 17px; font-size: 17px; font-weight: 650; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; }
.job-tags span { padding: 7px 9px; border-radius: 8px; background: var(--soft); font-size: 12px; }

.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.person-card { padding: 18px; }
.person-card__top { display: flex; gap: 12px; }
.person-card__photo { width: 66px; height: 66px; border-radius: 18px; object-fit: cover; }
.person-card h3 { margin: 2px 0 4px; font-size: 17px; }
.person-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.archetype-pill { display: inline-flex; margin-top: 8px; padding: 5px 8px; border-radius: 7px; background: #fff3b0; font-size: 11px; }
.person-card__skills { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 14px 0; min-height: 36px; }
.person-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.person-card__match { color: var(--green); font-size: 12px; font-weight: 650; }
.btn--followed { background: #eef0f2; color: #5d6165; }
.btn--applied { background: var(--green-soft); color: var(--green); cursor: default; }

.development-score { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 24px; background: var(--black); color: var(--white); border-radius: 24px; }
.score-ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 9px solid #333; border-top-color: var(--yellow); border-right-color: var(--yellow); transform: rotate(18deg); }
.score-ring strong { transform: rotate(-18deg); font-size: 24px; }
.development-score h2 { margin: 0 0 7px; font-size: 24px; }
.development-score p { margin: 0; color: #b9bcc0; line-height: 1.4; }
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.course-card { min-height: 210px; padding: 20px; background: var(--soft); border-radius: 20px; display: flex; flex-direction: column; }
.course-card__boost { width: fit-content; padding: 6px 9px; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.course-card h3 { margin: 17px 0 8px; font-size: 19px; }
.course-card p { margin: 0; color: var(--muted); font-size: 13px; }
.course-card .btn { margin-top: auto; align-self: flex-start; }

.messages-layout { display: grid; grid-template-columns: 280px 1fr; height: calc(100vh - 108px); min-height: 560px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.dialogs { border-right: 1px solid var(--line); overflow-y: auto; }
.dialogs__header { padding: 20px; border-bottom: 1px solid var(--line); }
.dialogs__header h1 { font-size: 25px; margin: 0 0 14px; }
.dialog-item { width: 100%; padding: 13px 15px; border: 0; background: none; display: flex; gap: 10px; text-align: left; cursor: pointer; }
.dialog-item:hover, .dialog-item.is-active { background: var(--soft); }
.dialog-item img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.dialog-item__copy { min-width: 0; flex: 1; }
.dialog-item strong, .dialog-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dialog-item strong { font-size: 13px; }
.dialog-item small { font-size: 11px; color: var(--muted); margin-top: 5px; }
.unread { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 10px; font-weight: 700; }
.conversation { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.conversation__header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.conversation__header img { width: 39px; height: 39px; border-radius: 50%; object-fit: cover; }
.conversation__identity { min-width: 0; flex: 1; }
.conversation__header strong, .conversation__header small { display: block; }
.conversation__header small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.conversation__follow { flex: 0 0 auto; min-height: 36px; padding: 0 14px; }
.messages { padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.message { max-width: 75%; padding: 10px 13px 7px; border-radius: 15px 15px 15px 4px; background: var(--soft); line-height: 1.4; font-size: 14px; }
.message.is-own { align-self: flex-end; background: #fff3b0; border-radius: 15px 15px 4px 15px; }
.message time { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-align: right; }
.message-form { padding: 12px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.message-form input { flex: 1; min-width: 0; height: 43px; border: 0; outline: 0; border-radius: 13px; background: var(--soft); padding: 0 14px; }

.notification-list { display: grid; gap: 9px; }
.notification-item { padding: 16px; display: flex; gap: 13px; align-items: center; }
.notification-item.is-unread { background: #fffdf0; border-color: #eee4ad; }
.notification-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: var(--soft); display: grid; place-items: center; }
.notification-item p { margin: 0; line-height: 1.4; font-size: 14px; }
.notification-item small { color: var(--muted); display: block; margin-top: 4px; font-size: 11px; }

.profile-hero { padding: 26px; border-radius: var(--radius-lg); background: var(--soft); display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; }
.profile-hero__photo { width: 150px; height: 180px; border-radius: 24px; object-fit: cover; }
.profile-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.045em; }
.profile-hero p { margin: 7px 0; color: var(--muted); }
.profile-hero__archetype { display: inline-flex; padding: 7px 10px; border-radius: 9px; background: var(--yellow); font-size: 13px; font-weight: 650; margin-top: 6px; }
.completion { width: 92px; text-align: center; }
.completion__ring { width: 86px; height: 86px; margin: 0 auto 9px; border: 8px solid #dfe2e4; border-top-color: var(--green); border-right-color: var(--green); border-bottom-color: var(--green); border-radius: 50%; display: grid; place-items: center; transform: rotate(28deg); }
.completion__ring strong { transform: rotate(-28deg); }
.completion small { color: var(--muted); }
.profile-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; margin-top: 18px; }
.profile-section { padding: 22px; }
.profile-section h2 { margin: 0 0 17px; font-size: 20px; }
.strength-list { display: grid; gap: 11px; }
.strength-item { display: flex; gap: 9px; align-items: flex-start; }
.strength-item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); margin-top: 8px; flex: 0 0 auto; }
.skills { display: flex; gap: 7px; flex-wrap: wrap; }
.skills span { padding: 8px 10px; border-radius: 9px; background: var(--soft); font-size: 12px; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 22px 22px; border-left: 1px solid #d5d8db; }
.timeline-item:last-child { padding-bottom: 0; border-color: transparent; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: var(--black); }
.timeline-item strong, .timeline-item span, .timeline-item small { display: block; }
.timeline-item span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.timeline-item small { margin-top: 4px; color: #a0a3a7; }
.style-list { display: grid; gap: 11px; }
.style-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.style-row span { color: var(--muted); }
.toggle-row { padding: 18px; border-radius: 17px; background: var(--green-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toggle { width: 48px; height: 28px; border: 0; border-radius: 99px; background: var(--green); padding: 3px; cursor: pointer; }
.toggle span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--white); margin-left: auto; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; background: rgba(15,15,16,.52); display: grid; place-items: center; padding: 18px; animation: fade .16s ease; }
.modal { width: min(100%, 620px); max-height: min(860px, 92vh); overflow-y: auto; background: var(--white); border-radius: 25px; animation: rise .2s ease; }
.modal__header { padding: 20px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.modal__header h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; line-height: 1.15; }
.modal__close { border: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 20px; flex: 0 0 auto; }
.modal__body { padding: 22px; }
.modal--job { display: flex; flex-direction: column; max-height: min(860px, 92vh); overflow: hidden; }
.modal--job .modal__body { overflow-y: auto; flex: 1; padding-bottom: 12px; }
.job-modal__brand { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.job-modal__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  flex: 0 0 auto;
}
.job-modal__brand .job-company { margin-top: 6px; }
.job-modal__salary { font-size: 28px; font-weight: 750; letter-spacing: -.03em; margin-bottom: 18px; }
.job-modal__score {
  padding: 18px 20px;
  background: linear-gradient(135deg, #e9f7ef 0%, #f3faf6 100%);
  color: var(--green);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}
.job-modal__score small { display: block; color: #2f7a56; font-size: 13px; margin-bottom: 4px; }
.job-modal__score strong { font-size: 34px; letter-spacing: -.04em; color: var(--green); }
.job-modal__ring {
  --match: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, #e9f7ef 76%, transparent 78% 100%),
    conic-gradient(var(--green) calc(var(--match) * 1%), #d7ebe1 0);
  color: var(--green);
  font-weight: 750;
  font-size: 15px;
  flex: 0 0 auto;
}
.modal--job h3 { margin: 0 0 14px; font-size: 17px; }
.reason-bars { display: grid; gap: 14px; }
.reason-bar__top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }
.reason-bar__line { height: 8px; border-radius: 99px; background: var(--soft-2); overflow: hidden; }
.reason-bar__line span { display: block; height: 100%; background: var(--black); border-radius: inherit; animation: grow .7s ease both; transform-origin: left; }
.job-modal__desc { margin: 22px 0 0; line-height: 1.45; color: var(--text); }
.modal__actions {
  display: flex;
  gap: 10px;
  padding: 14px 22px calc(14px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}
.modal__actions .btn { flex: 1; }

#toast-root { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 13px 16px; border-radius: 13px; background: var(--black); color: var(--white); font-size: 13px; animation: rise .2s ease; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; --rail: 280px; }
  .main-content { padding-left: 28px; padding-right: 28px; }
  .right-rail { padding-right: 18px; }
}

@media (max-width: 1024px) {
  .app { grid-template-columns: 214px minmax(0, 1fr); }
  .right-rail { display: none; }
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { background: var(--white); }
  .app { display: block; padding-top: 64px; padding-bottom: calc(68px + var(--safe-bottom)); }
  .sidebar { display: none; }
  .mobile-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 64px; padding: max(10px, env(safe-area-inset-top)) 16px 8px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(232,234,237,.85); }
  .brand--mobile { font-size: 18px; }
  .brand--mobile .brand-mark { width: 31px; height: 31px; font-size: 18px; }
  .mobile-header__actions { display: flex; gap: 7px; }
  .mobile-header .icon-button, .mobile-header .avatar-button { width: 38px; height: 38px; }
  .bottom-nav { position: fixed; z-index: 50; bottom: 0; left: 0; right: 0; min-height: calc(64px + var(--safe-bottom)); padding: 6px 5px var(--safe-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid rgba(232,234,237,.9); display: grid; grid-template-columns: repeat(5, 1fr); }
  .bottom-nav__item { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8a8d91; font-size: 10px; cursor: pointer; }
  .bottom-nav__item.is-active { color: var(--black); font-weight: 650; }
  .bottom-nav__item svg { width: 22px; height: 22px; }
  .main-content { padding: 22px 15px 30px; }
  .page-header { margin-bottom: 20px; }
  .page-header h1 { font-size: 32px; }
  .composer { grid-template-columns: 38px 1fr; padding: 12px; }
  .composer img { width: 38px; height: 38px; }
  .composer .btn { grid-column: 2; justify-self: end; min-height: 38px; }
  .post-card { border-left: 0; border-right: 0; border-radius: 0; margin-left: -15px; margin-right: -15px; padding-left: 16px; padding-right: 16px; }
  .feed { gap: 9px; }
  .career-hero { margin-left: -3px; margin-right: -3px; border-radius: 24px; }
  .career-hero__mark { font-size: 180px; }
  .people-grid, .course-grid { grid-template-columns: 1fr; }
  .person-card { display: block; }
  .person-card__footer { margin-top: 2px; }
  .person-card .btn { flex: 0 0 auto; }
  .conversation__follow { min-height: 34px; font-size: 13px; padding: 0 12px; }
  .modal--job { max-height: min(88svh, 760px); border-radius: 22px; }
  .job-modal__salary { font-size: 24px; }
  .job-modal__score strong { font-size: 28px; }
  .modal__actions { padding-left: 16px; padding-right: 16px; }
  .messages-layout { height: calc(100svh - 150px); min-height: 480px; grid-template-columns: 1fr; border-radius: 18px; }
  .messages-layout.show-conversation .dialogs { display: none; }
  .messages-layout:not(.show-conversation) .conversation { display: none; }
  .dialogs { border-right: 0; }
  .back-dialogs { display: grid !important; }
  .profile-hero { grid-template-columns: 100px 1fr; padding: 18px; gap: 16px; }
  .profile-hero__photo { width: 100px; height: 124px; border-radius: 18px; }
  .profile-hero .completion { display: none; }
  .profile-layout { margin-top: 12px; }
  .profile-section { padding: 18px; }

  .onboarding-shell { padding-left: 16px; padding-right: 16px; }
  .onboarding-top .brand span:last-child { display: none; }
  .onboarding-progress { margin-left: 12px; max-width: none; }
  .onboarding-content { justify-content: flex-start; padding-top: 22px; padding-bottom: 104px; }
  .onboarding-content--compact { padding-top: 18px; }
  .onboarding-content--photo { padding-top: 10px; padding-bottom: 104px; }
  .onboarding h1 { font-size: clamp(36px, 11vw, 52px); }
  .onboarding h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .onboarding-lead { margin-top: 12px; font-size: 15px; }
  .welcome-visual { margin-top: 28px; }
  .choice-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
  .choice-card { min-height: 56px; padding: 14px 16px; border-radius: 14px; }
  .field { margin-top: 20px; }
  .text-input { height: 52px; font-size: 16px; }
  .focus-row { min-height: 52px; padding: 0 16px; border-radius: 13px; }
  .baseline-list { margin-top: 20px; }
  .baseline-tag { padding: 14px 16px; font-size: 15px; border-radius: 13px; }
  .psych-grid { margin-top: 18px; }
  .psych-card { min-height: 56px; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
  .psych-card--chosen { margin-top: 18px; }
  .verdict-sources { margin-top: 18px; }
  .portrait-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
  .portrait-photo {
    width: min(58vw, 220px);
    margin: 0 auto;
    border-radius: 20px;
  }
  .portrait-copy .trait-list { margin-top: 16px; }
  .trait-list--compact { padding: 16px; gap: 11px; }
  .portrait-details { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; margin-bottom: 8px; }
  .suggestions { gap: 8px; }
  .suggestions .chip { font-size: 13px; padding: 8px 12px; }
  .job-card, .person-card, .course-card { min-width: 0; }
  .match-feature__score { font-size: 42px; }
  .match-feature h3 { font-size: 28px; }
  .profile-ready__stats { gap: 22px; flex-wrap: wrap; }
  .profile-ready__stats strong { font-size: 20px; }
  .archetype-description { font-size: 18px; }
  .other-match { min-width: 0; }
  .modal { width: min(100%, 520px); max-height: min(86svh, 720px); }
  .modal__body { overflow-y: auto; }
  .photo-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 0;
    padding: 8px 4px 0;
  }
  .camera-frame {
    width: calc(100% - 24px);
    max-width: 280px;
    margin: 4px auto 0;
    max-height: min(34vh, 280px);
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }
  .photo-copy {
    padding: 0 2px;
  }
  .photo-copy .onboarding-kicker { margin-bottom: 10px; }
  .photo-copy .onboarding-lead { margin-top: 10px; }
  .photo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 12px;
    margin-top: 20px;
  }
  .photo-actions .btn { min-height: 48px; width: 100%; }
  .photo-note { margin-top: 14px; font-size: 12px; }
  .scan-screen .onboarding-shell { padding-left: 16px; padding-right: 16px; }
  .scan-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 12px 0 20px;
    gap: 22px;
    min-height: calc(100svh - 88px);
  }
  .scan-portrait {
    width: min(58vw, 220px);
    max-width: none;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }
  .scan-frame { inset: 12%; border-radius: 16px; }
  .scan-copy { width: 100%; }
  .scan-copy h2 { font-size: 28px; }
  .scan-status { margin-top: 16px; gap: 10px; }
  .scan-status__item { font-size: 14px; }
  .result-hero { display: flex; flex-direction: column; gap: 30px; align-items: stretch; }
  .archetype-name { font-size: clamp(62px, 19vw, 94px); }
  .trait-list { padding: 20px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card { min-height: 124px; padding: 17px; border-radius: 18px; }
  .work-card strong { font-size: 18px; }
  .reason-list { grid-template-columns: 1fr; }
  .other-matches { grid-template-columns: 1fr; }
  .profile-ready { justify-content: center; padding-top: 30px; }
}

@media (max-width: 430px) {
  .onboarding-footer { padding-left: 16px; padding-right: 16px; }
  .onboarding-footer__inner { display: grid; grid-template-columns: auto 1fr; }
  .onboarding-footer .btn:last-child { width: 100%; }
  .onboarding-footer .btn { min-height: 48px; font-size: 15px; }
  .welcome-visual { gap: 7px; }
  .welcome-visual__portrait { border-radius: 18px; }
  .camera-frame {
    width: calc(100% - 32px);
    max-width: 260px;
    max-height: min(32vh, 250px);
    margin-top: 8px;
  }
  .photo-layout { gap: 32px; padding: 12px 8px 0; }
  .photo-actions { margin-top: 22px; }
  .scan-portrait { width: min(54vw, 200px); }
  .work-grid { gap: 9px; }
  .match-feature { border-radius: 24px; }
  .profile-ready__stats { gap: 20px; }
  .post-actions { justify-content: space-between; }
  .post-action { padding: 0 6px; font-size: 12px; }
  .development-score { grid-template-columns: 76px 1fr; padding: 19px; }
  .score-ring { width: 76px; height: 76px; border-width: 7px; }
  .score-ring strong { font-size: 19px; }
  .development-score h2 { font-size: 20px; }
  .profile-hero h1 { font-size: 28px; }
}

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