/* Account pages: /profile, /welcome, the "Acting as" switcher (Shared/Account). */
.acc {
    --acc-ink: var(--rz-text-color, #172033);
    --acc-muted: var(--rz-text-secondary-color, #4B5565);
    --acc-line: #E6E9EE;
    --acc-radius: 12px;
    --acc-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 2px 8px rgba(16, 24, 40, 0.06);
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 0 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--acc-ink);
}
.acc--narrow { max-width: 720px; }
.acc h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.acc h2 { margin: 0; font-size: 1.1rem; }
.acc p { margin: 0; }
.acc-muted { color: var(--acc-muted); font-size: 0.875rem; }
.acc-strong { font-weight: 600; }
.acc-good { color: #0E6B45; font-size: 0.875rem; }
.acc-bad { color: #8A2E07; font-size: 0.875rem; }
.acc-ok { color: #0E6B45; vertical-align: middle; }
.acc-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rz-primary); }
.acc-label { font-size: 0.875rem; font-weight: 600; }

/* cards */
.acc-card { background: #FFFFFF; border: 1px solid rgba(16, 24, 40, 0.08); border-radius: var(--acc-radius); box-shadow: var(--acc-shadow); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.acc-card--roomy { padding: 1.75rem; gap: 1.4rem; }
.acc-card--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.acc-card__head { border-bottom: 1px solid var(--acc-line); padding-bottom: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }
.acc-card__head p { color: var(--acc-muted); font-size: 0.9rem; }
.acc-card__head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.acc-subcard { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; border-radius: 10px; background: #F6F8FB; border: 1px solid #E3E8EF; }
.acc-head { display: flex; flex-direction: column; gap: 0.4rem; }
.acc-head p { color: var(--acc-muted); }

/* hero */
.acc-hero { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.acc-hero__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.acc-hero__hint { align-self: flex-start; }
.acc-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.25rem; }
.acc-badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; background: #EEF1F5; color: var(--acc-ink); white-space: nowrap; }
.acc-badge--good { background: #E3F4EC; color: #0E6B45; }
.acc-badge--warn { background: #FDF1E7; color: #8A3B07; }
.acc-badge--info { background: #E8F0FB; color: #0D47A1; }

/* layout */
.acc-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.acc-nav { flex: 1 1 220px; max-width: 100%; padding: 0.5rem; gap: 2px; }
.acc-nav__item { display: flex; align-items: center; gap: 0.75rem; min-height: 46px; padding: 0 0.75rem; border: none; border-radius: 8px; background: transparent; color: var(--acc-ink); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.acc-nav__item:hover { background: #F3F5F8; }
.acc-nav__item--on { background: #E8F0FB; color: #0D47A1; font-weight: 700; }
.acc-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }

/* form bits */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.25rem 1rem; }
.acc-grid .rz-form-field { width: 100%; }
.acc-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.acc-photo-row__actions { display: flex; flex-direction: column; gap: 0.6rem; }
.acc-colors { display: flex; align-items: center; gap: 0.5rem; }
.acc-color { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #FFFFFF; box-shadow: 0 0 0 1px #C5CCD6; cursor: pointer; padding: 0; }
.acc-color--on { box-shadow: 0 0 0 2px var(--acc-ink); }
.acc-note { padding: 0.75rem 0.9rem; border-radius: 10px; background: #F4F8FD; font-size: 0.9rem; }
.acc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.75rem; }
.acc-actions > span { margin-right: auto; }
.acc-field { display: flex; flex-direction: column; gap: 0.5rem; }
.acc-wrap { display: flex; flex-wrap: wrap; }
.acc-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid #EEF0F3; }
.acc-toggle > div { display: flex; flex-direction: column; gap: 0.15rem; }
.acc-empty { padding: 1.25rem; border: 1px dashed #C5CCD6; border-radius: 10px; text-align: center; color: var(--acc-muted); }
.acc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; border-top: 1px solid var(--acc-line); padding-top: 1.1rem; }

/* upload button (label wraps a hidden InputFile) */
.acc-upload { position: relative; cursor: pointer; }
.acc-upload__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.acc-upload.rz-state-disabled .acc-upload__input { cursor: not-allowed; }

/* avatar / logo */
.acc-avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; overflow: hidden; color: #FFFFFF; font-weight: 700; line-height: 1; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08); }
.acc-avatar--square { border-radius: 22%; }
.acc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-avatar--square img { object-fit: contain; background: #FFFFFF; }

/* team / companies / invites */
.acc-member, .acc-company, .acc-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.acc-member { padding: 0.6rem 0; border-bottom: 1px solid #EEF0F3; }
.acc-member__text, .acc-company__text, .acc-invite__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.acc-company { padding: 0.9rem; border-radius: 10px; border: 1px solid var(--acc-line); }
.acc-company--on { border-color: var(--rz-primary); background: #F4F8FD; }
.acc-invites { display: flex; flex-direction: column; gap: 0.75rem; padding: 1rem; border-radius: 10px; border: 1px solid #B9D3F2; background: #F4F8FD; }
.acc-invite-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.acc-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem; }
.acc-role { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.75rem; border-radius: 8px; border: 1px solid var(--acc-line); font-size: 0.85rem; }
.acc-role span { color: var(--acc-muted); }

/* notifications */
.acc-notify { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; gap: 0.5rem; align-items: center; justify-items: center; padding: 0.7rem 0; border-top: 1px solid #EEF0F3; }
.acc-notify > div { justify-self: start; display: flex; flex-direction: column; gap: 0.1rem; }
.acc-notify--head { border-top: none; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--acc-muted); padding-bottom: 0; }

/* sell-mode choice + registration steps */
.acc-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.6rem; }
.acc-choice__item { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-start; padding: 1rem; border-radius: 10px; border: 2px solid #DCE1E8; background: #FFFFFF; font: inherit; text-align: left; cursor: pointer; }
.acc-choice__item--on { border-color: var(--rz-primary); background: #F4F8FD; }
.acc-signed-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; font-size: 0.9rem; color: var(--acc-muted); }
.acc-signed-in b { color: var(--acc-ink); }
.acc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.acc-steps__item { display: flex; flex-direction: column; gap: 0.35rem; }
.acc-steps__bar { height: 6px; border-radius: 3px; background: #DCE1E8; }
.acc-steps__item--done .acc-steps__bar { background: var(--rz-primary); }
.acc-steps__label { font-size: 0.8rem; color: var(--acc-muted); }
.acc-steps__item[aria-current="step"] .acc-steps__label { color: var(--acc-ink); font-weight: 700; }

/* unit preview */
.acc-units { display: flex; flex-direction: column; gap: 1.1rem; }
.acc-preview { background: #172033; color: #FFFFFF; border-radius: 10px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.acc-preview__title { font-weight: 600; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.acc-preview__title span { font-weight: 400; font-size: 0.8rem; color: #C9D2DE; }
.acc-preview__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.6rem; }
.acc-preview__item { display: flex; flex-direction: column; gap: 0.1rem; background: #222C40; border-radius: 8px; padding: 0.6rem 0.75rem; }
.acc-preview__item span { font-size: 0.75rem; color: #C9D2DE; }
.acc-preview__item b { font-size: 1.15rem; }

/* sticky save bar */
.acc-savebar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(720px, calc(100% - 32px)); box-sizing: border-box; background: #172033; color: #FFFFFF; border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, 0.3); padding: 0.75rem 0.75rem 0.75rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; z-index: 1000; }

/* top-bar switcher */
.acc-switcher__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.acc-switcher__kind { font-size: 0.68rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
.acc-switcher__name { font-size: 0.9rem; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .acc-switcher__text { display: none; } }

/* Narrow screens: the section menu becomes a scrollable row of tabs above the content. */
@media (max-width: 760px) {
    .acc-nav { flex: 1 1 100%; flex-direction: row; overflow-x: auto; padding: 0.35rem; gap: 0.25rem; scrollbar-width: thin; }
    .acc-nav__item { flex: 0 0 auto; white-space: nowrap; min-height: 42px; }
    .acc-hero__hint { display: none; }
    .acc-card { padding: 1.1rem; }
}

/* Top-bar "Acting as" menu (AccountSwitcher): step 1 = menu, step 2 = "Choose a company" list. */
.acc-sw { position: relative; display: flex; align-items: center; }
.acc-sw__btn { display: inline-flex; align-items: center; gap: 0.5rem; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0.25rem 0.4rem 0.25rem 0.25rem; border-radius: 24px; min-height: 44px; }
.acc-sw__btn:hover { background: rgba(255, 255, 255, 0.14); }
.acc-sw__btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 1px; }
.acc-sw__caret { font-size: 1.25rem; }
.acc-sw__backdrop { position: fixed; inset: 0; z-index: 1090; }
.acc-sw__panel { position: fixed; top: 58px; right: 12px; width: 380px; max-width: calc(100vw - 24px); max-height: calc(100vh - 72px); display: flex; flex-direction: column; background: #FFFFFF; color: var(--rz-text-color, #212121); border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.05); z-index: 1100; overflow: hidden; font-size: 0.875rem; line-height: 1.35; }
.acc-sw__current { padding: 0.85rem 1rem 0.75rem; border-bottom: 1px solid var(--acc-line, #EEF0F3); display: flex; flex-direction: column; gap: 0.6rem; }
.acc-sw__current-row { display: flex; align-items: center; gap: 0.75rem; }
.acc-sw__label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: #5F6368; }
.acc-sw__label--pad { padding: 0.6rem 1rem 0.25rem; }
.acc-sw__group { padding: 0.35rem 0; border-top: 1px solid var(--acc-line, #EEF0F3); }
.acc-sw__current + .acc-sw__group { border-top: 0; }
.acc-sw__row { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 0.75rem; min-height: 44px; padding: 0.5rem 1rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acc-sw__row:hover { background: #EEF3FB; }
.acc-sw__row:focus-visible { outline: 2px solid var(--rz-primary, #1976D2); outline-offset: -2px; }
.acc-sw__row--small { min-height: 40px; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.acc-sw__grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.acc-sw__strong { font-weight: 500; }
.acc-sw__current .acc-sw__strong { font-weight: 700; font-size: 0.95rem; }
.acc-sw__muted { color: #5F6368; font-size: 0.8rem; }
.acc-sw__ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.acc-sw__icon { color: #455A64; font-size: 1.25rem; }
.acc-sw__muted-icon { color: #5F6368; }
.acc-sw__check { color: #2E7D32; }
.acc-sw__tile { width: 32px; height: 32px; border-radius: 8px; background: #E3EEFB; color: #1565C0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-sw__tile .rzi { font-size: 1.15rem; }
.acc-sw__head { display: flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.85rem 0 0.25rem; }
.acc-sw__title { font-weight: 500; font-size: 1rem; }
.acc-sw__iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: transparent; color: #37474F; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.acc-sw__iconbtn:hover { background: #EEF3FB; }
.acc-sw__tools { padding: 0.5rem 1rem 0.65rem; display: flex; flex-direction: column; gap: 0.6rem; border-bottom: 1px solid var(--acc-line, #EEF0F3); }
.acc-sw__search { position: relative; display: block; }
.acc-sw__search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #5F6368; font-size: 1.2rem; pointer-events: none; }
.acc-sw__search input { width: 100%; box-sizing: border-box; height: 44px; border: 1px solid #C9D1DC; border-radius: 6px; padding: 0 0.75rem 0 2.35rem; font: inherit; color: inherit; background: #FFFFFF; }
.acc-sw__search input:focus { outline: none; border-color: var(--rz-primary, #1976D2); box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.18); }
.acc-sw__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acc-sw__chips { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.acc-sw__chip { border: 1px solid #C9D1DC; background: #FFFFFF; color: #37474F; font: inherit; font-size: 0.8rem; border-radius: 16px; padding: 0 0.75rem; height: 32px; cursor: pointer; white-space: nowrap; }
.acc-sw__chip:hover { background: #EEF3FB; }
.acc-sw__chip--on { background: #E3EEFB; border-color: var(--rz-primary, #1976D2); color: #0D47A1; font-weight: 500; }
.acc-sw__list { flex: 1 1 auto; min-height: 120px; max-height: 360px; overflow-y: auto; padding: 0.25rem 0; }
.acc-sw__empty { padding: 2rem 1.5rem; text-align: center; color: #5F6368; display: flex; flex-direction: column; gap: 0.25rem; }
.acc-sw__empty .acc-sw__strong { color: var(--rz-text-color, #212121); }
.acc-sw__more { padding: 0.75rem 1rem; text-align: center; color: #5F6368; font-size: 0.8rem; }
.acc-sw__foot { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-top: 1px solid var(--acc-line, #EEF0F3); }
.acc-sw__link { border: 0; background: transparent; color: #1565C0; font: inherit; font-weight: 500; cursor: pointer; padding: 0.5rem 0; min-height: 36px; }
.acc-sw__link:hover { color: #0D47A1; text-decoration: underline; }

/* Phones: the menu is a sheet from the bottom. */
@media (max-width: 640px) {
    .acc-sw__backdrop { background: rgba(0, 0, 0, 0.42); }
    .acc-sw__panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 88vh; border-radius: 16px 16px 0 0; }
    .acc-sw__list { max-height: none; }
    .acc-sw__search input { font-size: 16px; }
}

/* Profile → Notifications: push on this browser */
.acc-browser { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 1rem; border: 1px solid var(--acc-line); border-radius: 10px; background: var(--rz-base-50, #F8FAFC); }
.acc-browser__icon { font-size: 1.75rem; color: var(--rz-primary); }
.acc-browser__text { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.acc-browser__note { font-size: 0.875rem; color: var(--rz-text-color); }
