body.figma-route {
  --canvas: #f3f0e9;
  --ink: #141414;
  --acid: #c7ff3d;
  --white: #fff;
  --muted: #6c6a65;
  --line: rgba(20, 20, 20, 0.2);
  --soft: #e8e4dc;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
}

body.figma-route #app {
  min-height: 100vh;
}

.figma-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.figma-shell h1,
.figma-shell h2,
.figma-shell h3,
.figma-shell h4 {
  font-family: "Space Grotesk", Arial, sans-serif;
  letter-spacing: -0.035em;
}

.figma-shell p,
.figma-shell li,
.figma-shell label,
.figma-shell input,
.figma-shell textarea,
.figma-shell select,
.figma-shell button {
  font-family: "Space Grotesk", Arial, sans-serif;
}

.figma-shell a {
  color: inherit;
  text-decoration: none;
}

.figma-shell img {
  display: block;
  max-width: 100%;
}

.figma-shell button {
  cursor: pointer;
}

.figma-shell [hidden] {
  display: none !important;
}

.figma-shell .page-width {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.figma-shell .header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(243, 240, 233, 0.96);
  backdrop-filter: blur(12px);
}

.figma-shell .brand-logo {
  width: 137px;
  height: auto;
  display: block;
}

.figma-shell .logo-link,
.figma-shell .auth-logo {
  width: fit-content;
  display: block;
  padding: 0;
  border: 0;
  background: none;
}

.figma-shell .desktop-nav {
  display: flex;
  gap: 4px;
}

.figma-shell .desktop-nav a {
  padding: 10px 14px;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
}

.figma-shell .desktop-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.figma-shell .header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.figma-shell .user-search {
  position: relative;
  width: min(42vw, 520px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: white;
}

.figma-shell .user-search input {
  width: 100%;
  height: 44px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 13px;
}

.figma-shell .user-results {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--canvas);
  box-shadow: 7px 7px 0 var(--ink);
}

.figma-shell .user-results > a {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}

.figma-shell .user-results > a:last-child {
  border-bottom: 0;
}

.figma-shell .user-results > a > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font: 700 9px "Space Mono", monospace;
}

.figma-shell .user-results b,
.figma-shell .user-results small {
  display: block;
}

.figma-shell .user-results b {
  font-size: 12px;
}

.figma-shell .user-results small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.figma-shell .user-results > p {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.figma-shell .home-search-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: none;
}

.figma-shell .search-link,
.figma-shell .login-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
}

.figma-shell .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  background: none;
}

.figma-shell .mobile-menu {
  position: absolute;
  top: 72px;
  right: 0;
  left: 0;
  display: grid;
  padding: 12px 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
  box-shadow: 0 18px 30px rgba(20, 20, 20, 0.08);
}

.figma-shell .mobile-menu > a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.figma-shell .mobile-menu .btn {
  margin-top: 18px;
}

.figma-shell .btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.figma-shell .btn:hover {
  transform: translateY(-1px);
}

.figma-shell .btn-primary {
  background: var(--acid);
  color: var(--ink);
}

.figma-shell .btn-primary:hover {
  background: var(--ink);
  color: var(--white);
}

.figma-shell .btn-secondary {
  background: transparent;
  color: var(--ink);
}

.figma-shell .btn-secondary:hover {
  background: var(--ink);
  color: var(--white);
}

.figma-shell .btn:disabled {
  border-color: var(--line);
  background: var(--soft);
  color: #99958e;
  cursor: not-allowed;
  transform: none;
}

.figma-shell .section-label {
  display: block;
  margin-bottom: 18px;
  font: 700 11px/1.3 "Space Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.figma-shell .home-only {
  min-height: calc(100vh - 72px);
}

.figma-shell .welcome {
  position: relative;
  min-height: calc(100vh - 72px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
}

.figma-shell .home-only .welcome {
  width: 100%;
  min-height: calc(100vh - 72px);
  margin: 0;
}

.figma-shell .welcome-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  filter: brightness(0.78);
}

.figma-shell .welcome-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.82) contrast(1.02);
}

.figma-shell .welcome-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(440px, calc(100% - 64px));
  padding: 38px;
  background: var(--canvas);
  transform: translate(-50%, -50%);
}

