:root {
    --canvas: #ffffff;
    --quiet: #f6f8fa;
    --hover: #f0f3f7;
    --dark-bg: #111318;
    --ink: var(--dark-bg);
    --muted: #606875;
    --hairline: #e2e7ec;
    --strong-line: #bcc5cf;
    --signal: #2457ff;
    --signal-deep: #1741d8;
    --signal-soft: #eef1ff;
    --success: #0b8f55;
    --warning: #b76a00;
    --error: #d63c4a;
    --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --shell: 1320px;
    --page-gutter: clamp(20px, 4vw, 52px);
    --header-height: 72px;
    --radius-control: 6px;
    --radius-panel: 9px;
    color-scheme: light;
    font-synthesis: none;
}

/* Stitch marketing homepage */
body.page-home-stitch {
    --home-bg: #ffffff;
    --home-surface: #f8f9fb;
    --home-surface-strong: #f2f4f6;
    --home-text: #191c1e;
    --home-muted: #535b66;
    --home-rule: #dfe3e8;
    --home-blue: #2457ff;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    background: var(--home-bg);
    color: var(--home-text);
}

.page-home-stitch h1,
.page-home-stitch h2,
.page-home-stitch h3,
.page-home-stitch strong {
    font-family: var(--sans);
    font-weight: 700;
}

.stitch-shell {
    width: min(calc(100% - 96px), 1200px);
    margin-inline: auto;
}

.stitch-header {
    --home-surface: #f8f9fb;
    --home-text: #191c1e;
    --home-muted: #535b66;
    --home-rule: #dfe3e8;
    --home-blue: #2457ff;
    position: sticky;
    z-index: 100;
    top: 0;
    height: 72px;
    background: rgba(248, 249, 251, 0.98);
    border-bottom: 1px solid var(--home-rule);
}

.stitch-header__inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.stitch-wordmark {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 44px;
    color: var(--home-text);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 44px;
}

.stitch-wordmark__mark {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}

.stitch-wordmark > span {
    display: inline-flex;
    align-items: baseline;
}

.stitch-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    margin-left: 48px;
}

.stitch-nav,
.stitch-header__actions {
    display: flex;
    align-items: center;
}

.stitch-nav {
    gap: 32px;
}

.stitch-header__actions {
    gap: 22px;
}

.stitch-nav a,
.stitch-login {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--home-muted);
    font-size: 15px;
    font-weight: 600;
    transition: color 160ms ease;
}

.stitch-nav a:hover,
.stitch-login:hover {
    color: var(--home-blue);
}

.stitch-menu-toggle {
    display: none;
}

.stitch-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.stitch-button--compact {
    min-height: 40px;
    padding-inline: 18px;
    font-size: 14px;
}

.stitch-button--large {
    min-height: 54px;
    padding-inline: 32px;
}

.stitch-button--dark {
    background: var(--dark-bg);
    color: #fff;
}

.stitch-button--dark:hover {
    background: var(--home-blue);
}

.stitch-button--outline {
    background: #fff;
    border-color: var(--home-rule);
    color: var(--home-text);
}

.stitch-button--outline:hover {
    border-color: var(--home-blue);
    color: var(--home-blue);
}

.stitch-button--full {
    width: 100%;
}

.stitch-home {
    background: var(--home-bg);
}

.stitch-hero {
    border-bottom: 1px solid var(--home-rule);
}

.stitch-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: clamp(64px, 8vw, 128px);
    align-items: center;
    min-height: 568px;
    padding-block: 88px;
}

.stitch-hero__copy {
    max-width: 680px;
}

.stitch-coordinate,
.stitch-check__coordinate,
.stitch-field > span,
.stitch-field > label,
.stitch-step__number {
    font-family: var(--mono);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.stitch-coordinate,
.stitch-check__coordinate {
    display: block;
    color: var(--home-muted);
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
}

.stitch-hero__copy h1 {
    max-width: 680px;
    margin: 24px 0 24px;
    font-size: clamp(48px, 5vw, 68px);
    letter-spacing: -0.045em;
    line-height: 0.99;
}

.stitch-hero__copy p {
    max-width: 620px;
    margin-bottom: 32px;
    color: var(--home-muted);
    font-size: 18px;
    line-height: 1.65;
}

.stitch-check {
    position: relative;
    height: 544px;
    padding: 0;
    background: var(--home-surface);
    border: 1px solid var(--home-rule);
    border-radius: 6px;
    perspective: 1400px;
}

.stitch-check__flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 420ms cubic-bezier(.2,.72,.2,1);
}

.stitch-check.is-showing-results .stitch-check__flipper { transform: rotateY(180deg); }

