@font-face { font-family: "Poppins"; src: url("/fonts/poppins/poppins-400-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins/poppins-500-latin.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins/poppins-600-latin.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins/poppins-700-latin.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }

:root {
  --ink: #292524;
  --muted: #78716c;
  --surface: #f9f9f8;
  --canvas: #fff;
  --line: #e7e5e4;
  --accent: #171717;
  --danger: #b91c1c;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body { margin: 0; min-height: 100svh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { appearance: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
:is(a, button, input, [tabindex]):focus-visible { outline: 2px solid #737373; outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 50; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--canvas); }
.header-inner { display: flex; align-items: center; gap: 32px; max-width: 1520px; height: 64px; margin: auto; padding: 0 40px; }
.wordmark { flex: none; }
.wordmark, .wordmark-logo { display: block; }
.wordmark-logo { width: 135px; height: 20px; }
nav { display: flex; align-items: center; gap: 8px; flex: 1; }
nav a, .account-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 14px; font-weight: 500; }
nav a:hover { background: var(--surface); }
.account-pill { margin-left: auto; color: var(--muted); border-bottom: 2px solid var(--ink); }
.shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); align-items: start; gap: clamp(40px, 7vw, 112px); max-width: 1280px; min-height: calc(100svh - 164px); margin: auto; padding: 64px 40px; }
.brand { padding-top: 12px; }
.eyebrow, .card-kicker { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 580px; margin: 0; font-size: clamp(36px, 4vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.summary { max-width: 460px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.brand ul { display: grid; gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.brand li { padding: 22px 24px; background: var(--surface); }
.brand li strong, .brand li span { display: block; }
.brand li strong { font-size: 16px; font-weight: 600; }
.brand li span { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card { width: 100%; min-width: 0; padding: 36px; background: var(--surface); }
.loading { display: flex; min-height: 360px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
h2, .auth-title { margin: 0 0 24px; font-size: 30px; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; overflow-wrap: anywhere; }
h3 { font-size: 16px; font-weight: 600; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tab { border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; }
.tab.active { border-bottom-color: var(--ink); color: var(--ink); }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; }
input { width: 100%; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; background: var(--canvas); font-size: 16px; }
input::placeholder { color: var(--muted); font-size: 13px; }
button, .apple { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; background: var(--canvas); font-size: 13px; font-weight: 500; line-height: 1.5; text-align: center; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; overflow-wrap: anywhere; }
button:hover { background: #e7e5e4; }
button:disabled { cursor: default; opacity: .5; }
.primary, .apple { border-color: var(--accent); color: #fff; background: var(--accent); }
.primary:hover, .apple:hover { background: #44403c; }
.secondary { background: var(--canvas); }
.danger { color: var(--danger); background: transparent; border-color: #e8caca; }
.danger:hover { background: #fef2f2; }
.apple { width: 100%; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.hint, .muted { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.hint { margin-top: -8px; }
.error, #delete-error, #apple-link-error { color: var(--danger); font-size: 13px; line-height: 1.6; }
.error { margin: 18px 0 0; }
.link-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.link-button:hover { background: transparent; color: var(--muted); }
.notice { margin-top: 22px; padding: 16px; border: 1px solid var(--line); background: var(--canvas); color: var(--muted); font-size: 13px; line-height: 1.7; }
.notice p { margin: 6px 0 12px; }
.notice.warning { border-color: #f1d6a5; background: #fffbeb; color: #854d0e; }
.preview-link { display: block; margin-top: 12px; text-decoration: underline; overflow-wrap: anywhere; }
#account > .eyebrow { margin-bottom: 8px; }
#account h2 { margin-bottom: 8px; }
#recovery .muted { margin-bottom: 24px; }
.account-actions { display: grid; gap: 12px; margin-top: 32px; }
.sessions-section { display: grid; gap: 12px; margin-bottom: 20px; }
.sessions-section h3 { margin: 0; }
.sessions-list { display: grid; max-height: 420px; gap: 8px; overflow-y: auto; scrollbar-color: #a8a29e transparent; scrollbar-width: thin; }
.session { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 16px; background: var(--canvas); border: 1px solid var(--line); }
.session strong, .session span { display: block; overflow-wrap: anywhere; }
.session strong { font-size: 13px; font-weight: 500; }
.session span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.session button { border: 0; padding: 8px; color: var(--danger); background: transparent; font-size: 12px; }
.session button:hover { background: #fef2f2; }
#desktop-actions { margin-top: 28px; }
.authorization-heading { margin-bottom: 28px; }
.authorization-heading h2 { font-size: 26px; margin-bottom: 12px; }
.authorization-subtitle { color: var(--muted); font-size: 14px; line-height: 1.7; }
.authorization-client-mark { display: grid; width: 52px; height: 52px; margin-bottom: 24px; place-items: center; background: var(--accent); color: white; font-size: 15px; font-weight: 600; }
.authorization-client-mark.has-brand-icon { width: 135px; background: transparent; }
.authorization-client-mark img { display: block; width: 100%; height: auto; max-height: 52px; object-fit: contain; }
.consent-divider { height: 1px; margin-bottom: 24px; 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; }
.permission-list strong, .permission-list span { display: block; }
.permission-list strong { font-size: 14px; font-weight: 500; }
.permission-list li span span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.permission-check { display: grid !important; width: 26px; height: 26px; place-items: center; background: var(--canvas); font-size: 12px; }
.consent-note, .returning-signin-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.consent-actions { display: grid; gap: 12px; margin-top: 24px; }
.authorization-flow nav, .authorization-flow .brand, .authorization-flow .account-actions { display: none; }
.authorization-flow .header-inner { justify-content: center; }
.authorization-flow .shell { display: block; max-width: 560px; padding: 40px 24px; }
.authorization-flow #account h2 { font-size: 20px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; max-width: 1280px; margin: auto; padding: 28px 40px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 32px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--canvas); }
dialog::backdrop { background: rgb(28 25 23 / 50%); }
dialog p { color: var(--muted); font-size: 14px; line-height: 1.7; }
dialog h2 { margin-bottom: 0; }
@media (max-width: 1080px) { nav a:nth-of-type(5), nav a:nth-of-type(6) { display: none; } .shell { gap: 40px; } }
@media (max-width: 820px) {
  .header-inner { padding: 0 24px; }
  .wordmark-logo { width: 122px; height: auto; }
  nav a { display: none; }
  .shell { display: flex; flex-direction: column; gap: 40px; padding: 24px; }
  .card { order: -1; padding: 28px 24px; }
  .brand { padding: 0; width: 100%; }
  h1 { font-size: 36px; max-width: 420px; }
  .summary { font-size: 14px; margin-top: 16px; }
  .brand ul { margin-top: 24px; }
  .brand li { padding: 20px 24px; }
  .site-footer { margin: 0 24px; padding: 24px 0; flex-direction: column; gap: 12px; }
  .authorization-flow .shell { padding: 24px; }
}
@media (max-width: 380px) {
  .header-inner { padding: 0 16px; }
  .shell, .authorization-flow .shell { padding: 20px 16px; }
  .card { padding: 24px 16px; }
  h2, .auth-title { font-size: 26px; }
  .session { padding: 12px; grid-template-columns: minmax(0, 1fr); }
  .session button { justify-self: start; }
  dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }


/* Account settings: a quiet logo header and persistent section navigation. */
.header-inner { max-width: 1280px; height: 80px; }
.shell { display: block; max-width: 560px; min-height: calc(100svh - 180px); padding: 48px 24px; }
.settings-mode .shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 72px; max-width: 1280px; padding: 48px 40px 80px; }
.settings-sidebar { position: sticky; top: 32px; }
.settings-sidebar h1 { margin: 0 0 28px; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.settings-nav { display: grid; gap: 4px; }
.settings-nav a { display: flex; min-height: 48px; padding: 12px 16px; color: var(--muted); border-left: 2px solid transparent; }
.settings-nav a:hover { color: var(--ink); }
.settings-nav a[aria-current="page"] { background: var(--surface); border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
.sidebar-signout { margin-top: 28px; border: 0; background: transparent; color: var(--muted); padding-left: 18px; }
.settings-mode .card { padding: 0; background: transparent; }
.settings-mode .account-summary { display: none; }
.settings-mode .account-actions { display: block; margin: 0; }
.settings-section h2 { font-size: 30px; margin: 0 0 8px; }
.section-description { margin: 0 0 32px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.settings-box { padding: 28px; background: var(--surface); margin-bottom: 20px; }
.settings-box h3 { margin: 0 0 8px; }
.settings-box label { margin-bottom: -10px; }
.settings-box .form-actions { margin-top: 8px; }
.settings-box input[readonly] { color: var(--muted); background: transparent; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.settings-box > p:last-child { margin-bottom: 0; }
.settings-mode .sessions-list { max-height: none; }
.settings-mode #verification-notice { margin: 0 0 28px; }
.delete-section { background: transparent; border: 1px solid var(--line); }
.delete-section .form-actions { margin-top: 20px; }
@media (max-width: 820px) {
  .header-inner { height: 64px; }
  .settings-mode .shell { grid-template-columns: 1fr; gap: 28px; padding: 20px 24px 48px; }
  .settings-sidebar { position: static; }
  .settings-sidebar h1 { margin-bottom: 20px; }
  .settings-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line); }
  .settings-nav a { justify-content: center; min-width: 0; padding: 12px 4px; font-size: 12px; border-left: 0; border-bottom: 2px solid transparent; }
  .settings-nav a[aria-current="page"] { border-bottom-color: var(--ink); background: transparent; }
  .sidebar-signout { margin-top: 8px; padding: 8px 0; min-height: 44px; }
  .settings-mode .card { order: initial; }
  .settings-box { padding: 24px; }
  .settings-section h2 { font-size: 26px; }
  .section-description { margin-bottom: 24px; }
}
@media (max-width: 380px) {
  .settings-mode .shell { padding: 16px 16px 40px; }
  .settings-box { padding: 20px 16px; }
  .settings-nav a { font-size: 11px; }
}

/* Preserve the production OAuth screen's system-theme support. */
.authorization-flow .card { border-radius: 0; }
@media (prefers-color-scheme: dark) {
  .authorization-flow {
    --ink: #fafafa;
    --muted: #a3a3a3;
    --surface: #0a0a0a;
    --canvas: #171717;
    --line: #404040;
    color: var(--ink);
    background: var(--canvas);
    color-scheme: dark;
  }
  .authorization-flow .wordmark-logo,
  .authorization-flow .authorization-client-mark img { filter: invert(1); }
  .authorization-flow .skip-link { background: var(--canvas); }
}
