:root {
  /* Primitive tokens */
  --ink-950: #050606;
  --ink-900: #0b0c0d;
  --steel-700: #647b99;
  --steel-600: #7187a3;
  --steel-800: #294870;
  --steel-400: #607da1;
  --paper-50: #f7f8f4;
  --paper-200: #d8dee4;
  --lime-400: #ff9966;
  --lime-300: #ff9966;

  /* Semantic tokens */
  --color-header: var(--ink-950);
  --color-hero: var(--steel-700);
  --color-text: var(--paper-50);
  --color-muted: var(--paper-200);
  --color-action: var(--lime-400);
  --color-action-hover: var(--lime-300);
  --font-editorial: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", serif;
  --font-interface: "Hanken Grotesk", "Segoe UI", sans-serif;
  --font-brand: "Archivo Black", "Arial Black", sans-serif;

  /* Component tokens */
  --header-height: 88px;
  --page-gutter: 48px;
  --action-height: 40px;
  --motion-fast: 180ms;
  --motion-standard: 520ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--color-header);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--color-text);
  background: var(--color-hero);
  font-family: var(--font-interface);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  padding: 0 var(--page-gutter);
  color: var(--color-text);
  background: var(--color-header);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 13px;
  color: var(--color-action);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  background: var(--color-action);
  -webkit-mask: url("../assets/boyue-mark-lime.png?v=20260801-1") center / contain no-repeat;
  mask: url("../assets/boyue-mark-lime.png?v=20260801-1") center / contain no-repeat;
}

.brand span {
  font-family: var(--font-brand);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
}

.home-nav button {
  position: relative;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: rgba(247, 248, 244, 0.92);
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 280ms ease;
}

.home-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: var(--color-action);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(0.16, 0.88, 0.24, 1);
}

.home-nav button:hover {
  color: var(--color-action);
}

.home-nav button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.login-button,
.logout-button,
.hero-action,
.submit-button {
  min-height: var(--action-height);
  border: 1px solid var(--color-action);
  color: var(--ink-950);
  background: var(--color-action);
  font-weight: 700;
  transition:
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) ease;
}

.login-button {
  min-width: 96px;
  min-height: 36px;
  justify-self: end;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 18px;
}

.login-button:hover,
.logout-button:hover,
.hero-action:hover,
.submit-button:hover {
  border-color: var(--color-action-hover);
  background: var(--color-action-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(5, 6, 6, 0.16);
}

.account-box {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: var(--color-action);
  background: rgba(255, 255, 255, 0.06);
}

.avatar-button {
  padding: 0;
}

.avatar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-copy {
  min-width: 0;
  display: block;
}

.account-copy strong {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.15;
}

.account-copy small {
  display: none;
}

.logout-button {
  min-width: 96px;
  min-height: 36px;
  padding: 0 19px;
  border-radius: 999px;
  font-size: 18px;
}

main {
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  min-height: 580px;
}

.home-hero {
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      var(--steel-800) 0%,
      #31527c 34%,
      #466990 68%,
      #6b87a9 100%
    );
}

.hero-inner {
  position: relative;
  width: min(1660px, 100%);
  height: 100%;
  margin: 0 auto;
  isolation: isolate;
}

.hero-copy {
  position: relative;
  top: 20px;
  left: 10px;
  z-index: 3;
  width: min(49vw, 880px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
  padding: 38px 0 112px;
  margin-left: max(16px, calc(var(--page-gutter) - 28px));
  text-align: right;
  animation: copy-arrival 2780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-kicker {
  max-width: 620px;
  margin: 0 0 40px;
  padding: 10px 16px;
  border: 0.75px solid rgba(255, 255, 255, 0.46);
  border-radius: 4px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.105);
  font-size: 17.2px;
  font-weight: 400;
  line-height: 1.45;
  text-wrap: pretty;
  white-space: nowrap;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-editorial);
  font-size: 51px;
  font-weight: 400;
  line-height: 1.19;
  text-align: right;
}

.hero-line {
  width: 100%;
  max-width: 100%;
  display: block;
  margin-left: auto;
  white-space: normal;
}

.hero-support {
  position: relative;
  top: 8px;
  max-width: 680px;
  margin: 44px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--font-interface);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.52;
  text-align: right;
  text-wrap: pretty;
}