.stitch-check__face {
    position: absolute;
    inset: 0;
    padding: 36px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.stitch-check__back { transform: rotateY(180deg); }

.stitch-check__coordinate {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #7c8490;
    font-size: 9px;
}

.stitch-check h2 {
    margin: 0 0 28px;
    padding-right: 120px;
    font-size: 28px;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.stitch-field {
    display: block;
    margin-bottom: 18px;
}

.stitch-field > span,
.stitch-field > label {
    display: block;
    margin-bottom: 8px;
    color: var(--home-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.stitch-field > select {
    width: 100%;
    height: 50px;
    padding: 0 42px 0 14px;
    background: var(--home-bg);
    border: 1px solid var(--home-rule);
    border-radius: 4px;
    color: var(--home-text);
    font: 600 16px/1 var(--sans);
}

.stitch-availability {
    background: var(--home-bg);
    border-radius: inherit;
    overflow: hidden;
}

.stitch-availability > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 48px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--home-rule);
}

.stitch-availability > header strong { font-size: 14px; text-align: center; }
.stitch-availability > header span { color: var(--home-muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.stitch-availability__back { padding: 0; background: transparent; border: 0; color: var(--home-text); font: 600 12px/1 var(--sans); cursor: pointer; }

.stitch-availability__window {
    height: calc(100% - 67px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.stitch-availability__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 18px;
    align-items: center;
    padding: 15px 14px;
}

.stitch-availability__row + .stitch-availability__row { border-top: 1px solid var(--home-rule); }
.stitch-availability__identity { min-width: 0; }
.stitch-availability__identity strong,
.stitch-availability__identity span { display: block; }
.stitch-availability__identity strong { margin-bottom: 4px; font-size: 13px; }
.stitch-availability__identity span { color: var(--home-muted); font-size: 11px; overflow-wrap: anywhere; }
.stitch-availability__purchase { display: grid; justify-items: end; gap: 7px; }
.stitch-availability__purchase strong { font-family: var(--mono); font-size: 14px; }
.stitch-availability__purchase a { min-height: 34px; padding: 8px 12px; font-size: 10px; }
.stitch-availability__empty { margin: 0; padding: 24px 14px; color: var(--home-muted); font-size: 12px; text-align: center; }

.stitch-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.stitch-select.is-open {
    z-index: 120;
}

.js .stitch-select__native {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.stitch-select__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 50px;
    padding: 0 42px 0 14px;
    background-color: var(--home-bg, var(--canvas));
    border: 1px solid var(--home-rule, var(--strong-line));
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(17, 19, 24, 0.03);
    color: var(--home-text, var(--ink));
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
}

[data-stitch-select-value] {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.stitch-select__icon,
.stitch-select__flag,
.stitch-select__service-badge {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.stitch-select__icon {
    display: block;
    object-fit: contain;
}

.stitch-select__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
}

.stitch-select__service-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.stitch-select__service-badge--tone-0 { background: #fee2e2; color: #991b1b; }
.stitch-select__service-badge--tone-1 { background: #ffedd5; color: #9a3412; }
.stitch-select__service-badge--tone-2 { background: #fef3c7; color: #854d0e; }
.stitch-select__service-badge--tone-3 { background: #dcfce7; color: #166534; }
.stitch-select__service-badge--tone-4 { background: #cffafe; color: #155e75; }
.stitch-select__service-badge--tone-5 { background: #dbeafe; color: #1e40af; }
.stitch-select__service-badge--tone-6 { background: #ede9fe; color: #5b21b6; }
.stitch-select__service-badge--tone-7 { background: #fce7f3; color: #9d174d; }

.stitch-select__option[aria-selected="true"] .stitch-select__service-badge {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

.stitch-select__option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stitch-select__button::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--home-muted, var(--muted));
    border-bottom: 2px solid var(--home-muted, var(--muted));
    content: "";
    transform: translateY(-65%) rotate(45deg);
}

.stitch-select__button:focus,
.stitch-select__button[aria-expanded="true"] {
    border-color: var(--home-blue, var(--signal));
    outline: 3px solid rgba(36, 87, 255, 0.15);
}

.stitch-select__button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.stitch-select__button[aria-invalid="true"] {
    border-color: var(--error);
}

.stitch-select__panel {
    position: absolute;
    z-index: 125;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 270px;
    padding: 6px;
    background: var(--home-bg, var(--canvas));
    border: 1px solid var(--home-rule, var(--hairline));
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.12);
}

.stitch-select__search {
    position: sticky;
    z-index: 1;
    top: 0;
    width: 100%;
    margin: 0 0 6px;
    padding: 10px;
    background: var(--home-bg, var(--canvas));
    border: 1px solid var(--home-rule, var(--hairline));
    border-radius: 4px;
    color: var(--home-text, var(--ink));
    font: inherit;
}

.stitch-select__option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 36px 0 10px;
    background: var(--home-bg, var(--canvas));
    border: 0;
    border-radius: 4px;
    color: var(--home-text, var(--ink));
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    gap: 10px;
}

.stitch-select__option[hidden] {
    display: none;
}

.stitch-select__option:hover,
.stitch-select__option:focus {
    background: var(--home-surface-strong, var(--hover));
    outline: 0;
}

.stitch-select__option[aria-selected="true"] {
    position: relative;
    background: var(--home-blue, var(--signal));
    color: #fff;
}

.stitch-select__option:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.field > .stitch-select .stitch-select__button,
.workbench-step .stitch-select__button {
    min-height: 54px;
    height: auto;
    padding-inline: 18px 44px;
}

.stitch-select__option[aria-selected="true"]::after {
    position: absolute;
    right: 12px;
    color: currentColor;
    content: "✓";
    font-weight: 700;
}

.stitch-services {
    padding-block: 96px;
    background: #fff;
    border-bottom: 1px solid var(--home-rule);
}

.stitch-services__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.36fr);
    gap: clamp(48px, 8vw, 112px);
    align-items: end;
    margin-bottom: 42px;
}

.stitch-services__heading h2,
.stitch-section-heading h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 4.2vw, 56px);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.stitch-services__heading > div:first-child > p:last-child,
.stitch-section-heading > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--home-muted);
    font-size: 17px;
    line-height: 1.6;
}

.stitch-services__count {
    display: flex;
    flex-direction: column;
    padding: 8px 0 8px 24px;
    border-left: 3px solid var(--home-text);
}

.stitch-services__count strong {
    font-size: clamp(42px, 5vw, 64px);
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.stitch-services__count span {
    max-width: 190px;
    margin-top: 10px;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.45;
}

.stitch-app-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.stitch-app {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    min-height: 112px;
    padding: 18px 12px;
    background: var(--home-surface);
    border: 1px solid var(--home-rule);
    border-radius: 4px;
    color: var(--home-text);
    font-size: 15px;
    font-weight: 700;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.stitch-app:hover {
    background: #fff;
    border-color: var(--home-blue);
    transform: translateY(-2px);
}

.stitch-app__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
}

.stitch-app__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.stitch-app__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.stitch-services__action {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.stitch-services__action .stitch-button {
    gap: 10px;
}

.stitch-reasons,
.stitch-process {
    padding-block: 96px;
    border-bottom: 1px solid var(--home-rule);
}

.stitch-reasons {
    background: var(--home-surface);
}

.stitch-section-heading {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.stitch-section-heading > p:last-child {
    margin-inline: auto;
}

.stitch-reason-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stitch-reason-card {
    min-height: 252px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--home-rule);
    border-radius: 4px;
}

.stitch-reason-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 38px;
    background: var(--dark-bg);
    border-radius: 4px;
    color: #fff;
}

.stitch-reason-card__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.stitch-reason-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.stitch-reason-card p {
    margin: 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.55;
}

.stitch-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stitch-steps li {
    position: relative;
    min-height: 238px;
    padding: 32px 30px;
    background: var(--home-surface);
    border: 1px solid var(--home-rule);
    border-radius: 4px;
    text-align: center;
}

.stitch-step__number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 30px;
    background: var(--dark-bg);
    border-radius: 4px;
    color: #fff;
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
}

.stitch-steps h3 {
    margin-bottom: 9px;
    font-size: 21px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.stitch-steps p {
    margin: 0;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.5;
}

.service-directory {
    background: var(--home-bg);
}

.service-directory__hero {
    padding-block: 92px;
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-rule);
}

.service-directory__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
    gap: clamp(64px, 9vw, 128px);
    align-items: end;
}

.service-directory__hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font-size: clamp(50px, 6vw, 76px);
    letter-spacing: -0.055em;
    line-height: 0.97;
}

.service-directory__hero p:last-child {
    max-width: 660px;
    margin: 0;
    color: var(--home-muted);
    font-size: 18px;
    line-height: 1.65;
}

.service-directory__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid var(--home-rule);
    border-bottom: 1px solid var(--home-rule);
}

.service-directory__stats div {
    padding: 24px 20px;
}

.service-directory__stats div + div {
    border-left: 1px solid var(--home-rule);
}

.service-directory__stats dt {
    margin-bottom: 7px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.service-directory__stats dd {
    margin: 0;
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.4;
}

.service-directory__catalog {
    padding-block: 88px 110px;
}

.service-directory__toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.service-directory__toolbar h2 {
    margin: 0 0 8px;
    font-size: clamp(34px, 4vw, 48px);
}

.service-directory__toolbar p {
    margin: 0;
    color: var(--home-muted);
}

.service-directory__search {
    flex: 0 1 380px;
}

.service-directory__search input {
    width: 100%;
    height: 54px;
    padding: 0 18px;
    background: #fff;
    border: 1px solid var(--home-rule);
    border-radius: 4px;
}

.service-directory__search input:focus {
    border-color: var(--home-blue);
    outline: 3px solid rgba(36, 87, 255, 0.15);
}

.service-directory__filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--home-rule);
}

.service-directory__filters button {
    min-height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid var(--home-rule);
    border-radius: 4px;
    color: var(--home-muted);
    font-size: 13px;
    font-weight: 700;
}

.service-directory__filters button:hover,
.service-directory__filters button.is-active {
    background: var(--dark-bg);
    border-color: var(--dark-bg);
    color: #fff;
}

.service-directory__filters > span {
    margin-left: auto;
    color: var(--home-muted);
    font-family: var(--mono);
    font-size: 12px;
}

.service-directory__notice {
    margin: 0 0 24px;
    padding: 13px 15px;
    background: #fff8e8;
    border: 1px solid #ecd59c;
    color: #765514;
    font-size: 14px;
}

.service-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-directory__card {
    display: flex;
    min-width: 0;
    min-height: 224px;
    padding: 24px;
    flex-direction: column;
    background: var(--home-surface);
    border: 1px solid var(--home-rule);
    border-radius: 4px;
}

.service-directory__card-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.service-directory__card-main > img,
.service-directory__badge {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
}

.service-directory__card-main > img {
    padding: 4px;
    object-fit: contain;
}

.service-directory__badge {
    display: grid;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
}

.service-directory__badge--tone-0 { background: #fee2e2; color: #991b1b; }
.service-directory__badge--tone-1 { background: #ffedd5; color: #9a3412; }
.service-directory__badge--tone-2 { background: #fef3c7; color: #854d0e; }
.service-directory__badge--tone-3 { background: #dcfce7; color: #166534; }
.service-directory__badge--tone-4 { background: #cffafe; color: #155e75; }
.service-directory__badge--tone-5 { background: #dbeafe; color: #1e40af; }
.service-directory__badge--tone-6 { background: #ede9fe; color: #5b21b6; }
.service-directory__badge--tone-7 { background: #fce7f3; color: #9d174d; }

.service-directory__card h3 {
    max-width: 240px;
    margin: 0 0 4px;
    overflow: hidden;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-directory__card-main div > span {
    color: var(--home-muted);
    font-size: 12px;
}

.service-directory__routes {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0;
}

.service-directory__routes span {
    padding: 5px 8px;
    background: #fff;
    border: 1px solid var(--home-rule);
    border-radius: 999px;
    color: var(--home-muted);
    font-size: 11px;
    line-height: 1.2;
}

.service-directory__card > a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--home-rule);
    color: var(--home-text);
    font-size: 13px;
    font-weight: 800;
}

.service-directory__card > a:hover {
    color: var(--home-blue);
}

.service-directory__empty {
    padding: 72px 24px;
    background: var(--home-surface);
    border: 1px solid var(--home-rule);
    text-align: center;
}

.service-directory__empty h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.service-directory__empty p {
    margin: 0;
    color: var(--home-muted);
}

.stitch-final-cta {
    padding-block: 98px;
    background: var(--home-surface);
    text-align: center;
}

.stitch-final-cta h2 {
    max-width: 860px;
    margin: 0 auto 34px;
    font-size: clamp(42px, 5vw, 64px);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.status-page {
    min-height: 70vh;
    background: var(--home-bg);
}

.status-page__hero {
    padding-block: 92px;
    background: var(--home-surface);
    border-bottom: 1px solid var(--home-rule);
}

.status-page__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: clamp(64px, 9vw, 132px);
    align-items: end;
}

.status-page__eyebrow {
    margin: 0 0 20px;
    color: var(--home-muted);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.status-page__hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    font-size: clamp(50px, 6vw, 76px);
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.status-page__hero > .stitch-shell > div:first-child > p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--home-muted);
    font-size: 18px;
    line-height: 1.6;
}

.status-page__summary {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 16px;
    align-items: start;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--home-rule);
    border-radius: 4px;
}

.status-page__pulse {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    background: #7b8490;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(123, 132, 144, 0.14);
}

.status-page__summary--operational .status-page__pulse,
.status-component--operational .status-component__heading i {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(11, 143, 85, 0.12);
}

.status-page__summary--degraded .status-page__pulse,
.status-page__summary--unknown .status-page__pulse,
.status-component--degraded .status-component__heading i,
.status-component--maintenance .status-component__heading i,
.status-component--unknown .status-component__heading i {
    background: var(--warning);
    box-shadow: 0 0 0 5px rgba(183, 106, 0, 0.12);
}

.status-page__summary--major_outage .status-page__pulse,
.status-component--outage .status-component__heading i {
    background: var(--error);
    box-shadow: 0 0 0 5px rgba(214, 60, 74, 0.12);
}

.status-page__summary strong,
.status-page__summary span {
    display: block;
}

.status-page__summary strong {
    margin-bottom: 8px;
    font-size: 18px;
}

.status-page__summary span {
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.5;
}

.status-page__components {
    padding-block: 84px 108px;
}

.status-page__section-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 30px;
}

.status-page__section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(34px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.status-page__section-heading p {
    margin: 0;
    color: var(--home-muted);
}

.status-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--home-rule);
    border-left: 1px solid var(--home-rule);
}

.status-component {
    min-height: 174px;
    padding: 28px;
    border-right: 1px solid var(--home-rule);
    border-bottom: 1px solid var(--home-rule);
}

.status-component__heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 24px;
}

.status-component__heading h3 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.status-component__heading span {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    flex: 0 0 auto;
    color: var(--home-muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-component__heading i {
    width: 8px;
    height: 8px;
    background: #7b8490;
    border-radius: 50%;
}

.status-component > p {
    max-width: 560px;
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.55;
}

.status-page__note {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--home-muted);
    font-size: 12px;
    line-height: 1.55;
}

.status-page [data-status-refresh][disabled] {
    cursor: wait;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .stitch-shell {
        width: min(calc(100% - 48px), 1200px);
    }

    .stitch-navigation {
        margin-left: 28px;
    }

    .stitch-nav {
        gap: 18px;
    }

    .stitch-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
        gap: 44px;
    }

    .stitch-app-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stitch-reason-grid,
    .service-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-directory__hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .status-page__hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }
}

@media (max-width: 720px) {
    body.page-home-stitch {
        font-size: 16px;
    }

    .stitch-shell {
        width: min(calc(100% - 40px), 1200px);
    }

    .stitch-header {
        height: 68px;
    }

    .stitch-header__inner {
        justify-content: space-between;
    }

    .stitch-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        min-height: 44px;
        padding: 0;
        background: transparent;
        border: 0;
        color: var(--home-text);
        font-family: var(--sans);
        font-size: 15px;
        font-weight: 700;
    }

    .stitch-menu-toggle__icon {
        position: relative;
        display: block;
        width: 20px;
        height: 16px;
    }

    .stitch-menu-toggle__icon i {
        position: absolute;
        right: 0;
        left: 0;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: opacity 160ms ease, transform 160ms ease, top 160ms ease;
    }

    .stitch-menu-toggle__icon i:first-child {
        top: 1px;
    }

    .stitch-menu-toggle__icon i:nth-child(2) {
        top: 7px;
    }

    .stitch-menu-toggle__icon i:last-child {
        top: 13px;
    }

    .stitch-menu-toggle[aria-expanded="true"] .stitch-menu-toggle__icon i:first-child {
        top: 7px;
        transform: rotate(45deg);
    }

    .stitch-menu-toggle[aria-expanded="true"] .stitch-menu-toggle__icon i:nth-child(2) {
        opacity: 0;
    }

    .stitch-menu-toggle[aria-expanded="true"] .stitch-menu-toggle__icon i:last-child {
        top: 7px;
        transform: rotate(-45deg);
    }

    .stitch-navigation {
        position: fixed;
        z-index: 99;
        top: 68px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
        margin: 0;
        padding: 16px 20px 32px;
        overflow-y: auto;
        background: #fff;
        border-top: 1px solid var(--home-rule);
    }

    .stitch-navigation.is-open {
        display: flex;
    }

    .stitch-nav,
    .stitch-header__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .stitch-nav a,
    .stitch-login {
        min-height: 58px;
        border-bottom: 1px solid var(--home-rule);
        font-size: 18px;
    }

    .stitch-header__actions {
        margin-top: 24px;
        gap: 12px;
    }

    .stitch-header__actions .stitch-button {
        min-height: 48px;
    }

    .stitch-hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: 0;
        padding-block: 64px;
    }

    .stitch-hero__copy h1 {
        margin-top: 20px;
        font-size: clamp(44px, 13vw, 58px);
        line-height: 0.98;
    }

    .stitch-hero__copy p {
        font-size: 17px;
    }

    .stitch-hero__copy .stitch-button {
        width: 100%;
    }

    .stitch-check {
        height: 544px;
        padding: 0;
    }

    .stitch-check__face {
        padding: 28px 22px 24px;
    }

    .stitch-check__coordinate {
        position: static;
        margin-bottom: 16px;
    }

    .stitch-check h2 {
        padding-right: 0;
    }

    .stitch-services {
        padding-block: 68px;
    }

    .stitch-services__heading {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 34px;
    }

    .stitch-services__heading h2,
    .stitch-section-heading h2 {
        font-size: 40px;
    }

    .stitch-services__count {
        padding-left: 18px;
    }

    .stitch-services__count span {
        max-width: 260px;
    }

    .stitch-app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stitch-app {
        min-height: 104px;
    }

    .stitch-reasons,
    .stitch-process {
        padding-block: 72px;
    }

    .stitch-section-heading {
        margin-bottom: 34px;
        text-align: left;
    }

    .stitch-section-heading > p:last-child {
        margin-inline: 0;
    }

    .stitch-reason-grid,
    .service-directory__grid {
        grid-template-columns: 1fr;
    }

    .stitch-reason-card {
        min-height: 0;
        padding: 26px;
    }

    .stitch-reason-card__icon {
        margin-bottom: 28px;
    }

    .stitch-steps {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stitch-steps li {
        min-height: 0;
        padding: 24px;
    }

    .stitch-step__number {
        margin-bottom: 24px;
    }

    .service-directory__hero {
        padding-block: 64px;
    }

    .status-page__hero {
        padding-block: 64px;
    }

    .status-page__hero h1 {
        font-size: clamp(44px, 13vw, 60px);
    }

    .status-page__summary {
        padding: 22px;
    }

    .status-page__components {
        padding-block: 64px 80px;
    }

    .status-page__section-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 22px;
    }

    .status-page__section-heading .stitch-button {
        width: 100%;
    }

    .status-page__grid {
        grid-template-columns: 1fr;
    }

    .status-component {
        min-height: 0;
        padding: 24px;
    }

    .status-component__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .service-directory__hero h1 {
        font-size: clamp(46px, 13vw, 62px);
    }

    .service-directory__stats {
        grid-template-columns: 1fr 1fr;
    }

    .service-directory__catalog {
        padding-block: 64px 80px;
    }

    .service-directory__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 24px;
    }

    .service-directory__search {
        flex-basis: auto;
    }

    .service-directory__filters {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .service-directory__filters button {
        flex: 1 1 auto;
    }

    .service-directory__filters > span {
        width: 100%;
        margin: 8px 0 0;
        text-align: right;
    }

    .stitch-final-cta {
        padding-block: 76px;
    }

    .stitch-final-cta h2 {
        font-size: clamp(42px, 12vw, 56px);
    }

    .stitch-final-cta .stitch-button {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .stitch-app,
    .stitch-button,
    .stitch-menu-toggle__icon i {
        transition: none;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.has-open-navigation {
    overflow: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button,
input,
select,
textarea {
    border-radius: var(--radius-control);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.035em;
    line-height: 1.05;
}

h1,
h2,
h3,
strong {
    font-weight: 600;
}

::selection {
    background: var(--signal);
    color: #fff;
}

:focus-visible {
    outline: 3px solid rgba(36, 87, 255, 0.24);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.shell {
    width: min(100% - (var(--page-gutter) * 2), var(--shell));
    margin-inline: auto;
}

.mono {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

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

.clipboard-buffer {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    min-height: 44px;
}

.brand__mark {
    width: 28px;
    height: 28px;
}

.brand__wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    color: var(--ink);
    font-size: 15px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand__wordmark strong {
    font-size: 18px;
    letter-spacing: -0.06em;
}

.brand__wordmark i {
    color: var(--signal);
    font-style: normal;
    font-weight: 600;
}

.brand__wordmark span {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.14em;
}

.site-header {
    position: relative;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--hairline);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-navigation,
.site-nav,
.site-actions {
    display: flex;
    align-items: center;
}

.site-navigation {
    align-self: stretch;
    gap: clamp(32px, 5vw, 74px);
}

.site-nav {
    align-self: stretch;
    gap: clamp(24px, 3.5vw, 48px);
}

.site-nav a,
.site-actions .text-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.site-nav a::after,
.site-actions .text-action::after {
    position: absolute;
    right: 0;
    bottom: -14px;
    left: 0;
    height: 2px;
    background: var(--signal);
    content: "";
    opacity: 0;
    transform: scaleX(0.3);
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-current,
.site-actions .text-action:hover,
.site-actions .text-action.is-current {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-current::after,
.site-actions .text-action:hover::after,
.site-actions .text-action.is-current::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-actions {
    align-self: stretch;
    gap: 20px;
    padding-left: 28px;
    border-left: 1px solid var(--hairline);
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 2px 0 12px;
    background: transparent;
    border: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-toggle__bars {
    display: grid;
    gap: 5px;
    width: 20px;
}

.menu-toggle__bars i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child {
    transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-control);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--compact {
    min-height: 40px;
    padding-inline: 16px;
    font-size: 13px;
}

.button--large {
    min-height: 52px;
    padding-inline: 24px;
}

.button--primary {
    background: var(--signal);
    color: #fff;
}

.button--primary:hover {
    background: var(--signal-deep);
}

.button--dark {
    background: var(--dark-bg);
    color: #fff;
}

.button--dark:hover {
    background: var(--signal);
}

.button--secondary {
    background: var(--canvas);
    border-color: var(--strong-line);
    color: var(--ink);
}

.button--secondary:hover {
    background: var(--hover);
    border-color: var(--ink);
}

.button--full {
    width: 100%;
}

.text-action,
.directional-link,
.row-action {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.text-action:hover,
.directional-link:hover,
.row-action:hover {
    color: var(--signal);
}

.directional-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
}

.status-square {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: var(--muted);
    border-radius: 1px;
}

.status-square--live,
.status-square--success {
    background: var(--success);
}

.status-square--warning {
    background: var(--warning);
}

.status-square--error {
    background: var(--error);
}

.status-square--neutral {
    background: var(--strong-line);
}

.flash-stack {
    position: relative;
    z-index: 80;
    display: grid;
    gap: 8px;
    padding-top: 16px;
}

.flash-notice,
.form-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 11px 14px;
    background: var(--quiet);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--signal);
    border-radius: 2px;
    color: var(--ink);
    font-size: 14px;
}

.flash-notice p {
    flex: 1;
    margin: 0;
}

.flash-notice button {
    padding: 6px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.flash-notice--success {
    border-left-color: var(--success);
}

.flash-notice--success .status-square {
    background: var(--success);
}

.flash-notice--warning {
    border-left-color: var(--warning);
}

.flash-notice--warning .status-square {
    background: var(--warning);
}

.flash-notice--error,
.form-notice--error {
    border-left-color: var(--error);
}

.flash-notice--error .status-square {
    background: var(--error);
}

.toast-stack {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200;
    display: grid;
    width: min(390px, calc(100vw - 40px));
    gap: 10px;
}

.toast-notice {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 12px 14px;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-control);
    box-shadow: 0 18px 45px rgba(17, 19, 24, 0.24);
    color: #fff;
    font-size: 13px;
}

.toast-notice p {
    flex: 1;
    margin: 0;
    white-space: nowrap;
}

.toast-notice button {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 6px;
    place-items: center;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.68);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 1;
}

.toast-notice--success .status-square {
    background: #35c982;
}

.toast-notice--error .status-square {
    background: #ff6874;
}

.toast-notice--warning .status-square {
    background: #ffb143;
}

.toast-notice--info .status-square {
    background: #6d8cff;
}

.section-coordinate {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.section-coordinate i {
    display: block;
    width: 1px;
    height: 54px;
    background: var(--hairline);
}

.section-index {
    display: block;
    margin-bottom: 16px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 56px;
}

.section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
    gap: 24px;
    align-items: end;
}

.section-heading h2,
.trust-section h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(36px, 4vw, 54px);
}

.section-heading > p,
.trust-section p {
    max-width: 520px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
}

.section-ruled {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

/* Home */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    min-height: 680px;
    padding: 96px 0 104px 66px;
}

.hero__copy h1,
.page-intro h1 {
    max-width: 820px;
    margin-bottom: 30px;
    font-size: clamp(58px, 6vw, 82px);
    letter-spacing: -0.06em;
}

.hero__lede {
    max-width: 650px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 26px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.trust-line i {
    display: block;
    width: 3px;
    height: 3px;
    background: var(--strong-line);
}

.number-console {
    position: relative;
    overflow: hidden;
    background: var(--canvas);
    border: 1px solid var(--strong-line);
    border-radius: var(--radius-panel);
}

.number-console__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 52px;
    padding: 0 18px;
    background: var(--quiet);
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.number-console__head > span,
.ledger-states span,
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.region-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--hairline);
}

.region-switch a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.region-switch a + a {
    border-left: 1px solid var(--hairline);
}

.region-switch a.is-active {
    color: var(--ink);
}

.region-switch a.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--signal);
    content: "";
}

.console-ledger {
    margin: 0;
}

.console-ledger > div {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 18px;
    align-items: center;
    min-height: 62px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hairline);
}

.console-ledger dt {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.console-ledger dd {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    font-family: var(--mono);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.console-ledger dd span {
    color: var(--muted);
}

.console-ledger__price {
    background: var(--quiet);
}

.console-ledger__price dd {
    color: var(--signal-deep);
    font-size: 17px;
    font-weight: 600;
}

.console-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 160ms ease;
}

.console-action:hover {
    background: var(--signal);
}

.scan-line {
    position: absolute;
    z-index: 2;
    top: 102px;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--signal);
    opacity: 0;
    animation: console-scan 2.8s ease-in-out 400ms 1;
}

@keyframes console-scan {
    0% { opacity: 0; transform: translateY(0); }
    15% { opacity: 0.75; }
    75% { opacity: 0.45; }
    100% { opacity: 0; transform: translateY(248px); }
}

.availability-tape {
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
}

.availability-tape__inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.availability-tape__item {
    min-width: 0;
    padding: 19px 18px;
    border-left: 1px solid var(--hairline);
}

.availability-tape__item:last-child {
    border-right: 1px solid var(--hairline);
}

.availability-tape__item strong,
.availability-tape__item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.availability-tape__item strong {
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: 12px;
}

.availability-tape__item span {
    color: var(--muted);
    font-size: 11px;
}

.process-section,
.outcomes,
.faq {
    padding-top: 118px;
    padding-bottom: 118px;
}

.process-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--strong-line);
    list-style: none;
}

