:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --surface: #fff;
  --canvas: #f5f5f7;
  --line: rgb(0 0 0 / 8%);
  --blue: #4676d7;
  --danger: #c83c36;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { appearance: none; }
h1, h2, h3, p { text-wrap: balance; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 90rem;
  height: 52px;
  margin: 0 auto;
  padding: 0 40px;
}
.wordmark, .wordmark-logo { display: block; }
.wordmark { flex: none; }
.wordmark-logo { width: auto; height: 24px; }
nav { display: flex; align-items: center; gap: 4px; }
nav a, .account-pill {
  min-height: 30px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
  line-height: 16px;
  transition: color 160ms ease, background-color 160ms ease;
}
nav a:hover { background: #eeeef0; color: var(--ink); }
.account-pill { margin-left: 4px; background: var(--ink); color: #fff; }

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 500px);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  max-width: 90rem;
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  padding: 28px 40px 40px;
}
.brand {
  position: sticky;
  top: 80px;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px);
  border-radius: 16px;
  background: linear-gradient(145deg, #121419, #20242d);
  color: #fff;
  box-shadow: 0 26px 80px rgb(0 0 0 / 12%);
}
.brand::after {
  content: "";
  position: absolute;
  right: -130px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 24px;
  box-shadow: -72px -72px 0 rgb(255 255 255 / 2%), -144px -144px 0 rgb(255 255 255 / 1%);
  transform: rotate(18deg);
}
.brand-mark { display: grid; grid-template-columns: repeat(2, 14px); gap: 3px; width: max-content; margin-bottom: clamp(72px, 12vh, 144px); transform: rotate(45deg); }
.brand-mark span { width: 14px; height: 14px; border-radius: 2px; background: #fff; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { opacity: .58; }
.brand-mark span:nth-child(4) { opacity: .3; }
.eyebrow, .card-kicker { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand .eyebrow { color: #8ab4ff; }
h1 { max-width: 700px; margin: 0; font-size: clamp(52px, 6vw, 92px); font-weight: 650; line-height: .94; letter-spacing: -.062em; }
.summary { max-width: 590px; margin: 28px 0 0; color: rgb(255 255 255 / 62%); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; }
.brand ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: clamp(52px, 9vh, 100px) 0 0; padding: 0; list-style: none; }
.brand li { min-width: 0; padding: 17px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 10px; background: rgb(255 255 255 / 6%); }
.brand li strong, .brand li span { display: block; }
.brand li strong { font-size: 13px; }
.brand li span { margin-top: 5px; color: rgb(255 255 255 / 48%); font-size: 11px; line-height: 1.45; }

.card {
  width: 100%;
  min-height: 540px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgb(0 0 0 / 7%);
}
.loading { display: flex; min-height: 440px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.card-kicker { margin-bottom: 8px; }
.auth-title { margin: 0 0 34px; font-size: 36px; font-weight: 650; line-height: 1.05; letter-spacing: -.045em; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 44px; padding: 4px; margin-bottom: 28px; border-radius: 10px; background: var(--canvas); }
.tab { border: 0; border-radius: 7px; padding: 7px 10px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; transition: 160ms ease; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 8%); }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
input { width: 100%; height: 50px; border: 1px solid #d8d8dc; border-radius: 8px; padding: 12px 14px; background: #fff; outline: none; font-size: 15px; box-shadow: 0 1px 2px rgb(0 0 0 / 3%); transition: border-color 160ms ease, box-shadow 160ms ease; }
input::placeholder { color: #aaaab0; }
input:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(70 118 215 / 14%); }
button, .apple { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 650; line-height: 20px; text-align: center; white-space: nowrap; cursor: pointer; transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
button:hover, .apple:hover { transform: translateY(-1px); }
button:focus-visible, .apple:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(70 118 215 / 18%); }
button:disabled { pointer-events: none; opacity: .5; }
.primary { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.primary:hover { background: #363638; }
.secondary { border: 1px solid var(--line); color: var(--ink); background: var(--canvas); }
.secondary:hover { background: #eaeaed; }
.danger { border: 1px solid rgb(200 60 54 / 18%); color: var(--danger); background: transparent; }
.danger:hover { background: rgb(200 60 54 / 6%); }
.apple { border: 1px solid #050505; color: #fff; background: #050505; }
.apple:hover { background: #28282a; }
.divider { display: flex; align-items: center; gap: 12px; margin: 26px 0; color: #9b9ba1; font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hint, .muted { margin: -9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.error { margin-top: 18px; color: var(--danger); font-size: 14px; }
.link-button { min-height: auto; border: 0; padding: 2px; color: var(--blue); background: transparent; font-size: 13px; justify-self: center; }
.link-button:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.notice { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--muted); font-size: 14px; line-height: 1.5; }
.notice p { margin: 6px 0 12px; }
.notice.warning { border-color: rgb(255 173 51 / 24%); background: #fff9ed; }
.preview-link { display: block; margin-top: 12px; color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

#account > .eyebrow { margin-bottom: 7px; }
#account h2, #recovery h2, #verification h2 { margin: 0 0 12px; font-size: 34px; font-weight: 650; line-height: 1.08; letter-spacing: -.042em; }
#account-email { margin-top: -4px; }
.account-actions { display: grid; gap: 10px; margin-top: 34px; }
.sessions-section { display: grid; gap: 12px; margin-bottom: 18px; }
.sessions-section h3 { margin: 0; font-size: 16px; }
.sessions-list { display: grid; max-height: min(52vh, 560px); gap: 8px; overflow-y: auto; padding-right: 5px; scrollbar-color: #c8c8cc transparent; scrollbar-width: thin; }
.session { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.session strong, .session span { display: block; }
.session strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.session span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.session button { min-height: 30px; border: 0; padding: 4px 9px; color: var(--danger); background: transparent; font-size: 12px; }
.session button:hover { transform: none; background: rgb(200 60 54 / 7%); }

#desktop-actions { margin-top: 32px; padding: 22px; border-radius: 10px; background: var(--canvas); }
#desktop-actions .primary { width: 100%; }
.authorization-heading { margin-bottom: 28px; text-align: center; }
.authorization-heading .eyebrow { margin-bottom: 9px; }
.authorization-heading h2 { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }
.authorization-subtitle { margin: 10px auto 0; max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.authorization-client-mark { display: grid; width: 52px; height: 52px; margin: 0 auto 20px; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 10px 24px rgb(0 0 0 / 14%); }
.authorization-client-mark.has-brand-icon { width: 56px; background: transparent; box-shadow: none; }
.authorization-client-mark img { display: block; width: 46px; height: 34px; }
.consent-divider { height: 1px; margin: -2px 0 22px; background: var(--line); }
.permission-list { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.permission-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.permission-list strong, .permission-list span { display: block; }
.permission-list strong { font-size: 14px; }
.permission-list li span span { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.permission-check { display: grid !important; width: 26px; height: 26px; place-items: center; border-radius: 999px; background: #e8f0ff; color: var(--blue); font-size: 12px; font-weight: 700; }
.consent-note, .returning-signin-note { margin: 22px 0 0; padding: 14px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.5; }
.consent-actions { display: grid; gap: 10px; margin-top: 22px; }
.consent-actions .secondary { width: 100%; }

.authorization-flow nav { display: none; }
.authorization-flow .header-inner { justify-content: center; }
.authorization-flow .shell { display: flex; max-width: 560px; min-height: calc(100vh - 52px); align-items: center; padding: 42px 24px; }
.authorization-flow .brand { display: none; }
.authorization-flow .card { min-height: 0; }
.authorization-flow .account-actions { display: none; }
.authorization-flow #desktop-actions { padding: 0; background: transparent; }

@media (max-width: 1080px) {
  nav a:nth-of-type(5), nav a:nth-of-type(6) { display: none; }
  .brand ul { grid-template-columns: 1fr; }
  .brand li:nth-child(3) { display: none; }
}
@media (max-width: 820px) {
  .header-inner { padding: 0 20px; }
  nav a { display: none; }
  .shell { display: flex; flex-direction: column; padding: 16px 16px 28px; }
  .brand { position: relative; top: auto; width: 100%; min-height: 420px; padding: 36px 28px; border-radius: 14px; }
  .brand-mark { margin-bottom: 70px; }
  h1 { max-width: 540px; font-size: clamp(46px, 12vw, 68px); }
  .summary { font-size: 16px; }
  .brand ul { display: none; }
  .card { min-height: 0; padding: 30px 24px; border-radius: 14px; }
  .authorization-flow .shell { min-height: calc(100vh - 52px); padding: 24px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Match the shadcn card, button, input and typography used by admin sign-in. */
.authorization-flow { background: #fff; }
.authorization-flow .site-header { display: none; }
.authorization-flow .shell { width: 100%; max-width: 416px; min-height: 100svh; padding: 32px 16px; justify-content: center; }
.authorization-flow .card { padding: 24px; border-radius: 12px; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.authorization-flow .authorization-heading { margin-bottom: 24px; text-align: left; }
.authorization-flow .authorization-client-mark { margin: 0 0 24px; }
.authorization-flow .eyebrow { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.authorization-flow .authorization-heading h2, .authorization-flow .auth-title { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.authorization-flow .authorization-subtitle { margin: 8px 0 0; }
.authorization-flow #account h2 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: normal; overflow-wrap: anywhere; }
.authorization-flow #account-email { font-size: 14px; overflow-wrap: anywhere; }
.authorization-flow .returning-signin-note { margin-top: 16px; padding: 0; }
.authorization-flow #desktop-actions { margin-top: 24px; }
.authorization-flow .consent-actions { margin-top: 24px; gap: 8px; }
.authorization-flow button, .authorization-flow .apple { min-height: 36px; border-radius: 6px; padding: 8px 16px; font-size: 14px; font-weight: 500; white-space: normal; overflow-wrap: anywhere; }
.authorization-flow button:hover, .authorization-flow .apple:hover { transform: none; }
.authorization-flow input { height: 36px; border-radius: 6px; padding: 4px 12px; font-size: 14px; }
.authorization-flow input:focus-visible, .authorization-flow button:focus-visible { border-color: #a3a3a3; box-shadow: 0 0 0 3px rgb(163 163 163 / 25%); }
.authorization-flow .link-button { color: var(--ink); }
.authorization-flow .permission-check { background: #f5f5f5; color: var(--ink); }

#delete-dialog { max-width: min(32rem, calc(100vw - 2rem)); border-radius: 1rem; padding: 2rem; }
#delete-dialog::backdrop { background: rgb(0 0 0 / 55%); }
#delete-form { display: grid; gap: 1rem; }
