.bottom-nav.has-cart.has-gift.has-account {
  grid-template-columns: repeat(var(--account-nav-count, 6), minmax(0, 1fr));
  padding-left: 6px;
  padding-right: 6px;
}
.bottom-nav.has-account .bottom-link { min-width: 0; gap: 4px; font-size: 11px; white-space: nowrap; }
.bottom-nav.has-account .bottom-icon { width: 20px; height: 20px; }
.bottom-nav.has-account .bottom-icon svg { display: block; width: 20px; height: 20px; stroke-width: 1.8; }
.account-page { background: #f4f4f4; }
.account-frame { background: #fff; min-height: 100vh; min-height: 100dvh; }
.account-brand { margin: 0 0 9px; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 14px; line-height: 1.5; }
.account-profile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 16px; border-bottom: 1px solid var(--line); }
.account-profile:first-child { padding-top: calc(28px + env(safe-area-inset-top)); }
.account-profile-entry { display: inline-flex; flex: 0 1 auto; align-items: center; gap: 12px; min-width: 0; max-width: calc(100% - 100px); color: var(--ink); }
.account-avatar { display: flex; flex: 0 0 56px; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid #e9dfda; border-radius: 50%; background: #faf7f5; color: var(--accent); }
.account-avatar svg { width: 28px; height: 28px; stroke-width: 1.6; }
.account-avatar { overflow: hidden; }
.account-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.account-profile-copy { flex: 1; min-width: 0; }
.account-profile-copy h2 { margin: 0; color: #222; font-size: 22px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.account-profile-copy p { display: flex; align-items: center; gap: 3px; margin: 5px 0 0; color: #888; font-size: 13px; line-height: 1.5; }
.account-profile-copy p svg { width: 14px; height: 14px; stroke-width: 1.7; }
.account-login-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 68px; min-height: 40px; padding: 8px 16px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; }
.account-settings-link { display: inline-flex; flex: 0 0 84px; align-items: center; justify-content: center; gap: 5px; min-height: 38px; padding: 7px 10px; border: 1px solid #b6b6b6; border-radius: 24px; color: #777; font-size: 14px; }
.account-settings-link svg { width: 17px; height: 17px; stroke-width: 1.8; }
.account-row { display: flex; width: 100%; align-items: center; gap: 12px; min-height: 60px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; text-align: left; }
.account-row > svg { width: 20px; height: 20px; color: var(--accent); stroke-width: 1.6; }
.account-row > span { flex: 1; }
.account-row .account-row-arrow { width: 16px; height: 16px; color: #a69b95; }
.account-row[hidden], .account-login-link[hidden], .account-settings-link[hidden], .account-profile-copy p[hidden] { display: none; }
.account-page a:focus-visible, .account-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-frame { padding-bottom: 24px; }
.auth-topbar { display: flex; align-items: center; height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; }
.auth-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; color: var(--ink); }
.auth-back svg { width: 24px; height: 24px; stroke-width: 1.8; }
.auth-main { padding: 20px 28px 40px; }
.auth-main .account-brand { margin-bottom: 28px; font-size: 18px; }
.auth-main h1 { margin: 0 0 12px; font-size: 28px; font-weight: 600; line-height: 1.45; }
.auth-phone-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.auth-change-phone { flex: 0 0 auto; color: var(--accent); }
.auth-form { margin-top: 30px; }
.auth-label { display: block; margin-bottom: 12px; color: #655b55; font-size: 14px; }
.auth-input-wrap { display: flex; align-items: center; min-width: 0; min-height: 56px; border-bottom: 1px solid #cdbdb5; }
.auth-country { flex: 0 0 auto; padding-right: 16px; margin-right: 16px; border-right: 1px solid var(--line); font-size: 16px; }
.auth-input { display: block; width: 100%; min-width: 0; height: 56px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 22px; border-radius: 0; }
.auth-input::placeholder { color: #b5aea8; font-size: 16px; }
.auth-input-wrap:focus-within { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.auth-code-input { font-size: 28px; font-variant-numeric: tabular-nums; }
.auth-error { min-height: 20px; margin: 10px 0; color: #b33c37; font-size: 13px; line-height: 1.5; }
.auth-error[hidden] { visibility: hidden; display: block; }
.auth-submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 16px; padding: 12px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 16px; }
.auth-submit:disabled { background: #c6b6af; cursor: default; }
.auth-resend { display: flex; align-items: center; gap: 7px; min-height: 44px; margin: 10px 0 0 auto; padding: 8px 0 8px 12px; background: transparent; color: var(--accent); font-size: 13px; }
.auth-resend svg { width: 15px; height: 15px; }
.auth-resend:disabled { color: #aaa29c; cursor: default; }
.profile-topbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0; border-bottom: 1px solid var(--line); }
.profile-topbar h1 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 500; text-align: center; }
.profile-avatar-row { min-height: 102px; }
.profile-avatar-row .account-avatar { flex: 0 0 60px; width: 60px; height: 60px; }
.profile-name-row { min-height: 64px; }
.profile-name-row #profile-name-value { flex: 0 1 auto; min-width: 0; max-width: 65%; font-size: 16px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.profile-name-row > svg, .profile-avatar-row > svg { flex: 0 0 16px; }
.profile-avatar-row:disabled { cursor: wait; }
.profile-readonly-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.6; }
.profile-readonly-row > :first-child { flex: 0 0 auto; }
.profile-readonly-row > :last-child { min-width: 0; color: #666; font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.profile-feedback { margin: 12px 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-feedback.auth-error { color: #b33c37; }
.profile-feedback[hidden] { display: none; }
.profile-modal-open, .profile-modal-open body { overflow: hidden; overscroll-behavior: none; }
.profile-dialog { box-sizing: border-box; padding: 0; border: 0; background: #fff; color: #222; font-family: inherit; }
.profile-dialog:not([open]) { display: none; }
.profile-dialog::backdrop { background: rgb(0 0 0 / 62%); }
.profile-nickname-dialog { position: fixed; top: calc(var(--profile-viewport-top, 0px) + var(--profile-viewport-height, 100vh) / 2); right: 0; bottom: auto; left: 0; width: calc(100% - 56px); max-width: 340px; max-height: none; margin: 0 auto; overflow: visible; border-radius: 8px; transform: translateY(-50%); }
.nickname-content { max-height: calc(var(--profile-viewport-height, 100vh) - 64px); padding: 26px 24px 24px; overflow: auto; border-radius: inherit; }
.nickname-content h2 { margin: 0 0 24px; font-size: 22px; font-weight: 500; line-height: 1.5; text-align: center; }
.nickname-close { position: absolute; top: -15px; right: -15px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: #e6e6e6; color: #777; }
.nickname-close svg { width: 24px; height: 24px; stroke-width: 1.6; }
.nickname-input-wrap { display: flex; align-items: center; gap: 8px; min-height: 52px; border-bottom: 1px solid #e8e8e8; }
.nickname-input-wrap:focus-within { border-bottom-color: #aaa; }
.nickname-input { display: block; flex: 1; min-width: 0; width: 100%; height: 52px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: #222; font-family: inherit; font-size: 18px; }
.nickname-input::placeholder { color: #aaa; font-size: 16px; }
.nickname-clear { display: flex; flex: 0 0 32px; align-items: center; justify-content: center; width: 32px; height: 44px; padding: 0; background: transparent; color: #fff; }
.nickname-clear svg { width: 21px; height: 21px; padding: 3px; border-radius: 50%; background: #d3d3d3; stroke-width: 2; }
.nickname-clear[hidden] { display: none; }
.nickname-save { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 24px; padding: 10px 16px; border-radius: 4px; background: #e52e23; color: #fff; font-family: inherit; font-size: 19px; }
.nickname-error { margin: 10px 0 0; color: #b33c37; font-size: 13px; line-height: 1.5; }
.nickname-error[hidden] { display: none; }
.profile-avatar-sheet { position: fixed; top: auto; right: auto; bottom: 0; left: 50%; width: 100%; max-width: 480px; max-height: calc(100% - 24px); margin: 0; padding: 0 0 env(safe-area-inset-bottom); overflow: auto; border-radius: 0; transform: translateX(-50%); }
.avatar-sheet-option { display: block; width: 100%; min-height: 58px; padding: 16px 20px; border-bottom: 1px solid #eee; background: #fff; color: #222; font-family: inherit; font-size: 18px; line-height: 1.5; text-align: center; }
.avatar-sheet-option:last-child { border-top: 8px solid #f4f4f4; border-bottom: 0; }
.avatar-sheet-option:active { background: #f7f7f7; }
@media (max-width: 350px) {
  .account-profile { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .account-profile-entry { gap: 10px; max-width: calc(100% - 88px); }
  .account-profile .account-avatar { flex-basis: 48px; width: 48px; height: 48px; }
  .account-settings-link { flex-basis: 78px; }
  .account-profile-copy h2 { font-size: 19px; }
  .auth-main { padding-left: 22px; padding-right: 22px; }
}
