:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f0f4f8;
  --text: #172033;
  --muted: #667085;
  --line: #d9e1ea;
  --primary: #167f5f;
  --primary-dark: #0f6249;
  --accent: #315bb9;
  --danger: #b42318;
  --shadow: 0 16px 36px rgba(30, 45, 70, 0.1);
  --leading-tight: 1.12;
  --leading-heading: 1.22;
  --leading-ui: 1.4;
  --leading-body: 1.56;
  font-family: ui-rounded, "SF Pro Rounded", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(22, 127, 95, 0.08), transparent 240px),
    var(--bg);
  color: var(--text);
  line-height: var(--leading-body);
}

button,
input,
select,
textarea {
  font: inherit;
  line-height: var(--leading-ui);
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: max(12px, env(safe-area-inset-top)) 18px 12px;
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid rgba(217, 225, 234, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 18px;
  line-height: var(--leading-heading);
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: var(--leading-ui);
}

.nav-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}

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

.topbar-actions .nav-pill {
  white-space: nowrap;
}

.screen {
  display: grid;
  gap: 18px;
  padding: 18px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.intro {
  display: grid;
  gap: 10px;
  padding: 22px 0 8px;
}

.intro[hidden] {
  display: none;
}

.eyebrow {
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12em;
  font-size: clamp(32px, 11vw, 52px);
  line-height: var(--leading-tight);
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: 22px;
  line-height: var(--leading-heading);
  text-wrap: balance;
}

.intro p,
.section-note,
.helper {
  color: var(--muted);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.login-panel,
.form-section,
.done-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.route-preview {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.route-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.route-row code {
  color: var(--text);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  text-wrap: balance;
}

.button:focus-visible,
.home-action:focus-visible,
.nav-pill:focus-visible,
.location-button:focus-visible,
.map-control-button:focus-visible,
.avatar-upload-card:focus-within,
.field input:focus,
.field select:focus,
.field textarea:focus,
.photo-upload:focus-within {
  outline: 3px solid rgba(49, 91, 185, 0.24);
  outline-offset: 2px;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
}

.button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.wechat-mark {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

.home-intro {
  min-height: 34vh;
  align-content: end;
}

.home-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 37, 53, 0.24), rgba(245, 249, 251, 0.06) 42%, rgba(22, 127, 95, 0.12)),
    #f5f9fb;
  isolation: isolate;
}

.home-shell::before,
.home-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-shell::before {
  inset: -3%;
  z-index: 0;
  background:
    linear-gradient(118deg, transparent 0 16%, rgba(49, 91, 185, 0.16) 16.2% 17.1%, transparent 17.3% 42%, rgba(22, 127, 95, 0.16) 42.2% 43.2%, transparent 43.4%),
    linear-gradient(24deg, transparent 0 61%, rgba(212, 178, 124, 0.18) 61.2% 62.1%, transparent 62.3%),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.045) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(23, 32, 51, 0.032) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, rgba(22, 127, 95, 0.22), rgba(49, 91, 185, 0.15) 46%, rgba(255, 255, 255, 0.8) 78%);
  background-position: 0 0, 0 0, 0 0, 0 0, center;
  animation: homeCampusDrift 18s ease-in-out infinite alternate;
}

.home-shell::after {
  inset: 0 -30%;
  z-index: 0;
  background:
    linear-gradient(103deg, transparent 0 48%, rgba(255, 255, 255, 0.62) 48.2% 48.8%, transparent 49%),
    linear-gradient(18deg, transparent 0 70%, rgba(22, 127, 95, 0.14) 70.2% 71.4%, transparent 71.6%),
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 19px, transparent 20px);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: homeLightSweep 9s ease-in-out infinite;
}

.home-shell .topbar {
  background: rgba(245, 249, 251, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.54);
}

.home-shell .screen {
  position: relative;
  z-index: 1;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  min-height: calc(100vh - 56px);
}

.home-shell .screen::before {
  content: "";
  position: absolute;
  inset: auto -24px 104px -24px;
  z-index: -1;
  height: 48%;
  background:
    linear-gradient(158deg, transparent 0 24%, rgba(22, 127, 95, 0.18) 24.2% 25.4%, transparent 25.6%),
    linear-gradient(22deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.1));
  clip-path: polygon(0 12%, 100% 0, 100% 76%, 0 100%);
  animation: homePanelFloat 12s ease-in-out infinite alternate;
}

.home-shell .home-intro {
  position: relative;
  align-content: center;
  justify-items: center;
  min-height: 60vh;
  overflow: hidden;
  padding: clamp(18px, 6vw, 32px) 8px;
  text-align: center;
}

.home-shell .home-logo {
  width: clamp(86px, 23vw, 124px);
  height: clamp(86px, 23vw, 124px);
  filter: drop-shadow(0 14px 24px rgba(23, 32, 51, 0.2));
}

.home-shell h1 {
  max-width: 100%;
  color: #0b263d;
  font-size: clamp(30px, 8vw, 44px);
  line-height: var(--leading-heading);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.home-subtitle {
  max-width: 19em;
  color: #38586f;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 700;
  line-height: var(--leading-body);
  text-align: center;
}

.home-mapline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-mapline::before {
  content: "";
  position: absolute;
  left: 38%;
  right: -12%;
  top: 18%;
  height: 52%;
  border-top: 2px dashed rgba(49, 91, 185, 0.2);
  border-right: 2px dashed rgba(22, 127, 95, 0.24);
  border-radius: 8px;
  transform: rotate(-8deg);
}

.home-map-dot {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(22, 127, 95, 0.12), 0 10px 20px rgba(23, 32, 51, 0.12);
  animation: homeDotPulse 2200ms ease-in-out infinite;
}

.home-map-dot.dot-a {
  right: 21%;
  top: 17%;
}

.home-map-dot.dot-b {
  right: 7%;
  top: 45%;
  background: var(--accent);
  animation-delay: 450ms;
}

.home-map-dot.dot-c {
  right: 31%;
  bottom: 21%;
  background: #d4b27c;
  animation-delay: 900ms;
}

.home-shell .home-actions {
  position: relative;
  gap: 12px;
}

.home-shell .home-action {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  justify-content: stretch;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 16px;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.14);
  backdrop-filter: blur(14px);
  font-size: clamp(18px, 5.1vw, 21px);
  line-height: var(--leading-heading);
  text-align: left;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-shell .home-action.primary {
  border-color: rgba(22, 127, 95, 0.32);
  background:
    linear-gradient(135deg, rgba(22, 127, 95, 0.96), rgba(49, 91, 185, 0.88)),
    var(--primary);
}

.home-shell .home-action.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: #1d438f;
}

