@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/outfit-latin-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url('/assets/fonts/outfit-latin-ext-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --navy: #102b68;
  --muted: #43577d;
  --line: #cdd9ee;
  font-family: Outfit, system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--navy);
  background: linear-gradient(165deg, #edf4ff 0, #f7faff 42%, #fff 95%);
}

a, button { -webkit-tap-highlight-color: transparent; }

:where(a, button):focus-visible {
  outline: 3px solid #3859c4;
  outline-offset: 4px;
}

.account-header {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid #dae4f7;
  background: #fff;
}

.account-header img {
  display: block;
  width: clamp(112px, 19vw, 174px);
  height: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
  min-height: 44px;
  color: inherit;
  font-size: .95rem;
  font-weight: 550;
  text-align: end;
  text-decoration: none;
}

.back-link:hover,
.account-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.account-layout {
  width: min(100% - 32px, 510px);
  margin: clamp(36px, 9vw, 94px) auto 36px;
}

.account-card {
  padding: clamp(22px, 5vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 40px #172f6214;
}

.account-card h1 {
  margin: 0;
  font-size: clamp(1.85rem, 5vw, 2.45rem);
  font-weight: 650;
  line-height: 1.12;
}

.account-intro {
  margin: 12px 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

#account-status:not(:empty) {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid #d1dcf2;
  border-radius: 8px;
  background: #f1f5ff;
  color: var(--muted);
  line-height: 1.45;
}

.account-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.account-actions form { margin: 0; }
#account-member .account-actions { margin-bottom: 0; }

.account-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 15px;
  border: 1px solid #cbd8f2;
  border-radius: 9px;
  background: linear-gradient(#fff, #f5f8ff);
  color: var(--navy);
  cursor: pointer;
  font: 600 1rem/1.3 Outfit, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}

.account-button:hover { background: #eaf1ff; }

.account-button-primary {
  border-color: #23468e;
  background: linear-gradient(#2c509c, #173974);
  box-shadow: inset 0 1px 0 #ffffff37;
  color: #fff;
}

.account-button-primary:hover { background: #173974; }

.account-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.support-link { margin: 12px 3px 0; }
