:root {
  color-scheme: dark;
  --night: #11171b;
  --night-deep: #0b1014;
  --card: rgba(229, 238, 235, 0.42);
  --card-solid: #f6f8f4;
  --ink: #000000;
  --muted: #000000;
  --line: rgba(30, 48, 53, 0.18);
  --accent: #c4f37b;
  --accent-deep: #527e3d;
  --white: #fbfdf9;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--night);
  color: var(--white);
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 12, 15, 0.94) 0%, rgba(7, 12, 15, 0.54) 46%, rgba(7, 12, 15, 0.18) 100%),
    url("assets/zhang-hui-statue.webp");
  background-position: center, 115px center;
  background-size: cover, 115% auto;
  content: "";
  filter: grayscale(0.62) contrast(1.04) brightness(0.72);
  opacity: 0.98;
}

body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 70% 22%, rgba(196, 243, 123, 0.08), transparent 24rem),
    linear-gradient(180deg, rgba(9, 14, 18, 0.06), rgba(9, 14, 18, 0.36));
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.page-overlay {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 14, 18, 0.2), transparent 55%);
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  flex-direction: column;
  padding: 28px 44px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(251, 253, 249, 0.42);
  border-radius: 50%;
  background: rgba(8, 13, 17, 0.32);
}

.brand-mark img {
  width: 19px;
  height: 31px;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(251, 253, 249, 0.66);
  font-size: 12px;
}

.language-button {
  padding: 6px 1px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 12px;
}

.language-button:hover,
.language-button:focus-visible,
.language-button.is-active {
  border-bottom-color: var(--accent);
  color: var(--white);
  outline: none;
}

.language-divider {
  opacity: 0.42;
}

.first-page {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 62px 0 78px;
}

.second-page {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 52px 0 78px;
}

.third-page {
  display: flex;
  flex: 1;
  align-items: center;
  padding: 52px 0 78px;
}

[hidden] {
  display: none !important;
}

.form-card {
  position: relative;
  overflow: hidden;
  width: min(520px, 100%);
  padding: 34px 36px 38px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.1) 46%, rgba(255, 255, 255, 0.2)),
    var(--card);
  color: var(--ink);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(12, 25, 29, 0.12);
  backdrop-filter: blur(24px) saturate(1.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.18);
}

.form-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 34%, transparent 72%, rgba(196, 243, 123, 0.06));
  content: "";
  pointer-events: none;
}

.form-card > * {
  position: relative;
  z-index: 1;
}

.review-card {
  width: min(600px, 100%);
}