.process-line li {
    position: relative;
    min-height: 252px;
    padding: 38px 36px 32px 0;
}

.process-line li + li {
    padding-left: 36px;
    border-left: 1px solid var(--hairline);
}

.process-line li::before {
    position: absolute;
    top: -4px;
    left: 0;
    width: 7px;
    height: 7px;
    background: var(--signal);
    border-radius: 1px;
    content: "";
}

.process-line li + li::before {
    left: -4px;
}

.process-line li > span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.process-line h3 {
    margin: 48px 0 14px;
    font-size: 25px;
}

.process-line p {
    max-width: 330px;
    margin-bottom: 0;
    color: var(--muted);
}

.trust-section__grid {
    display: grid;
    grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 8vw, 120px);
    padding-top: 104px;
    padding-bottom: 104px;
}

.outcome-rows {
    border-top: 1px solid var(--strong-line);
}

.outcome-row {
    display: grid;
    grid-template-columns: 70px minmax(260px, 1fr) minmax(330px, 1fr);
    gap: 32px;
    align-items: center;
    min-height: 210px;
    padding: 34px 0;
    border-bottom: 1px solid var(--hairline);
}

.outcome-row__number {
    align-self: start;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.outcome-row h3 {
    margin-bottom: 12px;
    font-size: 28px;
}

.outcome-row p {
    max-width: 470px;
    margin-bottom: 0;
    color: var(--muted);
}

.mini-ledger,
.mini-timeline,
.ledger-states {
    width: 100%;
    margin: 0;
    background: var(--quiet);
    border: 1px solid var(--hairline);
}

.mini-ledger > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    padding: 0 16px;
}