.home-action-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.home-action.secondary .home-action-icon {
  background: rgba(49, 91, 185, 0.09);
  box-shadow: inset 0 0 0 1px rgba(49, 91, 185, 0.16);
}

.home-action-icon.location::before {
  content: "";
  width: 17px;
  height: 17px;
  border-radius: 50% 50% 50% 0;
  background: currentColor;
  transform: rotate(-45deg);
}

.home-action-icon.location::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.home-action-icon.map::before {
  content: "";
  width: 22px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 31%, currentColor 31% 38%, transparent 38% 64%, currentColor 64% 71%, transparent 71%);
  opacity: 0.95;
}

@media (hover: hover) {
  .home-shell .home-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px rgba(23, 32, 51, 0.18);
  }
}

@keyframes homeCampusDrift {
  from {
    background-position: 0 0, 0 0, 0 0, center;
    transform: scale(1);
  }

  to {
    background-position: 34px -18px, -28px 0, 0 22px, center;
    transform: scale(1.025);
  }
}

@keyframes homeLightSweep {
  0%,
  100% {
    transform: translateX(-16%);
    opacity: 0.44;
  }

  48% {
    transform: translateX(14%);
    opacity: 0.74;
  }
}

@keyframes homePanelFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-16px);
  }
}

@keyframes homeDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-shell::before,
  .home-shell::after,
  .home-shell .screen::before,
  .home-map-dot {
    animation: none;
  }
}

.home-logo {
  width: 92px;
  height: 74px;
  object-fit: contain;
}

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

.home-action {
  width: 100%;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 21px;
  font-weight: 800;
  text-align: left;
  text-wrap: balance;
}

.home-action.primary {
  border-color: rgba(22, 127, 95, 0.28);
  background: var(--primary);
  color: #fff;
}

.home-action.secondary {
  color: var(--accent);
}

.home-action:disabled {
  opacity: 0.64;
  cursor: wait;
}

.form {
  display: grid;
  gap: 16px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stepper[hidden] {
  display: none;
}

.stepper-item {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-wrap: balance;
}

.stepper-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.stepper-item.is-active {
  color: var(--primary-dark);
}

.stepper-item.is-active span,
.stepper-item.is-complete span {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: grid;
}

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

.form-actions.is-first {
  grid-template-columns: 1fr;
}

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

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.location-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.location-control select {
  min-width: 0;
}

.location-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-muted);
  color: var(--accent);
  font-weight: 750;
  white-space: nowrap;
}

.location-button:disabled {
  opacity: 0.64;
  cursor: wait;
}

.location-map-shell {
  position: relative;
  height: 246px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.location-map {
  width: 100%;
  height: 100%;
}

.location-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 500;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: var(--danger);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.22);
  pointer-events: none;
  transform: translate(-50%, -100%) rotate(-45deg);
}

.location-map-pin::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.location-map-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 520;
  display: grid;
  gap: 6px;
}

.map-control-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(23, 32, 51, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.14);
  font-size: 20px;
  font-weight: 800;
  line-height: var(--leading-tight);
}

.map-control-button.locate {
  padding: 0 10px;
  font-size: 13px;
}

.coordinate-readout {
  min-height: 18px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.location-map-unavailable {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.location-status {
  min-height: 20px;
}

.map-flow {
  display: grid;
  gap: 12px;
}

.alumni-map-panel {
  display: grid;
  gap: 14px;
  min-height: min(760px, calc(100vh - 170px));
}

.map-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.map-count {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--surface);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.alumni-map-shell {
  min-height: 520px;
  height: min(72vh, 680px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.alumni-map {
  width: 100%;
  height: 100%;
}

.alumni-map-actions {
  display: grid;
}

.alumni-map-actions .home-action {
  min-height: 62px;
  padding: 0 14px;
  font-size: 17px;
  line-height: var(--leading-heading);
  text-align: center;
  white-space: nowrap;
  display: grid;
  place-items: center;
}

.leaflet-marker-icon.alumni-marker-icon,
.alumni-marker-icon {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.alumni-marker-pin {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #fff;
  box-shadow: 0 12px 22px rgba(15, 98, 73, 0.3);
  transform: rotate(-45deg);
  overflow: hidden;
}

.alumni-marker-icon.is-current .alumni-marker-pin {
  border-color: #d4b27c;
  box-shadow: 0 12px 24px rgba(212, 178, 124, 0.34);
}

.alumni-marker-avatar {
  display: block;
  width: 40px !important;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  transform: rotate(45deg);
  transform-origin: 60% 30%;
}

.map-popup {
  display: grid;
  gap: 10px;
  min-width: 220px;
  color: var(--text);
}

.map-popup-profile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.map-popup-avatar {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.map-popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  text-wrap: balance;
}

.map-popup-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(22, 127, 95, 0.12);
  color: var(--primary-dark);
  font-size: 12px;
}

.map-popup-row {
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

.map-popup-moment {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  line-height: var(--leading-body);
}

.map-popup-moment-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  object-fit: cover;
}

.map-popup-photo-loading {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 1px dashed rgba(23, 32, 51, 0.18);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-popup-moment-text {
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
  text-wrap: pretty;
}

.field label,
.legend {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-wrap: balance;
}

.required {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--text);
  appearance: none;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: var(--leading-body);
}

.field-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
}

@media (max-width: 380px) {
  .location-control {
    grid-template-columns: 1fr;
  }
}

.avatar-picker {
  display: grid;
  gap: 14px;
}

.avatar-upload-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 14px;
  background: #fbfcfe;
  cursor: pointer;
}

.avatar-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 2px dashed #9aa8bb;
  border-radius: 50%;
  background: var(--surface);
  overflow: hidden;
  box-shadow: inset 0 0 0 6px rgba(240, 244, 248, 0.9);
}

.avatar-plus {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 127, 95, 0.1);
  color: var(--primary-dark);
  font-size: 34px;
  font-weight: 600;
  line-height: var(--leading-tight);
}

