@font-face {
  font-family: Geist;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --surface: #131517;
  --raised: #191c1e;
  --line: #303435;
  --text: #f2f4f3;
  --muted: #a5adaa;
  --green: #65dfb0;
  --amber: #edc381;
  --red: #f1a4a4;
  font: 400 16px/1.55 Geist, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.13; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.15rem); letter-spacing: -.055em; }
h2 { font-size: 1.38rem; letter-spacing: -.033em; }
h3 { font-size: 1.02rem; letter-spacing: -.015em; }
.frame { width: min(calc(100% - 2.5rem), 68rem); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header .frame, .footer .frame { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header .frame { min-height: 4.55rem; }
.header nav { display: flex; gap: .85rem; align-items: center; }
.header nav a, .footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: 1.23rem; font-weight: 560; letter-spacing: -.055em; }
.brand img { width: 2rem; height: 2rem; }
.brand .brand-tail { color: var(--muted); }
.where { margin-left: .85rem; padding-left: 1rem; border-left: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.brand-wrap { display: flex; align-items: center; }
.footer { margin-top: 4rem; border-top: 1px solid var(--line); }
.footer .frame { padding-block: 1.35rem; color: var(--muted); font-size: .77rem; }
.footer a:hover, .quiet-link:hover { color: var(--text); }
.auth-layout { max-width: 59rem; margin: clamp(2.25rem, 8vh, 6rem) auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(20rem,1fr); }
.intro { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: clamp(1.75rem, 4.8vw, 3.25rem); background: #10251e; border: 1px solid #315044; border-radius: 1.6rem 0 0 1.6rem; }
.intro::before, .intro::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.intro::before { background: radial-gradient(ellipse 84% 69% at 20% 0%, #3c8066 0%, #1c4836 44%, transparent 100%); }
.intro::after { opacity: .38; mask-image: linear-gradient(155deg,#000, transparent 57%); background-image: radial-gradient(#bcf4ce75 .7px, transparent 1px); background-size: 11px 11px; }
.intro-art { display: block; width: min(11rem,60%); height: auto; margin-block: .2rem auto; padding-bottom: 2.5rem; color: #a6f9cd; }
.intro h1 { max-width: 9ch; }
.intro .lead { max-width: 33ch; color: #bacfc3; }
.lead { color: var(--muted); margin-top: 1rem; line-height: 1.55; }
.auth-card { padding: clamp(1.6rem, 4.2vw, 3.25rem); background: var(--surface); border: 1px solid var(--line); border-left: 0; border-radius: 0 1.6rem 1.6rem 0; align-content: center; min-width: 0; }
.auth-card h2 { font-size: 1.65rem; }
.auth-card > p { color: var(--muted); margin-top: .65rem; }
.auth-card .form { margin-top: 1.65rem; }
.form { display: grid; gap: 1.15rem; }
.field { min-width: 0; display: grid; gap: .4rem; align-content: start; }
.field label { font-size: .85rem; font-weight: 540; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; border: 1px solid #3b413e; border-radius: .65rem; padding: .69rem .82rem; color: var(--text); background: #0e1010; min-height: 2.85rem;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); outline: 2px solid #60dfa133; outline-offset: 0; }
.field input::placeholder { color: #737d78; }
.auth-links { display: grid; justify-items: start; gap: .5rem; }
#account-entry .support { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.15rem; }
#account-form { margin-top: 1.5rem; }
#account-form .alert { margin: 0; }
#account-form [role="status"]:empty { display: none; }
.btn:disabled { color: var(--muted); background: #303632; cursor: wait; }
.hint, .helptext, .support, .subtle { color: var(--muted); font-size: .84rem; }
.hint, .helptext { font-size: .765rem; }
.verification-check { display: grid; gap: .4rem; min-width: 0; }
.portal-symbols { position: absolute; }
.verification-check [data-verification-widget] { min-width: 0; overflow-x: auto; }
.verification-check .hint:empty { display: none; }
.verification-check .verification-retry { justify-self: start; padding: .25rem 0; background: transparent; color: var(--green); border: 0; text-decoration: underline; text-underline-offset: .2em; }
.errorlist { margin: 0; padding: 0; list-style: none; font-size: .84rem; color: var(--red); }
.field:has(.errorlist) :is(input, textarea, select) { border-color: var(--red); }
.auth-card .support { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.15rem; }
.support a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: .17em; }
.btn { min-height: 2.6rem; display: inline-flex; gap: .45rem; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 50rem; background: var(--text); color: #0d1310; text-decoration: none; padding: .55rem 1.12rem; font-size: .88rem; font-weight: 560; line-height: 1.25; }
.btn:hover { background: #d0e3d7; }
.btn.second { color: var(--text); background: transparent; border-color: var(--line); }
.btn.second:hover { border-color: #78867e; background: var(--raised); }
.btn.small { min-height: 2.1rem; padding: .4rem .8rem; font-size: .78rem; }
.btn.negative { background: transparent; border-color: #583838; color: var(--red); }
.btn.negative:hover { background: #321e20; }
.btn.positive { background: #193a30; border-color: #295744; color: #9aeac6; }
.btn.positive:hover { background: #214936; }
.quiet-link { color: var(--muted); font-size: .84rem; text-decoration: none; }
.icon { width: 1.07em; height: 1.07em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.wide { width: 100%; }
.content { padding-top: clamp(2.25rem, 6vh, 4.5rem); }
.title-row, .card-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.title-row { align-items: center; margin-bottom: 2.2rem; }
.title-row h1 { font-size: clamp(2.15rem,4.3vw,3.4rem); }
.title-row .lead { margin-top: .65rem; }
.card-head { align-items: center; margin-bottom: 1.1rem; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1.22rem; padding: clamp(1.15rem,3vw,1.8rem); }
.panel + .panel { margin-top: 1rem; }
.panel h2 + p { margin-top: .5rem; }
.panel-inner { margin-top: 1.2rem; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric { padding: 1.25rem 1.45rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--surface); }
.metric p { color: var(--muted); font-size: .83rem; }
.metric strong { display: block; font-size: 1.55rem; font-weight: 530; margin-top: .4rem; letter-spacing: -.04em; }
.badge { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #444b47; color: #c0c9c3; background: #1d2120; padding: .24rem .66rem; border-radius: 99px; font-size: .76rem; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; background: currentColor; width: .43rem; height: .43rem; border-radius: 50%; }
.badge.approved, .badge.active { color: var(--green); background: #142a21; border-color: #2d4a3b; }
.badge.pending { color: var(--amber); background: #2d2518; border-color: #51432c; }
.badge.rejected, .badge.suspended, .badge.revoked { color: var(--red); background: #2d2020; border-color: #513435; }
.alert { margin: 1rem 0; border: 1px solid #3e5548; background: #17251b; color: #d4e6d8; border-radius: .78rem; padding: .85rem 1rem; font-size: .88rem; }
.alert.error, .alert.warning { color: var(--red); border-color: #563d3f; background: #291f20; }
.alert p + p { margin-top: .34rem; }
.secret { padding: 1.1rem; border-radius: .85rem; background: #10271e; border: 1px solid #315542; margin: 1rem 0; }
.secret h2, .secret h3 { color: #c8f4d8; }
.secret .subtle { margin: .35rem 0 .85rem; color: #b1c8b8; }
.secret-value, code, .mono { font-family: "Geist Mono", ui-monospace, monospace; }
.secret-value { display: block; word-break: break-all; white-space: pre-wrap; user-select: all; background: #0d1712; color: #ecfff0; border: 1px solid #2f4336; border-radius: .5rem; padding: .72rem; font-size: .85rem; }
.secret-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: .72rem; }
.copy-status { color: #b8d6c5; font-size: .8rem; }
.details { margin: 0; }
.details > div { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem .8rem; padding: .72rem 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border: 0; }
.details dt { color: var(--muted); font-size: .85rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.key-form { display: grid; max-width: 36rem; gap: 1rem; padding: 1.2rem 0; }
.key-form .btn { justify-self: start; }
.scopes { display: flex; flex-wrap: wrap; gap: .4rem .9rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.scopes legend { margin-bottom: .32rem; padding: 0; font-size: .82rem; font-weight: 550; }
.scopes label { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .84rem; cursor: pointer; }
.scopes input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--green); }
.table-scroll { overflow-x: auto; margin-top: .8rem; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; text-align: left; }
th { color: var(--muted); font-size: .76rem; font-weight: 500; }
th, td { padding: .82rem .65rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
td code { font-size: .79rem; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: .42rem; padding: 1.05rem 0 .4rem; color: var(--muted); font-size: .88rem; }
.empty strong { color: var(--text); font-weight: 500; }
.apps { display: grid; gap: .8rem; margin-top: 1rem; }
.app-card { padding: 1.05rem; border: 1px solid var(--line); border-radius: .85rem; background: #101213; }
.app-card .details { margin: .5rem 0; }
.app-card .details > div { justify-content: flex-start; }
.app-card dt { min-width: 6rem; }
.app-card .card-head, .app-card h3 + p { margin-bottom: 0; }
.app-card .actions { margin-top: .85rem; }
.skip-link { position: absolute; top: .4rem; left: .4rem; z-index: 4; transform: translateY(-150%); padding: .55rem .85rem; color: black; background: white; border-radius: .6rem; }
.skip-link:focus { transform: none; }
[hidden] { display: none !important; }
.merchant-signin { background: #070709; }
.merchant-signin .header { position: absolute; left: 0; top: 0; width: 50%; z-index: 2; border: 0; }
.merchant-signin .header .frame { width: 100%; padding: 1.65rem clamp(1.6rem,3.2vw,3.1rem); min-height: 0; }
.merchant-signin .header .brand { font-size: 1.35rem; }
.merchant-signin main.frame { width: 100%; max-width: none; margin: 0; position: relative; }
.merchant-signin main.frame > [aria-live] { position: absolute; top: 4.8rem; left: 1.5rem; width: min(27rem,calc(50% - 3rem)); z-index: 2; }
.merchant-signin .auth-layout {
  min-height: 100vh; min-height: 100svh; max-width: none; margin: 0;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
}
.merchant-signin .auth-card {
  grid-area: 1 / 1; width: min(24rem,calc(100% - 4rem)); justify-self: center; align-self: center;
  padding: 6.8rem 0; border: 0; border-radius: 0; background: none;
}
.merchant-signup .auth-card { width: min(32rem,calc(100% - 4rem)); padding-block: 6.3rem 3.5rem; }
.application-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; }
.application-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 0 0 1.8rem; padding: 0; list-style: none; }
.application-steps li { border-top: 3px solid #33383a; padding-top: .6rem; font-size: .8rem; font-weight: 500; color: #b0b6b5; }
.application-steps li span { display: block; font: 500 .65rem/1.6 "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.application-steps li[aria-current] { border-color: var(--green); color: #96ebc5; }
.merchant-signup #application-fields {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: inherit;
  min-inline-size: 0; margin: 0; padding: 0; border: 0;
}
.merchant-signup #password-hint { margin: 0; font-size: .8125rem; line-height: 1.45; }
.merchant-signin h1 { font-weight: 620; font-size: 1.875rem; letter-spacing: -.045em; }
.merchant-signin .login-intro { color: var(--muted); margin-top: .45rem; font-size: .875rem; }
.merchant-signin #account-form { gap: 1rem; margin-top: 1.65rem; }
.merchant-signin .field input:not([type=checkbox]), .merchant-signup .field textarea {
  min-height: 2.3rem; padding: .35rem .75rem; border-radius: .65rem;
  background: #111113; border-color: #2b2b2e;
}
.merchant-signup .field textarea { min-height: 3.8rem; }
.merchant-signin .field input:focus-visible, .merchant-signup .field textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.merchant-signin #account-submit { min-height: 2.3rem; background: #f4f5f7; color: #111513; }
.merchant-signin #account-submit:hover { background: #daf5e8; }
.merchant-signin #account-submit:disabled { color: var(--muted); background: #303632; }
.forgot-link, .login-secondary a { color: var(--muted); font-size: .8rem; text-decoration: none; }
.forgot-link { justify-self: start; }
.forgot-link:hover, .login-secondary a:hover { color: var(--text); text-decoration: underline; }
.merchant-signin #account-entry .support { margin: 1.35rem 0 0; padding: 0; border: none; justify-items: center; text-align: center; }
.policy-consent { display: flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.policy-consent input { flex: none; width: 1rem; height: 1rem; margin: .12rem 0 0; accent-color: var(--green); cursor: pointer; }
.policy-consent label { cursor: pointer; }
.policy-consent a { color: var(--text); text-underline-offset: .15em; }
.login-policies { display: flex; flex-wrap: wrap; justify-content: center; column-gap: .85rem; margin-top: .65rem; }
.login-policies a { display: inline-flex; align-items: center; min-height: 1.65rem; color: var(--muted); font-size: .75rem; }
.policy-consent a:hover, .login-policies a:hover { color: var(--green); }
.login-secondary {
  grid-area: 1 / 1; align-self: end; justify-self: start;
  margin: 1.4rem clamp(1.6rem,3.2vw,3.1rem);
}
.login-secondary a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2rem; }
.login-art {
  grid-area: 1 / 2; display: grid; place-items: center; text-align: center;
  align-self: start; position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; isolation: isolate; border-left: 1px solid #232829;
  background:
    radial-gradient(ellipse 64% 42% at 42% -8%, #163c2e, transparent 100%),
    radial-gradient(ellipse 76% 64% at 84% 98%, #173c31, transparent 100%),
    #101214;
}
.login-art::before {
  content: ""; position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 25% at 40% 44%, #42be873b, transparent 95%),
    radial-gradient(ellipse 42% 48% at 64% 62%, #198d6b52, transparent 86%);
}
@media (prefers-reduced-motion: no-preference) {
  .login-art::before { animation: merchant-light 8s ease-in-out -3s infinite alternate; }
}
@keyframes merchant-light {
  from { transform: translate(-14%,-9%) rotate(-18deg); }
  to { transform: translate(13%,10%) rotate(14deg); }
}
.auth-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login-wordmark { position: relative; width: min(100%,36rem); padding: 1rem 2rem; }
.login-wordmark .brand { font-size: 1.22rem; }
.login-wordmark .brand img { width: 1.8rem; height: 1.8rem; }
.login-wordmark p {
  margin: 1.2rem auto 0; font-size: clamp(2rem,3.4vw,3rem); line-height: 1.05;
  font-weight: 600; letter-spacing: -.055em; color: #edf5f0;
  background: linear-gradient(#f2f7f4 10%,#b6c4bd 100%); background-clip: text; -webkit-text-fill-color: transparent;
}
.login-wordmark small { display: block; max-width: 36ch; margin: .85rem auto 0; color: #b6c3bc; font-size: .975rem; }
@media (max-width: 670px) {
  .frame { width: min(calc(100% - 1.75rem),36rem); }
  .auth-layout { display: block; margin: 1.35rem auto; }
  .intro { padding: 1.65rem; min-height: 12rem; border-radius: 1.15rem 1.15rem 0 0; }
  .intro-art { position: absolute; right: -1.2rem; top: -.3rem; width: 9rem; opacity: .24; z-index: -1; transform: rotate(-8deg); }
  .intro h1 { max-width: 15ch; }
  .auth-card { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 1.15rem 1.15rem; }
  .where { display: none; }
  .header nav { justify-content: flex-end; flex-wrap: wrap; column-gap: .65rem; row-gap: .2rem; padding-block: .5rem; }
  .header nav .quiet-link { font-size: .75rem; }
  .title-row { margin-bottom: 1.35rem; }
  .metric-grid { gap: .6rem; }
  .metric { padding: 1rem; }
  .footer { margin-top: 2.2rem; }
}
@media (max-width: 1023px) {
  .merchant-signin .header { width: 100%; }
  .merchant-signin .header .frame { max-width: none; padding: 1.3rem 1.45rem; }
  .merchant-signin main.frame > [aria-live] { width: calc(100% - 3rem); }
  .merchant-signin .auth-layout { display: grid; grid-template-columns: minmax(0,1fr); }
  .merchant-signin .auth-card { width: min(24rem,calc(100% - 2.9rem)); padding: 6.2rem 0 5rem; }
  .merchant-signup .auth-card { width: min(32rem,calc(100% - 2.9rem)); padding-bottom: 2.8rem; }
  .login-art { display: none; }
}
@media (max-width: 639px) {
  .application-row { grid-template-columns: minmax(0,1fr); }
  .application-steps { gap: .5rem; }
  .application-steps li { font-size: .75rem; }
}