.mini-ledger > div + div {
    border-top: 1px solid var(--hairline);
}

.mini-ledger dt {
    color: var(--muted);
    font-size: 12px;
}

.mini-ledger dd {
    margin: 0;
    font-family: var(--mono);
    font-size: 15px;
}

.mini-timeline {
    padding: 12px 16px;
    list-style: none;
}

.mini-timeline li {
    position: relative;
    min-height: 34px;
    padding-left: 24px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.mini-timeline li::before {
    position: absolute;
    top: 5px;
    left: 1px;
    width: 7px;
    height: 7px;
    background: var(--strong-line);
    border-radius: 1px;
    content: "";
}

.mini-timeline li:not(:last-child)::after {
    position: absolute;
    top: 14px;
    bottom: -2px;
    left: 4px;
    width: 1px;
    background: var(--hairline);
    content: "";
}

.mini-timeline li.is-complete::before {
    background: var(--success);
}

.mini-timeline li.is-current {
    color: var(--ink);
}

.mini-timeline li.is-current::before {
    background: var(--signal);
}

.ledger-states {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ledger-states span {
    min-height: 76px;
    padding: 0 14px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.ledger-states span + span {
    border-left: 1px solid var(--hairline);
}

.trust-section {
    background: var(--ink);
    border-color: #303338;
    color: #fff;
}

.trust-section .section-index,
.trust-section p {
    color: #9da5af;
}

.technical-checklist {
    margin: 0;
    padding: 0;
    border-top: 1px solid #40444a;
    list-style: none;
}

.technical-checklist li {
    display: grid;
    grid-template-columns: 46px 1fr 34px;
    gap: 18px;
    align-items: center;
    min-height: 72px;
    border-bottom: 1px solid #303338;
}

.technical-checklist li > span {
    color: #818a95;
    font-family: var(--mono);
    font-size: 10px;
}

.technical-checklist strong {
    font-size: 16px;
    font-weight: 500;
}

.technical-checklist i {
    position: relative;
    display: block;
    width: 28px;
    height: 20px;
    border-left: 1px solid var(--signal);
    border-bottom: 1px solid var(--signal);
}

.technical-checklist i::after {
    position: absolute;
    top: 2px;
    right: 0;
    width: 4px;
    height: 4px;
    background: var(--success);
    content: "";
}

.faq-list {
    border-top: 1px solid var(--strong-line);
}

.faq-list details {
    border-bottom: 1px solid var(--hairline);
}

.faq-list summary {
    display: grid;
    grid-template-columns: 64px 1fr 26px;
    gap: 18px;
    align-items: center;
    min-height: 84px;
    cursor: pointer;
    font-size: 19px;
    font-weight: 550;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary > span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.faq-list summary i {
    position: relative;
    width: 18px;
    height: 18px;
}

.faq-list summary i::before,
.faq-list summary i::after {
    position: absolute;
    top: 8px;
    left: 2px;
    width: 14px;
    height: 1px;
    background: var(--ink);
    content: "";
}

.faq-list summary i::after {
    transform: rotate(90deg);
    transition: transform 160ms ease;
}

.faq-list details[open] summary i::after {
    transform: rotate(0);
}

.faq-list details > div {
    padding: 0 68px 28px 82px;
}

.faq-list details p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
}

.faq-page {
    padding-top: clamp(48px, 6vw, 78px);
    padding-bottom: clamp(76px, 9vw, 126px);
}

.faq-page__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: end;
    margin-bottom: 44px;
}

.faq-page__heading h1 {
    max-width: 720px;
    margin: 12px 0 0;
    font-size: clamp(34px, 4vw, 52px);
}

.faq-page__heading > p {
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 14px;
}

.faq-page__heading a {
    color: var(--signal-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-page__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 64px;
    padding: 38px 0;
    border-top: 1px solid var(--strong-line);
    border-bottom: 1px solid var(--hairline);
}

.faq-page__footer h2 {
    margin: 10px 0 0;
    font-size: clamp(30px, 4vw, 46px);
}

.page-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
    gap: 50px;
    align-items: end;
    min-height: 470px;
    padding: 88px 0 82px 66px;
}

.page-intro h1 {
    margin-bottom: 24px;
    font-size: clamp(54px, 5.5vw, 76px);
}

.page-intro > div > p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 19px;
}

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

.field > span:first-child,
.field__label-row {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.password-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    background: var(--canvas);
    border: 1px solid var(--strong-line);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
    min-height: 168px;
    padding: 14px;
    font-family: var(--sans);
    line-height: 1.55;
    resize: vertical;
}

.field input::placeholder {
    color: #8a929c;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.password-field input:focus {
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(36, 87, 255, 0.14);
    outline: 0;
}

/* Support */
.support-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
    padding-top: clamp(48px, 6vw, 78px);
    padding-bottom: clamp(76px, 9vw, 126px);
}

