:root {
  --ink: #14213d;
  --muted: #5f6b82;
  --line: #d9e0ed;
  --paper: #ffffff;
  --wash: #f5f8fd;
  --blue: #254b93;
  --blue-dark: #183871;
  --mint: #e5f8f1;
  --danger: #a62c2b;
  --warning: #885900;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }
a { color: var(--blue); text-underline-offset: 0.16em; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.shell { width: min(100% - 2rem, 1080px); margin-inline: auto; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); font-weight: 800; font-size: 1.12rem; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: 50% 50% 50% .25rem; font-family: Georgia, serif; font-size: 1.22rem; }
nav { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
nav a { font-weight: 650; text-decoration: none; }
.nav-form { display: inline; }
.language-form { display: inline-flex; align-items: center; gap: .3rem; }
.language-form select { width: auto; min-width: 5.8rem; min-height: 2.15rem; padding: .25rem .35rem; font-size: .83rem; }
.link-button { border: 0; background: transparent; color: var(--blue); padding: 0; font-weight: 650; }
.page-content { flex: 1; padding-block: 2.3rem 3.6rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; padding: 1.4rem 0; background: #fff; }
.skip-link { position: absolute; inset-inline-start: -10000px; top: auto; }
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; z-index: 20; padding: .6rem .8rem; color: #fff; background: var(--ink); }
.install-app { position: fixed; z-index: 30; inset-inline: 1rem; bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(calc(100% - 2rem), 760px); margin-inline: auto; padding: .85rem .95rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(255,255,255,.98); box-shadow: 0 14px 40px rgba(20, 33, 61, .16); }
.install-app[hidden] { display: none; }
.install-app-copy { display: grid; gap: .15rem; min-width: 0; }
.install-app-copy strong { font-size: .98rem; line-height: 1.2; }
.install-app-copy span { color: var(--muted); font-size: .9rem; }
.install-app-actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.install-app .button[hidden] { display: none; }
.install-app-dismiss { width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: #edf1f7; color: var(--muted); font-size: 1.28rem; line-height: 1; cursor: pointer; }
.install-app-dismiss:hover { color: var(--ink); background: #dfe7f3; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; min-height: 24rem; padding-block: 1rem; }
.eyebrow { color: var(--blue); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin: 0 0 .7rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); margin: 0; max-width: 11ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 0; }
h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.lede { color: var(--muted); max-width: 54ch; font-size: 1.12rem; margin-block: 1.25rem 1.6rem; }
.lookup-card, .card, .identity-card { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(30, 59, 109, .07); border-radius: var(--radius); }
.lookup-card { padding: 1.5rem; }
.lookup-card h2 { font-size: 1.35rem; margin-bottom: .45rem; }
.lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, .75fr) auto; gap: .6rem; align-items: end; margin-top: 1.1rem; }
.lookup-form .field { margin-bottom: 0; }
.lookup-form input, .lookup-form select { min-height: 2.7rem; }
.lookup-form input { min-width: 0; }
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.field-hint { display: block; color: var(--muted); font-size: .86rem; margin-top: .33rem; }
input, select, textarea { width: 100%; border: 1px solid #bac6d9; border-radius: .65rem; padding: .72rem .8rem; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: 3px solid #9bc1ff; outline-offset: 2px; }
.required::after { content: ' *'; color: var(--danger); }
.required-note { color: var(--muted); font-size: .88rem; margin: 0 0 1rem; }
.country-phone-group { display: grid; grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 1fr); gap: .55rem; }
.address-input-group { display: flex; align-items: stretch; }
.address-input-group input { min-width: 0; border-start-end-radius: 0; border-end-end-radius: 0; }
.address-suffix { display: inline-flex; align-items: center; max-width: 58%; xoverflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .72rem .8rem; border: 1px solid #bac6d9; border-inline-start: 0; border-radius: 0 .65rem .65rem 0; background: #edf1f7; color: var(--muted); font-weight: 700; }
.is-invalid { border-color: var(--danger) !important; background: #fff8f8; }
.client-error-list { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: .65rem; background: #fff1f1; color: #792422; }
.client-error-list ul { margin: 0; padding-inline-start: 1.2rem; }
.alias-preview { color: var(--blue); font-weight: 700; min-height: 1.3em; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.7rem; padding: .6rem 1rem; border: 1px solid var(--blue); border-radius: .65rem; background: var(--blue); color: white; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { background: #fff; color: var(--blue); }
.button-small { min-height: 2.2rem; padding: .35rem .75rem; font-size: .9rem; }
.button-danger { background: var(--danger); border-color: var(--danger); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.step { padding: 1.2rem; border-top: 3px solid #afc9fd; }
.step-number { color: var(--blue); font-weight: 850; font-size: .85rem; letter-spacing: .08em; }
.card { padding: clamp(1.2rem, 3vw, 2rem); max-width: 700px; }
.card-wide { max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { margin-bottom: 1rem; }
.field-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: 1.45rem; }
.muted { color: var(--muted); }
.error-list { margin: 0 0 1rem; padding: .8rem 1rem .8rem 2rem; border-radius: .65rem; background: #fff1f1; color: #792422; }
.alert { margin-bottom: 1.2rem; padding: .8rem 1rem; border-inline-start: 4px solid; border-radius: .35rem; }
.alert-success { background: var(--mint); border-color: #1b8a62; }
.alert-error { background: #fff1f1; border-color: var(--danger); }
.alert-info { background: #edf4ff; border-color: var(--blue); }
.identity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1rem; }
.identity-card { padding: 1.25rem; }
.identity-name { font-weight: 850; font-size: 1.25rem; letter-spacing: -.02em; margin: 0; }
.identity-meta { color: var(--muted); margin: .35rem 0 1rem; }
.status { display: inline-block; padding: .22rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 800; text-transform: capitalize; }
.status-verified { background: var(--mint); color: #096144; }
.status-pending-verification { background: #fff4db; color: var(--warning); }
.status-suspended, .status-expired { background: #fff0ef; color: var(--danger); }
.identity-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.profile { max-width: 660px; margin: 3.5rem auto; text-align: center; }
.profile .identity { color: var(--blue); font-size: clamp(1.8rem, 6vw, 3.6rem); overflow-wrap: anywhere; margin: .3rem 0; }
.profile-card { margin-top: 1.7rem; padding: 1.75rem; }
.call-button { min-width: min(100%, 20rem); font-size: 1.05rem; }
.pronunciation { color: var(--muted); margin: .5rem 0; }
.pronunciation span { font-weight: 750; }
.trust-badges { display: flex; justify-content: center; gap: .45rem; flex-wrap: wrap; margin: .8rem 0; }
.trust-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: .22rem .55rem; color: #0a5a46; background: var(--mint); font-size: .78rem; font-weight: 800; }
.trust-phone { color: #173f85; background: #e8f0ff; }
.profile-actions { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.profile-actions form, .inline-form { display: inline; margin: 0; }
.share-qr { display: block; width: 132px; height: 132px; margin: 1.25rem auto 0; background: #fff; border: 1px solid var(--line); border-radius: .65rem; padding: .35rem; }
.share-qr-figure { margin: 0; text-align: center; }
.share-qr-figure figcaption { margin-top: .5rem; font-size: .88rem; }
.phone-prefix-input { display: flex; align-items: stretch; }
.phone-prefix-input span { display: inline-flex; align-items: center; padding: .72rem .8rem; border: 1px solid #bac6d9; border-inline-end: 0; border-radius: .65rem 0 0 .65rem; background: #edf1f7; color: var(--muted); font-weight: 700; }
.phone-prefix-input input { border-radius: 0 .65rem .65rem 0; }
.security-recovery-codes { margin: 1.25rem 0; max-width: none; background: #fff7da; }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .55rem; margin-top: 1rem; }
.recovery-codes code { text-align: center; padding: .45rem; }
.totp-qr { width: 172px; margin: 1rem 0; padding: .65rem; background: #fff; border: 1px solid var(--line); border-radius: .65rem; }
.totp-qr svg { display: block; max-width: 100%; height: auto; }
.admin-section, .contacts-section, .account-activity { margin-top: 1.4rem; }
.moderation-form, .share-link { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.moderation-form input { min-width: 9rem; }
.share-link input { flex: 1; min-width: 14rem; }
.share-qr-panel { margin: 1.5rem 0; text-align: center; }
.share-qr-panel h2 { margin-bottom: .3rem; }
.recovery-details { margin-top: 1.5rem; }
.table-wrap { overflow-x: auto; }
.sub-number-list { margin-top: 1.4rem; }
.sub-number-count { color: var(--muted); margin: 0 0 1.25rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.search-form { display: flex; gap: .5rem; align-items: center; }
.search-form input { min-width: min(100%, 17rem); }
.pagination { display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.danger-link { color: var(--danger); }
.review-list { margin: 1.5rem 0; }
.review-list > div { display: grid; grid-template-columns: minmax(9rem, .45fr) 1fr; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--muted); font-weight: 700; }
.review-list dd { margin: 0; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: .75rem .5rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
code { background: #edf1f7; border-radius: .25rem; padding: .08rem .3rem; }
.dev-code { margin-top: 1rem; padding: .8rem; border-radius: .6rem; background: #fff3cf; color: #644600; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-wrap nav { font-size: .85rem; }
.prose { max-width: 860px; }
.prose h1 { max-width: 16ch; }
.prose section { margin-top: 2.1rem; }
.prose section h2 { font-size: 1.35rem; margin-bottom: .6rem; }
.prose p, .prose li { max-width: 80ch; }
.prose li + li { margin-top: .4rem; }
html[dir="rtl"] .brand-mark { border-radius: 50% 50% .25rem 50%; }
html[dir="rtl"] input[type="tel"], html[dir="rtl"] #alias { direction: ltr; text-align: left; }

@media (max-width: 720px) {
  .hero, .steps { grid-template-columns: 1fr; }
  .hero { gap: 1.8rem; min-height: 0; }
  .steps { margin-top: 2.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .country-phone-group { grid-template-columns: 1fr; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; }
  .review-list > div { grid-template-columns: 1fr; gap: .15rem; }
  .field-full { grid-column: auto; }
  .nav-wrap { min-height: 4rem; }
  nav { gap: .65rem; font-size: .9rem; }
  .language-form { width: 100%; justify-content: flex-end; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form .button { width: 100%; }
  .install-app { align-items: flex-start; flex-direction: column; }
  .install-app-actions { width: 100%; justify-content: space-between; }
  .install-app .button { flex: 1; }
  .install-app.is-ios .install-app-actions { justify-content: flex-end; }
}
