:root {
  color-scheme: dark;
  --canvas: #1f1f21;
  --panel: #29292d;
  --border: #48484d;
  --ink: #1f1f21;
  --white: #f8f9f5;
  --muted: #bdbfc0;
  --lime: #cbf146;
  --error: #ffb5a9;
  font: 16px/1.45 "Avenir Next", "Segoe UI", Arial, sans-serif;
  background: var(--canvas);
  color: var(--white);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
h1, h2, p, dl, dd { margin: 0; overflow-wrap: anywhere; }
.shell { width: min(100% - 36px, 970px); margin-inline: auto; }
.top { border-bottom: 1px solid #38383d; }
.topline { min-height: 66px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.025em; text-decoration: none; color: var(--white); }
.mark { display: block; width: 32px; height: 32px; border-radius: 11px; background: var(--lime); position: relative; flex: none; }
.mark::before, .mark::after { content: ""; position: absolute; left: 9px; width: 14px; height: 2px; border-radius: 1px; transform: rotate(-37deg); background: var(--ink); }
.mark::before { top: 12px; }
.mark::after { top: 18px; }
.demo-label { color: var(--muted); font-size: .81rem; white-space: nowrap; }
.workspace { display: grid; gap: 16px; padding-block: 29px 40px; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .025em; color: var(--lime); }
h1 { margin-top: 6px; font-size: clamp(2.35rem, 10vw, 4.4rem); line-height: .99; letter-spacing: -.065em; font-weight: 750; }
.intro-copy { max-width: 34ch; margin-top: 12px; color: var(--muted); }
.panel { min-width: 0; background: var(--panel); border: 1px solid var(--border); padding: 17px; border-radius: 21px; }
.panel h2 { font-size: 1.45rem; line-height: 1.12; letter-spacing: -.045em; }
.panel p { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 18px; background: var(--canvas); }
.modes button { border: 0; border-radius: 9px; min-height: 44px; background: transparent; color: var(--muted); font-size: .91rem; font-weight: 700; }
.modes button[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.modes button[aria-pressed="true"]:focus-visible, a.primary:focus-visible, button.primary:focus-visible { outline-color: var(--white); }
label:not(.check) { margin: 13px 0 5px; display: block; font-size: .88rem; font-weight: 700; }
input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #777980; border-radius: 10px; background: var(--canvas); color: var(--white); padding: 9px 11px; }
input::placeholder { color: #a9abac; }
input[aria-invalid="true"] { border-color: var(--error); }
input[autocomplete="one-time-code"] { font-variant-numeric: tabular-nums; letter-spacing: .18em; }
.primary, .secondary { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 11px 13px; text-align: left; border-radius: 11px; border: 1px solid transparent; text-decoration: none; font-size: .95rem; font-weight: 700; }
.primary { margin-top: 16px; color: var(--ink); background: var(--lime); }
.primary:hover { background: #dbfa74; }
.secondary { margin-top: 9px; color: var(--white); border-color: #777980; }
button:disabled { opacity: .6; cursor: default; }
.check { display: flex; min-height: 45px; gap: 9px; align-items: center; font-size: .88rem; }
.check input { accent-color: var(--lime); width: 19px; height: 19px; margin: 0; }
.minor-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.subtle { min-height: 44px; padding: 4px 0; text-align: left; border: 0; background: transparent; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.notice:empty { display: none; }
.panel .error { color: var(--error); }
.code-sample { margin-top: 14px; border-radius: 10px; background: #34382b; border: 1px solid #667349; padding: 10px 12px; }
.code-sample > span { color: var(--white); font-size: .85rem; }
.code-sample strong { display: block; color: var(--lime); font-size: 1.2rem; letter-spacing: .19em; }
.code-sample p { margin-top: 4px; }
.help { color: var(--muted); font-size: .9rem; }
.help summary { min-height: 44px; align-content: center; font-weight: 700; }
.help p { margin-top: 8px; }
.help a { color: var(--lime); }
#ready-step .eyebrow, .receipt-panel .eyebrow { margin: 0 0 6px; color: var(--lime); }
.receipt-panel dl { margin-top: 17px; }
.receipt-panel dl div { border-top: 1px solid var(--border); padding-block: 9px; }
.receipt-panel dt { color: var(--muted); font-size: .8rem; }
.receipt-panel dd { font-weight: 700; }
.receipt-panel code { font-size: .95rem; overflow-wrap: anywhere; }
@media (min-width: 750px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); gap: 18px 38px; padding-top: 68px; }
  .intro { padding-top: 17px; }
  .panel { padding: 23px; }
  .help { grid-column: 2; }
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --canvas: #f5f6f1; --panel: #fff; --white: #1f1f21; --muted: #50534f; --border: #c7cbc1; --error: #9a2a20; }
  .top { border-color: var(--border); }
  .eyebrow, #ready-step .eyebrow, .receipt-panel .eyebrow, .help a { color: #3d520e; }
  input::placeholder { color: #62665f; }
  :focus-visible { outline-color: #415712; }
  .code-sample { background: #edf3d8; }
  .code-sample strong { color: #3d520e; }
}

/* The official square originals have transparent margins. Keep the artwork at
   its native aspect ratio and show its full ink bounds in a compact lockup. */
.club-logo { display: inline-block; position: relative; overflow: hidden; width: 70px; height: 30px; flex: none; vertical-align: middle; }
.club-logo img { position: absolute; width: 173.6%; height: auto; max-width: none; left: -45.1%; top: -149%; }
.club-credit { display: flex; gap: 12px; align-items: center; margin-block: 24px 8px; color: var(--muted); }
.club-credit .club-logo { width: 65px; height: 28px; }