.support-guidance,
.support-form-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-panel);
}

.support-guidance {
    padding: clamp(26px, 3vw, 38px);
}

.support-guidance h2 {
    margin: 16px 0 30px;
    font-size: clamp(28px, 3vw, 38px);
}

.support-guidance ul {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}

.support-guidance li {
    display: grid;
    gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--hairline);
}

.support-guidance li strong {
    font-size: 14px;
}

.support-guidance li span,
.support-safety {
    color: var(--muted);
    font-size: 13px;
}

.support-safety {
    margin: 24px 0 18px;
    padding-left: 14px;
    border-left: 2px solid var(--warning);
}

.support-guidance > a {
    color: var(--signal-deep);
    font-family: var(--mono);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.support-form-card {
    overflow: hidden;
}

.support-form-card > header {
    padding: 26px clamp(22px, 3vw, 34px);
    border-bottom: 1px solid var(--hairline);
}

.support-form-card > header > span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.09em;
}

.support-form-card h1 {
    margin: 10px 0 0;
    font-size: clamp(28px, 3vw, 36px);
}

.support-contact-form {
    display: grid;
    gap: 22px;
    padding: clamp(24px, 3vw, 34px);
}

.support-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.support-contact-form .field > small {
    color: var(--muted);
    font-size: 11px;
}

.support-contact-form .field > span small {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.support-contact-form > .button {
    justify-self: start;
}

.contact-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 28px;
}

.pagination > span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

/* Authentication */
.page-auth {
    min-height: 100vh;
    background: var(--canvas);
}

.page-auth .flash-stack {
    position: fixed;
    z-index: 120;
    top: 10px;
    right: 10px;
    width: min(460px, calc(100% - 20px));
    padding: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(380px, 45%) minmax(480px, 55%);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    background: var(--quiet);
    border-right: 1px solid var(--hairline);
}

.auth-brand::before,
.auth-brand::after {
    position: absolute;
    right: 10%;
    bottom: -18%;
    width: 1px;
    height: 58%;
    background: var(--hairline);
    content: "";
    transform: rotate(32deg);
    transform-origin: bottom;
}

.auth-brand::after {
    right: 22%;
    height: 42%;
}

.auth-brand__logo {
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

.auth-brand__statement {
    position: relative;
    z-index: 1;
    max-width: 630px;
    padding: 96px 0;
}

.auth-brand__statement h1 {
    margin-bottom: 26px;
    font-size: clamp(50px, 5vw, 74px);
    letter-spacing: -0.06em;
}

.auth-brand__statement p {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.auth-brand__telemetry,
.auth-brand__steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--strong-line);
}

.auth-brand__telemetry span,
.auth-brand__steps li {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 12px 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    list-style: none;
}

.auth-brand__telemetry span + span,
.auth-brand__steps li + li {
    padding-left: 14px;
    border-left: 1px solid var(--hairline);
}

.auth-brand__steps li {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.auth-brand__steps li span {
    color: var(--signal);
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 56px var(--page-gutter);
}

.auth-form-panel__mobile-logo {
    display: none;
}

.auth-form-wrap {
    width: min(100%, 470px);
}

.auth-form-wrap--register {
    width: min(100%, 500px);
}

.auth-form-heading {
    margin-bottom: 36px;
}

.auth-form-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(38px, 4vw, 50px);
}

.auth-form-heading p,
.auth-alternative {
    margin-bottom: 0;
    color: var(--muted);
}

.verify-email-stage {
    display: grid;
    min-height: clamp(500px, 58vh, 700px);
    padding: clamp(64px, 9vw, 112px) var(--page-gutter);
    place-items: center;
    background:
        linear-gradient(rgba(226, 231, 236, 0.52) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 231, 236, 0.52) 1px, transparent 1px),
        var(--quiet);
    background-size: 48px 48px;
}

.verify-email-card {
    position: relative;
    width: min(100%, 590px);
    padding: clamp(34px, 5vw, 54px);
    overflow: hidden;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(17, 19, 24, 0.1);
    text-align: center;
}

.verify-email-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--signal);
    content: "";
}

.verify-email-card__mark {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    background: var(--signal-soft);
    border: 1px solid #dce3ff;
    border-radius: 50%;
}

.verify-email-card__mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.verify-email-card__eyebrow {
    margin-bottom: 14px;
    color: var(--signal-deep);
    font-size: 10px;
    letter-spacing: 0.14em;
}

.verify-email-card h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 52px);
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.verify-email-card > p {
    max-width: 440px;
    margin: 22px auto 30px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.verify-email-card form {
    margin: 0;
}

.verify-email-card small {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.auth-form {
    display: grid;
    gap: 22px;
}

.auth-form .field small {
    color: var(--muted);
    font-size: 12px;
}

.field__label-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.field__label-row a {
    color: var(--signal-deep);
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 70px;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: none;
    min-width: 52px;
    min-height: 34px;
    padding: 0 8px;
    background: var(--quiet);
    border: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.js .password-field button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.field .field-error,
.field-error--standalone {
    color: var(--error);
    font-size: 12px;
}

.check-field {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--muted);
    font-size: 13px;
}

.check-field input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    margin: 2px 0 0;
    accent-color: var(--signal);
    border-radius: 2px;
}

.check-field a,
.auth-alternative a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--strong-line);
    text-underline-offset: 3px;
}

.auth-alternative {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
    font-size: 14px;
}

/* Error */
.error-screen {
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 4fr) minmax(360px, 8fr);
    gap: 48px;
    align-items: center;
    min-height: 610px;
    padding-top: 80px;
    padding-bottom: 100px;
}

.error-screen__code {
    color: var(--hairline);
    font-family: var(--mono);
    font-size: clamp(110px, 17vw, 240px);
    font-weight: 600;
    letter-spacing: -0.12em;
    line-height: 0.8;
}

.error-screen__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.error-screen h1 {
    margin-bottom: 20px;
    font-size: clamp(42px, 5vw, 66px);
}

.error-screen p {
    max-width: 560px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: 18px;
}

.error-screen__signal {
    position: absolute;
    right: 0;
    bottom: 36px;
    display: flex;
    align-items: end;
    gap: 7px;
    height: 54px;
}

.error-screen__signal i {
    display: block;
    width: 4px;
    background: var(--hairline);
}

.error-screen__signal i:nth-child(1) { height: 10px; }
.error-screen__signal i:nth-child(2) { height: 18px; }
.error-screen__signal i:nth-child(3) { height: 28px; }
.error-screen__signal i:nth-child(4) { height: 40px; }
.error-screen__signal i:nth-child(5) { height: 54px; background: var(--error); }

/* Customer and administration workspace */
.muted {
    color: var(--muted);
}

.app-body {
    background: var(--quiet);
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    z-index: 150;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 240px;
    flex-direction: column;
    background: var(--canvas);
    border-right: 1px solid var(--hairline);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 0 24px;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.app-brand strong {
    font-family: var(--sans);
    font-size: 17px;
    letter-spacing: -0.03em;
}

.sidebar-context {
    padding: 28px 24px 14px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.09em;
}

.sidebar-nav {
    display: grid;
    margin-top: 8px;
}

.sidebar-link {
    position: relative;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 51px;
    padding: 0 24px;
    color: var(--muted);
    font-size: 14px;
    transition: background-color 150ms ease, color 150ms ease;
}

.sidebar-link::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--signal);
    content: "";
    opacity: 0;
}

.sidebar-link__icon,
.sidebar-secondary__icon {
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
}

.sidebar-link__icon svg,
.sidebar-secondary__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-link:hover,
.sidebar-link.is-active {
    background: var(--quiet);
    color: var(--ink);
}

.sidebar-link.is-active::before {
    opacity: 1;
}

.sidebar-secondary {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding: 20px 24px 24px;
    border-top: 1px solid var(--hairline);
}

.sidebar-secondary a,
.text-button {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: left;
}

.sidebar-secondary a,
.sidebar-secondary .text-button {
    gap: 12px;
}

.app-sidebar-backdrop {
    display: none;
}

.sidebar-secondary a:hover,
.text-button:hover {
    color: var(--signal);
}

.sidebar-secondary .text-button.is-confirming,
.sidebar-secondary .text-button.is-confirming:hover {
    color: var(--error);
}

.app-workspace {
    min-width: 0;
    margin-left: 240px;
}

.app-topbar {
    position: sticky;
    z-index: 90;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 clamp(24px, 4vw, 52px);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--hairline);
}

.app-breadcrumb {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.app-topbar-actions,
.button-row,
.receiver-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 40px;
    font-size: 11px;
}

.balance-link span {
    color: var(--muted);
}

.balance-link strong {
    color: var(--ink);
    font-size: 13px;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-control);
}

.icon-button:hover {
    border-color: var(--strong-line);
    color: var(--signal);
}

.app-menu-button {
    display: none;
}

.app-main {
    width: min(100%, 1500px);
    min-height: calc(100vh - 132px);
    margin-inline: auto;
    padding: clamp(32px, 4vw, 58px) clamp(24px, 4vw, 52px) 80px;
}

.app-main > .flash-stack {
    width: 100%;
    margin-bottom: 24px;
    padding-top: 0;
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 clamp(24px, 4vw, 52px);
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
}

.app-footer nav {
    display: flex;
    gap: 20px;
}

.app-footer a:hover {
    color: var(--signal);
}

.mobile-bottom-nav {
    display: none;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 52px;
}

.page-heading .section-coordinate {
    position: static;
    display: block;
    margin-bottom: 16px;
    font-size: 10px;
}

.page-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(42px, 5vw, 66px);
}

.page-heading.compact h1 {
    font-size: clamp(38px, 4vw, 54px);
}

.page-heading p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
}

