/* 계정 페이지 /account/ (MGW-DEV-028, 다솜 DSN-003 3장) — 한 화면(스크롤 0), 묶음 폭 min(100vw − 32px, 360px), 세로 가운데, 줄 사이 12.
   낮은 가로(667×375 등): 로그인 뒤는 두 칸(왼쪽 제목·상태·바로 가기 | 오른쪽 Sign out·탈퇴), 로그인 전은 한 칸. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body.page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  background: var(--cf-bg);
  color: var(--cf-ink);
  font-family: var(--cf-font);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
.acc[hidden] { display: none !important; }
.acc { min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; width: min(100vw - 32px, 360px); margin: 0 auto; padding: 0 0 24px; }
.acc h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.3px; }
.acc .lead { margin: 0; font-size: 15px; line-height: 1.45; }
.acc .lead span { display: block; margin-top: 2px; font-size: 14px; color: var(--cf-muted); }
.chk { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 700; cursor: pointer; }
.chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--cf-accent); }
/* Google 버튼 자리: 높이 44. 체크 전 = 흐린 자리(불투명도 .4) + 회색 글자, 체크 뒤 = 같은 자리에 Google 공식 버튼(레이아웃 이동 0) */
.gsi-slot { position: relative; height: 44px; }
.gsi-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 1px solid #dadce0; border-radius: 22px; background: #fff; font-size: 15px; font-weight: 600; color: #5f6368; opacity: 0.4; }
.gsi-box { position: relative; display: flex; justify-content: center; height: 44px; }
.gsi-slot.on .gsi-ph { visibility: hidden; }
.acc-err { display: none; margin: 0; align-items: center; gap: 6px; font-size: 13px; color: #b3261e; }
body.has-error .acc-err { display: inline-flex; }
.acc-err-ic { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #b3261e; color: #fff; font-size: 12px; font-weight: 800; }
.fine { margin: 0; display: flex; align-items: center; flex-wrap: wrap; column-gap: 4px; font-size: 12px; color: var(--cf-muted); }
.fine a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--cf-accent-ink); font-weight: 700; text-decoration: underline; }
.state { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 15px; font-weight: 700; }
.state svg { width: 20px; height: 20px; flex: none; color: #1e7d4f; }
.short { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.soft { background: #eef1f8; color: var(--cf-ink); }
.btn.line { background: #fff; color: var(--cf-ink); box-shadow: inset 0 0 0 1.5px var(--cf-line); }
.btn.red-text { background: none; color: #b3261e; }
.btn.red-fill { background: #b3261e; color: #fff; }
.btn:focus-visible, .chk:focus-within, .fine a:focus-visible { outline: 3px solid var(--cf-accent); outline-offset: 2px; }
.btn.busy, .btn[disabled] { opacity: 0.5; pointer-events: none; }
.sep { height: 1px; margin: 4px 0; background: var(--cf-line); }
.acc-cols { display: contents; }
.danger { margin-top: 12px; display: flex; justify-content: center; }
.danger[hidden], .confirm[hidden], .acc-done[hidden] { display: none; }
.confirm { margin-top: 4px; padding: 14px; border-radius: 14px; background: #fff4f3; box-shadow: inset 0 0 0 1.5px #f1c4bf; display: flex; flex-direction: column; gap: 6px; }
.confirm h2 { margin: 0; font-size: 17px; font-weight: 800; color: #b3261e; }
.confirm p { margin: 0; font-size: 14px; line-height: 1.4; }
.confirm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.acc-del-err { display: none; color: #b3261e; font-size: 13px !important; }
.confirm.failed .acc-del-err { display: block; }
.acc-done { margin: 12px 0 0; text-align: center; font-size: 15px; font-weight: 700; }
@media (orientation: landscape) and (max-height: 480px) {
  .acc { width: min(100vw - 32px, 640px); padding-bottom: 12px; gap: 10px; }
  .acc-out { width: min(100vw - 32px, 360px); }
  .acc.two { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-content: center; }
  .acc.two .acc-cols { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
  .acc h1 { font-size: 20px; }
  .acc .sep { display: none; }
  .danger { margin-top: 0; }
}
