/* Sign-in entry only: composition, loading skeleton, feedback and footer.
   Authenticated dashboard: account.css. Global navigation: site-nav.css. */
html:root body.account-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
html:root .account-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.account-shell { max-width: var(--maxw-wide); margin: 0 auto; }

.account { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.card {
  background: var(--bg-white);
  border-radius: var(--r);
  padding: 36px 32px;
}

.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.2em; }
.form-status.err  { color: var(--danger); }
.form-status.ok   { color: #248A3D; }
.form-status.busy { color: var(--ink-faint); }

.identity-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg-white);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.skeleton-bar { pointer-events: none; }
.sk-lines { flex: 1; min-width: 0; }
.sk {
  background: linear-gradient(90deg, #ECECEF 25%, #F4F4F6 37%, #ECECEF 63%);
  background-size: 400% 100%;
  border-radius: 6px;
  animation: sk-shimmer 1.4s var(--ease) infinite;
}
.sk-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.sk-line { height: 13px; margin-bottom: 8px; }
.sk-line--sm { height: 11px; margin-bottom: 0; }
.sk-block { height: 132px; border-radius: var(--r-sm); margin-top: 20px; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* A shimmer is decoration, and a reduced-motion visitor still needs to see the placeholder —
   so the animation goes and the shape stays. */
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* Entry footer */
.account-footer { flex-shrink: 0; padding-inline: var(--site-nav-gutter); }
.account-footer-inner { border-top: 1px solid #ececf0; padding: 20px 0; display: flex; justify-content: space-between; gap: 24px; color: #777984; font-size: 11px; }
.account-footer-inner p { margin: 0; }
.account-footer-inner a { color: inherit; text-decoration: none; padding-block: 12px; }

html:root body.account-page #state-signedout {
  width: 100%; padding: 70px 24px 66px; margin: 0;
}
#state-signedout .sign-in { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
#state-signedout .logo-tile { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg, #f8f8fa, #f1f1f4); margin-bottom: 30px; }
#state-signedout .hero-symbol { width: 60px; height: 60px; background: #1d1d1f; mask: url("../icons/logo.svg") center / contain no-repeat; -webkit-mask: url("../icons/logo.svg") center / contain no-repeat; }
#state-signedout #sign-in-heading { font-size: clamp(42px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.052em; font-weight: 700; margin: 0; }
#state-signedout .sign-in-subtitle { font-size: clamp(17px, 2vw, 20px); line-height: 1.45; color: #6e6e73; margin: 16px 0 0; letter-spacing: -0.012em; }
#state-signedout .auth-actions { width: min(100%, 374px); display: grid; gap: 13px; margin: 38px auto 0; }
#state-signedout .auth-actions .oauth-btn { display: flex; justify-content: center; align-items: center; position: relative; gap: 12px; width: 100%; min-height: 48px; border: 1px solid #dedee3; border-radius: 10px; background: #fff; color: #1d1d1f; font-size: 14px; font-weight: 560; letter-spacing: -.011em; font-family: var(--sans); cursor: pointer; margin: 0; padding: 12px 16px; text-decoration: none; box-shadow: none; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
#state-signedout .auth-actions .oauth-btn:hover { background: #f9f9fb; border-color: #c7c7d0; box-shadow: 0 2px 12px rgba(0,0,0,.035); }
#state-signedout .auth-actions .oauth-btn:active { background: #f3f3f6; transform: scale(.995); }
#state-signedout .oauth-mark { display: inline-flex; flex: 0 0 auto; }
#state-signedout .oauth-mark svg { width: 21px; height: 21px; flex: 0 0 auto; }
#state-signedout .account-note { margin: 24px 0 0; font-size: 12.5px; line-height: 1.55; color: #777984; }

/* Highlights */
#state-signedout .feature-grid { width: min(100%, 690px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 72px auto 0; }
#state-signedout .feature { min-width: 0; text-align: center; display: flex; align-items: center; flex-direction: column; }
#state-signedout .feature-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; background: #f5f5f7; margin-bottom: 16px; color: #383a41; }
#state-signedout .feature-icon svg { width: 32px; height: 32px; }
#state-signedout .feature h2 { margin: 0; font-size: 15px; line-height: 1.25; font-weight: 620; letter-spacing: -0.018em; }
#state-signedout .feature p { color: #777984; margin: 7px 0 0; font-size: 13px; line-height: 1.5; }

#state-signedout .form-status:empty { display: none; }
#state-signedout .form-status { max-width: 374px; margin: 16px auto 0; }
@media (max-width: 700px) {
  html:root body.account-page #state-signedout { padding: 56px 22px; }
  #state-signedout .logo-tile { width: 78px; height: 78px; border-radius: 20px; margin-bottom: 28px; }
  #state-signedout .hero-symbol { width: 55px; height: 55px; }
  #state-signedout #sign-in-heading { font-size: clamp(35px, 9vw, 47px); }
  #state-signedout .sign-in-subtitle { font-size: 17px; margin-top: 14px; }
  #state-signedout .auth-actions { margin-top: 32px; }
  #state-signedout .feature-grid { margin-top: 54px; gap: 16px; }
  #state-signedout .feature-icon { width: 50px; height: 50px; border-radius: 13px; }
  #state-signedout .feature h2 { font-size: 14px; }
  #state-signedout .feature p { font-size: 12px; }
}
@media (max-width: 390px) {
  html:root body.account-page #state-signedout { padding-inline: 16px; }
  #state-signedout .account-note { font-size: 11.5px; }
  #state-signedout .feature-grid { gap: 8px; }
  #state-signedout .feature p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #state-signedout .auth-actions .oauth-btn { transition: none; }
}

/* Loading skeleton cards retain their narrow-screen spacing. */
@media (max-width: 560px) {
  .account-page .card { padding: 28px 22px; }
  .account-page .identity-bar { padding: 18px; }
}