.dashboard-heading {
    align-items: stretch;
}

.balance-panel {
    display: flex;
    min-width: 330px;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-panel);
}

.balance-panel > span {
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.balance-panel small {
    margin-bottom: 18px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.data-display {
    margin: 8px 0 2px;
    font-family: var(--mono);
    font-size: clamp(30px, 3vw, 42px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

.balance-panel__action {
    align-self: flex-start;
    margin-top: 20px;
}

.button-primary {
    background: var(--signal);
    color: #fff;
}

.button-primary:hover {
    background: var(--signal-deep);
}

.button-secondary {
    background: var(--canvas);
    border-color: var(--strong-line);
    color: var(--ink);
}

.button-secondary:hover {
    background: var(--hover);
    border-color: var(--ink);
}

.button-danger {
    background: var(--canvas);
    border-color: #efb7bd;
    color: var(--error);
}

.button-danger:hover {
    background: #fff5f6;
    border-color: var(--error);
}

.button-block {
    width: 100%;
}

.button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.dashboard-grid,
.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.85fr);
    gap: 24px;
    margin-bottom: 32px;
}

.ruled-section,
.quick-order-panel,
.number-receiver,
.otp-payload,
.event-timeline,
.funding-workspace,
.quote-ledger {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-panel);
}

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--hairline);
}

.section-heading-row h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.025em;
}

.section-heading-row > a {
    color: var(--muted);
    font-size: 12px;
}

.section-heading-row > a:hover {
    color: var(--signal);
}

.empty-state {
    display: flex;
    min-height: 148px;
    align-items: center;
    gap: 14px;
    padding: 28px 22px;
    color: var(--muted);
}

.empty-state p,
.empty-state h2 {
    margin: 0;
}

.empty-state a:not(.button) {
    margin-left: auto;
    color: var(--ink);
    font-weight: 600;
}

.empty-state .button {
    margin-left: auto;
    color: #fff;
}

.error-state {
    display: grid;
    grid-template-columns: 8px 1fr;
}

.error-state p {
    grid-column: 2;
}

.operation-list {
    display: grid;
}

.operation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 82px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--hairline);
    transition: background-color 150ms ease;
}

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

.operation-row:hover {
    background: var(--quiet);
}

.operation-row > div {
    display: grid;
    gap: 5px;
}

.operation-row > div:last-child {
    justify-items: end;
}

.operation-row strong {
    font-size: 15px;
}

.operation-row .mono {
    color: var(--muted);
    font-size: 11px;
}

.status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    white-space: nowrap;
}

.status-blue {
    background: var(--signal);
}

.status-green {
    background: var(--success);
}

.status-amber {
    background: var(--warning);
}

.status-red {
    background: var(--error);
}

.quick-order-panel {
    align-self: stretch;
    padding: 28px;
}

.quick-order-panel > span {
    display: block;
    margin-bottom: 36px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-order-panel h2 {
    margin-bottom: 14px;
    font-size: 30px;
}

.quick-order-panel p {
    margin-bottom: 28px;
    color: var(--muted);
}

.dashboard-operations {
    margin-bottom: 32px;
}

.ledger-section {
    margin-top: 24px;
}

.table-wrap {
    overflow-x: auto;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ledger-table th,
.ledger-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--hairline);
    font-size: 13px;
    white-space: nowrap;
}

.ledger-table th {
    height: 45px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.ledger-table td {
    height: 62px;
}

.ledger-table tbody tr:hover {
    background: var(--quiet);
}

.ledger-table tr:last-child td {
    border-bottom: 0;
}

.ledger-table .number {
    text-align: right;
}

.positive {
    color: var(--success);
}

.negative {
    color: var(--ink);
}

.notice {
    margin: 16px 0;
    padding: 13px 16px;
    background: var(--quiet);
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--signal);
    border-radius: 2px;
    color: var(--muted);
    font-size: 13px;
}

.notice-info {
    border-left-color: var(--signal);
}

.notice-warning {
    border-left-color: var(--warning);
}

.notice-error {
    border-left-color: var(--error);
    color: var(--ink);
}

.filter-toolbar {
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--hairline);
}

.filter-toolbar .field {
    min-width: 190px;
}

/* Purchase workbench */
.purchase-workbench {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
    gap: clamp(24px, 3vw, 38px);
    align-items: start;
}

.step-form {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-panel);
}

.workbench-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 22px;
    padding: 36px 30px;
    border-bottom: 1px solid var(--hairline);
}

.workbench-step:last-child {
    border-bottom: 0;
}

.step-index {
    color: var(--muted);
    font-size: 10px;
}

.workbench-step h2 {
    margin: 0 0 26px;
    font-size: 26px;
}

.workbench-step .field {
    gap: 10px;
}

.workbench-step > div > div.usa-options {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.workbench-step > div > div.usa-options .check-row {
    margin-top: 0;
}

.workbench-step > div > .field + .check-row {
    margin-top: 18px;
}

.workbench-step .field input,
.workbench-step .field select {
    min-height: 54px;
    padding-inline: 18px;
}

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

.asset-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-cell {
    position: relative;
    display: block;
    min-width: 0;
}

.choice-cell input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice-cell > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 16px;
    background: var(--canvas);
    border: 1px solid var(--strong-line);
    border-radius: var(--radius-control);
    transition: background-color 150ms ease, border-color 150ms ease;
}

.choice-cell input:checked + span {
    background: var(--signal-soft);
    border-color: var(--signal);
}

.choice-cell input:checked + span::before {
    opacity: 1;
}

.choice-cell input:focus-visible + span {
    outline: 3px solid rgba(36, 87, 255, 0.2);
    outline-offset: 2px;
}

.choice-cell--region > span {
    align-items: center;
    flex-direction: row;
    gap: 5px;
}

.choice-cell__region-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
}

.choice-cell__region-flag,
.choice-cell__region-globe {
    font-size: 23px;
    line-height: 1;
}

.choice-cell strong,
.choice-cell small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.choice-cell small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.check-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--signal);
}

.quote-ledger {
    position: sticky;
    top: 98px;
    overflow: hidden;
}

.quote-ledger dl {
    margin: 0;
}

.quote-ledger dl > div,
.bank-details > div,
.definition-list > div,
.crypto-destination dl > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: center;
    min-height: 58px;
    padding: 11px 20px;
    border-bottom: 1px solid var(--hairline);
}

.definition-list > div:last-child {
    border-bottom: 0;
}

.quote-ledger dt,
.bank-details dt,
.definition-list dt,
.crypto-destination dt {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.quote-ledger dd,
.bank-details dd,
.definition-list dd,
.crypto-destination dd {
    margin: 0;
    text-align: right;
}

.quote-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    padding: 16px 20px;
    background: var(--quiet);
    border-bottom: 1px solid var(--hairline);
}

.quote-total span {
    color: var(--muted);
    font-size: 12px;
}

.quote-total strong {
    font-family: var(--mono);
    font-size: 28px;
}

.quote-actions {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.quote-actions .notice,
.quote-actions form {
    margin: 0;
}

.quote-actions small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

/* Active receiver */
.receiver-layout {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr);
    gap: 28px;
    align-items: start;
}

.number-receiver,
.otp-payload {
    overflow: hidden;
    margin-bottom: 20px;
}

.receiver-meta,
.receiver-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 50px;
    padding: 0 20px;
    background: var(--quiet);
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 10px;
}

.copy-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 20px;
}

.phone-display {
    font-size: clamp(26px, 4vw, 46px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.05em;
}

.otp-display {
    color: var(--signal-deep);
    font-size: clamp(38px, 6vw, 72px);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.countdown-track {
    display: block;
    width: 100%;
    height: 3px;
    border: 0;
    border-radius: 0;
    appearance: none;
}

.countdown-track::-webkit-progress-bar {
    background: var(--hairline);
}

.countdown-track::-webkit-progress-value {
    background: var(--signal);
}

.countdown-track::-moz-progress-bar {
    background: var(--signal);
}

.otp-payload > p {
    padding: 0 20px 20px;
    color: var(--muted);
    font-size: 12px;
}

.listening-state {
    position: relative;
    display: grid;
    min-height: 180px;
    place-items: center;
    overflow: hidden;
    color: var(--muted);
}

.listening-state p {
    position: relative;
    z-index: 1;
}

.signal-scan {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--signal);
    animation: receiver-scan 2.7s ease-in-out infinite;
}

@keyframes receiver-scan {
    0% { opacity: 0; transform: translateY(0); }
    20% { opacity: 0.8; }
    80% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(178px); }
}

.receiver-actions {
    justify-content: flex-end;
}

.receiver-actions form {
    margin: 0;
}

.event-timeline {
    position: sticky;
    top: 98px;
    overflow: hidden;
}

.event-timeline ol {
    margin: 0;
    padding: 14px 20px 24px;
    list-style: none;
}

.event-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    min-height: 54px;
    padding: 12px 0 12px 19px;
    border-left: 1px solid var(--hairline);
}

.event-timeline li::before {
    position: absolute;
    top: 18px;
    left: -4px;
    width: 7px;
    height: 7px;
    background: var(--signal);
    content: "";
}

.event-timeline time {
    color: var(--muted);
    font-size: 9px;
}

.event-timeline strong {
    font-size: 13px;
}

/* Wallet and funding */
.wallet-heading h1 {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

.funding-workspace {
    overflow: visible;
    margin-bottom: 28px;
}

.funding-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--hairline);
}

.funding-tabs button {
    position: relative;
    min-height: 56px;
    background: var(--canvas);
    border: 0;
    border-radius: 0;
    color: var(--muted);
    font-weight: 600;
}

.funding-tabs button + button {
    border-left: 1px solid var(--hairline);
}

.funding-tabs button.is-active {
    color: var(--ink);
}

.funding-tabs button.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--signal);
    content: "";
}

.funding-panel {
    padding: 24px;
}

.funding-panel > .section-heading-row {
    margin: -24px -24px 24px;
}