.avatar-preview {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview.is-visible {
  display: block;
}

.avatar-preview.is-visible + .avatar-plus {
  display: none;
}

.avatar-upload-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  text-wrap: balance;
}

.avatar-file-input,
.avatar-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-choice-input:checked + .avatar-frame {
  border-color: var(--primary);
  border-style: solid;
  box-shadow: 0 0 0 4px rgba(22, 127, 95, 0.14), inset 0 0 0 6px rgba(240, 244, 248, 0.9);
}

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

.avatar-default-option {
  position: relative;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.avatar-default-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, #f7f8fb 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 78%, #f7f8fb 0 34%, transparent 35%),
    #a7b0bd;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.12);
}

.avatar-default-card.has-image {
  overflow: hidden;
  background: #fff;
}

.avatar-default-card.has-image::before,
.avatar-default-card.has-image::after {
  display: none;
}

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

.preset-girl {
  background:
    radial-gradient(circle at 50% 35%, #f7f8fb 0 17%, transparent 18%),
    linear-gradient(135deg, transparent 0 31%, rgba(23, 32, 51, 0.16) 32% 36%, transparent 37%),
    radial-gradient(ellipse at 50% 80%, #f7f8fb 0 33%, transparent 34%),
    #b4aab8;
}

.avatar-default-card::after {
  content: "";
  position: absolute;
  inset: 17% 29% auto;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.22);
}

.avatar-choice-input:checked + .avatar-default-card {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 127, 95, 0.14), inset 0 0 0 1px rgba(23, 32, 51, 0.12);
}

.avatar-choice-input:checked + .avatar-default-card + .photo-label {
  border-color: rgba(22, 127, 95, 0.32);
  background: rgba(22, 127, 95, 0.1);
  color: var(--primary-dark);
}

.poster-preview-mount {
  display: grid;
  justify-items: center;
}

.poster-preview-helper {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.poster-preview-shell {
  position: relative;
  width: min(100%, 320px);
}

.poster-preview-card {
  position: relative;
  width: 100%;
  aspect-ratio: 420 / 760;
  overflow: hidden;
  border-radius: 28px;
  background: #071a3d;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.24);
}

.poster-preview-shell.is-save-ready .poster-preview-card {
  display: none;
}

.poster-preview-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0.9;
}

.poster-preview-bg img,
.poster-preview-bg .poster-preview-default-avatar,
.poster-preview-bg .poster-preview-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) brightness(0.45);
  transform: scale(1.1);
}

.poster-preview-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 26, 61, 0.72), rgba(7, 26, 61, 0.28), rgba(7, 26, 61, 0.92));
}

.poster-preview-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 22px;
}

.poster-preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 24px;
  background: #a7b0bd;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
  transform: rotate(-2deg);
}