.hero-support span {
  display: block;
}

.hero-action {
  position: relative;
  top: 8px;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 18px;
}

.hero-figure {
  position: absolute;
  z-index: 2;
  right: 0.7%;
  bottom: calc(14% - 20px);
  width: min(51%, 780px);
  isolation: isolate;
  pointer-events: none;
  animation: figure-arrival 3120ms 340ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero-figure-content {
  position: relative;
  width: 95%;
  margin: 0 auto;
}

.hero-figure-content::before {
  content: "";
  position: absolute;
  top: 10.7%;
  left: 40.3%;
  width: 42.4%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.hero-figure-content::before {
  z-index: 0;
  background: rgba(255, 195, 138, 0.52);
  filter: blur(64px);
  transform: scale(1.08);
}

.hero-orb {
  position: absolute;
  z-index: 0;
  top: 10.7%;
  left: 40.3%;
  width: 42.4%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.hero-orb circle {
  fill: #ffc38a;
  stroke: none;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-site-link {
  position: absolute;
  z-index: 3;
  right: -2.4%;
  bottom: 24%;
  width: min(288px, 43%);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--ink-950);
  background: rgba(240, 245, 250, 0.24);
  box-shadow: 0 14px 34px rgba(27, 42, 60, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.hero-site-link-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 15px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-interface);
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.hero-site-link svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-dialog {
  width: min(470px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink-950);
  background: var(--paper-50);
  box-shadow: 0 30px 90px rgba(5, 6, 6, 0.32);
}

.auth-dialog[open] {
  animation: dialog-in 260ms var(--ease-out) both;
}

.auth-dialog::backdrop {
  background: rgba(5, 6, 6, 0.68);
}

.auth-shell {
  padding: 26px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dialog-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-950);
  text-decoration: none;
}

.dialog-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0);
}

.dialog-brand span {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.close-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: #43494c;
  background: transparent;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease;
}

.close-button:hover {
  color: var(--ink-950);
  background: #e7e9e5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 25px 0 24px;
  border-bottom: 1px solid #cdd1ce;
}

.auth-tab {
  position: relative;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  color: #6d7373;
  background: transparent;
  font-weight: 700;
}

.auth-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--ink-950);
  transform: scaleX(0);
  transition: transform 220ms var(--ease-out);
}

.auth-tab.active {
  color: var(--ink-950);
}

.auth-tab.active::after {
  transform: scaleX(1);
}

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

.auth-form:not(.hidden) {
  animation: auth-panel-in 220ms var(--ease-out) both;
}

.form-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 3px;
}