.review-topline,
.review-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.step-count {
  color: rgba(0, 0, 0, 0.58);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.review-card h1 {
  margin: 14px 0 12px;
  max-width: none;
}

.review-intro {
  max-width: 38ch;
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.8;
}

.review-summary {
  padding: 18px 20px 4px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.review-section-heading {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
}

.summary-list {
  margin: 0;
}

.summary-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 46px;
  border-top: 1px solid rgba(30, 48, 53, 0.14);
}

.summary-row dt {
  color: rgba(0, 0, 0, 0.64);
  font-size: 12px;
  font-weight: 650;
}

.summary-row dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.founder-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 30px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 20px;
  background: rgba(248, 252, 249, 0.9);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.founder-link-mark {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 50%;
  background: #11171b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.founder-link-mark img {
  width: 17px;
  height: 29px;
  object-fit: contain;
}

.founder-link-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.founder-link-kicker {
  color: #000000;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.founder-link-copy strong {
  color: #000000;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
}

.founder-link-copy p {
  margin: 0;
  color: #000000;
  font-size: 13px;
  line-height: 1.7;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-actions .primary-button {
  width: 168px;
  margin-top: 0;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(0, 0, 0, 0.58);
  background: rgba(255, 255, 255, 0.36);
  outline: none;
  transform: translateY(-1px);
}

.review-status {
  margin: 14px 0 0;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.roster-card {
  width: min(820px, 100%);
}

.roster-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.roster-heading-row h1 {
  margin-bottom: 10px;
}

.roster-heading-row .review-intro {
  margin-bottom: 0;
}

.record-counter {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 2px;
  padding-bottom: 5px;
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.record-counter strong {
  color: #000000;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.roster-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
}

.roster-tools input {
  flex: 1;
  min-width: 0;
}

.roster-scope {
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 13px;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.roster-load-more {
  width: 100%;
  margin-top: 12px;
}

.roster-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.roster-entry.is-founder {
  border-color: rgba(196, 243, 123, 0.5);
  background: linear-gradient(110deg, rgba(196, 243, 123, 0.14), rgba(255, 255, 255, 0.22));
}

.roster-number {
  align-self: start;
  padding-top: 4px;
  color: rgba(0, 0, 0, 0.48);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.roster-entry-main {
  min-width: 0;
}

.roster-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.roster-entry-name {
  margin: 0;
  color: #000000;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.founder-badge {
  padding: 4px 8px;
  border: 1px solid rgba(82, 126, 61, 0.45);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.roster-entry-source {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.roster-source-label {
  color: rgba(0, 0, 0, 0.52);
  font-weight: 700;
}

.roster-source-link {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.roster-source-link:hover,
.roster-source-link:focus-visible {
  color: var(--accent-deep);
}

.roster-source-pending {
  color: rgba(0, 0, 0, 0.55);
}

.roster-entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  margin-top: 8px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  line-height: 1.5;
}

.roster-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.roster-meta-label {
  color: rgba(0, 0, 0, 0.5);
  font-size: 10px;
  font-weight: 700;
}

.roster-meta-value {
  color: #000000;
  font-weight: 650;
}

.roster-entry-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: rgba(8, 13, 17, 0.78);
}

.roster-entry-mark img {
  width: 17px;
  height: 29px;
  object-fit: contain;
}

.roster-empty {
  padding: 28px 18px;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.roster-empty strong {
  display: block;
  color: #000000;
  font-size: 15px;
}

.roster-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.roster-footer-note {
  margin: 0;
  color: rgba(0, 0, 0, 0.58);
  font-size: 11px;
  line-height: 1.6;
}

.roster-footer .secondary-button {
  flex: 0 0 auto;
}

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

.page-kicker {
  color: #000000;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.18em;
}

h1 {
  margin: 12px 0 32px;
  font-size: clamp(2.25rem, 4vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.09em;
  line-height: 0.98;
}

.person-form {
  width: 100%;
}

.field-block {
  margin-bottom: 20px;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.field-label,
label,
legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

.field-note {
  color: #000000;
  font-size: 11px;
  font-weight: 500;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="search"],
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="search"] {
  padding: 0 14px;
}

input::placeholder {
  color: #000000;
}

input[type="text"]:hover,
input[type="date"]:hover,
input[type="time"]:hover,
input[type="search"]:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.58);
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
select:focus {
  border-color: var(--accent-deep);
  outline: none;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 0 0 3px rgba(196, 243, 123, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.segment-option {
  position: relative;
  display: grid;
  min-height: 43px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.segment-option:last-child {
  border-right: 0;
}

.segment-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segment-option:has(input:checked) {
  background: var(--ink);
  color: var(--white);
}

.segment-option:has(input:focus-visible) {
  outline: 2px solid var(--accent-deep);
  outline-offset: -2px;
}

.location-grid,
.datetime-grid {
  display: grid;
  gap: 9px;
}

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

.datetime-grid {
  grid-template-columns: 1.35fr 0.85fr;
  gap: 18px;
}

.select-item,
.date-time-item {
  display: grid;
  gap: 7px;
}

.select-item {
  gap: 0;
}

.select-item label,
.date-time-item label {
  color: #000000;
  font-size: 11px;
  font-weight: 600;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #65716c;
  border-bottom: 1px solid #65716c;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

select {
  appearance: none;
  padding: 0 34px 0 12px;
}

#birth-date,
#birth-time {
  min-width: 0;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
  min-height: 50px;
  margin-top: 10px;
  padding: 0 15px 0 17px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #263541;
  outline: none;
  transform: translateY(-1px);
}

.button-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
}

.origin-caption {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 16px;
  color: rgba(251, 253, 249, 0.62);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.origin-caption strong {
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 820px) {
  body::before {
    background-position: center, center;
    background-size: cover, cover;
  }

  .app-shell {
    padding: 20px 18px 24px;
  }

  .first-page {
    align-items: flex-start;
    padding: 40px 0 54px;
  }

  .second-page {
    align-items: flex-start;
    padding: 40px 0 54px;
  }

  .third-page {
    align-items: flex-start;
    padding: 40px 0 54px;
  }

  .form-card {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 36px 28px 38px;
  }

  h1 {
    margin-bottom: 34px;
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .origin-caption {
    align-self: center;
  }
}

@media (max-width: 540px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark img {
    width: 17px;
    height: 28px;
  }

  .brand-name {
    font-size: 15px;
  }

  .location-grid,
  .datetime-grid {
    grid-template-columns: 1fr;
  }

  .review-summary {
    padding-right: 14px;
    padding-left: 14px;
  }

  .roster-card {
    width: min(640px, 100%);
  }

  .roster-heading-row {
    align-items: flex-start;
  }

  .roster-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .roster-scope {
    text-align: center;
  }

  .roster-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .roster-footer .secondary-button {
    width: 100%;
  }

  .summary-row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
  }

  .roster-heading-row {
    flex-direction: column;
    gap: 16px;
  }

  .record-counter {
    justify-items: start;
    padding-bottom: 0;
  }

  .roster-entry {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .roster-entry-mark {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .roster-entry-main {
    grid-column: 2;
    padding-right: 58px;
  }

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

  .review-actions .primary-button,
  .secondary-button {
    width: 100%;
  }

  .review-actions .primary-button {
    order: -1;
  }

  .datetime-grid {
    gap: 14px;
  }

  .origin-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
