/* Account-specific layout. Shared form controls and snt-button remain authoritative. */
.account-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-dark); padding: 24px; min-width: 0; }
.account-page-section { padding: 32px 0 48px; }
.site-main > .account-page-section:first-child { padding-top: var(--account-header-clearance, 145px); }
.admin-bar .site-main > .account-page-section:first-child { padding-top: var(--account-header-clearance, 177px); }
.account-page-heading h1 { margin: 0 0 28px; font-size: clamp(26px,3vw,36px); }
.account-layout { position: relative; display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; gap: 24px; margin: 0 auto; z-index: 1; }
.account-main { display: grid; gap: 20px; min-width: 0; }
.account-layout[data-account-tab="overview"] .account-main { grid-template-columns: repeat(2,minmax(0,1fr)); }
.account-layout[data-account-tab="overview"] .account-main > * { grid-column: 1 / -1; }
.account-layout[data-account-tab="overview"] #account-appeals,.account-layout[data-account-tab="overview"] #account-notifications { grid-column: auto; }
.account-layout[data-account-tab="overview"] #account-appeals .account-table { min-width: 400px; }
.account-sidebar { padding: 16px; }
.account-person { display: flex; align-items: center; gap: 15px; padding: 12px 8px 20px; }
.account-person--info{display: flex; flex-direction: column; }
.account-avatar { border-radius: var(--radius); width: 90px; height: 90px; position: relative; display: grid; place-items: center; background: #e8f4ec; color: #087244; font-size: 30px; font-weight: 700; overflow: hidden; }
.account-avatar-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-avatar.has-image > span { visibility: hidden; }
.account-avatar-link { display: block; text-decoration: none; }
.account-avatar-link:focus-visible { outline: 2px solid #087244; outline-offset: 4px; border-radius: var(--radius); }
.account-profile-avatar { display: flex; align-items: center; gap: 20px; margin: 8px 0 24px; }
.account-profile-avatar .account-avatar { flex: 0 0 76px; width: 76px; height: 76px; margin: 0; }
.account-profile-avatar p { margin: 6px 0 10px; }
#account-avatar-editor { scroll-margin-top: 140px; }
.account-person h2 { font-size: 17px; line-height: 1.45; margin: 8px 0; overflow-wrap: anywhere; }
.account-sidebar nav { display: grid; gap: 6px; }
.account-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); color: var(--color-ink); text-decoration: none; font-size: 14px; }
.account-sidebar nav a[aria-current],.account-sidebar nav a:hover { color: #087244; background: #e9f4ec; }
.account-sidebar nav .account-logout { color: #b32d2e; margin-top: 12px; }
.account-sidebar .icon { width: 22px; height: 22px; flex: 0 0 22px; fill: currentColor; }
.account-sidebar nav .icon { color: #087244; fill: #087244; --icon-fill: #087244; --icon-stroke: #087244; }
.account-logout .icon { fill: #b32d2e !important; --icon-fill: #b32d2e !important; --icon-stroke: #b32d2e !important; }
.account-logout:hover{color: #b32d2e !important;}
.account-support { margin-top: 22px; padding: 20px 12px; border-radius: var(--radius); background: #edf5ed url('../img/contacts/card-landscape.png') right bottom / auto 100% no-repeat; }
.account-support h3 { font-size: 18px; margin: 0 0 8px; }
.account-support p { font-size: 13px; line-height: 1.6; }
.account-support .snt-button { font-size: 13px; padding: 10px 14px; }
.account-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.account-metric { padding: 16px 12px; display: flex; align-items: center; gap: 12px; color: var(--color-ink); text-decoration: none; }
.account-metric > .icon { width: 12px; height: 12px; margin-left: auto; flex-shrink: 0; }
.account-metric strong { display: block; font-size: 24px; line-height: 1.25; }
.account-metric small { display: block; color: var(--color-soft); font-size: 11px; line-height: 1.45; margin-top: 4px; }
.account-metric-icon { width: 46px; height: 46px; border-radius: 50%; background: #e6f4e9; color: #087244; display: grid; place-items: center; flex: 0 0 46px; }
.account-metric-icon .icon { width: 24px; height: 24px; fill: currentColor; }
.account-metric-icon--blue { color: #1875bb; background: #e5f2ff; }
.account-metric-icon--orange { color: #c56310; background: #fff0e3; }
.account-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.account-section-heading h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 21px; line-height: 1.35; }
.account-section-heading h2 svg { width: 26px; height: 26px; fill: #087244; color: #087244; flex: 0 0 26px; }
.account-section-heading h2 { --icon-stroke: #087244; --icon-fill: #087244; }
.account-section-heading > a { font-size: 12px; color: #087244; }
.account-profile-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin: 0; }
.account-layout .snt-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 13px; }
.account-layout .snt-button .icon { width: 18px; height: 18px; fill: currentColor; }
.account-profile-data { margin: 0; }
.account-profile-data > div { display: grid; grid-template-columns: minmax(155px,1fr) minmax(0,2fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.account-profile-data > div:last-child { border-bottom: 0; }
.account-profile-data dt { color: var(--color-soft); }
.account-profile-data dd { margin: 0; overflow-wrap: anywhere; }
.account-badge { display: inline-block; padding: 5px 10px; border-radius: var(--radius); background: #eef1f5; color: #4d5864; font-size: 12px; font-weight: 600; line-height: 1.4; }
.account-badge--success { color: #087244; background: #e6f5e9; }
.account-badge--announcement { color: #1684b9; background: #e9f6ff; }
.account-badge--danger { color: #a52125; background: #fdebed; }
.account-badge--warning { color: #95500a; background: #fff0df; }
.account-badge--info { color: #1768ad; background: #e5f2ff; }
.account-form { display: grid; gap: 16px; margin-top: 24px; max-width: 760px; }
.account-form .custom-auth-form__field { margin: 0; }
.account-form .custom-auth-form__status:empty { display: none; }
.account-form .snt-button { justify-self: start; }
.account-consent { font-size: 12px; line-height: 1.6; align-items: flex-start; margin-block: 16px; }
.account-consent input { flex-shrink: 0; margin-top: 3px; }
.account-consent a { text-decoration: underline; }
.account-muted { font-size: 12px; color: var(--color-soft); line-height: 1.6; }
.account-empty { padding: 16px 0; color: var(--color-soft); font-size: 14px; }
.account-note { padding: 16px; border-radius: var(--radius); background: #eff7f1; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.account-table-wrap { overflow-x: auto; margin-top: 16px; max-width: 100%; }
.account-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 13px; text-align: left; }
.account-table th { font-weight: 500; color: var(--color-soft); background: #f3f6f5; padding: 11px; }
.account-table td { padding: 13px 11px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.account-table tr:last-child td { border-bottom: 0; }
.account-table td:first-child { max-width: 360px; }
.account-table a:not(.snt-button) { color: var(--color-ink); text-decoration: none; }
.account-table td > .icon { width: 22px; height: 22px; display: inline-block; vertical-align: middle; margin-right: 8px; fill: #087244; }
.account-layout .account-button-small { padding: 9px 12px; white-space: nowrap; font-size: 12px; }
.account-timeline { list-style: none; padding: 0; margin: 24px 0 0 7px; }
.account-timeline li { position: relative; padding: 0 0 20px 24px; border-left: 1px solid var(--color-border); font-size: 13px; }
.account-timeline li::before { content: ''; position: absolute; left: -6px; top: 3px; width: 11px; height: 11px; border-radius: 50%; background: #b5bfc4; }
.account-timeline .is-unread::before { background: #087244; }
.account-timeline time { display: block; font-size: 11px; color: var(--color-soft); margin-top: 6px; }
.account-timeline p { white-space: normal; overflow-wrap: anywhere; }
.account-timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.account-appeal-chart { display: flex; height: 12px; overflow: hidden; border-radius: var(--radius); margin-top: 24px; background: var(--color-muted); }
.account-chart-new { background: #edb64b; }.account-chart-in_progress { background: #3186ba; }.account-chart-closed { background: #16844d; }
.account-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.account-pagination { display: flex; gap: 12px; margin-top: 20px; }
.account-guest { margin-block: 32px; max-width: 620px; }
.account-guest .custom-auth-form { display: grid; gap: 16px; margin-top: 24px; }
.account-guest h2 { font-size: 23px; }
.account-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.account-uploader { margin-block: 16px; min-width: 0; }
.account-dropzone { position: relative; padding: 22px 16px; text-align: center; border: 1px dashed var(--color-border); border-radius: var(--radius); background: #f7faf7; }
.account-dropzone > .icon { width: 30px; height: 30px; fill: #087244; margin-inline: auto; }
.account-dropzone p { margin: 10px 0; }
.account-dropzone small { display: block; color: var(--color-soft); font-size: 11px; margin-top: 12px; line-height: 1.6; }
.account-dropzone.is-dragging,.account-dropzone:focus-within { border-color: #087244; background: #eaf6ec; }
.account-file-input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.account-dropzone label { cursor: pointer; }
.account-upload-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.account-upload-item { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; }
.account-upload-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.account-upload-item strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.account-upload-item small { display: block; font-size: 11px; color: var(--color-soft); margin-top: 4px; }
.account-upload-item progress { width: 100%; height: 6px; accent-color: #087244; }
.account-file-format { color: #087244; font-size: 11px; font-weight: 700; }
.account-file-remove { border: 0; background: transparent; color: #a52125; font: inherit; font-size: 11px; cursor: pointer; padding: 4px; }
.account-upload-error { color: #a52125; font-size: 12px; }
.account-files { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 12px; margin-top: 20px; }
.account-files li { border: 1px solid var(--color-border); border-radius: var(--radius); padding: 12px; overflow-wrap: anywhere; font-size: 12px; }
.account-files img { object-fit: contain; width: 96px; height: 72px; margin-bottom: 8px; }
.account-files a,.account-files small { display: block; }.account-files small { color: var(--color-soft); margin-top: 5px; }
.snt-button.snt-button--danger { background: linear-gradient(180deg,#d95454,#a51f25); color: #fff; }
.snt-button.snt-button--outline { background: linear-gradient(180deg,#fff,#f3f8f4); color: #087244; border: 1px solid var(--color-border); box-shadow: var(--shadow-dark); }
.snt-user-menu { position: relative; flex-shrink: 0; }
.site-header--account .topbar-actions { flex-wrap: nowrap; flex-shrink: 0; }
.snt-user.snt-user--account { padding: 4px 13px 4px 5px; gap: 8px; min-width: 0; white-space: nowrap; cursor: pointer; font: inherit; font-size: 14px; }
.snt-user-avatar { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; overflow: hidden; border-radius: 50%; background: #e6f5e9; color: #087244; font-size: 12px; }
.snt-user-avatar.has-image > span { visibility: hidden; }
.snt-user-name { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.snt-user-chevron { width: 7px; height: 7px; margin: -3px 1px 0 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.snt-user-unread { position: absolute; top: 0; right: 0; transform: translate(28%,-28%); border: 2px solid #fff; box-sizing: border-box; box-shadow: 0 2px 5px #61202a26; line-height: 1; z-index: 2; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 50%; background: #ba2636; color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.snt-user-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 10; display: grid; width: 270px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); overflow-y: auto; padding: 8px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow-dark); }
.snt-user-dropdown[hidden] { display: none; }
.snt-user-dropdown a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; font-size: 13px; color: var(--color-ink); border-radius: var(--radius); text-decoration: none; }
.snt-user-dropdown a:hover,.snt-user-dropdown a:focus-visible { background: #e9f4ec; color: #087244; }
.snt-user-dropdown .icon { flex: 0 0 20px; width: 20px; height: 20px; color: #087244; fill: #087244; --icon-stroke: #087244; --icon-fill: #087244; }
.snt-user-logout .icon{fill: #b32d2e; --icon-stroke: #b32d2e; --icon-fill: #b32d2e;}
.snt-user-logout:hover span{color: #b32d2e;}
.snt-user-dropdown .snt-user-logout { color: #b32d2e; margin-top: 6px; border-top: 1px solid var(--color-border); border-radius: 0; }
[data-user-toggle]:focus-visible,.snt-user-unread:focus-visible { outline: 2px solid #087244; outline-offset: 3px; }
@media (max-width:1200px) { .account-layout { gap: 18px; }.account-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:1100px) { .account-layout[data-account-tab="overview"] .account-main { grid-template-columns: minmax(0,1fr); }.account-layout[data-account-tab="overview"] #account-appeals,.account-layout[data-account-tab="overview"] #account-notifications { grid-column: 1; } }
@media (max-width:900px) { .account-layout { grid-template-columns: minmax(0,1fr); }.account-sidebar { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 16px; }.account-support { display: none; }.account-avatar { width: 70px; height: 70px; }.account-person { padding: 0; }.account-sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }.account-sidebar nav a { padding: 8px; }.account-sidebar nav .account-logout { margin: 0; } }
@media (max-width:540px) { .account-card { padding: 16px; }.account-layout { gap: 16px; margin-top: -16px; }.account-sidebar { display: block; }.account-person { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 0 12px; align-items: center; padding-bottom: 12px; }.account-avatar { width: 60px; height: 60px; margin: 0; grid-row: span 3; }.account-person h2 { font-size: 14px; margin: 0; }.account-person .account-badge { justify-self: start; }.account-person p { margin: 3px 0; }.account-sidebar nav { display: flex; overflow-x: auto; }.account-sidebar nav a { flex-shrink: 0; font-size: 12px; }.account-metrics { gap: 8px; }.account-metric { padding: 12px; gap: 8px; }.account-metric-icon { width: 34px; height: 34px; flex-basis: 34px; }.account-metric-icon .icon { width: 20px; height: 20px; }.account-metric strong { font-size: 21px; }.account-metric > .icon { display: none; }.account-section-heading h2 { font-size: 18px; }.account-profile-data > div { grid-template-columns: minmax(0,1fr); gap: 6px; }.account-profile-actions { justify-content: flex-start; }.account-profile-actions .snt-button { font-size: 12px; padding: 10px 12px; }.account-upload-item { grid-template-columns: 40px minmax(0,1fr); padding: 10px; gap: 8px; }.account-upload-item img { width: 40px; height: 40px; }.account-file-remove { grid-column: 2; justify-self: start; }.account-hero { min-height: 240px; } }
@media (prefers-reduced-motion:reduce) { .account-layout * { scroll-behavior: auto; } }
@media (max-width:540px) {
	.account-layout { margin-top: 0; }
	.account-person > .account-avatar-link { grid-row: span 3; }
	.account-profile-avatar { align-items: flex-start; gap: 14px; }
	.account-profile-avatar .account-avatar { width: 64px; height: 64px; flex-basis: 64px; }
}

/* CNT Chat layout */
.account-layout[data-account-tab="chats"] .account-main { display:grid; gap:20px; min-width:0; }
.account-layout[data-account-tab="appeals"] #account-appeals { padding:0; overflow:hidden; }
.account-layout[data-account-tab="appeals"] #account-appeals > .account-section-heading { display:none; }
.account-layout[data-account-tab="appeals"] #account-appeals .cnt-chat { border:0; }

/* Account navigation counts v2 */
.snt-user.snt-user--account { position:relative; }
.snt-user.snt-user--account .snt-user-unread { position:relative; inset:auto; transform:none; display:inline-grid; place-items:center; flex:none; margin-left:2px; width:auto; min-width:23px; height:23px; border:2px solid #fff; border-radius:20px; background:#ba2636; color:#fff; font-size:11px; line-height:1; z-index:3; }
.snt-user .snt-user-unread[hidden],.account-nav-count[hidden] { display:none!important; }
.account-nav-count { display:inline-grid; place-items:center; margin-left:auto; min-width:22px; height:22px; padding:0 6px; border-radius:20px; background:#087244; color:#fff; font-size:11px; font-weight:600; line-height:1; }
.account-sidebar nav a>span:not(.account-nav-count),.snt-user-dropdown a>span:not(.account-nav-count) { flex:1; }

/* Profile data grid and a dedicated sidebar avatar editor. */
.account-profile-data{border:1px solid var(--color-border);border-radius:10px;overflow:hidden}.account-profile-data>div{padding:0;gap:0}.account-profile-data dt,.account-profile-data dd{padding:14px 16px}.account-profile-data dt{background:#f5f9f5;border-right:1px solid var(--color-border)}
.account-sidebar .account-avatar-edit{position:relative;display:block;width:90px;height:90px;min-width:90px;padding:0;border:0;border-radius:var(--radius);background:none;box-shadow:none;transform:none;cursor:pointer}.account-avatar-edit .account-avatar{width:100%;height:100%}.account-avatar-edit-overlay{position:absolute;inset:0;display:grid;place-items:center;border:2px dashed #087244;border-radius:inherit;background:#eef7efcc;color:#087244;opacity:0;transition:opacity .18s ease;pointer-events:none}.account-avatar-edit-overlay .icon{width:26px;height:26px}.account-avatar-edit:hover .account-avatar-edit-overlay,.account-avatar-edit:focus-visible .account-avatar-edit-overlay{opacity:1}.account-avatar-modal .custom-modal__dialog{max-width:560px}.account-avatar-modal .account-dropzone{padding:24px 16px}.account-avatar-modal .custom-modal__close{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;padding:10px;aspect-ratio:1}.account-avatar-modal .custom-modal__close svg{display:block;fill:currentColor}.account-avatar-modal .account-uploader{margin-bottom:18px}
@media(max-width:900px){.account-sidebar .account-avatar-edit{width:70px;height:70px}}@media(max-width:540px){.account-sidebar .account-avatar-edit{width:60px;height:60px}.account-profile-data dt{border-right:0;border-bottom:1px solid var(--color-border)}.account-profile-data>div{gap:0}.account-profile-data dt,.account-profile-data dd{padding:11px 12px}}@media(hover:none){.account-avatar-edit-overlay{opacity:1;inset:auto 0 0 auto;width:28px;height:28px;border-width:1px;border-radius:8px;background:#f2faf0}.account-avatar-edit-overlay .icon{width:16px;height:16px}}@media(prefers-reduced-motion:reduce){.account-avatar-edit-overlay{transition:none}}
