/* Account page: an Art Nouveau garden archive using the same navigation language as home. */
body.settings-surface {
  color-scheme: light;
  color: #29471f;
  background: #f5f0e1;
}
body.settings-surface::before { display: none; }
.settings-surface .site-header {
  background: #f5f0e1f2;
  border-color: #d7c994;
  box-shadow: 0 5px 22px #6573470d;
}
.settings-surface .brand { color: #29471f; }
.settings-surface .brand small { color: #5c7150; }
.settings-surface .main-nav button {
  color: #516f45;
  border-radius: 999px;
  transition: color .5s ease-in-out, background .5s ease-in-out, box-shadow .5s ease-in-out;
}
.settings-surface .main-nav button.active,
.settings-surface .main-nav button:hover { color: #29471f; background: #e9e6d1; }
.settings-surface .icon-btn,
.settings-surface .user-button {
  color: #29471f;
  background: #faf7ea;
  border-color: #cfc493;
}
.settings-surface .user-button {
  color: #f8f3df;
  background: #2d5016;
  border-color: #c9a227;
  box-shadow: 0 0 0 4px #c9a2271c;
}
.settings-surface .site-header .button-primary {
  color: #f8f3df;
  background: #2d5016;
  border-color: #c9a227;
  border-radius: 999px;
}
.settings-surface .site-header .button-primary:hover { background: #42662a; }
.settings-surface .site-footer { color: #667a56; background: #eee9d7; border-color: #d7c994; }
.settings-surface .back-to-top { color: #2d5016; background: #f7f2e2; border-color: #c9ad62; }

.account-page { min-height: calc(100svh - 86px); color: #29471f; background: #f5f0e1; font-family: Georgia,"Songti SC","Noto Serif SC",serif; }
.account-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 78px var(--page-gutter) 92px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 43%, #fffdf4 0 12%, transparent 42%),
    linear-gradient(180deg,#eee8d2 0%,#f5f0e1 100%);
  border-bottom: 1px solid #d7c994;
}
.account-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid #c9a2278a;
  border-radius: 48% 48% 24px 24px / 17% 17% 24px 24px;
  pointer-events: none;
}
.account-hero::after {
  content: "✦";
  position: absolute;
  bottom: 19px;
  left: 50%;
  width: 50px;
  color: #a78634;
  background: #f5f0e1;
  transform: translateX(-50%);
}
.account-hero-ornament { position: absolute; inset-block: 0; width: min(360px,30vw); opacity: .78; background: url('/home-ornament.svg') center / contain no-repeat; pointer-events: none; }
.account-hero-ornament-left { left: -5%; }
.account-hero-ornament-right { right: -5%; transform: scaleX(-1); }
.account-hero-copy { position: relative; z-index: 1; width: min(680px,86vw); }
.account-kicker { color: #8f763a; font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 22px auto 14px;
  color: #f5f0e1;
  background: #2d5016;
  border: 2px solid #c9a227;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #f5f0e1,0 0 0 9px #c9a22780,0 14px 30px #2d501624;
  font-size: 27px;
  font-style: italic;
}
.account-greeting { margin: 20px 0 6px; color: #647559; font-size: 13px; letter-spacing: .12em; }
.account-hero h1 { margin: 5px 0 15px; color: #2d5016; font-size: clamp(38px,5vw,65px); font-weight: 400; letter-spacing: .08em; }
.account-hero-copy > p:last-child { margin: 0; color: #647559; font-size: 14px; line-height: 1.9; }
.account-main { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 70px 0 54px; }
.account-section-heading { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 30px; text-align: center; color: #ad8e43; }
.account-section-heading small { color: #8f763a; font-size: 9px; letter-spacing: .25em; }
.account-section-heading h2 { margin: 7px 0 0; color: #2d5016; font-size: 31px; font-weight: 400; }
.account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.account-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 38px;
  color: #2d5016;
  background: #faf7ea;
  border: 2px solid #c9a22799;
  border-radius: 24px;
  box-shadow: 0 10px 30px #59683414;
  transition: transform .7s ease-in-out, border-color .7s ease-in-out, box-shadow .7s ease-in-out;
}
.account-card::after { content: ""; position: absolute; right: -70px; bottom: -82px; width: 210px; height: 210px; border: 1px solid #c9a2274d; border-radius: 48% 52% 44% 56%; box-shadow: 0 0 0 24px #c9a2270d,0 0 0 48px #2d501609; transform: rotate(18deg); }
.account-card:hover { transform: translateY(-5px); border-color: #c9a227; box-shadow: 0 18px 42px #88712c24; }
.account-card-number { position: absolute; top: 24px; right: 28px; color: #a68b4c; font-size: 11px; letter-spacing: .15em; }
.account-card-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 23px; color: #b08c36; background: #efe7c8; border: 1px solid #c9a22780; border-radius: 50% 50% 46% 54%; font-size: 23px; transition: transform .7s ease-in-out; }
.account-card:hover .account-card-icon { transform: rotate(12deg) scale(1.06); }
.account-card h3 { margin: 0 0 13px; color: #2d5016; font-size: 25px; font-weight: 400; }
.account-card > p { max-width: 500px; margin: 0 0 23px; color: #66755d; font-size: 13px; line-height: 1.9; }
.account-members { display: flex; gap: 11px; flex-wrap: wrap; position: relative; z-index: 1; }
.account-member { display: grid; grid-template-columns: 35px auto; column-gap: 9px; align-items: center; min-width: 145px; padding: 9px 13px; background: #f3edda; border: 1px solid #d6c794; border-radius: 999px; }
.account-member > span { grid-row: 1 / 3; display: grid; place-items: center; width: 35px; height: 35px; color: #f5f0e1; background: #52713d; border: 1px solid #c9a227; border-radius: 50%; font-size: 13px; }
.account-member b { color: #345426; font-size: 13px; font-weight: 600; }
.account-member small { color: #829078; font-size: 9px; }
.account-member.is-current { background: #e8ead4; border-color: #93a66e; }
.account-logout,.account-restore { position: relative; z-index: 1; border-radius: 999px; font-family: Georgia,"Songti SC",serif; transition: color .5s ease-in-out, background .5s ease-in-out, transform .5s ease-in-out, box-shadow .5s ease-in-out; }
.account-logout { display: inline-flex; align-items: center; gap: 14px; min-height: 43px; margin-top: 28px; padding: 9px 18px; color: #2d5016; background: transparent; border: 1px solid #749064; }
.account-logout:hover,.account-logout:focus-visible { color: #f5f0e1; background: #2d5016; transform: translateY(-2px); box-shadow: 0 10px 25px #2d501629; }
.account-archive ul { position: relative; z-index: 1; display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: #526749; font-size: 13px; }
.account-archive li { display: flex; gap: 10px; line-height: 1.65; }
.account-archive li::before { content: "❧"; color: #a78634; }
.account-archive-note { position: relative; z-index: 1; display: inline-block; margin-top: 28px; padding-top: 15px; color: #9a7d3b; border-top: 1px solid #d3c48e; font-size: 11px; letter-spacing: .12em; }
.account-trash { margin-top: 24px; padding: 36px 38px 31px; background: #e9e1ca; border: 2px solid #c9a22780; border-radius: 24px; box-shadow: 0 10px 30px #59683410; }
.account-trash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding-bottom: 24px; border-bottom: 1px solid #cdbd87; }
.account-trash-head h2 { margin: 6px 0 7px; color: #2d5016; font-size: 29px; font-weight: 400; }
.account-trash-head p { margin: 0; color: #63715a; font-size: 13px; line-height: 1.7; }
.account-trash-count { display: grid; flex: 0 0 84px; place-items: center; color: #2d5016; font-size: 28px; }
.account-trash-count small { color: #7d795e; font-size: 9px; letter-spacing: .1em; }
.account-trash-list { margin-top: 8px; }
.account-trash-item { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 15px 2px; border-bottom: 1px solid #cec092; }
.account-trash-kind { color: #8a7138; font-size: 10px; letter-spacing: .12em; }
.account-trash-name { min-width: 0; overflow: hidden; color: #38552e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-restore { min-height: 34px; padding: 6px 15px; color: #f5f0e1; background: #2d5016; border: 1px solid #c9a227; }
.account-restore:hover,.account-restore:focus-visible { color: #2d5016; background: #c9a227; transform: translateY(-2px); box-shadow: 0 8px 20px #947a332b; }
.account-trash-empty { padding: 35px 15px 13px; text-align: center; }
.account-trash-empty > span { display: block; color: #a98a40; font-size: 30px; }
.account-trash-empty strong { display: block; margin-top: 8px; color: #3c592f; font-size: 16px; font-weight: 400; }
.account-trash-empty p { margin: 8px 0 0; color: #75806c; font-size: 12px; }
.account-signature { margin: 38px 0 0; color: #8b805f; text-align: center; font-size: 10px; letter-spacing: .14em; }

@media(max-width:760px) {
  .settings-surface .site-header { height: auto; }
  .account-hero { min-height: 390px; padding-block: 65px 75px; }
  .account-hero::before { inset: 13px; }
  .account-hero-ornament { width: 45vw; opacity: .38; }
  .account-grid { grid-template-columns: 1fr; }
  .account-card { min-height: auto; padding: 30px 25px; }
  .account-trash { padding: 29px 24px 25px; }
}
@media(max-width:500px) {
  .account-main { width: min(100% - 26px,1180px); padding-top: 48px; }
  .account-hero h1 { font-size: 38px; }
  .account-hero-copy > p:last-child { font-size: 12px; }
  .account-section-heading { gap: 12px; }
  .account-section-heading h2 { font-size: 27px; }
  .account-trash-head { align-items: flex-start; }
  .account-trash-item { grid-template-columns: 55px minmax(0,1fr); gap: 8px 10px; }
  .account-trash-item .account-restore { grid-column: 2; justify-self: start; }
}
@media(prefers-reduced-motion:reduce) {
  .account-card,.account-card-icon,.account-logout,.account-restore { transition-duration: .01ms !important; }
}