.poster-preview-frame img,
.poster-preview-frame .poster-preview-default-avatar,
.poster-preview-frame .poster-preview-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-preview-default-avatar {
  display: block;
  background:
    radial-gradient(circle at 50% 36%, #f7f8fb 0 17%, transparent 18%),
    radial-gradient(ellipse at 50% 78%, #f7f8fb 0 32%, transparent 33%),
    #a7b0bd;
}

.poster-preview-default-avatar.preset-girl {
  background:
    radial-gradient(circle at 50% 35%, #f7f8fb 0 16%, transparent 17%),
    linear-gradient(135deg, transparent 0 31%, rgba(23, 32, 51, 0.16) 32% 36%, transparent 37%),
    radial-gradient(ellipse at 50% 80%, #f7f8fb 0 32%, transparent 33%),
    #b4aab8;
}

.poster-preview-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #a7b0bd;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.poster-preview-script {
  position: absolute;
  right: 16px;
  bottom: 18px;
  color: #fff;
  font-size: 20px;
  font-style: italic;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.poster-preview-ui {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.poster-logo-box {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  max-width: 60%;
  border: 1px solid rgba(212, 178, 124, 0.42);
  border-radius: 16px;
  padding: 12px 14px 12px 12px;
  background: rgba(7, 26, 61, 0.78);
  color: #fff;
}

.poster-school-logo {
  width: 42px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
}

.poster-logo-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.poster-logo-box .poster-logo-copy span {
  letter-spacing: 1.1px;
  white-space: nowrap;
}

.poster-logo-box span,
.poster-stamp span,
.poster-info-card span,
.poster-info-card small {
  color: #d4b27c;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.poster-logo-box strong {
  font-size: 18px;
  line-height: var(--leading-heading);
  text-wrap: balance;
  white-space: nowrap;
}

.poster-stamp {
  position: absolute;
  top: 20px;
  right: 18px;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 2px solid #d4b27c;
  border-radius: 18px;
  padding: 12px 14px;
  background: #071a3d;
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  transform: rotate(8deg);
}

.poster-stamp strong {
  font-size: 31px;
  line-height: var(--leading-tight);
}

.poster-info-card {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: center;
  gap: 12px;
  width: 86%;
  border-radius: 20px;
  padding: 18px;
  background: rgba(244, 239, 230, 0.95);
  color: #071a3d;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

.poster-info-copy {
  display: grid;
  grid-template-rows: auto minmax(34px, 1fr) auto;
  min-height: 74px;
  min-width: 0;
}

.poster-info-card strong {
  align-self: center;
  font-size: 30px;
  line-height: var(--leading-tight);
  text-wrap: balance;
  word-break: break-word;
}

.poster-info-card small {
  color: rgba(7, 26, 61, 0.62);
}

.poster-site-qr {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  padding: 5px;
  background: #fff;
  object-fit: contain;
}

.poster-save-image {
  display: none;
  width: 100%;
  aspect-ratio: 420 / 760;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.24);
  -webkit-touch-callout: default;
  user-select: auto;
}

.poster-preview-shell.is-save-ready .poster-save-image {
  display: block;
}

.poster-save-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: var(--leading-ui);
  text-align: center;
  text-wrap: balance;
}

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

.moment-refresh-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.moment-refresh-button:focus-visible {
  border-color: rgba(22, 127, 95, 0.34);
  background: rgba(22, 127, 95, 0.1);
  color: var(--primary-dark);
  outline: 3px solid rgba(49, 91, 185, 0.24);
  outline-offset: 2px;
}

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

.photo-option {
  display: grid;
  gap: 8px;
}

.photo-option input,
.blessing-option input,
.photo-custom-choice {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photo-card,
.profile-photo-card {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.12);
}

.photo-card::after,
.profile-photo-card::after {
  content: "";
  display: block;
  width: 42%;
  height: 42%;
  margin: 29% auto 0;
  border-radius: 50% 50% 44% 44%;
  background: rgba(255, 255, 255, 0.72);
}

.preset-campus {
  background:
    linear-gradient(145deg, rgba(22, 127, 95, 0.82), rgba(49, 91, 185, 0.78)),
    #167f5f;
}

.preset-classroom {
  background:
    linear-gradient(145deg, rgba(219, 111, 42, 0.82), rgba(137, 82, 34, 0.78)),
    #db6f2a;
}

.preset-field {
  background:
    linear-gradient(145deg, rgba(39, 138, 98, 0.86), rgba(194, 154, 38, 0.76)),
    #278a62;
}

.preset-library {
  background:
    linear-gradient(145deg, rgba(49, 91, 185, 0.82), rgba(137, 67, 135, 0.78)),
    #315bb9;
}

.photo-label {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.photo-option input:checked + .photo-card {
  border-color: var(--primary);
}

.photo-option input:checked + .photo-card + .photo-label {
  border-color: rgba(22, 127, 95, 0.32);
  background: rgba(22, 127, 95, 0.1);
  color: var(--primary-dark);
}

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

.blessing-option span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: #344054;
  line-height: var(--leading-body);
  text-wrap: pretty;
}

.blessing-option input:checked + span {
  border-color: rgba(22, 127, 95, 0.34);
  background: rgba(22, 127, 95, 0.1);
  color: var(--primary-dark);
  font-weight: 700;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segmented label {
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.segmented input:checked + span {
  border-color: rgba(22, 127, 95, 0.32);
  background: rgba(22, 127, 95, 0.1);
  color: var(--primary-dark);
}

.photo-upload {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 148px;
  border: 1px dashed #a5b2c3;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.photo-upload input {
  width: 100%;
}

.photo-preview {
  display: none;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.photo-preview.is-visible {
  display: block;
}

.moment-photo-preview.is-visible {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.profile-photo-summary {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
}

.profile-photo-summary img,
.profile-photo-summary .profile-photo-card {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
}

.profile-photo-summary strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: var(--leading-heading);
}

.moment-summary {
  display: grid;
  gap: 12px;
}

.profile-poster-summary {
  display: grid;
  justify-items: center;
}

.profile-poster-summary .poster-preview-shell {
  width: min(100%, 330px);
}

.moment-summary img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.toast {
  display: none;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(180, 35, 24, 0.09);
  color: var(--danger);
  line-height: var(--leading-body);
  text-wrap: pretty;
}

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

.profile-summary {
  display: grid;
  gap: 12px;
}

.profile-welcome-title {
  max-width: 100%;
  overflow: hidden;
  font-size: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-row {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
  font-size: 13px;
}

.summary-row strong {
  font-size: 16px;
  text-wrap: pretty;
}

@supports (word-break: auto-phrase) {
  h1,
  h2,
  p,
  .button,
  .home-action,
  .stepper-item,
  .helper,
  .map-popup-title,
  .map-popup-row,
  .map-popup-moment-text,
  .field label,
  .legend,
  .avatar-upload-title,
  .blessing-option span,
  .toast,
  .summary-row strong {
    word-break: auto-phrase;
  }
}

@media (min-width: 720px) {
  body {
    padding: 24px 0;
  }

  .app-shell {
    min-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(30, 45, 70, 0.16);
  }

  .app-shell.map-app-shell {
    width: min(100%, 1180px);
  }

  .screen {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .alumni-map-shell {
    min-height: 460px;
    height: calc(100vh - 230px);
  }

  .map-panel-header {
    align-items: start;
  }

  .alumni-map-actions .home-action {
    font-size: 16px;
  }
}

.app-shell.register-shell {
  --campus-green: #167f5f;
  --campus-green-dark: #0f6249;
  --campus-blue: #315bb9;
  --campus-gold: #d4b27c;
  --campus-red: #b42318;
  position: relative;
  isolation: isolate;
  width: min(100%, 680px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(224, 248, 238, 0.96) 0 24%, rgba(247, 251, 255, 0.98) 58%, rgba(241, 249, 244, 0.98)),
    var(--bg);
}

.app-shell.register-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, transparent 0 32%, rgba(49, 91, 185, 0.08) 32.2% 33.4%, transparent 33.6%),
    linear-gradient(24deg, transparent 0 46%, rgba(22, 127, 95, 0.13) 46.2% 47.8%, transparent 48%),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(23, 32, 51, 0.026) 0 1px, transparent 1px 42px);
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: registerBackdropMove 16s ease-in-out infinite alternate;
}

.app-shell.register-shell::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -36px;
  z-index: 0;
  width: 72%;
  height: 210px;
  pointer-events: none;
  background:
    linear-gradient(162deg, transparent 0 18%, rgba(22, 127, 95, 0.22) 18.2% 19.8%, transparent 20%),
    linear-gradient(15deg, rgba(255, 255, 255, 0.8), rgba(22, 127, 95, 0.18));
  clip-path: polygon(0 34%, 100% 0, 100% 74%, 0 100%);
}

.register-shell .topbar {
  position: sticky;
  z-index: 10;
  background: rgba(246, 253, 248, 0.9);
  border-bottom-color: rgba(22, 127, 95, 0.16);
}

.register-shell .brand-logo {
  filter: drop-shadow(0 8px 14px rgba(15, 98, 73, 0.16));
}

.register-shell .nav-pill {
  border: 2px solid rgba(49, 91, 185, 0.18);
  background: #fff;
  box-shadow: inset 0 -3px 0 rgba(49, 91, 185, 0.1);
}

.register-shell .screen {
  position: relative;
  z-index: 1;
  gap: 18px;
  padding: 20px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.register-shell .intro {
  gap: 8px;
  padding: 18px 2px 2px;
}

.register-shell .intro h1 {
  max-width: none;
  color: #12324c;
  font-size: clamp(28px, 7.8vw, 42px);
  line-height: var(--leading-heading);
}

.register-shell .intro p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #486074;
  font-size: 15px;
  font-weight: 650;
}

.register-shell .intro p::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--campus-gold);
  box-shadow: 0 0 0 2px rgba(212, 178, 124, 0.5);
}

.register-shell .form {
  gap: 18px;
}

.register-shell .stepper {
  position: sticky;
  top: 62px;
  z-index: 8;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 2px solid rgba(22, 127, 95, 0.14);
  border-bottom-width: 5px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.1);
  backdrop-filter: blur(14px);
}

.register-shell .stepper::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 32px;
  right: 32px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 127, 95, 0.34), rgba(49, 91, 185, 0.22));
}

