:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #183149;
  background: #f4f7fa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --blue: #1767d2;
  --muted: #718397;
  --border: #e2e9f0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #94bdf3; outline-offset: 4px; }

.page-shell { width: min(1184px, calc(100% - 96px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.page-header { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: #1767d2; font-size: 22px; font-weight: 650; box-shadow: 0 5px 12px #1767d219; }
.brand strong { font-size: 20px; letter-spacing: 2px; }
.brand-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; letter-spacing: .8px; }
.privacy-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #64788d; }
.small-lock { width: 9px; height: 8px; border: 1.4px solid currentColor; border-radius: 2px; display: inline-block; position: relative; flex: 0 0 auto; margin-top: 5px; }
.small-lock::before { content: ""; position: absolute; left: 1px; top: -6px; width: 4px; height: 5px; border: 1.4px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }

.access-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 84px; align-items: center; flex: 1; padding: 32px 20px 64px; }
.intro { padding-bottom: 10px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 2.4px; margin: 0 0 15px; }
h1 { font-size: 20px; font-weight: 650; margin: 0 0 27px; letter-spacing: .4px; }
.intro-title { font-size: clamp(36px, 3.5vw, 48px); line-height: 1.42; font-weight: 650; letter-spacing: 1px; margin: 0 0 18px; }
.intro-copy { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; }
.steps { padding: 0; margin: 36px 0 30px; list-style: none; max-width: 365px; }
.step { display: flex; gap: 17px; align-items: center; min-height: 67px; padding: 10px 0; position: relative; }
.step:not(:last-child)::after { content: ""; width: 1px; height: 18px; background: #dbe4ec; position: absolute; left: 19px; bottom: -9px; }
.step-number { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; border: 1px solid #dae3ec; border-radius: 50%; color: #8b9aab; font-size: 12px; background: #f4f7fa; }
.step strong { display: block; color: #718397; font-size: 14px; font-weight: 600; }
.step small { display: block; color: #8b9aab; font-size: 11px; margin-top: 6px; }
.step.is-current .step-number { color: var(--blue); border-color: #b9d2f4; background: #eaf2ff; }
.step.is-current strong { color: #183149; }
.step.is-complete .step-number { color: #188767; background: #e9f7f0; border-color: #cae8d9; }
.step.is-complete strong { color: #456b60; }
.step-check { margin-left: auto; color: #188767; font-size: 14px; visibility: hidden; }
.step.is-complete .step-check { visibility: visible; }
.owner-note { max-width: 365px; border-top: 1px solid var(--border); padding-top: 23px; display: flex; align-items: center; gap: 12px; }
.owner-avatar { width: 36px; height: 36px; display: grid; place-items: center; background: #e5edf7; color: #4d719b; font-size: 14px; border-radius: 50%; }
.owner-note small { display: block; color: #8b9aab; font-size: 10px; }
.owner-note strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.owner-badge { margin-left: auto; font-size: 10px; color: #718397; background: #eaf0f5; border-radius: 5px; padding: 5px 8px; }

.verification-card { width: 100%; padding: 31px 32px 22px; border-radius: 20px; border: 1px solid #e5ebf2; background: #fff; box-shadow: 0 18px 56px #1637500b, 0 2px 8px #16375003; }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 35px; }
.card-kicker { font-size: 12px; color: #718397; font-weight: 550; }
.status-pill { color: #64788d; border: 1px solid #e6edf4; background: #f7f9fc; border-radius: 20px; padding: 5px 9px; font-size: 10px; white-space: nowrap; }
.status-pill.is-ready { color: #187c5e; border-color: #d3eade; background: #edf8f2; }
.state-view h2 { font-size: 23px; line-height: 1.45; letter-spacing: .2px; font-weight: 650; margin: 0 0 12px; }
.card-description { font-size: 13px; color: #718397; line-height: 1.9; margin: 0 0 25px; }
.state-symbol { width: 53px; height: 53px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; font-size: 22px; font-weight: 600; }
.success-symbol { background: #e8f7f0; color: #188767; }
.waiting-symbol { background: #f2f5f8; color: #8092a5; letter-spacing: 3px; padding-bottom: 9px; }
.loading-symbol { width: 24px; height: 24px; border: 3px solid #e5edf8; border-top-color: var(--blue); border-radius: 50%; animation: spin 1s linear infinite; margin: 32px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.primary-button, .secondary-button { min-height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 12px 15px; border: 0; border-radius: 9px; font-size: 13px; font-weight: 600; transition: background .15s, box-shadow .15s; }
.primary-button { background: var(--blue); color: #fff; }
.primary-button:hover { background: #0c5bc3; box-shadow: 0 4px 12px #1767d224; }
.primary-button:disabled { background: #c3d2e5; box-shadow: none; }
.secondary-button { color: var(--blue); background: #edf4ff; border: 1px solid #dce9fb; }
.secondary-button:hover { background: #e1eeff; }
.secondary-button:disabled { color: #8a9cb2; border-color: #e5ebf3; background: #f4f7fb; }
.quiet-note { color: #95a2b1; font-size: 11px; text-align: center; margin: 15px 0 0; }
.channel-notice { margin: -8px 0 18px; padding: 11px 12px; border-radius: 8px; color: #926329; background: #fff8e9; font-size: 12px; line-height: 1.7; }
.recipient { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; background: #f8fafc; border: 1px solid #e7edf3; padding: 14px 13px; margin-bottom: 13px; border-radius: 9px; }
.recipient > span:first-child { width: 100%; font-size: 10px; color: #8a99a9; }
.recipient strong { font-size: 19px; letter-spacing: 1.2px; font-variant-numeric: tabular-nums; font-weight: 600; }
.recipient-lock { margin-left: auto; color: #8a99a9; font-size: 10px; }
#verify-form { margin-top: 25px; }
.code-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.code-label-row label { font-size: 12px; font-weight: 550; }
.expiry-hint { font-size: 10px; color: #8a99a9; font-variant-numeric: tabular-nums; }
.expiry-hint.is-expired { color: #b76143; }
#verification-code { display: block; width: 100%; height: 50px; border: 1px solid #d8e2ec; border-radius: 9px; color: #183149; font-size: 22px; letter-spacing: 7px; padding: 0 14px; background: #fff; font-variant-numeric: tabular-nums; }
#verification-code::placeholder { font-size: 13px; letter-spacing: .4px; color: #a0adbc; }
#verification-code:focus { outline: 0; border-color: #6aa1ea; box-shadow: 0 0 0 3px #e7f1ff; }
#verification-code:disabled { background: #f7f9fc; color: #8a99a9; }
#verification-code[aria-invalid="true"] { border-color: #d58b71; }
.phone-field label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 550; }
#recipient-phone { display: block; width: 100%; height: 50px; border: 1px solid #d8e2ec; border-radius: 9px; color: #183149; font-size: 17px; padding: 0 14px; background: #fff; font-variant-numeric: tabular-nums; }
#recipient-phone::placeholder { font-size: 12px; color: #a0adbc; }
#recipient-phone:focus { outline: 0; border-color: #6aa1ea; box-shadow: 0 0 0 3px #e7f1ff; }
#recipient-phone:disabled { background: #f7f9fc; color: #8a99a9; }
.field-help { font-size: 10px; color: #91a0af; line-height: 1.6; margin: 8px 0 20px; }
.text-button { display: block; margin: 17px auto 0; padding: 4px 7px; border: 0; background: transparent; color: #8a99a9; font-size: 11px; }
.text-button:hover { color: #456c99; }
.text-button:disabled { opacity: .55; }
.feedback { margin: 20px 0 0; padding: 11px 12px; border-radius: 8px; color: #af593b; background: #fff4ef; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.feedback.is-success { color: #227858; background: #edf8f1; }
.card-footer { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #edf1f5; color: #9aa6b4; font-size: 10px; }
.card-footer .small-lock { width: 8px; height: 7px; }
.page-footer { border-top: 1px solid var(--border); min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; color: #94a2b2; letter-spacing: .3px; }

@media (max-width: 1050px) {
  .page-shell { width: calc(100% - 64px); }
  .access-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 45px; padding-left: 0; padding-right: 0; }
  .intro-title { font-size: 38px; }
  .verification-card { padding-left: 27px; padding-right: 27px; }
}
@media (max-width: 820px) {
  .page-shell { width: min(520px, calc(100% - 40px)); }
  .page-header { min-height: 88px; }
  .access-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 28px 0 40px; }
  .eyebrow { font-size: 10px; margin-bottom: 11px; }
  h1 { font-size: 19px; margin-bottom: 17px; }
  .intro-title { font-size: 33px; line-height: 1.4; margin-bottom: 13px; }
  .intro-title br { display: inline; }
  .intro-copy { font-size: 12px; }
  .steps { display: flex; justify-content: space-between; gap: 12px; max-width: none; margin: 26px 0 20px; }
  .step { flex: 1; flex-direction: column; align-items: flex-start; gap: 9px; min-height: 0; padding: 0; }
  .step:not(:last-child)::after { left: 44px; top: 16px; right: 0; width: auto; height: 1px; bottom: auto; }
  .step-number { width: 33px; height: 33px; font-size: 10px; }
  .step strong { font-size: 11px; white-space: nowrap; }
  .step small, .step-check { display: none; }
  .owner-note { max-width: none; padding-top: 18px; }
  .verification-card { border-radius: 16px; }
  .card-topline { margin-bottom: 26px; }
  .page-footer { min-height: 60px; }
}
@media (max-width: 380px) {
  .page-shell { width: calc(100% - 28px); }
  .brand-caption { font-size: 10px; }
  .privacy-label { font-size: 10px; }
  .intro-title { font-size: 29px; }
  .verification-card { padding: 25px 21px 20px; }
  .step strong { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
}
