:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  color: #162746;
  background: #eef4ff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 82% 8%,#d5f4f1,transparent 48%),linear-gradient(140deg,#edf3ff,#f7faff); }
[hidden] { display: none !important; }
a { color: #183c97; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #245dcc; outline-offset: 4px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem clamp(1rem,4vw,3.5rem); background: #fff; border-bottom: 1px solid #d5e3f4; }
.top a { color: #14254a; font-weight: 750; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.16rem; }
.brand img, .photo-caption img { border-radius: 11px; }
.home { font-size: .93rem; }
.home:hover { text-decoration: underline; }
main { display: grid; place-items: center; min-height: calc(100vh - 68px); padding: clamp(.75rem,2vw,2rem); }
.account { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); width: 100%; background: #fff; border: 1px solid #d8e5f5; border-radius: 25px; box-shadow: 0 24px 60px #19366520; overflow: hidden; }
.photo { display: grid; align-items: end; position: relative; isolation: isolate; background: #15386c; min-width: 0; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#11234a 1%,#11234a00 61%); z-index: -1; }
.photo-caption { display: flex; align-items: center; gap: .7rem; padding: clamp(1rem,3vw,2rem); color: white; font-weight: 850; font-size: 1.25rem; }
.card { padding: clamp(1rem,4vw,3rem); min-width: 0; }
.intro h1 { font-size: clamp(1.8rem,4.2vw,2.8rem); letter-spacing: -.045em; line-height: 1.16; margin: 0; }
.intro p { margin: .5rem 0 1.35rem; color: #405673; }
.tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .22rem; border-radius: 13px; padding: .25rem; background: #eaf1fd; }
.tabs button { min-width: 0; padding: .64rem .2rem; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #30496e; font: 750 .9rem/1.25 system-ui,sans-serif; cursor: pointer; }
.tabs button[aria-selected="true"] { background: #fff; color: #173d9a; border-color: #c4d7fa; box-shadow: 0 2px 6px #253d6220; }
.tabs button:hover { color: #173d9a; }
[role="tabpanel"] { padding-block: 1.15rem .75rem; }
[role="tabpanel"] h2 { font-size: 1.32rem; margin: 0 0 .42rem; }
[role="tabpanel"] > p { margin: 0 0 .85rem; }
form { display: grid; gap: .8rem; }
form label { display: grid; gap: .3rem; font-weight: 690; }
form input { appearance: none; width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid #9eb2cf; border-radius: 9px; background: #fbfdff; color: #162746; font: inherit; }
form input:focus { border-color: #245dcc; }
.field-help { margin: -.52rem 0 .1rem; color: #405673; font-size: .88rem; }
button.primary, button.secondary { font: inherit; font-weight: 740; cursor: pointer; }
button.primary { width: 100%; margin: .25rem 0 0; border: 0; }
button:disabled { opacity: .68; cursor: wait; }
button.secondary { padding: .62rem .8rem; border-radius: 9px; border: 1px solid #a6bcde; background: #fff; color: #183c97; }
button.secondary:hover { background: #eaf1fd; }
.status { margin: .45rem 0 .8rem; font-size: .92rem; }
.status:empty { margin: 0; }
#account-user { overflow-wrap: anywhere; }
.recovery { background: #eef4ff; padding: .85rem; border-radius: 12px; }
.recovery h2, #active-account h2 { margin: 0; font-size: 1.25rem; }
.recovery p { margin: .45rem 0; }
.recovery code { display: block; background: #fff; border-radius: 8px; padding: .65rem; overflow-wrap: anywhere; }
.recovery-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
#active-account { padding-bottom: .9rem; }
.primary { display: block; text-align: center; background: #244dc3; color: #fff; text-decoration: none; padding: .72rem .8rem; border-radius: 10px; font-weight: 760; margin-top: 1rem; }
.primary:hover { background: #173788; }
.text-link { display: inline-block; margin: .65rem .8rem 0 0; font-size: .92rem; }
.footnote { border-top: 1px solid #d8e5f5; padding-top: .8rem; margin: 0; font-size: .9rem; color: #405673; }
@media(max-width: 690px) {
  main { align-items: start; }
  .account { grid-template-columns: 1fr; border-radius: 18px; }
  .photo { min-height: clamp(6rem,28vw,10rem); }
  .photo > img { object-position: 50% 48%; }
  .photo-caption { padding: .65rem .9rem; font-size: 1rem; }
  .photo-caption img { width: 32px; height: 32px; }
}

.profile-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; margin-block: 1rem; }
.profile-details > div { background: #eef4ff; border: 1px solid #d8e5f5; border-radius: 10px; padding: .6rem .75rem; }
.profile-details dt { font-size: .88rem; color: #405673; }
.profile-details dd { margin: .1rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.profile-active { color: #166141; }
.recovery-actions { align-items: center; }
.recovery-actions .profile-home { width: auto; margin: 0; padding: .62rem .8rem; }
.recovery { border: 1px solid #a0cdbd; background: #f0faf5; }
#recovery-title { color: #13573e; }
@media(max-width: 400px) { .profile-details { grid-template-columns: 1fr; } }
