.account-page { min-height: 100vh; background: #f7f9fa; }
.account-page [hidden] { display: none !important; }
.account-nav a, .account-back, .account-retry {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #294967;
  font-weight: 650;
}
.account-nav { margin-left: auto; display: flex; gap: 12px; }
.account-nav a { padding: 4px; }
.account-main {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(34px,6vw,70px) 20px 64px;
}
.account-main h1 { font-size: clamp(2rem,5vw,2.9rem); letter-spacing: -.06em; line-height: 1.2; }
.account-main h2 { font-size: 1.25rem; line-height: 1.4; }
.account-main p { max-width: 48em; line-height: 1.7; }
.account-description { color: #526079; margin-top: 10px; }
.account-description:empty, #account-status:empty { display: none; }
.account-connect, .account-library {
  margin-top: 26px;
  padding: clamp(18px,4vw,30px);
  border: 1px solid #d9e2e8;
  border-radius: 14px;
  background: white;
}
.account-connect p, #account-empty { margin-top: 7px; color: #485f70; }
.account-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  margin-top: 20px;
  padding: 9px 19px;
  background: #ffa743;
  border: 1px solid #e99a40;
  border-radius: 8px;
  color: #172944;
  font-weight: 730;
}
.account-action:hover { background: #ff9a2c; }
.account-action:disabled { background: #eef0f3; border-color: #d4dae2; color: #53627a; }
.account-back, .account-retry { margin-top: 12px; background: transparent; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .22em; }
#account-status { margin-top: 17px; color: #335773; }
#account-status[data-error] { color: #96431f; }
#account-reports { margin: 12px 0 0; padding: 0; list-style: none; }
#account-reports:empty { display: none; }
#account-reports li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 12px; border-top: 1px solid #e2e7ec; }
.account-report { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 16px 0; align-items: center; }
.account-report strong { font-size: 1.04rem; }
.account-report time { grid-row: 2; color: #52667a; font-size: .9rem; }
.account-report span { grid-column: 2; grid-row: 1/3; color: #335676; font-weight: 670; }
.account-report:hover strong { text-decoration: underline; text-underline-offset: .17em; }
.account-page :is(a,button):focus-visible { outline: 3px solid #93611f; outline-offset: 3px; }
@media (max-width: 480px) {
  .account-main { padding-inline: 16px; }
  .account-action { width: 100%; }
}

.account-delete, .delete-actions button { min-height: 44px; padding: 8px; background: transparent; color: #52667a; border: 0; border-radius: 6px; cursor: pointer; }
#delete-dialog { width: min(90vw, 400px); max-height: 90vh; margin: auto; padding: 24px; border: 1px solid #d9e2e8; border-radius: 14px; color: #162741; }
#delete-dialog::backdrop { background: rgb(16 32 48 / .55); }
#delete-dialog p { margin: 12px 0; }
#delete-target { font-weight: 650; }
.delete-actions { display: flex; justify-content: flex-end; gap: 12px; }
#delete-confirm { background: #823625; color: white; padding-inline: 14px; }