.register-shell .stepper-item {
  position: relative;
  z-index: 1;
  gap: 7px;
  min-width: 0;
  color: #6a7b88;
  font-size: 12px;
  line-height: var(--leading-ui);
}

.register-shell .stepper-item > span:first-child {
  width: 38px;
  height: 38px;
  border: 3px solid #e4edf6;
  background: #fff;
  box-shadow: inset 0 -4px 0 rgba(23, 32, 51, 0.08), 0 5px 12px rgba(23, 32, 51, 0.08);
  color: #789;
  font-size: 15px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.register-shell .stepper-item.is-active {
  color: var(--campus-green-dark);
}

.register-shell .stepper-item.is-active > span:first-child,
.register-shell .stepper-item.is-complete > span:first-child {
  border-color: var(--campus-green);
  background: var(--campus-green);
  box-shadow: inset 0 -5px 0 rgba(31, 107, 54, 0.22), 0 8px 16px rgba(15, 98, 73, 0.22);
  color: #fff;
}

.register-shell .stepper-item.is-active > span:first-child {
  transform: translateY(-4px) scale(1.06);
}

.register-shell .form-section {
  position: relative;
  gap: 18px;
  overflow: hidden;
  border: 2px solid #dce7f2;
  border-bottom-width: 6px;
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 253, 250, 0.98)),
    #fff;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.1);
}

.register-shell .form-step.is-active {
  animation: registerCardIn 240ms ease-out both;
}

.register-shell .form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, var(--campus-green), var(--campus-blue), var(--campus-gold));
}

.register-shell .form-section::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 78px;
  height: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(22, 127, 95, 0.22) 0 12px, rgba(49, 91, 185, 0.18) 12px 24px);
}

.register-shell .form-section h2 {
  max-width: calc(100% - 88px);
  color: #12324c;
  font-size: clamp(21px, 5.6vw, 28px);
  line-height: var(--leading-heading);
}

.register-shell .form-grid {
  gap: 16px;
}

.register-shell .field {
  gap: 8px;
}

.register-shell .field label,
.register-shell .legend {
  color: #22364a;
  font-size: 15px;
  font-weight: 850;
  line-height: var(--leading-ui);
}

.register-shell .field input,
.register-shell .field select,
.register-shell .field textarea {
  min-height: 56px;
  border: 2px solid #dbe6f0;
  border-bottom-width: 5px;
  border-radius: 8px;
  background-color: #fff;
  color: #172033;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.register-shell .field select {
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--campus-blue) 50%),
    linear-gradient(135deg, var(--campus-blue) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.register-shell .field textarea {
  min-height: 150px;
}

.register-shell .field input:focus,
.register-shell .field select:focus,
.register-shell .field textarea:focus {
  border-color: var(--campus-green);
  background: #fbfffb;
  box-shadow: 0 0 0 5px rgba(22, 127, 95, 0.14);
  transform: translateY(-1px);
}

.register-shell .field-error {
  min-height: 18px;
  color: #c23a30;
  font-weight: 750;
  line-height: var(--leading-ui);
}

.register-shell .helper {
  color: #5d7080;
  font-weight: 600;
}

.register-shell .location-control {
  gap: 10px;
}

.register-shell .location-button,
.register-shell .moment-refresh-button {
  min-height: 48px;
  border: 2px solid rgba(49, 91, 185, 0.2);
  border-bottom-width: 5px;
  border-radius: 8px;
  background: #eef7ff;
  color: #2559ad;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.register-shell .location-map-shell {
  height: 286px;
  border: 3px solid #fff;
  border-bottom: 6px solid #d5e2ed;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 91, 185, 0.12), rgba(22, 127, 95, 0.12)),
    var(--surface-muted);
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.12);
}

