:root {
  color-scheme: light;
  --ink: #40364d;
  --muted: #706577;
  --purple: #7657ba;
  --purple-dark: #60439e;
  --lavender: #eee9f9;
  --paper: #faf8f4;
  --line: #e4dfe8;
  --error: #943747;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; background: #eeeaf1; border-color: #b7acbe; color: #6c6275; box-shadow: none; }
a { color: var(--purple-dark); }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid #916219;
  outline-offset: 4px;
}

.skip-link { position: absolute; top: 10px; left: 16px; z-index: 10; transform: translateY(-160%); background: #fff; padding: 14px 20px; border-radius: 12px; }
.skip-link:focus { transform: translateY(0); }
.account-header { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 6%; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 48px; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.brand img { flex-shrink: 0; }
.brand-accent { color: var(--purple); }
.brand small { display: block; margin-top: 7px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; min-width: 48px; padding: 12px 18px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 3px 0 #5f449d; }
.button-primary:hover:enabled { background: var(--purple-dark); }
.button-secondary { border-color: #8d7f9a; background: #fff; color: #5b4c6b; box-shadow: 0 2px 0 #eee9e3; }
.button-secondary:hover:enabled, a.button-secondary:hover { background: #f4effb; }
.studio-link { font-size: 12px; }
.studio-link span { font-size: 20px; }
.full-width { width: 100%; }
.google-signin-button { display: inline-flex; width: 216px; max-width: 100%; min-height: 48px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 4px; background: transparent; }
.google-signin-button img { display: block; width: 216px; max-width: 100%; height: auto; aspect-ratio: 9 / 2; }
.google-signin-button:disabled { background: transparent; opacity: .65; }

.account-main { max-width: 1120px; margin: 0 auto; padding: 48px 6% 44px; }
.account-intro { max-width: 690px; margin-bottom: 26px; }
.eyebrow { display: block; font-size: 12px; font-weight: 750; letter-spacing: 1.7px; color: var(--muted); }
h1 { font-size: clamp(34px, 4.5vw, 48px); font-weight: 800; letter-spacing: -1.6px; line-height: 1.13; margin: 14px 0; }
h1 span { color: var(--purple); }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.7px; margin: 16px 0 10px; }
h3 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
p { color: var(--muted); font-size: 15px; line-height: 1.75; margin: 10px 0 16px; }
.quiet-note, .small-copy { font-size: 13px; line-height: 1.7; }
.account-intro .quiet-note { max-width: 600px; margin: 12px 0 0; }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.account-primary { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.account-card { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #fff; box-shadow: 0 4px 0 #eee9e3; min-width: 0; }
.card-symbol { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--purple-dark); background: var(--lavender); font-size: 27px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.status-pill { display: inline-block; background: #e8f1e5; color: #3e6044; padding: 7px 12px; font-size: 12px; font-weight: 700; border-radius: 20px; }
.account-card > .full-width { margin: 6px 0 2px; }
.account-section { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 24px; }
.account-section .button { margin-top: 2px; }
.session-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; }
.session-actions .button { flex: 1 1 150px; }
.notice { background: #f4effb; border: 1px solid #d8c9eb; border-radius: 15px; padding: 18px; margin-top: 20px; }
.notice h3 { color: var(--purple-dark); }
.notice p { font-size: 13px; }
.recovery-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
summary { min-height: 48px; padding: 13px 0; font-size: 14px; font-weight: 700; line-height: 1.6; cursor: pointer; }
.details-copy p { font-size: 13px; }
label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 9px; }
input { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #8d7f9a; border-radius: 10px; background: #fff; color: var(--ink); }
input:disabled { background: #f3f0f5; }
.recovery-kit { border-color: #bbabd0; background: #f8f4fd; }
.recovery-kit .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
.recovery-code { display: block; padding: 17px; margin: 0 0 18px; background: #fff; border: 1px solid #bbabd0; border-radius: 12px; color: #49335e; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 700; line-height: 1.9; overflow-wrap: anywhere; user-select: all; }
.recovery-kit > .small-copy:last-child { margin-bottom: 0; }
.recovery-confirmation { border-top: 1px solid #bbabd0; padding-top: 14px; margin-top: 20px; }
.recovery-confirmation p { font-size: 13px; }
.recovery-confirm-label { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 14px 0; cursor: pointer; line-height: 1.6; }
.recovery-confirm-label input { flex: 0 0 22px; width: 22px; min-height: 22px; height: 22px; accent-color: var(--purple-dark); }
.recovery-confirm-label:has(input:focus-visible) { outline: 3px solid #916219; outline-offset: 4px; border-radius: 5px; }
.account-aside { display: flex; flex-direction: column; gap: 20px; }
.aside-card { border: 1px solid #dbe6d7; border-radius: 23px; background: #edf3e9; padding: 27px; }
.aside-card h2 { font-size: 21px; color: #45614c; margin: 13px 0 12px; }
.aside-card p { font-size: 14px; color: #536557; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-symbol { display: block; color: #627d5b; font-size: 40px; line-height: 1; }
.aside-subtle { border-color: var(--line); background: #f4f0f8; }
.aside-subtle h2 { color: var(--ink); margin-top: 0; }
.aside-subtle p, .aside-subtle li { color: var(--muted); }
.aside-subtle ul { padding-left: 20px; font-size: 14px; line-height: 1.8; margin: 12px 0; }
.aside-subtle li + li { margin-top: 6px; }
.account-message { max-width: 720px; color: #4b5e40; font-size: 14px; line-height: 1.7; margin: 0 0 22px; }
.account-message:empty { display: none; }
.error-card { max-width: 720px; background: #fff1f1; border: 1px solid #c78089; border-radius: 18px; padding: 20px; margin-bottom: 22px; color: var(--error); }
.error-card h2 { font-size: 20px; margin: 0 0 9px; }
.error-card p { color: var(--error); font-size: 14px; margin-bottom: 14px; }
.account-footer { max-width: 1165px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 10px auto 0; padding: 24px 6% 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.account-footer > span:first-child { font-weight: 750; }
.account-footer > span:last-child { color: #9c80b4; font-size: 22px; }
.account-footer p { margin: 0; font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .account-header { padding: 22px 5%; }
  .account-main { padding: 36px 5%; }
  .account-layout { gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .account-card, .aside-card { padding: 23px; }
}

@media (max-width: 650px) {
  .account-header { gap: 16px; flex-wrap: wrap; padding: 20px 5% 18px; }
  .brand { font-size: 23px; }
  .studio-link { margin-left: auto; }
  .account-main { padding: 29px 5% 28px; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .account-intro { margin-bottom: 23px; }
  h1 { font-size: 36px; letter-spacing: -1.3px; }
  .account-card { border-radius: 21px; padding: 23px; }
  .account-aside { gap: 16px; }
  .aside-card { padding: 23px; border-radius: 20px; }
  .aside-card h2 { margin-top: 8px; }
  .account-footer { flex-wrap: wrap; padding: 22px 5% 28px; gap: 12px; }
  .account-footer p { order: 3; flex: 1 0 100%; text-align: left; }
}

@media (max-width: 370px) {
  .studio-link { width: 100%; margin-left: 0; }
  .account-card, .aside-card { padding: 20px; }
  h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