.form-heading strong {
  font-family: var(--font-editorial);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.form-heading span {
  color: #676d6d;
  font-size: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #3f4545;
  font-size: 13px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #bec4c2;
  border-radius: 4px;
  color: var(--ink-950);
  background: #ffffff;
  outline: none;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
}

.auth-form input:focus {
  border-color: var(--ink-950);
  box-shadow: 0 0 0 3px rgba(100, 123, 153, 0.18);
}

.submit-button {
  width: 100%;
  margin-top: 3px;
  border-color: var(--ink-950);
  border-radius: 4px;
  color: var(--paper-50);
  background: var(--ink-950);
}

.submit-button:hover {
  border-color: #252829;
  color: var(--ink-950);
  background: var(--color-action);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: #5c6262;
  font-size: 13px;
  line-height: 1.45;
}

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

:where(
  .home-nav button,
  .login-button,
  .logout-button,
  .hero-action,
  .close-button,
  .auth-tab,
  .submit-button,
  .avatar-crop-cancel,
  .avatar-crop-confirm
):not(:disabled):active {
  transform: translateY(0) scale(0.985);
  transition-duration: 80ms;
}

@keyframes copy-arrival {
  0% {
    opacity: 0;
    transform: translate3d(-18px, 52px, 0);
  }
  82% {
    opacity: 1;
    transform: translate3d(1px, -1px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes figure-arrival {
  0% {
    opacity: 0;
    transform: translate3d(78px, 54px, 0) scale(0.965);
  }
  82% {
    opacity: 1;
    transform: translate3d(-1px, -1px, 0) scale(1.002);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes auth-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1501px) {
  .hero-copy {
    left: -50px;
    margin-left: 0;
  }
}

@media (min-width: 1501px) and (max-width: 1800px) {
  :root {
    --header-height: 79px;
    --page-gutter: 43px;
  }

  .site-header {
    grid-template-columns: minmax(225px, 1fr) auto auto;
    gap: 29px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand span {
    font-size: 21.6px;
  }

  .home-nav {
    gap: 41px;
  }

  .home-nav button {
    min-height: 40px;
    font-size: 16.2px;
  }

  .login-button,
  .logout-button {
    min-width: 86px;
    min-height: 32px;
    padding: 0 17px;
    font-size: 16.2px;
  }

  .account-box {
    gap: 9px;
  }

  .avatar {
    width: 36px;
    height: 36px;
  }

  .hero-inner {
    width: min(1494px, 100%);
  }

  .hero-copy {
    left: -35px;
    width: min(49vw, 792px);
    padding: 34px 0 101px;
  }

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

  .hero-kicker {
    max-width: 560px;
    margin-bottom: 36px;
    padding: 9px 14.5px;
    font-size: 15.5px;
  }

  .hero-support {
    max-width: 612px;
    margin-top: 40px;
    font-size: 23.4px;
  }

  .hero-action {
    min-width: 135px;
    min-height: 36px;
    margin-top: 36px;
    padding: 0 22px;
    font-size: 16.2px;
  }

  .hero-figure {
    right: 0.7%;
    bottom: calc(14% - 20px);
    width: min(51%, 702px);
  }

  .hero-site-link {
    right: -2.3%;
    width: min(258px, 43%);
    padding: 9px;
  }

  .hero-site-link-inner {
    min-height: 43px;
    padding: 0 14px;
    font-size: 15.3px;
  }

  .hero-site-link svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 1500px) {
  :root {
    --page-gutter: 36px;
  }

  .site-header {
    grid-template-columns: minmax(230px, 1fr) auto auto;
    gap: 22px;
  }

  .home-nav {
    gap: 34px;
  }

  .hero-copy {
    left: -8px;
    width: min(52.7vw, 720px);
    padding-bottom: 70px;
    margin-left: 22px;
  }

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

  .hero-support {
    max-width: 600px;
    margin-top: 36px;
    font-size: 23.5px;
  }

  .hero-figure {
    right: 0.2%;
    bottom: calc(11% - 20px);
    width: min(45%, 610px);
  }

  .hero-site-link {
    right: 3%;
    width: min(268px, 45%);
  }

  .hero-site-link-inner {
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }
}

@media (max-width: 1180px) {
  :root {
    --header-height: 80px;
    --page-gutter: 24px;
  }

  .brand span {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-header {
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: 16px;
  }

  .home-nav {
    gap: 15px;
  }

  .home-nav button {
    font-size: 13px;
  }

  .login-button,
  .logout-button {
    min-width: 92px;
  }

  .hero-copy {
    width: 48vw;
  }

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

  .hero-kicker {
    max-width: 430px;
    margin-bottom: 22px;
    font-size: 14px;
    white-space: normal;
  }

  .hero-support {
    max-width: 440px;
    margin-top: 23px;
    font-size: 15px;
  }

  .hero-action {
    margin-top: 28px;
  }

  .hero-figure {
    right: -5.8%;
    bottom: calc(-1% - 20px);
    width: 66%;
  }
}

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

  .site-header {
    height: auto;
    min-height: 76px;
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .home-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-nav button {
    flex: 0 0 auto;
    font-size: 13px;
  }

  main {
    height: auto;
    min-height: 0;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    left: auto;
    width: auto;
    min-height: 0;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 64px 24px 0;
    margin: 0;
    text-align: left;
  }

  .hero-copy h1 {
    max-width: 620px;
    font-size: 29px;
  }

  .hero-line {
    width: auto;
    max-width: none;
    margin-left: 0;
    white-space: normal;
  }

  .hero-kicker {
    margin-bottom: 22px;
  }

  .hero-figure {
    position: relative;
    right: auto;
    bottom: auto;
    width: 118%;
    margin: -12px -24% -3% auto;
    align-self: flex-end;
  }

  .hero-site-link {
    right: 19%;
    bottom: 7%;
  }
}

@media (max-width: 520px) {
  .home-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    width: 100%;
    overflow: visible;
  }

  .home-nav button {
    min-height: 36px;
    justify-self: start;
  }

  .brand span {
    font-size: 17px;
  }

  .login-button,
  .logout-button {
    min-width: 88px;
    min-height: 44px;
    padding: 0 17px;
    font-size: 14px;
  }

  .home-hero {
    min-height: 0;
  }

  .hero-copy {
    padding: 46px 20px 0;
  }

  .hero-copy h1 {
    font-size: 25px;
    line-height: 1.2;
  }

  .hero-kicker {
    font-size: 13px;
  }

  .hero-support {
    font-size: 14px;
  }

  .hero-figure {
    width: 142%;
    margin: -2px -43% -3% auto;
  }

  .hero-site-link {
    right: 31%;
    width: 56%;
  }

  .hero-site-link-inner {
    min-height: 39px;
    font-size: 12px;
  }

  .auth-shell {
    padding: 21px;
  }
}

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

/* Profile photo editor */
.avatar-crop-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 8px;
  color: var(--ink-950);
  background: var(--paper-50);
  box-shadow: 0 30px 90px rgba(5, 6, 6, 0.38);
}

.avatar-crop-dialog[open] {
  animation: dialog-in 260ms var(--ease-out) both;
}

.avatar-crop-dialog::backdrop {
  background: rgba(5, 6, 6, 0.72);
  backdrop-filter: blur(3px);
}

.avatar-crop-shell {
  padding: 24px;
}

.avatar-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.avatar-crop-head h2 {
  margin: 0;
  font-family: var(--font-editorial);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.15;
}

.avatar-crop-head p {
  margin: 5px 0 0;
  color: #676d6d;
  font-size: 13px;
}

.avatar-crop-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 20px;
}

.avatar-crop-stage {
  position: relative;
  height: 350px;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #121516;
}

.avatar-crop-stage > img {
  display: block;
  max-width: 100%;
}

.avatar-crop-preview-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #676d6d;
  font-size: 12px;
  font-weight: 700;
}

.avatar-crop-preview {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 2px solid var(--color-action);
  border-radius: 50%;
  background: #dfe3df;
}

.avatar-crop-dialog .cropper-view-box,
.avatar-crop-dialog .cropper-face {
  border-radius: 50%;
}

.avatar-crop-dialog .cropper-view-box {
  outline: 2px solid var(--color-action);
  outline-offset: -2px;
}

.avatar-crop-dialog .cropper-line,
.avatar-crop-dialog .cropper-point {
  display: none;
}

.avatar-zoom-control {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #3f4545;
  font-size: 13px;
  font-weight: 700;
}

.avatar-zoom-control input {
  width: 100%;
  margin: 0;
  accent-color: var(--color-action);
  cursor: ew-resize;
}

.avatar-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.avatar-crop-cancel,
.avatar-crop-confirm {
  min-width: 104px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #bec4c2;
  border-radius: 4px;
  color: var(--ink-950);
  background: #ffffff;
  font-weight: 700;
  transition:
    transform var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease;
}

.avatar-crop-cancel:hover {
  border-color: var(--ink-950);
  transform: translateY(-1px);
}

.avatar-crop-confirm {
  border-color: var(--color-action);
  background: var(--color-action);
}

.avatar-crop-confirm:hover {
  border-color: var(--color-action-hover);
  background: var(--color-action-hover);
  transform: translateY(-1px);
}

.avatar-crop-confirm:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

@media (max-width: 620px) {
  .avatar-crop-shell {
    padding: 20px;
  }

  .avatar-crop-workspace {
    grid-template-columns: 1fr;
  }

  .avatar-crop-stage {
    height: min(330px, 52dvh);
  }

  .avatar-crop-preview-wrap {
    display: none;
  }
}

/* Shared page navigation motion with the protected training platform. */
html.home-page-ready body {
  animation: home-page-enter 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.home-page-ready body.page-is-leaving {
  pointer-events: none;
  will-change: opacity, transform, filter;
  animation: home-page-exit 190ms cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes home-page-enter {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    filter: blur(3px);
  }
  68% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes home-page-exit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    filter: blur(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.home-page-ready body,
  html.home-page-ready body.page-is-leaving {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}