.register-shell .location-map-pin {
  width: 24px;
  height: 24px;
  background: var(--campus-red);
  box-shadow: 0 10px 22px rgba(180, 35, 24, 0.32);
  animation: registerPinBounce 1400ms ease-in-out infinite;
}

.register-shell .location-map-pin::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(180, 35, 24, 0.22);
  border-radius: 50%;
  transform: rotate(45deg);
}

.register-shell .map-control-button {
  min-width: 42px;
  min-height: 42px;
  border: 2px solid rgba(23, 32, 51, 0.12);
  border-bottom-width: 4px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(23, 32, 51, 0.14);
}

.register-shell .map-control-button.locate {
  min-width: 56px;
}

.register-shell .coordinate-readout {
  min-height: 20px;
  color: #476274;
  font-weight: 750;
}

.register-shell .avatar-picker {
  gap: 14px;
}

.register-shell .avatar-upload-card {
  gap: 12px;
  border: 2px solid #dce7f2;
  border-bottom-width: 6px;
  border-radius: 8px;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 250, 246, 0.96)),
    #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.register-shell .avatar-frame {
  width: 136px;
  height: 136px;
  border: 4px dashed rgba(22, 127, 95, 0.58);
  background:
    linear-gradient(135deg, rgba(22, 127, 95, 0.1), rgba(49, 91, 185, 0.08)),
    #fff;
  box-shadow: inset 0 -8px 0 rgba(23, 32, 51, 0.05), 0 10px 24px rgba(15, 98, 73, 0.14);
}

.register-shell .avatar-plus {
  width: 50px;
  height: 50px;
  background: var(--campus-green);
  color: #fff;
  box-shadow: inset 0 -5px 0 rgba(31, 107, 54, 0.22);
  font-size: 36px;
}

.register-shell .avatar-upload-title {
  color: #12324c;
  font-size: 18px;
  line-height: var(--leading-heading);
}

.register-shell .avatar-choice-input:checked + .avatar-frame {
  border-color: var(--campus-green);
  border-style: solid;
  box-shadow: 0 0 0 5px rgba(22, 127, 95, 0.16), inset 0 -8px 0 rgba(23, 32, 51, 0.05);
}

.register-shell .avatar-choice-input:checked + .avatar-frame::after {
  content: "✓";
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--campus-green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(15, 98, 73, 0.24);
}

.register-shell .avatar-default-row {
  gap: 12px;
}

.register-shell .avatar-default-option {
  gap: 9px;
}

.register-shell .avatar-default-card {
  border: 2px solid #dbe6f0;
  border-bottom-width: 5px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, #f7f8fb 0 18%, transparent 19%),
    radial-gradient(ellipse at 50% 78%, #f7f8fb 0 34%, transparent 35%),
    #a4afb9;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.register-shell .avatar-default-card.preset-girl {
  background:
    radial-gradient(circle at 50% 35%, #f7f8fb 0 17%, transparent 18%),
    linear-gradient(135deg, transparent 0 31%, rgba(23, 32, 51, 0.16) 32% 36%, transparent 37%),
    radial-gradient(ellipse at 50% 80%, #f7f8fb 0 33%, transparent 34%),
    #b7abb6;
}

.register-shell .avatar-choice-input:checked + .avatar-default-card {
  border-color: var(--campus-green);
  box-shadow: 0 0 0 5px rgba(22, 127, 95, 0.16), inset 0 0 0 1px rgba(23, 32, 51, 0.08);
  transform: translateY(-3px);
}

.register-shell .avatar-choice-input:checked + .avatar-default-card + .photo-label,
.register-shell .photo-option input:checked + .photo-card + .photo-label {
  border-color: rgba(22, 127, 95, 0.42);
  background: rgba(22, 127, 95, 0.12);
  color: var(--campus-green-dark);
}

.register-shell .photo-label {
  min-height: 38px;
  border: 2px solid #dbe6f0;
  border-bottom-width: 4px;
  border-radius: 8px;
  background: #fff;
}

.register-shell .photo-upload {
  min-height: 240px;
  align-content: center;
  justify-items: center;
  border: 3px dashed rgba(22, 127, 95, 0.62);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(22, 127, 95, 0.12), rgba(49, 91, 185, 0.08)),
    #fbfffd;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.register-shell .photo-upload::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--campus-green);
  color: #fff;
  box-shadow: inset 0 -6px 0 rgba(31, 107, 54, 0.24), 0 10px 20px rgba(15, 98, 73, 0.18);
  font-size: 44px;
  font-weight: 850;
  line-height: var(--leading-tight);
}

.register-shell .photo-upload .helper {
  max-width: 24em;
  text-align: center;
}

.register-shell .photo-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.register-shell .photo-upload:has(.photo-preview.is-visible) {
  min-height: auto;
  padding: 10px;
  border-style: solid;
  background: #fff;
}

.register-shell .photo-upload:has(.photo-preview.is-visible)::before {
  display: none;
}

.register-shell .moment-photo-preview.is-visible {
  height: 240px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.14);
}

.register-shell .field-header {
  align-items: center;
}

.register-shell #moment {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 255, 251, 0.98)),
    #fff;
}

.register-shell .poster-preview-mount {
  padding: 2px 0;
}

.register-shell .poster-preview-shell {
  width: min(100%, 360px);
}

.register-shell .poster-preview-card {
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.24);
}

.register-shell .poster-save-image {
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 32, 51, 0.24);
}

.register-shell .poster-save-hint {
  color: #38586f;
}

.register-shell .poster-preview-frame,
.register-shell .poster-logo-box,
.register-shell .poster-stamp,
.register-shell .poster-info-card {
  border-radius: 8px;
}

