/* Page-local light palette, shared visually with the rug studio. */
:root:root, :root:root[data-theme] {
    color-scheme: light;
    --brand: #d92332; --brand-600: #be1725; --brand-50: #fff0f1;
    --bg: #f7f8fa; --surface: #fff; --surface-2: #f8f9fb;
    --line: #e7e9ef; --text: #20232c; --text-2: #656b79; --text-3: #767d8a;
    --ok: #16834a; --ok-50: #eaf7ef; --danger: #be2434; --danger-50: #fff0f1;
}
.identity-page { max-width: 1120px; min-height: 100dvh; margin: auto; padding: 18px 28px 0; display: flex; flex-direction: column; }
.identity-header, .identity-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.identity-header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.identity-header > span { font-size: 12px; color: var(--text-2); }
.identity-workspace { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 70px; padding: 28px 0; }
.identity-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 12px; font-weight: 600; }
.identity-eyebrow i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.identity-intro h2 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.65; letter-spacing: -.8px; margin: 14px 0; font-weight: 850; }
.identity-intro em { font-style: normal; color: var(--brand); }
.identity-intro > p { font-size: 14px; line-height: 2; color: var(--text-2); margin: 0; }
.identity-illustration { max-width: 300px; margin-top: 20px; }
.identity-illustration svg { width: 100%; display: block; }
.identity-illustration > span { display: block; font-size: 11px; color: var(--text-2); text-align: center; margin-top: 8px; }
.identity-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; min-width: 0; box-shadow: 0 8px 32px #20232c04; }
.identity-steps { display: flex; gap: 20px; list-style: none; padding: 0 0 20px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.identity-steps li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-3); }
.identity-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.identity-steps [aria-current="step"] { color: var(--brand); }
.identity-steps [aria-current="step"] > span { background: var(--brand-50); border-color: #efbdc3; }
.identity-steps .is-done { color: var(--ok); }
.identity-steps .is-done > span { background: var(--ok-50); }
.identity-symbol { display: grid; place-items: center; width: 42px; height: 42px; background: var(--brand-50); color: var(--brand); border-radius: 13px; margin-bottom: 12px; }
.identity-card h1 { font-size: 23px; margin: 0 0 10px; line-height: 1.6; }
.identity-description { color: var(--text-2); font-size: 12px; line-height: 2; margin: 0 0 20px; }
.identity-field { margin: 20px 0; }
.identity-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.identity-input { display: block; width: 100%; min-height: 54px; padding: 12px 16px; font: inherit; font-size: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.identity-input::placeholder { color: #8c919d; }
.identity-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); background: white; }
.identity-input.input-validation-error, .identity-input[aria-invalid="true"] { border-color: var(--danger); }
.identity-input[readonly] { color: var(--text-2); }
.identity-field small { display: block; font-size: 10px; color: var(--text-2); margin-top: 8px; }
.identity-primary { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid var(--brand); border-radius: 11px; background: var(--brand); color: white; cursor: pointer; font: inherit; font-size: 13px; transition: background .2s; }
.identity-primary:hover { background: var(--brand-600); }
.identity-primary:disabled { opacity: .55; cursor: not-allowed; }
.identity-card.is-busy .identity-primary:disabled { cursor: wait; }
.identity-card.is-busy { cursor: wait; }
.identity-card.is-busy a { pointer-events: none; }
.identity-primary.is-loading::after { content: ''; width: 16px; height: 16px; border: 2px solid #ffffff50; border-top-color: white; border-radius: 50%; animation: identity-spin .8s linear infinite; }
.identity-busy { font-size: 11px; color: var(--text-2); margin: 10px 0 0; }
.identity-legal { color: var(--text-2); font-size: 10px; line-height: 2; text-align: center; margin: 16px 0 0; }
.identity-legal a, .identity-destination a, .identity-link { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.identity-footnote { color: var(--text-2); font-size: 10px; line-height: 2; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.identity-destination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.identity-destination b { font-size: 15px; overflow-wrap: anywhere; }
.identity-destination a { font-size: 11px; }
.identity-code { text-align: center; letter-spacing: .35em; font-size: 26px; font-variant-numeric: tabular-nums; }
.identity-otp-meta { margin-top: 16px; font-size: 11px; color: var(--text-2); }
.identity-otp-meta > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.identity-otp-meta b { font-variant-numeric: tabular-nums; color: var(--text); }
.identity-link { font: inherit; background: none; border: 0; padding: 7px 0; cursor: pointer; }
.identity-link:disabled { opacity: .55; cursor: wait; }
.identity-error { background: var(--danger-50); color: var(--danger); border: 1px solid #efbdc3; padding: 12px; font-size: 12px; border-radius: 10px; line-height: 2; }
.identity-page :is(a, button):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.identity-footer { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 10px; }
@keyframes identity-spin { to { transform: rotate(360deg); } }
@media (min-width: 761px) and (max-height: 760px) {
    .identity-workspace { padding: 18px 0; }
    .identity-card { padding: 22px; }
    .identity-steps { padding-bottom: 14px; margin-bottom: 14px; }
    .identity-symbol { display: none; }
    .identity-field { margin: 16px 0; }
    .identity-footnote { margin-top: 14px; padding-top: 12px; }
}
@media (max-width: 760px) {
    .identity-page { padding: 16px 18px 0; max-width: 520px; }
    .identity-header > span { font-size: 10px; }
    .identity-workspace { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 18px; padding: 22px 0; }
    .identity-intro { text-align: center; }
    .identity-intro h2 { font-size: 22px; margin: 6px 0 0; }
    .identity-intro h2 br { display: none; }
    .identity-intro > p, .identity-illustration, .identity-eyebrow { display: none; }
    .identity-card { padding: 22px; }
    .identity-symbol { display: none; }
    .identity-steps { padding-bottom: 14px; margin-bottom: 18px; }
    .identity-card h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .identity-page *, .identity-page *::after { animation: none !important; transition: none !important; }
}