.bank-details,
.definition-list,
.crypto-destination dl {
    margin: 0;
    border-top: 1px solid var(--hairline);
}

.account-number-row dd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.account-number-row strong {
    font-size: 20px;
    letter-spacing: 0.05em;
}

.crypto-form {
    display: grid;
    gap: 20px;
}

.paga-payment-form {
    display: grid;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

.paga-payment-form > .button {
    justify-self: start;
}

.crypto-destination {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 24px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
}

.qr-placeholder {
    display: grid;
    width: 150px;
    height: 150px;
    place-items: center;
    background: var(--quiet);
    border: 1px solid var(--strong-line);
    font-family: var(--mono);
    font-size: 11px;
}

.break-data {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.crypto-destination dd .text-button {
    margin-left: auto;
}

.crypto-claim-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.crypto-claim-form .button {
    justify-self: start;
}

.crypto-claims {
    margin-top: 28px;
    border-top: 1px solid var(--hairline);
}

.crypto-hash-cell {
    max-width: 180px;
}

.manual-review-actions,
.manual-review-actions form {
    display: grid;
    gap: 10px;
}

.manual-review-actions form {
    grid-template-columns: minmax(130px, 1fr) auto;
    align-items: end;
}

/* Settings */
.settings-grid {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.settings-content {
    display: grid;
    min-width: 0;
    gap: 22px;
}

.settings-index {
    position: sticky;
    top: 98px;
    display: grid;
    background: var(--canvas);
    border-top: 1px solid var(--strong-line);
}

.settings-index a {
    position: relative;
    min-height: 48px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--hairline);
    color: var(--muted);
    font-size: 13px;
}

.settings-index a.is-active {
    background: var(--quiet);
    color: var(--ink);
}

.settings-index a.is-active::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--signal);
    content: "";
}

.settings-grid .ruled-section {
    margin-bottom: 22px;
    padding-bottom: 24px;
}

.settings-content .ruled-section {
    margin-bottom: 0;
}

.settings-grid .ruled-section > h2,
.settings-grid .ruled-section > p {
    margin-right: 20px;
    margin-left: 20px;
}

.settings-grid .ruled-section > h2 {
    margin-top: 24px;
}

.settings-action {
    display: flex;
    align-items: center;
    margin: 20px;
}

.danger-zone {
    border-color: color-mix(in srgb, var(--error) 42%, var(--hairline));
}

.danger-zone h2 {
    color: var(--error);
}

.danger-zone > p {
    max-width: 760px;
    line-height: 1.65;
}

.account-deletion-flow {
    margin: 22px 20px 0;
}

.account-deletion-form {
    display: grid;
    max-width: 460px;
    gap: 16px;
}

.account-deletion-form .field-label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.account-deletion-otp {
    display: flex;
    max-width: 410px;
    gap: clamp(8px, 2vw, 14px);
}

.account-deletion-otp input {
    width: auto;
    min-width: 0;
    max-width: 48px;
    height: 58px;
    flex: 1 1 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--strong-line);
    border-radius: 0;
    color: var(--muted);
    caret-color: var(--signal);
    font-size: 25px;
    font-weight: 600;
    text-align: center;
    transition: border-color 150ms ease, color 150ms ease;
}

.account-deletion-otp input:focus {
    border-bottom-color: var(--signal);
    color: var(--signal);
    outline: 0;
}