.register-shell .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 8;
  align-items: center;
  padding: 10px 0 0;
  background: linear-gradient(180deg, transparent, rgba(247, 251, 255, 0.94) 28%);
}

.register-shell .button {
  min-height: 56px;
  border-radius: 8px;
  background: var(--campus-green);
  box-shadow: inset 0 -6px 0 rgba(31, 107, 54, 0.26), 0 12px 22px rgba(15, 98, 73, 0.22);
  font-size: 17px;
  line-height: var(--leading-ui);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.register-shell .button.secondary {
  border: 2px solid #dbe6f0;
  border-bottom-width: 6px;
  background: #fff;
  color: #2559ad;
  box-shadow: 0 10px 18px rgba(23, 32, 51, 0.08);
}

.register-shell .button:active,
.register-shell .location-button:active,
.register-shell .moment-refresh-button:active,
.register-shell .map-control-button:active {
  transform: translateY(4px);
  box-shadow: inset 0 -2px 0 rgba(31, 107, 54, 0.18), 0 5px 10px rgba(23, 32, 51, 0.08);
}

.register-shell .toast {
  border: 2px solid rgba(180, 35, 24, 0.26);
  border-bottom-width: 5px;
  background: #fff5f2;
  font-weight: 700;
}

@media (hover: hover) {
  .register-shell .button:hover,
  .register-shell .location-button:hover,
  .register-shell .moment-refresh-button:hover,
  .register-shell .map-control-button:hover,
  .register-shell .avatar-upload-card:hover,
  .register-shell .photo-upload:hover {
    transform: translateY(-2px);
  }

  .register-shell .avatar-default-option:hover .avatar-default-card {
    transform: translateY(-3px);
  }
}

@media (min-width: 720px) {
  .app-shell.register-shell {
    width: min(100%, 720px);
  }

  .register-shell .screen {
    padding: 26px;
  }

  .register-shell .form-section {
    padding: 24px;
  }

  .register-shell .avatar-upload-card {
    min-height: 250px;
  }
}

@media (max-width: 520px) {
  .register-shell .screen {
    padding: 16px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .register-shell .stepper {
    top: 58px;
    gap: 4px;
    padding: 8px 6px;
  }

  .register-shell .stepper::before {
    left: 20px;
    right: 20px;
    top: 25px;
  }

  .register-shell .stepper-item {
    font-size: 10px;
  }

  .register-shell .stepper-item > span:first-child {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .register-shell .form-section {
    padding: 18px 16px;
  }

  .register-shell .form-section h2 {
    max-width: none;
    padding-right: 52px;
  }

  .register-shell .form-section::after {
    width: 46px;
  }

  .register-shell .location-control {
    grid-template-columns: 1fr;
  }

  .register-shell .location-map-shell {
    height: 252px;
  }

  .register-shell .avatar-frame {
    width: 124px;
    height: 124px;
  }

  .register-shell .photo-upload {
    min-height: 218px;
  }

  .register-shell .moment-photo-preview.is-visible {
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell.register-shell::before,
  .register-shell .form-step.is-active,
  .register-shell .location-map-pin {
    animation: none;
  }

  .register-shell .button,
  .register-shell .location-button,
  .register-shell .moment-refresh-button,
  .register-shell .map-control-button,
  .register-shell .avatar-upload-card,
  .register-shell .photo-upload,
  .register-shell .field input,
  .register-shell .field select,
  .register-shell .field textarea {
    transition: none;
  }
}

@keyframes registerBackdropMove {
  from {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  to {
    background-position: 22px -16px, -18px 14px, 18px 0, 0 18px;
  }
}

@keyframes registerCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes registerPinBounce {
  0%,
  100% {
    transform: translate(-50%, -100%) rotate(-45deg) translateY(0);
  }

  50% {
    transform: translate(-50%, -100%) rotate(-45deg) translateY(-5px);
  }
}

.app-shell.register-shell {
  --campus-sky: #e7f0f7;
  --campus-mist: #f3f8fa;
  --campus-ink: #0b263d;
  background:
    linear-gradient(180deg, rgba(8, 37, 53, 0.12), rgba(247, 248, 251, 0.02) 44%, rgba(22, 127, 95, 0.08)),
    #f5f9fb;
}

.register-shell .screen {
  gap: 20px;
}

.register-shell .intro {
  padding-top: 20px;
}

.register-shell .intro h1 {
  color: var(--campus-ink);
  font-size: clamp(28px, 7vw, 38px);
}

.register-shell .intro p {
  color: #38586f;
}

.register-shell .stepper {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-bottom: 1px solid rgba(22, 127, 95, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.14);
}

.register-shell .stepper::before {
  background: linear-gradient(90deg, rgba(22, 127, 95, 0.36), rgba(49, 91, 185, 0.3));
}

.register-shell .stepper-item > span:first-child {
  border: 2px solid rgba(22, 127, 95, 0.2);
  background: #f9fcfd;
  box-shadow: 0 6px 14px rgba(23, 32, 51, 0.1);
}

.register-shell .stepper-item.is-active > span:first-child,
.register-shell .stepper-item.is-complete > span:first-child {
  background: linear-gradient(135deg, var(--campus-green), var(--campus-blue));
  box-shadow: 0 10px 20px rgba(22, 127, 95, 0.18);
}

.register-shell .form-section {
  gap: 16px;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.register-shell .form-section::before,
.register-shell .form-section::after {
  display: none;
}

.register-shell .form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  padding: 0 2px;
  color: var(--campus-ink);
  font-size: clamp(22px, 5.4vw, 30px);
}

.register-shell .form-section h2::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--campus-green);
  box-shadow: 0 0 0 2px rgba(22, 127, 95, 0.24);
}

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

.register-shell .form-grid > .field,
.register-shell .form-step[data-step="1"] > .field {
  position: relative;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-bottom: 4px solid rgba(49, 91, 185, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 252, 0.94)),
    #fff;
  box-shadow: 0 12px 26px rgba(23, 32, 51, 0.08);
}

.register-shell .form-grid > .field:nth-child(4),
.register-shell .form-step[data-step="1"] > .field {
  grid-column: 1 / -1;
}

.register-shell .field label,
.register-shell .legend {
  color: #31475a;
  font-size: 13px;
}

.register-shell .field input,
.register-shell .field select,
.register-shell .field textarea {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #f7fafc;
  box-shadow: inset 0 0 0 1px rgba(217, 225, 234, 0.96);
}

.register-shell .field input:focus,
.register-shell .field select:focus,
.register-shell .field textarea:focus {
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(22, 127, 95, 0.42), 0 0 0 4px rgba(22, 127, 95, 0.1);
}

.register-shell .location-control {
  grid-template-columns: minmax(0, 1fr) auto;
}

.register-shell .location-button,
.register-shell .moment-refresh-button,
.register-shell .button.secondary {
  border: 1px solid rgba(49, 91, 185, 0.18);
  border-bottom: 3px solid rgba(49, 91, 185, 0.18);
  background: #eef4fb;
  color: var(--campus-blue);
  box-shadow: none;
}

.register-shell .location-map-shell,
.register-shell .avatar-upload-card,
.register-shell .photo-upload {
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-bottom: 4px solid rgba(22, 127, 95, 0.16);
  background:
    linear-gradient(135deg, rgba(22, 127, 95, 0.08), rgba(49, 91, 185, 0.08)),
    #f8fbfd;
  box-shadow: 0 14px 30px rgba(23, 32, 51, 0.1);
}

.register-shell .location-map-pin {
  background: var(--campus-green);
  box-shadow: 0 10px 22px rgba(22, 127, 95, 0.26);
}

.register-shell .location-map-pin::before {
  border-color: rgba(22, 127, 95, 0.2);
}

.register-shell .map-control-button {
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-bottom: 3px solid rgba(23, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.94);
}

.register-shell .avatar-picker {
  gap: 16px;
}

.register-shell .avatar-upload-card {
  padding: 22px 16px;
}

.register-shell .avatar-frame {
  border-color: rgba(22, 127, 95, 0.38);
  background:
    linear-gradient(135deg, rgba(22, 127, 95, 0.08), rgba(49, 91, 185, 0.08)),
    #fff;
}

.register-shell .avatar-default-row {
  gap: 12px;
}

.register-shell .avatar-default-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 225, 234, 0.96);
  border-bottom: 4px solid rgba(49, 91, 185, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, #dfeaf2, #aebfca);
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.1);
}

