#profile-card { width: 100%; text-align: left; cursor: pointer; }
#view-account { transform: none; transition: none; background: var(--bg); }
.account-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0; width: 100%; max-width: 1040px; margin-inline: auto; padding: 22px 32px; }
.account-head h1 { margin: 0; font-size: 16px; font-weight: 500; outline: none; }
.account-head-actions, .account-private, #account-edit { display: flex; align-items: center; gap: 8px; }
.account-head-actions { gap: 24px; }
.account-private { color: var(--ink-soft); font-size: 14px; }
#account-edit { min-height: 44px; padding: 8px 0; background: transparent; font-size: 15px; }
.account-body { flex: 1; min-height: 0; width: 100%; max-width: 960px; margin-inline: auto; padding: 12px 32px 40px; overflow-y: auto; overscroll-behavior: contain; }
.account-identity { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 30px 0 38px; text-align: center; }
.account-avatar { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: #3c4b5d; color: #fff; font-size: 31px; }
.account-identity strong { display: block; font-size: 25px; font-weight: 500; letter-spacing: -.6px; }
.account-identity div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.account-identity div > span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.account-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 0; margin: 0 0 12px; }
.account-summary > div { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 14px; text-align: center; overflow-wrap: anywhere; }
.account-summary > div + div { border-left: 1px solid var(--line); }
.account-summary strong { font-size: 15px; font-weight: 500; }
.account-summary span { font-size: 13px; color: var(--ink-soft); }
.account-status { position: sticky; top: 0; z-index: 2; margin: 18px 0 0; padding: 12px; border-radius: 12px; background: var(--bg); color: var(--brown); font-size: 15px; }
.account-status:empty { display: none; }
.account-status[data-error="true"] { color: #9b3535; }
.account-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.account-section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.account-section h2 { margin: 0 0 16px; font-size: 18px; font-weight: 500; }
.account-section p { margin: -6px 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.account-field > span { font-size: 14px; color: var(--ink-soft); }
.account-field input, .account-field select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 17px; }
.account-field input:focus, .account-field select:focus { outline: none; box-shadow: none; }
.account-country { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.account-country summary { min-height: 46px; padding: 10px 14px; }
.account-country img { flex: 0 0 24px; object-fit: contain; }
.account-country-panel { padding: 10px; border-top: 1px solid var(--line); }
.account-country-options { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
.account-country-options button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px; border-radius: 8px; text-align: left; font-size: 15px; background: transparent; }
.account-country-options button:hover, .account-country-options button:focus-visible, .account-country-options button[aria-pressed="true"] { background: var(--track); outline: none; }
.account-country-panel > p { padding: 14px 4px 0; }
.account-page summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.account-page summary::-webkit-details-marker { display: none; }
.account-page summary > span { display: flex; align-items: center; gap: 8px; }
.account-password-content { padding-top: 24px; }
.account-primary, .account-secondary, .account-danger, .account-logout { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; border-radius: 12px; font-size: 15px; }
.account-primary { margin-top: 24px; background: var(--brown); color: #fff; }
.account-secondary { margin-top: 18px; background: var(--track); }
.account-page button:disabled { opacity: .6; }
.account-areas { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.account-areas summary { min-height: 48px; padding: 12px 14px; }
.account-areas-list { max-height: 250px; overflow: auto; overscroll-behavior: contain; padding: 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-areas-list label { display: flex; align-items: center; gap: 10px; padding: 12px 8px; font-size: 14px; cursor: pointer; }
.account-areas-list input { flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--brown); }
.account-selected { display: flex; gap: 7px; margin-top: 12px; height: 32px; overflow-x: auto; align-items: center; }
.account-selected span { flex-shrink: 0; white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: var(--track); font-size: 13px; }
.account-experience { margin-top: 24px; max-width: 360px; }
.account-footer { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.account-footer details { color: #9b3535; }
.account-footer form { margin-top: 18px; }
.account-footer p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.account-danger { margin-top: 16px; background: #9b3535; color: #fff; }
.account-footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.account-logout, .account-deactivate-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 12px 8px; border-radius: 12px; font-size: 15px; background: var(--track); }
.account-deactivate-toggle { background: #f6ece8; color: #995449; }
#account-title:focus { outline: none; box-shadow: none; }
#segments[data-account="true"] .segments__thumb { opacity: 0; }
@media (max-width: 899px) {
  .account-head { padding: 8px 20px; }
  .account-head-actions { gap: 16px; }
  .account-body { padding: 8px 20px calc(24px + var(--safe-bottom)); }
  .account-identity { padding: 22px 0 30px; }
  .account-grid, .account-areas-list { grid-template-columns: 1fr; }
  .account-summary > div { padding: 0 8px; }
  .account-summary strong { font-size: 14px; }
  .account-summary span { font-size: 12px; }
  .account-primary { width: 100%; }
}

.account-section .account-email-help { margin: 14px 0 0; }



.account-body { scrollbar-gutter: stable; }
.account-identity strong, .account-identity div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#account-country-value { min-width: 0; }
#account-country-value > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-loading { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; overflow: hidden; visibility: hidden; }
.account-page[data-loading="true"] .account-loading { visibility: visible; }
.account-loading::after { content: ''; display: block; height: 100%; width: 35%; background: var(--brown); border-radius: 999px; animation: account-progress 1.2s ease-in-out infinite; }
@keyframes account-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .account-loading::after { animation: none; width: 100%; opacity: .5; } }

.account-readonly > div { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border: 0; border-radius: 12px; background: var(--pill); font-size: 17px; overflow-wrap: anywhere; text-decoration: none; cursor: default; }
.account-readonly a, .account-identity a { color: inherit !important; text-decoration: none !important; pointer-events: none; }

.app[data-account="true"] { grid-template-rows: 0 minmax(0, 1fr); }
.app[data-account="true"] .topbar { display: none; }
.account-heading { display: flex; align-items: center; gap: 12px; }
@media (max-width: 899px) { .account-head { padding-top: calc(8px + var(--safe-top)); } }

.usage-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 16px; }
.usage-heading h2 { margin: 0; font-size: 15px; font-weight: 500; }
.usage-heading > span, .usage-detail, .usage-note { color: var(--ink-soft); font-size: 13px; }
.usage-scroll { overflow-x: auto; padding-bottom: 4px; }
.usage-grid, .usage-months { display: grid; grid-template-columns: repeat(var(--weeks, 53), minmax(9px, 1fr)); gap: 3px; min-width: 660px; }
.usage-grid { min-height: 88px; grid-template-rows: repeat(7, 10px); grid-auto-flow: column; }
.usage-day { padding: 0; min-width: 0; border-radius: 3px; background: #ececed; }
.usage-day[data-level="1"] { background: #dfccba; }
.usage-day[data-level="2"] { background: #c9a88a; }
.usage-day[data-level="3"] { background: #aa805c; }
.usage-day[data-level="4"] { background: #815c40; }
.usage-months { min-height: 14px; margin-top: 8px; color: var(--ink-soft); font-size: 12px; }
.usage-months span { white-space: nowrap; }
.usage-detail { min-height: 18px; margin: 12px 0 4px; }
.usage-note { line-height: 1.5; margin: 0 0 26px; }
@media (max-width: 599px) {
  .usage-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .usage-summary > div:nth-child(3) { border-left: 0; }
}

#account-profile-form .account-section { padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
#account-profile-form .account-section h2 { font-size: 16px; margin-bottom: 20px; }
#account-profile-form .account-field > span { font-size: 13px; }
#account-profile-form .account-readonly > div { padding-inline: 0; min-height: 30px; font-size: 15px; }
#account-profile-form .account-grid { gap: 20px; }
#account-profile-form .account-field input, #account-profile-form .account-field select { background: var(--bg); }
.account-status { position: static; padding: 0; margin: 0 0 14px; font-size: 13px; min-height: 18px; }
.account-status:empty { display: block; }
@media (max-width: 599px) { #account-profile-form .account-section { padding: 18px; } }

#account-usage { margin-bottom: 28px; }
.usage-detail.sr-only { min-height: 0; margin: -1px; padding: 0; }

.account-head h1 { font-size: 19px; font-weight: 500; letter-spacing: -.4px; }
#account-edit { background: #f1e8df; color: #74563e; border-radius: 999px; padding: 10px 16px; min-height: 40px; font-size: 14px; }
.account-identity { flex-direction: row; justify-content: flex-start; text-align: left; gap: 20px; padding: 28px; margin: 12px 0 24px; border-radius: 24px; background: var(--track); }
.account-avatar { flex: 0 0 68px; width: 68px; height: 68px; border-radius: 22px; background: #84664d; font-size: 26px; }
.account-identity strong { font-size: 26px; }
@media (max-width: 599px) {
  .account-head { padding-inline: 16px; gap: 8px; }
  .account-heading { gap: 6px; }
  .account-head h1 { font-size: 17px; }
  #account-edit { padding-inline: 12px; font-size: 13px; }
  .account-body { padding-inline: 16px; }
  .account-identity { padding: 22px 18px; gap: 14px; }
  .account-avatar { flex-basis: 56px; width: 56px; height: 56px; border-radius: 18px; font-size: 23px; }
  .account-identity strong { font-size: 22px; }
  .account-identity div > span { font-size: 13px; }
}

@media (min-width: 900px) {
  .account-head, .account-body { max-width: none; padding-inline: 24px; }
}
.usage-grid { grid-template-rows: repeat(7, auto); }
.usage-day, .usage-grid > span { aspect-ratio: 1; }

.account-identity strong { line-height: 1.25; }
.account-identity div > span { margin-top: 3px; line-height: 1.4; }

.account-selected { margin-top: 8px; height: auto; min-height: 0; flex-wrap: wrap; overflow: visible; }
.account-selected:empty { display: none; }
.account-experience { margin-top: 16px; max-width: none; }
#account-usage { position: relative; }
.usage-popover { position: absolute; z-index: 5; width: 180px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 28px #34271918; pointer-events: none; }
.usage-popover span { display: block; color: var(--ink-soft); font-size: 13px; }
.usage-popover strong { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; }

#account-profile-form .account-grid { gap: 16px; }
#account-profile-form .account-section h2 { margin-bottom: 14px; }
.account-password-content { padding-top: 16px; }
.account-field { gap: 6px; }
@media (max-width: 599px) {
  #account-profile-form .account-section { margin-bottom: 12px; padding: 16px; }
  .account-experience { margin-top: 14px; }
}

/* Personal data uses ordinary white fields, including the inline SVG DDI picker. */
#account-profile-form .account-field input, #account-profile-form .account-field select { background: #fff; }
.account-phone-field > label { color: var(--ink-soft); font-size: 13px; }
.account-phone-control { position: relative; display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
#account-profile-form .account-phone-control > input { flex: 1; width: 0; border: 0; height: 46px; padding-left: 12px; }
.account-ddi { flex: 0 0 auto; }
.account-ddi summary { min-height: 46px; gap: 5px; padding: 0 10px; border-right: 1px solid var(--line); border-radius: 11px 0 0 11px; }
.account-ddi summary:focus-visible { outline: 2px solid var(--ink-soft); outline-offset: -3px; }
.account-ddi img { flex: 0 0 24px; object-fit: contain; }
.account-ddi-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; width: min(340px, calc(100vw - 72px)); padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 16px #0000000d; }
.account-ddi-options { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; margin-top: 8px; }
.account-ddi-options button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 9px 8px; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; }
.account-ddi-options button:hover, .account-ddi-options button:focus-visible, .account-ddi-options button[aria-pressed="true"] { background: #f3f3f3; }
.account-dial-code { margin-left: auto; color: var(--ink-soft); }
.account-ddi-panel > p { margin: 10px 4px 0; }
#account-profile-form input:focus { border-color: #a0a0a0; }
.account-phone-control:focus-within { border-color: #a0a0a0; }
