@font-face { font-family: "Linxi Kit Sans"; src: url("/assets/fonts/kit-sans.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root { color-scheme: dark; font-synthesis: none; --account-blue: #38adf7; }
body.account-shell { color: #f7f7fa; }
.account-shell main { width: min(1120px, 100%); min-height: 100svh; margin: 0 auto; padding: 132px 32px 48px; }
.account-page { width: 100%; }
.account-eyebrow { margin: 0 0 12px; color: #71c8ff; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.profile-heading { margin-bottom: 30px; }
.profile-heading h1 { margin: 0; font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.profile-heading h1 > span { margin-left: 6px; color: #71c8ff; }
.profile-heading > p:last-child { margin: 14px 0 0; font-size: 16px; color: #a5bdce; line-height: 1.7; }
.profile-identity { position: relative; display: flex; align-items: center; gap: 24px; min-height: 180px; padding: 30px 36px; border: 1px solid #c1e1f22b; border-radius: 24px; background: linear-gradient(115deg, #183b528c, #0b203180); box-shadow: inset 0 1px 0 #ffffff0a; backdrop-filter: blur(16px); }
.profile-avatar { position: relative; flex: none; width: 112px; height: 112px; padding: 7px; border: 1px solid #71c8ff59; border-radius: 50%; background: #142841; box-shadow: 0 0 36px #487ddb1a; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-avatar > span { position: absolute; right: 0; bottom: 2px; display: grid; place-items: center; width: 28px; height: 28px; border: 3px solid #0d2538; border-radius: 50%; background: #ffc848; color: #765000; font-size: 17px; }
.profile-details { flex: 1; min-width: 0; }
.profile-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: #a5bdce; font-size: 12px; }
.profile-status > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: #8ed7a6; }
#profile-role { margin-left: 6px; padding-left: 12px; border-left: 1px solid #c1e1f22b; color: #71c8ff; }
#profile-name { margin: 0; font-size: 30px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
#profile-email { margin: 8px 0 0; color: #a5bdce; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.profile-home { display: inline-flex; align-items: center; justify-content: center; gap: 16px; flex: none; min-height: 46px; padding: 0 22px; border: 1px solid #c1e1f233; border-radius: 10px; background: #05172347; color: #d1e0eb; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s; }
.profile-home:hover { background: #307cb366; border-color: #70c4f766; }
.profile-home span { color: #71c8ff; font-size: 20px; }
.profile-shortcuts { margin-top: 32px; }
.profile-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.profile-section-heading h2 { margin: 0; font-size: 16px; font-weight: 650; }
.profile-section-heading > span { color: #819caf; font-size: 12px; }
.profile-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile-link { display: flex; flex-direction: column; padding: 24px; border: 1px solid #c1e1f221; border-radius: 18px; background: #0b1c29b3; transition: background .2s, border-color .2s, transform .2s; }
.profile-link:hover { transform: translateY(-3px); border-color: #71c8ff59; background: #16374acc; }
.profile-link-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #71c8ff26; border-radius: 12px; background: #39adf710; color: #71c8ff; }
.profile-link svg { width: 22px; height: 22px; }
.profile-link h3 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; }
.profile-link p { margin: 0; color: #a5bdce; font-size: 13px; line-height: 1.8; }
.profile-link-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #c1e1f215; color: #71c8ff; font-size: 13px; font-weight: 600; }
.profile-link-action > span { font-size: 20px; line-height: 1; }
.profile-admin { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 18px 24px; border: 1px solid #c1e1f22b; border-radius: 16px; background: #16374a70; transition: background .2s; }
.profile-admin:hover { background: #20465db3; }
.profile-admin-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #71c8ff; background: #39adf710; }
.profile-admin svg { width: 20px; height: 20px; }
.profile-admin strong { display: block; font-size: 14px; font-weight: 650; }
.profile-admin small { display: block; margin-top: 4px; color: #a5bdce; font-size: 12px; }
.profile-admin-arrow { margin-left: auto; color: #71c8ff; font-size: 22px; }
.profile-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #c1e1f21f; }
.profile-bottom p { margin: 0; color: #819caf; font-size: 13px; }
.logout { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0 6px 10px; border: 0; background: none; color: #a5bdce; font: inherit; font-size: 13px; cursor: pointer; }
.logout svg { width: 18px; height: 18px; }
.logout:hover { color: #f7f7fa; }
.logout:disabled { opacity: .6; cursor: wait; }
.account-shell a:focus-visible, .account-shell button:focus-visible { outline: 2px solid #71c8ff; outline-offset: 4px; }

/* Keep authentication within the same visual language. */
#auth-view { width: min(100%, 440px); margin: 0 auto; padding: 32px; border: 1px solid #c1e1f22b; border-radius: 24px; background: #0b1c29b3; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #f7f7fa; font-family: "Linxi Kit Sans", sans-serif; font-size: 28px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.auth-heading { margin: 24px 0; }
.auth-heading h1 { margin: 0; font-size: 28px; font-weight: 750; }
.auth-heading p { margin: 10px 0 0; color: #a5bdce; font-size: 13px; line-height: 1.8; }
#auth-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: block; }
.field input { display: block; width: 100%; height: 50px; padding: 0 16px; border: 1px solid #c1e1f233; border-radius: 10px; background: #06121dcc; color: #f7f7fa; font: inherit; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #819caf; }
.field input:focus { border-color: #71c8ff; box-shadow: 0 0 0 3px #39adf718; }
.form-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-links a, .form-links button { padding: 0; border: 0; background: none; color: #a5bdce; font: inherit; font-size: 12px; cursor: pointer; }
.form-links button { color: #71c8ff; }
.form-links a:hover, .form-links button:hover { color: #f7f7fa; }
.message { margin: 14px 0 0; color: #ffaca4; font-size: 13px; line-height: 1.7; }
#form-message { margin: -4px 0; }
.message:empty { display: none; }
.submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--account-blue); color: #092238; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.submit:hover { background: #71c8ff; }
.submit:disabled { opacity: .6; cursor: wait; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; color: #819caf; font-size: 11px; line-height: 1.8; }
.privacy-icon { display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 2px; border: 1px solid #819caf; border-radius: 50%; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.loading { margin: 100px 0; text-align: center; color: #a5bdce; font-size: 14px; }

@media (max-width: 767px) {
  .account-shell .site-nav { top: 12px; bottom: auto; right: auto; left: 50%; transform: translateX(-50%); }
  .account-shell .site-mobile-links { top: calc(100% + 8px); bottom: auto; right: 0; margin: 0; }
  .account-shell main { padding: 110px 20px 32px; }
  .profile-heading { margin-bottom: 24px; }
  .profile-heading > p:last-child { font-size: 14px; }
  .profile-identity { flex-wrap: wrap; gap: 16px; padding: 24px; border-radius: 20px; }
  .profile-avatar { width: 80px; height: 80px; padding: 5px; }
  .profile-avatar > span { width: 24px; height: 24px; font-size: 14px; }
  .profile-details { flex-basis: calc(100% - 96px); }
  #profile-name { font-size: 25px; }
  #profile-email { font-size: 12px; }
  .profile-home { width: 100%; margin-top: 4px; }
  .profile-link-grid { grid-template-columns: 1fr; gap: 12px; }
  .profile-link { display: grid; grid-template-columns: 42px minmax(0, 1fr) 20px; gap: 4px 14px; padding: 20px; }
  .profile-link-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .profile-link h3 { grid-column: 2; margin: 0; font-size: 17px; }
  .profile-link p { grid-column: 2; font-size: 12px; }
  .profile-link-action { grid-column: 3; grid-row: 1 / 3; align-self: center; margin: 0; padding: 0; border: 0; font-size: 0; }
  .profile-link-action > span { font-size: 20px; }
  .profile-shortcuts { margin-top: 26px; }
  .profile-admin { padding: 18px 20px; }
  .profile-bottom { margin-top: 24px; }
  #auth-view { padding: 26px 24px; }
}
@media (max-width: 359px) {
  .account-shell main { padding-inline: 16px; }
  .profile-identity { padding: 20px; }
  .profile-avatar { width: 64px; height: 64px; }
  .profile-details { flex-basis: calc(100% - 80px); }
  .profile-section-heading > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .account-page *, .account-page *::before { transition: none !important; }
  .profile-link:hover { transform: none; }
}