.register-shell .avatar-default-card.has-image {
  background: #fff;
}

.register-shell .avatar-default-card.has-image::before,
.register-shell .avatar-default-card.has-image::after {
  display: none;
}

.register-shell .avatar-default-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f8fbfd;
  box-shadow: inset 0 7px 0 rgba(11, 38, 61, 0.16), 0 0 0 4px rgba(255, 255, 255, 0.42);
  transform: translateX(-50%);
}

.register-shell .avatar-default-card::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: 48%;
  height: 35%;
  border-radius: 18px 18px 8px 8px;
  background: #f8fbfd;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.register-shell .avatar-default-card.preset-boy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #d8e8ef, #9db3c0);
}

.register-shell .avatar-default-card.preset-boy::before {
  border-radius: 48% 48% 50% 50%;
  box-shadow:
    inset 0 9px 0 rgba(11, 38, 61, 0.2),
    0 -4px 0 0 rgba(11, 38, 61, 0.16),
    0 0 0 4px rgba(255, 255, 255, 0.42);
}

.register-shell .avatar-default-card.preset-boy::after {
  width: 46%;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.register-shell .avatar-default-card.preset-girl {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #e4e8f0, #a9b8c9);
}

.register-shell .avatar-default-card.preset-girl::before {
  top: 16%;
  width: 36%;
  border-radius: 50% 50% 44% 44%;
  box-shadow:
    -10px 8px 0 3px rgba(11, 38, 61, 0.14),
    10px 8px 0 3px rgba(11, 38, 61, 0.14),
    inset 0 8px 0 rgba(11, 38, 61, 0.15),
    0 0 0 4px rgba(255, 255, 255, 0.42);
}

.register-shell .avatar-default-card.preset-girl::after {
  bottom: 13%;
  width: 56%;
  height: 39%;
  border-radius: 10px 10px 8px 8px;
  clip-path: polygon(50% 0, 90% 100%, 10% 100%);
}

.register-shell .avatar-choice-input:checked + .avatar-default-card {
  border-color: var(--campus-green);
  box-shadow: 0 0 0 4px rgba(22, 127, 95, 0.14), 0 12px 24px rgba(22, 127, 95, 0.12);
}

.register-shell .photo-upload {
  min-height: 230px;
}

.register-shell .photo-upload::before,
.register-shell .avatar-plus,
.register-shell .button {
  background: linear-gradient(135deg, var(--campus-green), var(--campus-blue));
  box-shadow: 0 12px 22px rgba(15, 98, 73, 0.18);
}

.register-shell .form-actions {
  background: linear-gradient(180deg, transparent, rgba(245, 249, 251, 0.96) 32%);
}

@media (max-width: 520px) {
  .register-shell .form-grid {
    grid-template-columns: 1fr;
  }

  .register-shell .form-grid > .field {
    padding: 13px;
  }

  .register-shell .form-section h2 {
    padding-right: 0;
  }

  .register-shell .location-control {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .register-shell .button,
  .register-shell .location-button,
  .register-shell .moment-refresh-button,
  .register-shell .map-control-button,
  .register-shell .avatar-upload-card,
  .register-shell .photo-upload,
  .register-shell .field input,
  .register-shell .field select,
  .register-shell .field textarea {
    transition: none;
  }
}
