.account-scope {
  margin: 0;
  min-height: 100dvh;
  color: var(--text-main);
  background: var(--bg-app);
  font-family: "Noto Sans Thai", "DM Sans", sans-serif;
}

.account-scope *,
.account-scope *::before,
.account-scope *::after { box-sizing: border-box; }

.account-scope .container { width: min(100% - 32px, 1030px); margin-inline: auto; }
.account-scope .account-main { padding: 46px 0 90px; }
.account-scope .account-state { color: var(--text-muted); }
.account-scope .eyebrow { margin: 0; color: var(--text-muted); font: 700 10px/1.2 "DM Sans", sans-serif; letter-spacing: .12em; }

.account-scope .account-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-color);
}

.account-scope .account-intro .eyebrow,
.account-scope .account-intro h1,
.account-scope .account-intro > p { grid-column: 1; }

.account-scope .account-intro h1 { margin: 0; color: var(--text-main); font-size: 38px; line-height: 1.2; }
.account-scope .account-intro > p:not(.eyebrow) { margin: 8px 0; color: var(--text-muted); }
.account-scope .account-name { grid-column: 2; grid-row: 1 / 4; align-self: center; margin: 0; padding: 9px 13px; border-left: 3px solid var(--brand-primary); background: var(--brand-tint); color: var(--brand-dark); font-size: 15px; }

.account-scope .account-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; border-bottom: 1px solid var(--border-color); }
.account-scope .account-overview div { min-width: 0; padding: 13px 18px 13px 0; }
.account-scope .account-overview div + div { padding-left: 18px; border-left: 1px solid var(--border-color); }
.account-scope .account-overview span,
.account-scope .account-overview strong { display: block; }
.account-scope .account-overview span { color: var(--text-muted); font-size: 11px; }
.account-scope .account-overview strong { margin-top: 2px; color: var(--text-main); font-size: 14px; overflow-wrap: anywhere; }

.account-scope .account-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 0 30px; margin-top: 28px; }
.account-scope .account-card,
.account-scope .account-login { border-top: 1px solid var(--border-color); background: transparent; }
.account-scope .account-card { padding: 18px 0; }
.account-scope .account-card h2,
.account-scope .account-login h1 { margin: 6px 0 10px; color: var(--text-main); font-size: 20px; line-height: 1.3; }
.account-scope .account-card p:not(.eyebrow),
.account-scope .account-login > p:not(.eyebrow) { margin: 0; color: var(--text-muted); line-height: 1.7; }
.account-scope .account-profile-card { grid-row: span 3; padding: 0 28px 0 0; border-top: 0; border-right: 1px solid var(--border-color); }
.account-scope .account-login { max-width: 620px; padding: 26px; border: 1px solid var(--border-color); background: var(--bg-surface); }

.account-scope .line-login,
.account-scope .account-action,
.account-scope .account-photo-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-sm);
  background: var(--brand-dark);
  color: #fff;
  font: 700 13px/1 "Noto Sans Thai", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.account-scope .account-action + .account-action { margin-left: 8px; }
.account-scope .account-action-secondary { background: transparent; color: var(--brand-dark); }
.account-scope .account-profile-photo { width: 76px; height: 76px; margin: 16px 0; overflow: hidden; border: 1px solid var(--border-color); background: var(--brand-tint); }
.account-scope .account-profile-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-scope .account-photo-upload input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.account-scope .account-photo-status { min-height: 22px; margin-top: 10px !important; font-size: 13px; }

.account-scope .account-contact-form { display: grid; gap: 12px; margin-top: 16px; }
.account-scope .account-contact-form label { display: grid; gap: 5px; color: var(--text-main); font-size: 12px; font-weight: 600; }
.account-scope .account-contact-form input { width: 100%; border: 1px solid var(--border-color); padding: 9px 10px; color: var(--text-main); font: inherit; }
.account-scope .account-contact-status { min-height: 18px; margin: 0 !important; color: var(--brand-dark); font-size: 12px; }
.account-scope .account-contact-status.is-error { color: #8d3441; }
.account-scope .account-contact-form .account-action { align-self: start; margin-top: 0; }

.account-scope .account-lister-tools { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.account-scope .account-tools-head { display: flex; align-items: baseline; gap: 12px; }
.account-scope .account-tools-head .eyebrow { margin: 0; }
.account-scope .account-tools-head h2 { margin: 0; color: var(--text-main); font-size: 18px; }
.account-scope .account-tool-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.account-scope .account-tool { display: grid; gap: 3px; min-height: 68px; padding: 10px; border: 1px solid var(--border-color); background: var(--bg-surface); color: var(--brand-dark); font: 700 13px/1.3 "Noto Sans Thai", sans-serif; text-decoration: none; }
.account-scope .account-tool small { color: var(--text-muted); font-size: 10px; font-weight: 400; line-height: 1.35; }
.account-scope .account-tool:hover,
.account-scope .account-tool:focus-visible { border-color: var(--brand-primary); background: var(--brand-tint); outline: 0; }

@media (max-width: 850px) {
  .account-scope .account-main { padding: 32px 0 64px; }
  .account-scope .account-intro { display: block; }
  .account-scope .account-intro h1 { font-size: 32px; }
  .account-scope .account-intro .account-name { margin-top: 14px; }
  .account-scope .account-overview { grid-template-columns: 1fr; }
  .account-scope .account-overview div,
  .account-scope .account-overview div + div { padding: 11px 0; border-left: 0; border-top: 1px solid var(--border-color); }
  .account-scope .account-grid { grid-template-columns: 1fr; }
  .account-scope .account-profile-card { grid-row: auto; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid var(--border-color); }
  .account-scope .account-action + .account-action { margin-left: 6px; }
  .account-scope .account-tools-head { justify-content: space-between; }
  .account-scope .account-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-scope .account-tool:last-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .account-scope .account-tool-grid { grid-template-columns: 1fr; }
}
