/* The one stylesheet of every auth page (sign-in, number, landing, consent, sign-up, invite request, Where to?, GATE ID). */
@font-face { font-family: "Outfit"; src: url(Outfit.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url(Geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --bg: oklch(98.4% .006 85); --sunk: oklch(96.6% .009 82); --panel: oklch(99.3% .004 85); --panel-2: oklch(97.2% .009 82);
  --card: oklch(95.4% .012 80); --card-2: oklch(92.8% .017 78);
  --ink: oklch(22% .014 60); --ink-2: oklch(31% .014 60); --ink-3: oklch(40% .014 62);
  --muted: oklch(52% .014 70); --muted-2: oklch(68% .012 75);
  --line: oklch(90.6% .012 80); --line-soft: oklch(94% .01 80);
  --accent-2: oklch(52% .11 65); --gold-dp: #B87F3C; --ok: #22C55E; --ok-ink: #15803d;
  --warn-ink: #8A5A12; --danger: #6E2620;
  --display: "Outfit", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden], .is-hidden { display: none !important; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

/* page frame */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px; }
.page-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 28px; color: var(--muted-2); font-size: 12.5px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.brand-logo { height: 28px; display: block; }
.brand .brand-logo { height: 18px; }
.brand-logo-ink { filter: brightness(0); }
.knit { display: inline-block; border-radius: 50%; background: url(knit.jpg) center/cover; box-shadow: 0 .08em .3em -.05em #4e341f47, inset 0 0 0 1px #ffffff59; flex-shrink: 0; }
.brand .knit { width: 30px; height: 30px; }
.console { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ok) 18%, transparent); }
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* card */
.card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 34px 32px 30px; box-shadow: 0 24px 60px -28px oklch(30% .03 60 / .22); }
.card-wide { max-width: 520px; }
.card-head { text-align: center; margin-bottom: 22px; }
.card-head .knit { width: 64px; height: 64px; margin-bottom: 18px; }
.card-head .card-logo { height: 44px; max-width: 100%; margin-bottom: 18px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent, var(--accent-2)); }
.card h1 { font-family: var(--display); font-weight: 500; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 8px; overflow-wrap: anywhere; }
.card-head p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.card-head p strong { color: var(--ink); font-weight: 600; }
.card-head p + p { margin-top: 6px; }
.badge { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.badge svg { width: 26px; height: 26px; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.badge.success { background: color-mix(in oklch, var(--ok) 16%, var(--panel)); }
.badge.success svg { stroke: var(--ok-ink); }
.badge.info { background: var(--card); }
.badge.info svg { stroke: var(--ink-2); }
.badge.warn { background: color-mix(in oklch, var(--gold-dp) 16%, var(--panel)); }
.badge.warn svg { stroke: var(--warn-ink); }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 2px 0 20px; background: var(--card); border-radius: 999px; }
.tab { flex: 1; text-align: center; font-family: var(--display); font-weight: 500; font-size: 14px; padding: 9px 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s ease, color .15s ease; }
.tab.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px oklch(30% .03 60 / .12); }

