:root {
  color-scheme: light;
  --ink: #18231f;
  --muted: #68736e;
  --line: #d8ded9;
  --green: #207d68;
  --green-dark: #166252;
  --paper: #f6f7f5;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: grid; grid-template-rows: auto 1fr auto; color: var(--ink); background: var(--paper); letter-spacing: 0; }
header, footer { width: min(100% - 40px, 1120px); margin: 0 auto; display: flex; align-items: center; }
header { height: 68px; gap: 10px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-weight: 800; text-decoration: none; }
header span { padding-left: 10px; border-left: 1px solid #bdc6c0; color: var(--muted); font-size: 13px; }
main { display: grid; place-items: center; padding: 48px 20px 64px; }
.auth-card { width: min(100%, 500px); padding: 38px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 20px 52px rgba(24, 35, 31, .08); }
.brand-seal, .app-icon, .avatar, .mini-avatar { display: grid; place-items: center; color: #fff; background: var(--ink); font-weight: 800; }
.brand-seal { width: 46px; height: 46px; margin-bottom: 28px; border-radius: 8px; font-size: 21px; }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 800; }
h1 { margin: 0; font-size: 32px; line-height: 1.18; letter-spacing: 0; }
.lead { margin: 14px 0 26px; color: #59645f; line-height: 1.65; }
.button { min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: transparent; text-decoration: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: #fff; border-color: var(--line); }
.button.full { width: 100%; }
.fineprint { margin: 18px 0 0; color: #89918d; font-size: 11px; line-height: 1.55; }
.app-lockup { display: flex; align-items: center; gap: 15px; }
.app-icon { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 8px; background: #263a32; font-size: 21px; }
.app-lockup h1 { font-size: 27px; }
.signed-user { margin: 24px 0 14px; padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf8; }
.mini-avatar { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 6px; background: #3a6f61; }
.signed-user strong, .signed-user span { display: block; }
.signed-user span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.permission { padding: 16px 0; display: flex; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.permission-icon { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 12px; }
.permission strong { font-size: 13px; }
.permission p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.consent-actions, .actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }
.consent-actions .button { min-width: 124px; }
.account-card { text-align: center; }
.avatar { width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 8px; font-size: 23px; }
.account-card .actions { justify-content: center; }
.actions form { margin: 0; }
footer { min-height: 64px; justify-content: center; gap: 20px; border-top: 1px solid var(--line); color: #87908c; font-size: 11px; }
footer a { color: #65706b; text-decoration: none; }
@media (max-width: 560px) {
  header, footer { width: min(100% - 28px, 1120px); }
  main { padding: 28px 14px 46px; align-items: start; }
  .auth-card { padding: 28px 22px; }
  h1 { font-size: 27px; }
  .consent-actions, .actions { flex-direction: column-reverse; }
  .consent-actions .button, .actions .button, .actions form { width: 100%; }
  footer span { display: none; }
}