.figma-shell .welcome-copy h1 {
  margin: 0;
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.figma-shell .welcome-copy > p {
  max-width: 350px;
  margin: 20px 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.figma-shell .welcome-actions {
  display: grid;
  gap: 15px;
}

.figma-shell .welcome-actions .btn {
  width: 100%;
}

.figma-shell .welcome-actions > a:not(.btn) {
  justify-self: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.figma-shell .welcome-copy > p.welcome-login {
  max-width: none;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.figma-shell .welcome-login a {
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.figma-shell .auth-page {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--canvas);
}

.figma-shell .auth-page.register-page {
  grid-template-columns: 1fr;
  background: var(--canvas);
}

.figma-shell .auth-form {
  width: min(100% - 48px, 520px);
  align-self: center;
  justify-self: center;
  padding: 60px 0;
}

.figma-shell .register-page .auth-form {
  width: min(100% - 48px, 560px);
  padding: 46px 0 58px;
}

.figma-shell .auth-form .auth-logo {
  margin-bottom: 70px;
}

.figma-shell .register-page .auth-form .auth-logo {
  margin-bottom: 30px;
}

.figma-shell .auth-form h1 {
  margin: 0 0 14px;
  font-size: 48px;
  letter-spacing: -0.05em;
}

.figma-shell .register-page .auth-form h1 {
  font-size: 36px;
}

.figma-shell .auth-form > p {
  margin: 0 0 34px;
  color: var(--muted);
}

.figma-shell .register-page .auth-form > p {
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.45;
}

.figma-shell .auth-form form {
  display: grid;
  gap: 18px;
}

.figma-shell .auth-form label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.figma-shell .auth-form input {
  width: 100%;
  min-height: 49px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}

.figma-shell .auth-form input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.figma-shell .register-form {
  gap: 14px !important;
}

.figma-shell .register-form label {
  gap: 5px;
  font-size: 11px;
}

.figma-shell .register-form label > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.figma-shell .register-form input {
  min-height: 48px;
  border-radius: 4px;
}

.figma-shell .register-form .btn {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.figma-shell .password-field {
  position: relative;
}

.figma-shell .password-field input {
  padding-right: 50px;
}

.figma-shell .password-field button {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
}

.figma-shell .register-form .password-field button {
  height: 48px;
}

.figma-shell .check-line {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 400 !important;
  line-height: 1.5;
}

.figma-shell .check-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

.figma-shell .check-line a {
  color: inherit;
}

.figma-shell .forgot {
  justify-self: end;
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--ink);
  font-size: 11px;
}

.figma-shell .form-error {
  min-height: 17px;
  margin: 0;
  color: #9d2419;
  font-size: 11px;
  line-height: 1.4;
}

.figma-shell .auth-form .btn[type="submit"] {
  width: 100%;
}

.figma-shell .auth-alternative {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.figma-shell .auth-alternative:hover {
  border-color: var(--ink);
}

.figma-shell .auth-aside {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--ink);
}

.figma-shell .auth-aside > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.figma-shell .auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 20, 20, 0.85));
}

.figma-shell .auth-aside > div {
  position: absolute;
  z-index: 2;
  right: 50px;
  bottom: 50px;
  left: 50px;
  color: white;
}

.figma-shell .auth-aside p {
  margin: 30px 0 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.figma-shell footer {
  padding: 80px 0 0;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.figma-shell .footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 70px;
}

.figma-shell .footer-main > div:first-child p {
  margin: 28px 0 0;
  color: #96938d;
  font-size: 12px;
  line-height: 1.6;
}

.figma-shell .footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.figma-shell .footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.figma-shell .footer-links b {
  margin-bottom: 8px;
  color: #77746f;
  font: 700 9px "Space Mono", monospace;
  text-transform: uppercase;
}

.figma-shell .footer-links a {
  padding: 0;
  border: 0;
  background: none;
  color: #d4d1ca;
  font-size: 12px;
  text-decoration: none;
}

.figma-shell .footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #77746f;
  font: 700 9px "Space Mono", monospace;
}

.figma-shell .footer-watermark {
  height: 230px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  opacity: 0.24;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.78) 48%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.78) 48%, transparent 100%);
}

.figma-shell .footer-watermark img {
  width: 100%;
  height: auto;
  transform: translateY(12%);
}

@media (max-width: 960px) {
  .figma-shell .page-width {
    width: min(100% - 40px, 900px);
  }

  .figma-shell .header {
    padding-inline: 20px;
  }
}

@media (max-width: 720px) {
  .figma-shell .page-width {
    width: calc(100% - 32px);
  }

  .figma-shell .header {
    height: 64px;
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .figma-shell .brand-logo {
    width: 120px;
  }

  .figma-shell .desktop-nav,
  .figma-shell .header-tools > .btn,
  .figma-shell .header-tools > .login-link,
  .figma-shell .search-link span {
    display: none;
  }

  .figma-shell .header-tools {
    gap: 6px;
  }

  .figma-shell .menu-toggle,
  .figma-shell .home-search-toggle {
    display: grid;
  }

  .figma-shell .user-search {
    display: none;
  }

  .figma-shell .user-search.mobile-open {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    width: auto;
    display: flex;
    border-inline: 0;
    border-color: var(--ink);
  }

  .figma-shell .user-search.mobile-open .user-results {
    top: 100%;
  }

  .figma-shell .mobile-menu {
    top: 64px;
    grid-template-columns: 1fr;
  }

  .figma-shell .welcome,
  .figma-shell .home-only .welcome {
    width: 100%;
    min-height: calc(100vh - 64px);
    margin: 0;
  }

  .figma-shell .home-only {
    min-height: calc(100vh - 64px);
  }

  .figma-shell .welcome h1 {
    font-size: 43px;
  }

  .figma-shell .welcome-copy {
    top: 50%;
    right: 16px;
    bottom: auto;
    left: 16px;
    width: auto;
    padding: 27px 23px;
    transform: translateY(-50%);
  }

  .figma-shell .welcome-copy > p {
    margin-block: 16px 20px;
    font-size: 14px;
  }

  .figma-shell .welcome-login {
    display: none;
  }

  .figma-shell .welcome-photo img {
    object-position: 52% center;
  }

  .figma-shell .auth-page {
    min-height: calc(100vh - 64px);
    grid-template-columns: 1fr;
  }

  .figma-shell .auth-form {
    width: calc(100% - 36px);
    padding: 45px 0 70px;
  }

  .figma-shell .register-page .auth-form {
    width: calc(100% - 32px);
    padding: 34px 0 48px;
  }

  .figma-shell .auth-form .auth-logo {
    margin-bottom: 55px;
  }

  .figma-shell .register-page .auth-form .auth-logo {
    margin-bottom: 30px;
  }

  .figma-shell .auth-form h1 {
    font-size: 40px;
  }

  .figma-shell .register-page .auth-form h1 {
    font-size: 32px;
  }

  .figma-shell .auth-aside {
    display: none;
  }

  .figma-shell .footer-main {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-bottom: 50px;
  }

  .figma-shell .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .figma-shell .footer-watermark {
    height: 115px;
  }
}

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