.account-deletion-otp input.is-filled {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.account-deletion-otp input.is-filled:focus {
    border-bottom-color: var(--signal);
    color: var(--signal);
}

.account-deletion-otp.is-invalid input {
    border-bottom-color: var(--error);
}

.account-deletion-otp.is-submitting {
    opacity: 0.58;
    pointer-events: none;
}

.account-deletion-help,
.account-deletion-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.account-deletion-status {
    min-height: 19px;
    margin-top: 14px;
}

.account-deletion-status.is-success {
    color: var(--success);
}

.account-deletion-status.is-error {
    color: var(--error);
}

.password-reset-flow {
    margin: 22px 20px 0;
}

.password-reset-form {
    display: grid;
    max-width: 460px;
    gap: 16px;
}

.password-reset-form .field-label {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.password-reset-help,
.password-reset-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.password-reset-status {
    min-height: 19px;
    margin-top: 14px;
}

.password-reset-status.is-success { color: var(--success); }
.password-reset-status.is-error { color: var(--error); }

.password-reset-form .field { display: grid; gap: 8px; }
.password-reset-form .button { justify-self: start; }

.password-visibility-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.password-eye--closed { display: none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye--open { display: none; }
.password-visibility-toggle[aria-pressed="true"] .password-eye--closed { display: block; }

.password-field .password-visibility-toggle {
    min-width: 42px;
    padding: 0;
}

.password-field .password-visibility-toggle--bare {
    background: transparent;
}

.recovery-otp-form { gap: 14px; }
.recovery-code-note { margin: 0; color: var(--muted); font-size: 12px; }
.recovery-resend { justify-self: start; }
.recovery-status { margin-top: 18px; }

.mfa-flow {
    margin: 22px 20px 0;
}

.mfa-setup {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    max-width: 720px;
    gap: 24px 28px;
    align-items: start;
}

.mfa-qr-frame {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--hairline);
}

.mfa-qr-frame img { display: block; width: 100%; height: 100%; }
.mfa-setup-copy h3 { margin: 0 0 10px; font-size: 20px; }
.mfa-setup-copy p { margin: 0 0 14px; color: var(--muted); line-height: 1.55; }
.mfa-secret-label { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.mfa-secret { display: inline-block; max-width: 100%; padding: 10px 12px; background: var(--quiet); color: var(--ink); overflow-wrap: anywhere; letter-spacing: .08em; }
.mfa-code-form { display: grid; grid-column: 1 / -1; max-width: 460px; gap: 14px; }
.mfa-code-form .field-label { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.mfa-code-form > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 640px) {
    .mfa-setup { grid-template-columns: 1fr; }
    .mfa-code-form { grid-column: 1; }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--strong-line);
    background: var(--canvas);
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(280px, 2.2fr) repeat(3, 1fr);
    gap: 48px;
    padding: 74px 0 72px;
}

.brand--footer .brand__mark {
    width: 32px;
    height: 32px;
}

.site-footer__statement p {
    max-width: 380px;
    margin: 22px 0 0;
    color: var(--muted);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-column__title {
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column a {
    color: var(--muted);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--signal);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    border-top: 1px solid var(--hairline);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.03em;
}

.system-status:hover {
    color: var(--ink);
}

.whatsapp-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 160;
    display: inline-grid;
    width: 64px;
    height: 64px;
    place-items: center;
    background: #fff;
    color: #25d366;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(17, 19, 24, 0.14);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.whatsapp-widget:hover {
    transform: translateY(-1px);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.22);
    box-shadow: 0 22px 48px rgba(17, 19, 24, 0.18);
}

.whatsapp-widget__icon {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #25d366;
}

.whatsapp-widget__icon svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 1080px) {
    .site-navigation {
        gap: 26px;
    }

    .site-nav {
        gap: 22px;
    }

    .site-actions {
        gap: 14px;
        padding-left: 20px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
        gap: 42px;
        padding-left: 52px;
    }

    .outcome-row {
        grid-template-columns: 46px minmax(220px, 0.8fr) minmax(300px, 1.2fr);
    }

    .auth-shell {
        grid-template-columns: minmax(340px, 43%) minmax(460px, 57%);
    }

    .auth-brand__telemetry,
    .auth-brand__steps {
        grid-template-columns: 1fr;
    }

    .auth-brand__telemetry span,
    .auth-brand__steps li {
        min-height: 42px;
    }

    .auth-brand__telemetry span + span,
    .auth-brand__steps li + li {
        padding-left: 0;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }

    .purchase-workbench {
        grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
    }

    .asset-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .app-navigation-open {
        overflow: hidden;
    }

    .app-navigation-open .app-sidebar-backdrop {
        position: fixed;
        z-index: 140;
        top: 0;
        right: 0;
        bottom: 0;
        left: min(292px, calc(100vw - 42px));
        display: block;
        padding: 0;
        background: rgba(17, 19, 24, 0.28);
        border: 0;
    }

    .app-sidebar {
        width: min(292px, calc(100vw - 42px));
        transform: translateX(-102%);
        transition: transform 190ms ease;
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .app-workspace {
        margin-left: 0;
    }

    .app-menu-button {
        display: inline-grid;
    }

    .app-main {
        padding-bottom: 112px;
    }

    .mobile-bottom-nav {
        position: fixed;
        z-index: 120;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: 66px;
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--strong-line);
    }

    .mobile-bottom-nav a {
        position: relative;
        display: grid;
        place-items: center;
        color: var(--muted);
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-bottom-nav a svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.75;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-bottom-nav a.is-active {
        color: var(--signal);
    }

    .mobile-bottom-nav a.is-active::before {
        position: absolute;
        top: -1px;
        right: 20%;
        left: 20%;
        height: 2px;
        background: var(--signal);
        content: "";
    }

    .dashboard-grid,
    .admin-grid,
    .purchase-workbench,
    .receiver-layout {
        grid-template-columns: 1fr;
    }

    .quote-ledger,
    .event-timeline {
        position: static;
    }

    .quote-ledger {
        grid-row: 2;
    }

    .app-footer {
        padding-bottom: 66px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 64px;
        --page-gutter: 20px;
    }

    body.has-open-navigation .site-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
    }

    .site-header__inner {
        position: relative;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .site-navigation {
        position: absolute;
        top: 63px;
        right: calc(var(--page-gutter) * -1);
        left: calc(var(--page-gutter) * -1);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--page-gutter) 24px;
        background: var(--canvas);
        border-bottom: 1px solid var(--strong-line);
    }

    .js .site-navigation:not(.is-open) {
        display: none;
    }

    .site-nav,
    .site-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav a,
    .site-actions .text-action {
        min-height: 58px;
        border-bottom: 1px solid var(--hairline);
        font-size: 16px;
    }

    .site-nav a::after,
    .site-actions .text-action::after {
        top: 0;
        right: auto;
        bottom: 0;
        left: -20px;
        width: 2px;
        height: auto;
        transform: none;
    }

    .site-actions {
        align-self: auto;
        padding: 10px 0 0;
        border: 0;
    }

    .site-actions .button {
        margin-top: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
        min-height: 0;
        padding: 70px 0 76px 38px;
    }

    .hero__copy h1,
    .page-intro h1 {
        font-size: clamp(45px, 12vw, 62px);
    }

    .number-console {
        margin-left: -38px;
    }

    .availability-tape__inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .availability-tape__item:nth-child(4) {
        border-left: 1px solid var(--hairline);
    }

    .availability-tape__item:nth-child(n + 4) {
        border-top: 1px solid var(--hairline);
    }

    .section-heading--split,
    .trust-section__grid,
    .page-intro {
        grid-template-columns: 1fr;
    }

    .section-heading--split {
        gap: 28px;
    }

    .process-line {
        grid-template-columns: 1fr;
        border-top: 0;
        border-left: 1px solid var(--strong-line);
    }

    .process-line li,
    .process-line li + li {
        min-height: 0;
        padding: 8px 0 44px 34px;
        border: 0;
    }

    .process-line li::before,
    .process-line li + li::before {
        top: 4px;
        left: -4px;
    }

    .process-line h3 {
        margin-top: 22px;
    }

    .trust-section__grid {
        gap: 54px;
    }

    .outcome-row {
        grid-template-columns: 42px 1fr;
        gap: 20px;
    }

    .outcome-row > :last-child {
        grid-column: 2;
    }

    .page-intro {
        gap: 42px;
        min-height: 0;
        padding: 72px 0 64px 38px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        display: block;
        min-height: 100vh;
        padding-top: 28px;
    }

    .auth-form-panel__mobile-logo {
        display: inline-flex;
        margin-bottom: 70px;
    }

    .auth-form-wrap,
    .auth-form-wrap--register {
        margin-inline: auto;
    }

    .error-screen {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 540px;
    }

    .error-screen__code {
        font-size: 110px;
    }

    .site-footer__main {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .site-footer__statement {
        grid-column: 1 / -1;
        margin-bottom: 22px;
    }

    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .balance-panel {
        width: 100%;
        min-width: 0;
    }

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

    .support-layout {
        grid-template-columns: 1fr;
    }

    .support-form-card {
        grid-row: 1;
    }

    .support-guidance {
        grid-row: 2;
    }

    .settings-index {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-index a + a {
        border-left: 1px solid var(--hairline);
    }
}

/* Automatic dark theme. The shared surface tokens keep public, auth, and
   workspace screens visually consistent with the device appearance setting. */
@media (prefers-color-scheme: dark) {
    :root {
        --canvas: #0d0f13;
        --quiet: #151820;
        --hover: #1c212a;
        --ink: #f4f6f8;
        --muted: #a6afbb;
        --hairline: #292f38;
        --strong-line: #444c58;
        --signal: #6f8cff;
        --signal-deep: #9aafff;
        --signal-soft: #1a2448;
        --success: #45c98a;
        --warning: #e3a64d;
        --error: #ff7480;
        color-scheme: dark;
    }

    body.page-home-stitch,
    .stitch-header {
        --home-bg: #0d0f13;
        --home-surface: #151820;
        --home-surface-strong: #1c212a;
        --home-text: #f4f6f8;
        --home-muted: #a6afbb;
        --home-rule: #292f38;
        --home-blue: #6f8cff;
    }

    .stitch-header,
    .site-header,
    .app-topbar {
        background: rgba(13, 15, 19, 0.96);
    }

    .stitch-navigation,
    .site-navigation,
    .mobile-bottom-nav {
        background: var(--canvas);
    }

    .stitch-services,
    .stitch-button--outline,
    .stitch-reason-card,
    .service-directory__search input,
    .service-directory__filters button,
    .service-directory__routes span,
    .status-page__summary {
        background: var(--home-bg);
    }

    .stitch-app:hover {
        background: var(--home-surface-strong);
    }

    .stitch-button--dark,
    .button--dark {
        border-color: #39414d;
    }

    .service-directory__notice {
        background: #271f12;
        border-color: #6c5428;
        color: #f1c879;
    }

    .button-danger {
        background: var(--canvas);
        border-color: #743c44;
    }

    .button-danger:hover {
        background: #29171b;
    }

    .verify-email-stage {
        background:
            linear-gradient(rgba(68, 76, 88, 0.34) 1px, transparent 1px),
            linear-gradient(90deg, rgba(68, 76, 88, 0.34) 1px, transparent 1px),
            var(--quiet);
    }

    .verify-email-card,
    .toast-notice {
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    }

    img[src$="logo-mark-black.png"] {
        filter: invert(1);
    }

    .whatsapp-widget {
        background: var(--dark-bg);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    }
}

@media (max-width: 620px) {
    .toast-stack {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }

    .toast-notice {
        font-size: 12px;
    }

    .settings-action .button {
        width: 100%;
    }

    .support-field-grid {
        grid-template-columns: 1fr;
    }

    .support-contact-form > .button {
        width: 100%;
    }

    .hero,
    .page-intro {
        padding-left: 32px;
    }

    .number-console {
        margin-left: -32px;
    }

    .section-coordinate i {
        height: 38px;
    }

    .hero__copy h1,
    .page-intro h1 {
        font-size: clamp(43px, 13vw, 54px);
    }

    .hero__lede {
        font-size: 17px;
    }

    .action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .action-row .button {
        width: 100%;
    }

    .trust-line {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .trust-line i {
        display: none;
    }

    .number-console__head {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        min-height: 62px;
    }

    .console-ledger > div {
        grid-template-columns: 104px 1fr;
    }

    .console-ledger dd {
        font-size: 12px;
    }

    .availability-tape__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .availability-tape__item:nth-child(n + 3) {
        border-top: 1px solid var(--hairline);
    }

    .process-section,
    .outcomes,
    .faq {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .section-heading h2,
    .trust-section h2 {
        font-size: 38px;
    }

    .trust-section__grid {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .outcome-row {
        grid-template-columns: 28px 1fr;
        padding: 30px 0;
    }

    .outcome-row h3 {
        font-size: 24px;
    }

    .ledger-states {
        grid-template-columns: 1fr;
    }

    .ledger-states span {
        min-height: 52px;
    }

    .ledger-states span + span {
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }

    .faq-list summary {
        grid-template-columns: 30px 1fr 20px;
        min-height: 76px;
        font-size: 16px;
    }

    .faq-list details > div {
        padding: 0 26px 24px 48px;
    }

    .faq-page__heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-page__heading > p {
        margin: 0;
    }

    .faq-page__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination {
        justify-content: space-between;
    }

    .auth-form-panel__mobile-logo {
        margin-bottom: 54px;
    }

    .auth-form-heading h2 {
        font-size: 40px;
    }

    .auth-form {
        gap: 20px;
    }

    .error-screen {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .site-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 42px 28px;
        padding: 58px 0;
    }

    .site-footer__statement {
        grid-column: 1 / -1;
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        min-height: 82px;
    }

    .whatsapp-widget {
        right: 16px;
        bottom: calc(82px + env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
    }

    .app-topbar {
        min-height: 64px;
        padding-inline: 16px;
    }

    .app-breadcrumb {
        display: none;
    }

    .balance-link {
        gap: 0;
    }

    .balance-link span {
        display: none;
    }

    .app-main {
        padding: 30px 16px 102px;
    }

    .app-footer {
        display: none;
    }

    .page-heading {
        margin-bottom: 34px;
    }

    .page-heading h1,
    .page-heading.compact h1 {
        font-size: 38px;
    }

    .balance-panel,
    .quick-order-panel {
        padding: 22px;
    }

    .button-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 64px;
        padding: 15px 16px;
    }

    .empty-state {
        align-items: flex-start;
        flex-wrap: wrap;
        min-height: 126px;
        padding: 24px 16px;
    }

    .empty-state a:not(.button) {
        width: 100%;
        margin-left: 20px;
    }

    .empty-state .button {
        width: 100%;
        margin-left: 0;
    }

    .operation-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }

    .operation-row > div:last-child {
        grid-template-columns: 1fr auto;
        justify-items: start;
    }

    .ledger-table {
        min-width: 720px;
    }

    .filter-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 16px;
    }

    .filter-toolbar .field {
        width: 100%;
        min-width: 0;
    }

    .workbench-step {
        grid-template-columns: 34px 1fr;
        gap: 12px;
        padding: 28px 20px;
    }

    .choice-grid,
    .asset-grid {
        grid-template-columns: 1fr;
    }

    .copy-data-row {
        align-items: stretch;
        flex-direction: column;
        padding: 24px 16px;
    }

    .copy-data-row .button {
        width: 100%;
    }

    .phone-display {
        font-size: 28px;
    }

    .otp-display {
        font-size: 48px;
    }

    .receiver-meta,
    .receiver-status {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        min-height: 62px;
        padding: 10px 16px;
    }

    .receiver-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .receiver-actions .button,
    .receiver-actions form {
        width: 100%;
    }

    .event-timeline li {
        grid-template-columns: 66px 1fr;
    }

    .funding-panel {
        padding: 18px 16px;
    }

    .funding-panel > .section-heading-row {
        margin: -18px -16px 20px;
    }

    .bank-details > div,
    .crypto-destination dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
        align-items: start;
        padding: 14px 0;
    }

    .definition-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
        min-height: 72px;
        padding: 16px 20px;
    }

    .bank-details dd,
    .definition-list dd,
    .crypto-destination dd {
        text-align: left;
    }

    .account-number-row dd {
        align-items: stretch;
        flex-direction: column;
    }

    .crypto-destination {
        grid-template-columns: 1fr;
    }

    .settings-index {
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
