.account-main {
  width: min(calc(100% - 48px), 1202px);
  margin: 0 auto;
  padding: 75px 0 100px;
}
.account-greeting p, .account-greeting h1 { margin: 0; }
.account-greeting p { font-size: 17px; }
.account-greeting h1 { margin-top: 24px; font-size: 27px; line-height: 1.3; }
.account-card {
  min-height: 230px;
  display: flex;
  align-items: center;
  gap: 70px;
  margin-top: 51px;
  padding: 46px 49px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.account-avatar-wrap { position: relative; width: 138px; height: 138px; flex: 0 0 138px; }
.account-avatar { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.account-camera {
  position: absolute;
  right: -2px;
  bottom: 8px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #bbb;
}
.account-camera::before { width: 15px; height: 10px; border-radius: 2px; background: white; content: ""; }
.account-camera::after { position: absolute; width: 5px; height: 5px; border: 2px solid #bbb; border-radius: 50%; background: white; content: ""; }
.account-details h2, .account-details p { margin: 0; }
.account-details h2 { font-size: 27px; }
.account-details p { margin-top: 16px; color: var(--muted); font-size: 12px; }
.member-badge { display: inline-block; margin-top: 24px; padding: 4px 9px; border-radius: 3px; background: #eee; color: var(--ink); font-size: 10px; }
.account-status-title { margin: 65px 0 31px; font-size: 26px; }
.account-status-box { min-height: 485px; display: flex; justify-content: flex-end; padding: 40px 43px; border: 1px solid var(--line-dark); border-radius: 8px; }
.account-stat { width: 247px; height: 142px; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 25px 31px; color: white; }
.account-stat.coaching { background: var(--blue); color: #343434; }
.account-stat.feedback { margin-left: 32px; background: var(--ink); }
.account-stat-label { grid-column: 1 / -1; align-self: end; font-size: 12px; }
.account-stat-value { align-self: start; font-size: 31px; font-weight: 600; }
.account-stat-arrow { align-self: start; font-size: 40px; font-weight: 200; line-height: .8; }

@media (max-width: 820px) {
  .account-main { width: calc(100% - 32px); padding: 28px 0 60px; }
  .account-card { gap: 28px; padding: 30px 24px; }
  .account-avatar-wrap { width: 100px; height: 100px; flex-basis: 100px; }
  .account-details h2 { font-size: 22px; }
  .account-status-box { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; }
  .account-stat { width: 100%; height: 120px; padding: 20px; }
  .account-stat.feedback { margin-left: 0; }
}

@media (max-width: 520px) {
  .account-main { width: calc(100% - 24px); }
  .account-greeting h1 { font-size: 22px; }
  .account-card { align-items: flex-start; }
  .account-status-title { font-size: 22px; }
  .account-status-box { grid-template-columns: 1fr; }
}


/* =========================================================
   모바일 계정 및 사용자 데이터 (Figma 360x800 원본 기준)
   - 실제 사용자 이름/이메일/기록 수는 기존 API 데이터 사용
   - 767px 이하에서만 원본 배치로 변경
   ========================================================= */
@media (max-width: 767px) {
  body[data-page="account"] {
    min-width: 320px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background: #fff;
  }

  body[data-page="account"] .site-header {
    height: 64px;
    border-bottom: 0;
    background: #fff;
  }

  body[data-page="account"] .header-inner {
    width: 100%;
    height: 64px;
    flex-wrap: nowrap;
    align-content: normal;
    padding: 16px 21px 0;
  }

  body[data-page="account"] .brand {
    width: 63px;
    height: 23px;
    flex: 0 0 63px;
    order: initial;
  }

  body[data-page="account"] .profile-button {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    order: initial;
    margin-left: auto;
    overflow: hidden;
  }

  body[data-page="account"] .desktop-nav { display: none; }

  body[data-page="account"] .account-main {
    width: 100%;
    min-height: calc(100svh - 120px);
    margin: 0;
    padding: 14px 17px 63px;
  }

  body[data-page="account"] .account-greeting p,
  body[data-page="account"] .account-greeting h1 { margin: 0; }

  body[data-page="account"] .account-greeting p {
    color: #474747;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
  }

  body[data-page="account"] .account-greeting h1 {
    margin-top: 3px;
    color: #575757;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -.3px;
  }

  body[data-page="account"] .account-card {
    width: 100%;
    min-height: 79px;
    height: 79px;
    align-items: center;
    gap: 16px;
    margin-top: 25px;
    padding: 16px 11px;
    border: 1px solid #c1c1c1;
    border-radius: 10px;
  }

  body[data-page="account"] .account-avatar-wrap {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  body[data-page="account"] .account-avatar {
    width: 42px;
    height: 42px;
    border-radius: 0;
    object-fit: cover;
  }

  body[data-page="account"] .account-camera {
    right: 0;
    bottom: 0;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d9d9d9;
  }

  body[data-page="account"] .account-camera::before {
    width: 6px;
    height: 4px;
    border-radius: 1px;
  }

  body[data-page="account"] .account-camera::after {
    width: 2px;
    height: 2px;
    border-width: 1px;
  }

  body[data-page="account"] .account-details {
    min-width: 0;
    align-self: center;
  }

  body[data-page="account"] .account-details h2 {
    overflow: hidden;
    margin: 0;
    color: #474747;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="account"] .account-details p {
    overflow: hidden;
    max-width: 215px;
    margin-top: 3px;
    color: #787878;
    font-size: 12px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="account"] .member-badge {
    margin-top: 6px;
    padding: 2px 9px 3px;
    border-radius: 4px;
    background: #e7e7e7;
    color: #474747;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
  }

  body[data-page="account"] .account-status-title {
    margin: 60px 0 9px;
    color: #474747;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
  }

  body[data-page="account"] .account-status-box {
    width: 100%;
    min-height: 359px;
    height: 359px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    justify-content: stretch;
    padding: 31px 38px 30px;
    border: 1px solid #c1c1c1;
    border-radius: 8px;
  }

  body[data-page="account"] .account-stat {
    width: 100%;
    height: 136px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 22px 31px 20px;
    border-radius: 10px;
    text-decoration: none;
    touch-action: manipulation;
  }

  body[data-page="account"] .account-stat.coaching {
    background: #73acd9;
    color: #343434;
  }

  body[data-page="account"] .account-stat.feedback {
    margin: 0;
    background: #474747;
    color: #fff;
  }

  body[data-page="account"] .account-stat-label {
    grid-column: 1 / -1;
    align-self: end;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
  }

  body[data-page="account"] .account-stat-value {
    align-self: start;
    margin-top: 11px;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
  }

  body[data-page="account"] .account-stat-arrow {
    align-self: start;
    margin-top: 8px;
    font-size: 46px;
    font-weight: 200;
    line-height: .7;
  }
}