/* forms */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 16px 0 8px 4px; }
.field label { margin-top: 0; }
.field .opt, .field-optional { text-transform: none; letter-spacing: 0; color: var(--muted-2); font-weight: 400; }
.card input:not([type=hidden]), .card textarea { display: block; width: 100%; height: 52px; padding: 0 18px; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.card textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.card input::placeholder, .card textarea::placeholder { color: var(--muted-2); }
.card input:focus, .card textarea:focus { border-color: var(--ink-3); box-shadow: 0 0 0 3px oklch(52% .11 65 / .16); }
.card input[readonly] { background: var(--card); color: var(--ink-3); cursor: default; }
.card input[readonly]:focus { border-color: var(--line); box-shadow: none; }
.field-hint { margin: 8px 4px 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.subdomain-row { display: flex; align-items: stretch; }
.card .subdomain-row input:not([type=hidden]) { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; min-width: 0; }
.subdomain-suffix { display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-left: 0; border-radius: 0 16px 16px 0; background: var(--card); color: var(--ink-3); font-size: 14px; white-space: nowrap; }

.error, .notice { padding: 12px 16px; border-radius: 16px; margin-bottom: 14px; font-size: 14px; line-height: 1.45; }
.error { background: color-mix(in oklch, var(--danger) 9%, var(--panel)); color: var(--danger); border: 1px solid color-mix(in oklch, var(--danger) 26%, transparent); }
.error:empty, .fine:empty, .hint:empty { display: none; }
.card-head + .error { margin-top: -6px; }
.error.field-error { margin: 10px 0 0; }
.card input:not([type=hidden])[aria-invalid="true"], .subdomain-row input[aria-invalid="true"] + .subdomain-suffix { border-color: var(--danger); }
.card form > label:first-of-type { margin-top: 0; }
.notice { background: var(--card); color: var(--ink-2); text-align: center; font-size: 14.5px; margin-top: 4px; padding: 16px 18px; border-radius: 18px; }
.notice b { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--ink); margin-bottom: 2px; }
/* a state the page arrives in with one next step: a short rise so the eye moves to it */
.arrive { animation: arrive .4s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }

/* buttons */
.cf-turnstile { margin-top: 18px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 10px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .12s ease; }
.btn:hover { background: var(--panel-2); border-color: var(--muted-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.primary { background: var(--accent, var(--ink)); color: var(--bg); border-color: var(--accent, var(--ink)); margin-top: 12px; }
.btn.primary:hover { filter: brightness(1.18); }
.btn:focus-visible, .tab:focus-visible, .link:focus-visible, .top-link:focus-visible { outline: 2px solid var(--accent, var(--accent-2)); outline-offset: 2px; }
.btn .g { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-direction: column; margin-top: 12px; }
.actions:empty { display: none; }
.actions .btn:first-child { margin-top: 0; }
.actions-row { display: flex; gap: 10px; margin-top: 24px; }
.actions-row .btn, .actions-row form { flex: 1; margin-top: 0; }
.actions-row form { display: flex; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link { display: block; text-align: center; margin-top: 14px; font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.link:hover { color: var(--ink); text-decoration: underline; }
.top-link { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--ink-2); }
.top-link:hover { color: var(--ink); text-decoration: underline; }

/* text under and between things */
.hint { text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 6px 0 0; }
.fine { text-align: center; color: var(--muted-2); font-size: 12.5px; line-height: 1.5; margin: 16px 0 0; }
.actions ~ .hint { color: var(--muted-2); font-size: 12.5px; margin-top: 16px; }
.fine a { color: var(--ink-3); text-decoration: underline; }
.fine a:hover { color: var(--ink); }
.card-links { margin-top: 22px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); }
.card-links a { color: var(--muted); text-decoration: none; }
.card-links a:hover { color: var(--ink); text-decoration: underline; }
.scopes { margin: 22px 0 0; padding-left: 22px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.reg-sent { text-align: center; padding: 18px 0 12px; color: var(--ink-3); font-size: 14.5px; line-height: 1.6; }
.reg-sent strong { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--ink); margin-bottom: 6px; }

/* Register with a work account */
.g-hint { margin: 12px 4px 0; text-align: center; font-size: 12.5px; color: var(--muted-2); }
.g-chip { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); margin-bottom: 14px; }
.g-chip .g { width: 18px; height: 18px; flex: none; }
.g-chip-info { flex: 1; min-width: 0; }
.g-chip-info strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-chip-info span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.g-chip-reset { flex: none; font-family: var(--sans); font-size: 12.5px; color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.g-chip-reset:hover { color: var(--ink); }

/* waiting for the magic link, and the number that comes with it */
.poll { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; color: var(--muted); font-size: 13.5px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--card-2); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.number { display: flex; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.number > span, .number > input:not([type=hidden]) { width: 46px; height: 58px; padding: 0; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 500; font-size: 28px; text-align: center; }
.number > input:not([type=hidden]) { display: block; min-width: 0; }
.signin-number-block .hint { margin-top: 6px; }

/* Where to? and GATE ID: a column of labelled lists of rows */
body.sunk { background: var(--sunk); }
.sheet { width: 100%; min-width: 0; max-width: 460px; display: flex; flex-direction: column; gap: 12px; align-self: flex-start; margin-top: 36px; }
.sheet-wide { max-width: 620px; gap: 14px; }
.sheet-title { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.sheet-wide .sheet-title { font-size: 28px; }
.sheet-sub { font-size: 13px; color: var(--muted); margin-top: -6px; }
.sheet-part { display: flex; flex-direction: column; gap: inherit; }
.sheet-foot:empty { display: none; }
.sheet-foot .btn { margin-top: 4px; }
.list-label { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-left: 4px; margin-bottom: -6px; }
.list { background: var(--panel); border-radius: 16px; overflow: hidden; }
.list > * { position: relative; }
.list > * + *::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; border-top: .5px solid var(--line); }
.row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px; padding: 9px 13px; background: none; border: 0; font: inherit; color: inherit; text-align: left; }
button.row, summary.row, a.row { cursor: pointer; transition: background .15s ease; text-decoration: none; }
button.row:hover, summary.row:hover, a.row:hover { background: color-mix(in oklch, var(--panel) 94%, var(--ink)); }
button.row:focus-visible, summary.row:focus-visible, a.row:focus-visible { outline: 2px solid var(--accent, var(--accent-2)); outline-offset: -2px; }
.row[aria-disabled="true"] { color: var(--muted); }
.face { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 640; }
.face .icon { width: 17px; height: 17px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.row-text > span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-act { font-weight: 560; font-size: 14px; }
button.link-act { background: none; border: 0; padding: 0; font: inherit; font-weight: 560; font-size: 14px; color: var(--ink); cursor: pointer; flex: none; }
button.link-act:hover { text-decoration: underline; }
.chev { color: var(--muted); }
.minis { display: flex; gap: 4px; }
.minis i { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-style: normal; font-size: 11px; font-weight: 640; display: flex; align-items: center; justify-content: center; }
.hero { display: flex; align-items: center; gap: 18px; }
.hero .sheet-sub { margin-top: 2px; font-size: 14px; }
.hero-face { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 640; }
.seal { position: absolute; right: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 12px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--sunk); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 -8px; }
.section-head b { font-size: 16px; font-weight: 600; }
.section-act { font-size: 13px; font-weight: 560; color: var(--ink); text-decoration: none; }
.section-act:hover { text-decoration: underline; }
.row-acts { display: flex; gap: 14px; flex: none; }
.invite { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 14px 12px 18px; font-size: 14px; }
.invite-acts { margin-left: auto; display: flex; gap: 8px; }
.pill { border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; background: color-mix(in oklch, var(--bg) 18%, var(--ink)); color: var(--bg); }
.pill.go { background: var(--bg); color: var(--ink); }
.pill:disabled { opacity: .6; cursor: default; }
.only-phone { display: none; }
.edit-pen { opacity: 0; transition: opacity .12s ease; }
.hero-face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.face-pen { position: absolute; left: -4px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; }
.hero-face:hover .edit-pen, .face-pen:focus-within, .sheet-title:hover .name-pen, .name-pen:focus-visible { opacity: 1; }
.name-pen { margin-left: 10px; background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--ink-3); vertical-align: middle; }
button.edit-pen { background: none; border: 0; cursor: pointer; }
.go-form { display: flex; }
.go-pen { font-size: 16px; color: var(--ink-2); }
.on-hover { opacity: 0; transition: opacity .12s ease; }
.row:hover .edit-pen, .row:focus-visible .edit-pen, [open] > .row .edit-pen, .row:hover .on-hover, .on-hover:focus-visible { opacity: 1; }
@media (hover: none) { .edit-pen, .on-hover { opacity: 1; } }
button.link { width: 100%; background: none; border: 0; cursor: pointer; }
dialog.card { margin: auto; max-height: calc(100vh - 32px); overflow: auto; }
dialog.card::backdrop { background: oklch(20% .02 60 / .35); }

@media (max-width: 560px) {
  .sheet { padding: 0 16px; margin-top: 0; }
  .only-desk { display: none; }
  .only-phone { display: block; }
  span.only-phone { display: inline; }
  div.only-phone.sheet-part { display: flex; }
  .section-head { margin: 0 0 -6px; }
  .section-head b { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
  .section-act { font-size: 12px; }
  .row:has(.row-acts) { flex-wrap: wrap; }
  .row-acts { flex-basis: 100%; padding-left: 45px; margin-top: -4px; }
  .invite { flex-direction: column; align-items: stretch; padding: 12px 14px; }
  .invite-acts { margin-left: 0; }
  .invite-acts .pill { flex: 1; }
  .sheet-wide .sheet-title { font-size: 24px; }
  .hero .sheet-sub { margin-top: -2px; font-size: 13px; }
  .page-top { padding: 16px 22px; }
  .page-bottom { padding: 14px 22px 18px; }
  .center { padding: 8px 0 16px; }
  .card { max-width: none; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 18px 22px 22px; }
  dialog.card { background: var(--panel); border-radius: 24px 24px 0 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); }
  .card h1 { font-size: 30px; }
  .card-head .knit { width: 56px; height: 56px; margin-bottom: 12px; }
  .number { gap: 6px; }
  .number > span, .number > input:not([type=hidden]) { width: 42px; }
}
@media (max-width: 340px) {
  .number { gap: 4px; }
  .number > span, .number > input:not([type=hidden]) { width: 38px; height: 54px; font-size: 24px; }
  .actions-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } .arrive { animation: none; } }
