:root {
  --aa-bg: #F5F6FA;
  --aa-surface: #ffffff;
  --aa-surface-soft: #F8FAFF;
  --aa-text: #131523;
  --aa-muted: #5A607F;
  --aa-soft: #7E84A3;
  --aa-primary: #6452FE;
  --aa-primary-90: #7A6BFF;
  --aa-primary-80: #8B7FFE;
  --aa-primary-40: #E5DFFF;
  --aa-primary-30: #EDE8FF;
  --aa-purple: #6452FE;
  --aa-purple-soft: #EDE8FF;
  --aa-green: #1FD286;
  --aa-red: #F0142F;
  --aa-yellow: #FFC700;
  --aa-blue: #6452FE;
  --aa-border: #E6E9F4;
  --aa-border-strong: #D7DBEC;
  --aa-shadow: 0 6px 24px rgba(38, 44, 71, 0.06);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--aa-bg);
  color: var(--aa-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.aa-embed-body {
  background: transparent;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

.aa-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 68px 1fr;
  background: var(--aa-bg);
  align-items: start;
}

.aa-app--embed {
  min-height: auto;
  display: block;
  background: transparent;
}

.aa-topbar {
  grid-column: 1 / 3;
}

.aa-topbar.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.aa-sidebar {
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  background: #ffffff;
  border-right: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px 18px;
  overflow: hidden;
}

.aa-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 0;
  border-radius: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.aa-sidebar__brand--card {
  margin-bottom: 6px;
}

.aa-sidebar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--aa-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  font-size: 14px;
  font-weight: 900;
}

.aa-sidebar__brand-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aa-sidebar__eyebrow,
.aa-brand__eyebrow {
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #98a2b3;
}

.aa-sidebar__title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: #5a607f;
}

.aa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 68px;
  padding-left: 24px;
}

.aa-brand__logo {
  width: 126px;
  height: 34px;
  background: url('/static/customer/img/logo.png') no-repeat left center / contain;
}

.aa-brand__meta {
  display: none;
}

.aa-brand__title {
  color: var(--aa-text);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 800;
}

.aa-navs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.aa-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #5a607f;
  font-size: 14px;
  font-weight: 500;
  transition: background .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.aa-nav:hover {
  background: #f0eeff;
  color: var(--aa-purple);
}

.aa-nav--active {
  background: var(--aa-purple);
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 82, 254, .3);
  font-weight: 600;
}

.aa-nav:hover .aa-nav__ico {
  color: var(--aa-purple);
  border-color: transparent;
  background: transparent;
}

.aa-nav--active .aa-nav__ico {
  color: #fff;
  border-color: transparent;
  background: transparent;
}

.aa-nav__ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  opacity: 1;
  color: #7e84a3;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.aa-nav__ico svg {
  display: none;
}

.aa-nav__ico::before,
.aa-logout__ico::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.aa-nav__ico--analytics::before {
  -webkit-mask-image: url('/static/admin/modernize-icons/statistics.svg');
  mask-image: url('/static/admin/modernize-icons/statistics.svg');
}

.aa-nav__ico--jobs::before {
  -webkit-mask-image: url('/static/admin/modernize-icons/case.svg');
  mask-image: url('/static/admin/modernize-icons/case.svg');
}

.aa-nav__ico--users::before,
.aa-nav__ico--moderation::before {
  -webkit-mask-image: url('/static/admin/modernize-icons/users.svg');
  mask-image: url('/static/admin/modernize-icons/users.svg');
}

.aa-nav__ico--support::before {
  -webkit-mask-image: url('/static/admin/modernize-icons/chat.svg');
  mask-image: url('/static/admin/modernize-icons/chat.svg');
}

.aa-nav__ico--notifications::before {
  -webkit-mask-image: url('/static/admin/modernize-icons/bell.svg');
  mask-image: url('/static/admin/modernize-icons/bell.svg');
}

.aa-nav__ico--settings::before {
  -webkit-mask-image: url('/static/admin/modernize-icons/settings.svg');
  mask-image: url('/static/admin/modernize-icons/settings.svg');
}

.aa-nav__label {
  color: inherit;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.aa-sidebar__bottom {
  margin-top: auto;
  padding: 0 0 0;
}

.aa-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
  color: #5a607f;
  padding: 0 14px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.aa-logout:hover {
  background: #f7f9fc;
  color: var(--aa-purple);
  border-color: rgba(100, 82, 254, .12);
}

.aa-logout__ico {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.aa-logout__ico svg {
  display: none;
}

.aa-main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.aa-main--embed {
  min-height: auto;
}

.aa-topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 0 0;
  background: #ffffff;
  border-bottom: 1px solid #f0f1f5;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none;
  backdrop-filter: none;
}

.aa-topbar__left {
  display: grid;
  grid-template-columns: 177px minmax(220px, 360px);
  align-items: center;
  gap: 20px;
  min-width: 0;
  flex: 1 1 auto;
}

.aa-search {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f5f6fa;
  box-shadow: none;
  color: #5a607f;
  transition: background .2s ease, color .2s ease;
}

.aa-search:focus-within {
  background: #ecedf4;
  color: #131523;
}

.aa-search__ico {
  color: #96a0ae;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.aa-search__ico::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url('/static/admin/modernize-icons/search.svg') center / contain no-repeat;
  mask: url('/static/admin/modernize-icons/search.svg') center / contain no-repeat;
}

.aa-search__ico svg {
  display: none;
}

.aa-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 500;
}

.aa-search input::placeholder {
  color: #a1a7c4;
  font-weight: 500;
}

.aa-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aa-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f5f6fa;
  box-shadow: none;
  color: var(--aa-text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.aa-bell:hover {
  color: var(--aa-purple);
  background: var(--aa-purple-soft);
  transform: translateY(-1px);
}

.aa-bell__ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aa-bell__ico::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url('/static/admin/modernize-icons/bell.svg') center / contain no-repeat;
  mask: url('/static/admin/modernize-icons/bell.svg') center / contain no-repeat;
}

.aa-bell__ico svg {
  display: none;
}

.aa-bell__badge {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--aa-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.aa-profile {
  position: relative;
  z-index: 130;
}

.aa-profile__btn {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.aa-profile__btn:hover {
  background: #fff;
  box-shadow: none;
  transform: none;
}

.aa-profile__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--aa-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.aa-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aa-profile__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}

.aa-profile__name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

.aa-profile__email {
  font-size: 11px;
  color: var(--aa-muted);
  line-height: 1.1;
}

.aa-profile__pill {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--aa-purple-soft);
  color: var(--aa-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.aa-profile__chevron {
  margin-left: 0;
  width: 14px;
  height: 14px;
  opacity: .7;
  background: url('/register/img/chevron_down_figma.svg') no-repeat center / 14px 14px;
  transform: rotate(0deg);
  transition: transform .2s ease;
}

.aa-profile__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 140;
  min-width: 220px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  box-shadow: 0 6px 24px rgba(38, 44, 71, .16);
  transform-origin: top right;
  animation: aaPopIn .22s cubic-bezier(.22, .61, .36, 1) both;
}

.aa-profile.is-open .aa-profile__chevron {
  transform: rotate(180deg);
}

.aa-profile.is-open .aa-profile__menu {
  display: block;
}

.aa-profile__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.aa-profile__item:hover {
  background: #f8faff;
  color: var(--aa-purple);
}

.aa-profile__item-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex: 0 0 18px;
}

.aa-profile__item:hover .aa-profile__item-ico {
  color: var(--aa-purple);
}

.aa-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 24px;
}

@keyframes aaFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aaPopIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aa-content>* {
  animation: aaFadeUp .42s cubic-bezier(.22, .61, .36, 1) both;
}

.aa-content>*:nth-child(1) {
  animation-delay: 0s;
}

.aa-content>*:nth-child(2) {
  animation-delay: .06s;
}

.aa-content>*:nth-child(3) {
  animation-delay: .12s;
}

.aa-content>*:nth-child(4) {
  animation-delay: .18s;
}

.aa-content>*:nth-child(5) {
  animation-delay: .24s;
}

.aa-content>*:nth-child(n + 6) {
  animation-delay: .3s;
}

@media (prefers-reduced-motion: reduce) {

  .aa-content>*,
  .aa-content *::before,
  .aa-content *::after {
    animation: none !important;
    transition: none !important;
  }
}

.aa-content--embed {
  padding: 0 0 12px;
}

.aa-scene {
  position: relative;
  width: 100%;
}

.aa-scene__canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 102px);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(248, 250, 255, .98) 100%);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, .07),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  overflow: hidden;
}

.aa-scene__canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(100, 82, 254, .08), transparent 30%),
    radial-gradient(circle at top left, rgba(79, 124, 254, .05), transparent 24%);
  pointer-events: none;
}

.aa-scene__canvas>* {
  position: relative;
  z-index: 1;
}

.aa-scene__canvas--analytics {
  gap: 22px;
}

.aa-scene__canvas--support {
  gap: 20px;
}

.aa-scene__stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aa-app--embed .aa-head[hidden]+.aa-filters {
  margin-top: 0;
}

.aa-app--embed .aa-scene__canvas {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.aa-app--embed .aa-scene__canvas::before {
  display: none;
}

.aa-app--embed .aa-scene__stack {
  gap: 16px;
}

.aa-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aa-head__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.aa-head__eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #98a2b3;
}

.aa-head__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(100, 82, 254, .10);
  color: var(--aa-purple);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.aa-head__badge--success {
  background: rgba(24, 202, 142, .12);
  color: #0f9f6e;
}

.aa-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.03em;
}

.aa-tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

.aa-tabs--surface {
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .05);
}

.aa-tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  padding: 14px 0 12px;
  color: #a0a8b8;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: color .24s ease;
}

.aa-tab:hover {
  color: var(--aa-text);
}

.aa-tab--active {
  color: var(--aa-purple);
  font-weight: 700;
}

.aa-tabs__indicator {
  position: absolute;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--aa-purple);
  pointer-events: none;
  transform: translateX(0);
  width: 0;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
  opacity: 0;
}

.aa-filters {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.aa-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aa-filters__top {
  display: flex;
  align-items: center;
}

.aa-filters__bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}

.aa-preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 256px;
}

.aa-filter-group--controls {
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  margin-left: 0;
}

.aa-filter-group--meta {
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: 12px;
  flex-wrap: nowrap;
}

.aa-filter-group--dates {
  justify-content: flex-end;
  margin-left: 0;
  gap: 12px;
}

.aa-date-picker {
  position: relative;
  min-width: 248px;
}

.aa-date-picker__trigger {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  cursor: pointer;
  color: inherit;
}

.aa-date-picker__label {
  color: #8893a3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.aa-date-picker__value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.aa-date-picker__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: .75;
  background: url('/register/img/chevron_down_figma.svg') no-repeat center / 14px 14px;
  transition: transform .2s ease;
}

.aa-date-picker.is-open .aa-date-picker__chevron {
  transform: rotate(180deg);
}

.aa-date-picker__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 396px;
  display: block;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  z-index: 60;
}

.aa-date-picker__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.aa-date-picker__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.aa-date-picker__apply {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--aa-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease;
}

.aa-date-picker__apply:hover {
  background: #5a46ff;
}

.aa-chip {
  height: 32px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--aa-border);
  background: var(--aa-surface-soft);
  padding: 0 8px;
  cursor: pointer;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.aa-chip:hover {
  border-color: rgba(100, 82, 254, .18);
  color: #4b5563;
}

.aa-chip--active {
  background: var(--aa-purple-soft);
  border-color: rgba(100, 82, 254, .26);
  color: var(--aa-purple);
}

.aa-date,
.aa-select {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.aa-filter-group--meta .aa-select {
  min-width: 248px;
}

.aa-filter-group--dates .aa-date {
  min-width: 180px;
}

.aa-select {
  position: relative;
  min-width: 0;
}

.aa-select:hover {
  border-color: rgba(100, 82, 254, .16);
}

.aa-select__trigger {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.aa-date span,
.aa-select__label {
  color: #8893a3;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.aa-date input,
.aa-select select {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--aa-text);
  min-width: 112px;
  font-size: 13px;
  font-weight: 700;
}

.aa-date input {
  min-width: 124px;
}

.aa-date input::placeholder {
  color: #94a3b8;
}

.aa-select select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.aa-select__value {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-select__chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: .75;
  background: url('/register/img/chevron_down_figma.svg') no-repeat center / 14px 14px;
  transition: transform .2s ease;
}

.aa-select.is-open .aa-select__chevron {
  transform: rotate(180deg);
}

.aa-select__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  padding: 8px;
  z-index: 60;
  max-height: 240px;
  overflow: auto;
  scrollbar-width: none;
  min-width: max-content;
}

.aa-select__menu::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.aa-select.is-open .aa-select__menu {
  display: block;
}

.aa-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 700;
  user-select: none;
}

.aa-select__option:hover {
  background: #f8faff;
}

.aa-select__option.is-selected {
  background: #eaf3fc;
  color: var(--aa-purple);
}

.aa-select__check {
  margin-left: auto;
  color: var(--aa-purple);
  font-size: 14px;
  opacity: 0;
}

.aa-select__option.is-selected .aa-select__check {
  opacity: 1;
}

.aa-select.is-disabled {
  opacity: .55;
  cursor: default;
}

.aa-select.is-disabled .aa-select__trigger {
  cursor: default;
}

.aa-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.aa-cards.aa-cards--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-card {
  background: #ffffff;
  border: 1px solid #f0f1f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  padding: 20px 22px 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}

.aa-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.aa-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.aa-card__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aa-card__eyebrow {
  color: #9aa3b2;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aa-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  background: rgba(100, 82, 254, .12);
}

.aa-card__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.aa-card__label {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  max-width: 260px;
}

.aa-card__value {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.aa-card__foot {
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.aa-card__hint {
  color: #9aa3b2;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.aa-card__delta {
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.aa-card__delta--empty {
  visibility: hidden;
}

.aa-card__delta.is-up {
  color: var(--aa-green);
}

.aa-card__delta.is-down {
  color: #ef4444;
}

.aa-input {
  min-width: 220px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.aa-input__label {
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  color: #7c8799;
}

.aa-input input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  color: var(--aa-text);
  font-size: 14px;
  font-weight: 700;
}

.aa-input input::placeholder {
  color: #a0a9b8;
  font-weight: 600;
}

.aa-jm-filters {
  margin-bottom: 18px;
}

.aa-jm-meta {
  flex-wrap: wrap;
}

.aa-jm-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aa-jm-card {
  position: relative;
  min-height: 124px;
  padding: 18px 18px 18px;
}

.aa-jm-card .aa-card__icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.aa-jm-card--search .aa-card__icon {
  background: rgba(100, 82, 254, .12);
  color: var(--aa-purple);
}

.aa-jm-card--active .aa-card__icon {
  background: rgba(24, 202, 142, .14);
  color: var(--aa-green);
}

.aa-jm-card--total .aa-card__icon {
  background: rgba(79, 124, 254, .14);
  color: var(--aa-blue);
}

.aa-jm-card .aa-card__value {
  margin-top: 20px;
}

.aa-jm-panel {
  padding: 0;
  overflow: hidden;
}

.aa-jm-frame-wrap {
  padding: 0 18px 18px;
}

.aa-jm-opapp {
  min-height: auto;
  display: block;
  background: transparent;
}

.aa-jm-opcontent {
  padding: 0;
}

.aa-jm-opapp #tab-jobs {
  padding: 0;
}

.aa-jm-opapp .op-jobs-tabs {
  margin-top: 18px;
}

.aa-jm-opapp .op-table {
  box-shadow: none;
}

.aa-jm-opapp .op-pagination {
  padding-bottom: 0;
}

.aa-jm-panel .aa-panel__head {
  padding-bottom: 8px;
}

.aa-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .aa-grid {
    grid-template-columns: 1fr;
  }
}

.aa-head--embed {
  margin: 0;
  min-height: 0;
}
/* В embed-режиме (профиль → Аналитика/Финансы) встроенная кнопка «Фильтры» скрыта —
   тоггл идёт из родительского acp-page-toolbar через postMessage. */
.aa-app--embed .aa-head--embed .aa-filter-toggle{ display:none !important; }
.aa-app--embed .aa-head--embed{ display:none !important; }

/* В embed-аналитике (внутри профиля) убираем правую секцию section-header,
   так как «Заказчики/Исполнители» относятся к глобальному списку. */
.aa-app--embed .aa-section-header__actions { display: none !important; }
.aa-app--embed .aa-section-header { justify-content: flex-start; }
.aa-app--embed .aa-section-header__main { width: 100%; }

/* Унифицируем тулбар таблицы в embed-режиме — фильтр + поиск + иконки в одну строку,
   как на странице «Пользователи» (overрид всех breakpoint-ов). */
.aa-app.aa-app--embed .aa-table-toolbar {
  flex-wrap: nowrap !important;
}
.aa-app.aa-app--embed .aa-table-toolbar__filters {
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
}
.aa-app.aa-app--embed .aa-table-toolbar__search {
  flex: 1 1 200px !important;
  min-width: 160px !important;
  max-width: 360px !important;
}
.aa-app.aa-app--embed .aa-table-toolbar__icons {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Embed (профиль → Аналитика/Финансы): шапка только с кнопкой «Фильтры» справа,
   фильтры в поповере как на основной странице аналитики. */
.aa-content--embed {
  position: relative;
}
.aa-app--embed .aa-head--embed .aa-page-titlebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
}
.aa-app--embed .aa-filter-toggle {
  height: 38px;
  padding: 0 14px;
  border: 1px solid #E7E9F2;
  border-radius: 10px;
  background: #fff;
  color: #2A3547;
}
.aa-app--embed .aa-filter-toggle:hover,
.aa-app--embed .aa-filter-toggle.is-active {
  border-color: var(--aa-primary);
  color: var(--aa-primary);
  background: var(--aa-primary-30);
}
.aa-app--embed .aa-filter-popover {
  position: absolute;
  top: 46px;
  right: 0;
  left: auto;
  width: 280px;
  max-width: calc(100% - 16px);
  z-index: 80;
}

.aa-panel {
  background: #ffffff;
  border: 1px solid #f0f1f5;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}

.aa-placeholder {
  min-height: 420px;
}

.aa-placeholder__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 22px 30px;
}

.aa-placeholder__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #EDE8FF;
  color: var(--aa-purple);
  font-size: 12px;
  font-weight: 900;
}

.aa-placeholder__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.aa-placeholder__text {
  max-width: 620px;
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}

.aa-placeholder__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--aa-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.aa-placeholder__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(100, 82, 254, .22);
}

.aa-panel__head {
  padding: 22px 24px 0;
}

.aa-panel__headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.aa-panel__headrow > div:first-child {
  flex: 1 1 200px;
  min-width: 0;
}

.aa-panel__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--aa-text);
  letter-spacing: -.01em;
}

.aa-panel__subtitle {
  margin: 6px 0 0;
  color: #8a94a6;
  font-size: 12px;
  font-weight: 500;
}

.aa-chart {
  padding: 16px 20px 22px;
}

.aa-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.aa-chart__grid line {
  stroke: #F0F2F7;
  stroke-width: 1;
  stroke-dasharray: 0;
}

.aa-chart__axis text {
  fill: #97A0AE;
  font-size: 11px;
  font-weight: 500;
}

.aa-chart__area {
  pointer-events: none;
  opacity: 1;
}

.aa-chart__line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(100, 82, 254, .18));
}

.aa-chart__line--dashed {
  opacity: .85;
}

.aa-chart__dot-shadow {
  pointer-events: none;
}

.aa-chart__dot {
  stroke: #fff;
  stroke-width: 2;
}

.aa-chart__legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 4px 24px 22px;
}

.aa-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5A607F;
  font-size: 13px;
  font-weight: 500;
}

.aa-legend-item__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .03);
}

.aa-side-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 24px 24px;
}

.aa-select--side {
  height: 36px;
  min-width: 140px;
  max-width: 200px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #E6E9F4;
  background: #fff;
}

.aa-select--side .aa-select__value {
  min-width: 0;
  max-width: 140px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.aa-donut {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#E6E9F4 0turn, #E6E9F4 1turn);
  margin: 0 auto;
  flex: 0 0 180px;
  filter: drop-shadow(0 4px 10px rgba(38, 44, 71, .06));
}

.aa-donut::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, .04);
}

.aa-donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aa-donut-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #5A607F;
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  padding: 4px 0;
}

.aa-donut-item__left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.aa-donut-item__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .03);
}

.aa-donut-item__label {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  line-height: 1.25;
  font-weight: 500;
}

.aa-donut-item__value {
  color: var(--aa-text);
  text-align: right;
  white-space: nowrap;
  justify-self: end;
  align-self: center;
  line-height: 1.25;
  font-weight: 700;
  font-size: 14px;
}

.aa-insights {
  display: none;
}

.aa-insight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  min-width: 0;
}

.aa-insight__label {
  color: #4b5563;
  font-weight: 700;
  min-width: 0;
  line-height: 1.25;
}

.aa-insight__value {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.aa-table-panel {
  padding: 18px 18px 12px;
}

.aa-users-actions-panel {
  overflow: hidden;
}

.aa-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-direction: column;
}

.aa-table-section-title {
  color: #1e293b;
  font-size: 17px;
  font-weight: 900;
}

.aa-table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.aa-subtabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.aa-subtabs[hidden],
.aa-tabs[hidden] {
  display: none !important;
}

.aa-subtab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: #6d7888;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0 0 6px;
  transition: color .24s ease;
}

.aa-subtab--active {
  color: var(--aa-purple);
}

.aa-subtabs__indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--aa-purple);
  pointer-events: none;
  transform: translateX(0);
  width: 0;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), width .28s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
  opacity: 0;
}

.aa-select--compact {
  height: 34px;
}

.aa-select--compact .aa-select__value {
  min-width: 170px;
}

.aa-table-panel[data-tab="users"] .aa-table-controls {
  width: 100%;
  justify-content: flex-start;
}

.aa-cards[data-tab="users"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-table-wrap {
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 12px;
  background: #fff;
}

.aa-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.aa-table th,
.aa-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  vertical-align: top;
  background: #fff;
}

.aa-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f5f9;
  color: #5a607f;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.aa-table tr th:first-child,
.aa-table tr td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.aa-table tr th:first-child {
  z-index: 3;
}

.aa-table td {
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.aa-table tbody tr {
  transition: background .18s ease;
}

.aa-table tbody tr:hover td {
  background: #fbfcff;
}

.aa-table__lead {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.aa-table__lead-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef2ff 0%, #EDE8FF 100%);
  color: var(--aa-purple);
  font-size: 12px;
  font-weight: 900;
}

.aa-table__lead-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aa-table__lead-copy strong {
  color: #131523;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
}

.aa-table__lead-copy span {
  color: #7e84a3;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.aa-table__metric {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.aa-table__metric strong {
  color: #131523;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
}

.aa-table__metric span {
  color: #7e84a3;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.aa-table__metric span.is-up {
  color: var(--aa-green);
}

.aa-table__metric span.is-down {
  color: #ef4444;
}

.aa-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aa-metric__value {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.aa-metric__delta {
  font-size: 11px;
  font-weight: 800;
}

.aa-metric__delta.is-up {
  color: var(--aa-green);
}

.aa-metric__delta.is-down {
  color: #ef4444;
}

.aa-loading,
.aa-empty {
  padding: 50px 18px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.aa-loading::before {
  content: "";
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 3px solid rgba(100, 82, 254, .16);
  border-top-color: var(--aa-purple);
  animation: aa-spin .7s linear infinite;
}

@keyframes aa-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width:1280px) {
  .aa-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aa-grid {
    grid-template-columns: 1fr;
  }

  .aa-topbar__left {
    grid-template-columns: 220px minmax(280px, 1fr);
  }

  .aa-filters {
    gap: 12px;
  }

  .aa-filters__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .aa-filter-group--controls {
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
    flex: 0 1 auto;
  }

  .aa-filter-group--dates {
    justify-content: flex-start;
  }

  .aa-date-picker__panel {
    right: auto;
    left: 0;
  }

  .aa-app--embed .aa-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .aa-app--embed .aa-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
  }

  .aa-app--embed .aa-filters__bottom {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .aa-app--embed .aa-filter-group--controls {
    justify-content: flex-start;
    width: auto;
    flex-wrap: nowrap;
    margin-left: 0;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
  }

  .aa-app--embed .aa-filter-group--meta {
    width: auto;
    justify-content: flex-end;
    flex: 0 1 auto;
    flex-wrap: nowrap;
  }

  .aa-app--embed .aa-filter-group--dates {
    width: auto;
    justify-content: flex-end;
    flex: 0 1 auto;
  }
}

@media (max-width:980px) {
  .aa-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .aa-sidebar {
    display: none;
  }

  .aa-topbar {
    height: auto;
    padding: 12px 18px;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .aa-topbar__left {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
  }

  .aa-tabs--surface {
    padding: 0 12px;
  }

  .aa-topbar__actions {
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
  }

  .aa-profile__btn {
    width: auto;
    min-width: 0;
  }

  .aa-profile__email {
    display: none;
  }

  .aa-cards {
    grid-template-columns: 1fr;
  }

  .aa-side-grid {
    grid-template-columns: 1fr;
  }

  .aa-donut-wrap {
    align-items: flex-start;
  }

  .aa-filters {
    padding: 12px;
  }

  .aa-filters__bottom {
    align-items: stretch;
  }

  .aa-filter-group--controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .aa-filter-group--meta {
    width: 100%;
    justify-content: flex-start;
  }

  .aa-preset-row {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aa-filter-group--meta .aa-select {
    min-width: 0;
  }

  .aa-date-picker {
    width: 100%;
    min-width: 0;
  }

  .aa-date-picker__panel {
    width: min(396px, calc(100vw - 48px));
    right: auto;
    left: 0;
  }

  .aa-date-picker__fields {
    grid-template-columns: 1fr;
  }

  .aa-app--embed .aa-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aa-app--embed .aa-grid {
    grid-template-columns: 1fr;
  }

  .aa-app--embed .aa-filters__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .aa-app--embed .aa-filter-group--controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .aa-app--embed .aa-filter-group--meta,
  .aa-app--embed .aa-filter-group--dates {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Moderation page */
.aa-mod-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aa-card__icon--purple {
  color: var(--aa-purple);
  background: rgba(100, 82, 254, .12);
}

.aa-card__icon--green {
  color: var(--aa-green);
  background: rgba(24, 202, 142, .14);
}

.aa-card__icon--red {
  color: #ef4444;
  background: rgba(239, 68, 68, .12);
}

.aa-card__icon--blue {
  color: var(--aa-blue);
  background: rgba(79, 124, 254, .12);
}

/* Modernize analytics screen — natural document scroll */
.aa-app[data-page="analytics"]:not(.aa-app--embed) {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: 68px 1fr;
  min-height: 100vh;
  background: #f5f6fa;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-main {
  min-height: calc(100vh - 68px);
  overflow: visible;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-sidebar {
  display: flex;
  top: 56px;
  height: calc(100vh - 56px);
  gap: 14px;
  padding: 20px 16px 18px;
  background: #fff;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-content {
  gap: 20px;
  padding: 28px 32px 40px;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-scene__canvas {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-scene__canvas::before {
  display: none;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-scene__stack {
  gap: 16px;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head {
  gap: 14px;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head__meta {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head__eyebrow,
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-subtitle {
  display: none;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-title {
  color: #131523;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: -.01em;
  font-weight: 800;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head__badge {
  min-height: 34px;
  padding: 0 18px;
  border: 1px solid #d7dbec;
  border-radius: 8px;
  background: #fff;
  color: var(--aa-purple);
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

/* DashStack pill tabs (match Users page styling) */
.aa-app[data-page="analytics"] .aa-tabs,
.aa-app[data-page="analytics"] .aa-tabs,
.aa-app[data-page="analytics"] .aa-tabs--surface {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: 0;
  gap: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.aa-app[data-page="analytics"] .aa-tab {
  position: relative;
  padding: 8px 0 12px;
  border-radius: 0;
  color: #6C7281;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .18s ease;
}

.aa-app[data-page="analytics"] .aa-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background .18s ease;
}

.aa-app[data-page="analytics"] .aa-tab:hover {
  color: var(--aa-purple);
}

.aa-app[data-page="analytics"] .aa-tab--active {
  background: transparent;
  color: var(--aa-purple);
  font-weight: 700;
  box-shadow: none;
}

.aa-app[data-page="analytics"] .aa-tab--active::after {
  background: var(--aa-purple);
}

.aa-app[data-page="analytics"] .aa-tabs__indicator {
  display: none;
}

/* Analytics subtabs (Заказчики / Исполнители) — same borderless style */
.aa-app[data-page="analytics"] .aa-subtabs {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  background: #F4F5F9;
  border: 0;
  border-radius: 10px;
  height: auto;
  min-height: 0;
  position: relative;
}

.aa-app[data-page="analytics"] .aa-subtab {
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: #5A6072;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.aa-app[data-page="analytics"] .aa-subtab:hover {
  color: var(--aa-purple);
}

.aa-app[data-page="analytics"] .aa-subtab--active {
  background: #ffffff;
  color: var(--aa-purple);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.aa-app[data-page="analytics"] .aa-subtabs__indicator {
  display: none;
}

/* Analytics filters follow the same popover pattern as other pages */

.aa-app[data-page="analytics"] .aa-cards {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  min-height: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.aa-app[data-page="analytics"] .aa-cards.aa-cards--duo {
  grid-template-columns: repeat(2, 1fr);
}

.aa-app[data-page="analytics"] .aa-card {
  min-height: 140px;
  padding: 22px 24px;
  border: 1px solid #ECEEF5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
  transition: box-shadow .22s ease, transform .22s ease;
}

.aa-app[data-page="analytics"] .aa-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.aa-app[data-page="analytics"] .aa-card:last-child {
  border: 1px solid #ECEEF5;
}

@media (max-width: 980px) {
  .aa-app[data-page="analytics"] .aa-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aa-app[data-page="analytics"] .aa-card__head {
  display: block;
  position: relative;
}

.aa-app[data-page="analytics"] .aa-card__meta {
  display: block;
  min-width: auto;
  flex: none;
  padding-right: 56px;
}

.aa-app[data-page="analytics"] .aa-card__label {
  color: #8A94A6;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

.aa-app[data-page="analytics"] .aa-card__visual {
  position: absolute;
  top: -2px;
  right: 0;
}

/* (analytics .aa-card__value defined below in DashStack final block) */

/* (analytics .aa-card__foot/__delta defined below in DashStack final block) */
.aa-app[data-page="analytics"] .__deprecated_old_card_foot_delta {
  display: none;
  padding: 4px 10px;
  border-radius: 999px;
}

/* DashStack analytics card value + foot + delta — final */
.aa-app[data-page="analytics"] .aa-card__value {
  margin-top: 12px;
  color: var(--aa-text);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
}

.aa-app[data-page="analytics"] .aa-card__foot {
  margin-top: 14px;
  justify-content: space-between;
  align-items: center;
}

.aa-app[data-page="analytics"] .aa-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.aa-app[data-page="analytics"] .aa-card__delta::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 65%, 70% 65%, 70% 100%, 30% 100%, 30% 65%, 0 65%);
}

.aa-app[data-page="analytics"] .aa-card__delta.is-down::after {
  transform: rotate(180deg);
}

.aa-card__spark {
  display: none;
}

.aa-card__spark span {
  width: 9px;
  border-radius: 4px 4px 2px 2px;
}

.aa-card__visual {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.aa-app[data-page="analytics"] .aa-card .aa-card__icon,
.aa-app[data-page="analytics"] .aa-card__visual .aa-card__icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aa-app[data-page="analytics"] .aa-card .aa-card__icon svg,
.aa-app[data-page="analytics"] .aa-card__visual .aa-card__icon svg {
  width: 20px !important;
  height: 20px !important;
}

.aa-app[data-page="analytics"] .aa-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .aa-app[data-page="analytics"] .aa-grid {
    grid-template-columns: 1fr;
  }
}

.aa-app[data-page="analytics"] .aa-panel {
  border: 1px solid #ECEEF5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.aa-app[data-page="analytics"] .aa-panel__head {
  padding: 22px 24px 10px;
  border-bottom: 0 !important;
}

.aa-app[data-page="analytics"] .aa-panel__headrow {
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.aa-app[data-page="analytics"] .aa-panel__headrow>div:first-child {
  min-width: 0;
  flex: 1 1 160px;
}

.aa-app[data-page="analytics"] .aa-panel__title,
.aa-app[data-page="analytics"] .aa-table-section-title {
  color: var(--aa-text);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
}

.aa-app[data-page="analytics"] .aa-panel__subtitle {
  display: none;
}

.aa-app[data-page="analytics"] .aa-panel--chart .aa-panel__title {
  white-space: normal;
}

.aa-app[data-page="analytics"] .aa-select--side {
  height: auto;
  min-width: 0;
  min-height: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aa-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.aa-app[data-page="analytics"] .aa-select--side .aa-select__label {
  display: none;
}

.aa-app[data-page="analytics"] .aa-select--side select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 18px 0 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%239aa3b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 12px 12px;
}

.aa-app[data-page="analytics"] .aa-select--side .aa-select__value {
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
}

.aa-app[data-page="analytics"] .aa-select--side::after,
.aa-app[data-page="analytics"] .aa-select--side .aa-select__chevron {
  display: none;
}

.aa-app[data-page="analytics"] .aa-select--compact {
  height: 34px;
  min-width: 128px;
  border: 1px solid #E4E7EF;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.aa-app[data-page="analytics"] .aa-chart {
  min-height: 320px;
  padding: 16px 22px 18px;
}

.aa-app[data-page="analytics"] .aa-chart__grid line {
  stroke: #e6e9f4;
  stroke-dasharray: 2 4;
}

.aa-app[data-page="analytics"] .aa-chart__axis text {
  fill: #a1abc6;
  font-size: 12px;
  font-weight: 400;
}

.aa-app[data-page="analytics"] .aa-chart__line {
  stroke-width: 2.4;
}

.aa-app[data-page="analytics"] .aa-chart__area {
  opacity: 1;
}

.aa-app[data-page="analytics"] .aa-chart__dot {
  stroke-width: 2;
}

.aa-chart__callout rect,
.aa-chart__callout path {
  filter: drop-shadow(0 4px 10px rgba(15, 23, 42, .14));
}

.aa-chart__callout text {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.aa-chart__callout text+text {
  font-size: 11px;
  font-weight: 500;
  opacity: .92;
}

.aa-app[data-page="analytics"] .aa-chart__legend {
  justify-content: center;
  padding: 4px 22px 18px;
}

.aa-app[data-page="analytics"] .aa-legend-item {
  color: #5a607f;
  font-size: 13px;
  font-weight: 500;
}

.aa-app[data-page="analytics"] .aa-legend-item__swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* DashStack-style side panel: fixed structure regardless of segment count */
.aa-app[data-page="analytics"] .aa-side-grid {
  padding: 6px 24px 22px;
  gap: 18px;
}

.aa-app[data-page="analytics"] .aa-donut-wrap {
  align-items: center;
  gap: 18px;
}

.aa-app[data-page="analytics"] .aa-donut {
  width: 150px;
  height: 150px;
  margin: 4px auto 4px;
  flex: 0 0 150px;
  filter: none;
}

.aa-app[data-page="analytics"] .aa-donut::after {
  inset: 18px;
  box-shadow: none;
}

.aa-app[data-page="analytics"] .aa-donut::before {
  content: attr(data-center);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aa-text);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.aa-app[data-page="analytics"] .aa-donut-legend {
  gap: 14px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.aa-app[data-page="analytics"] .aa-donut-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #5A607F;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
}

.aa-app[data-page="analytics"] .aa-donut-item__left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aa-app[data-page="analytics"] .aa-donut-item__swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 10px;
  box-shadow: none;
}

.aa-app[data-page="analytics"] .aa-donut-item__label {
  color: #5A6072;
  font-size: 13px;
  font-weight: 500;
}

.aa-app[data-page="analytics"] .aa-donut-item__value {
  color: var(--aa-text);
  font-weight: 700;
  font-size: 14px;
}

/* Hide duplicate insights block — legend already shows the same data */
.aa-app[data-page="analytics"] .aa-insights {
  display: none;
}

/* Keep side panel from growing — let chart drive grid height */
.aa-app[data-page="analytics"] .aa-grid {
  align-items: stretch;
}

.aa-app[data-page="analytics"] .aa-panel--side {
  min-height: 0;
  overflow: hidden;
}

.aa-app[data-page="analytics"] .aa-insight {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aa-insight__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.aa-insight__track {
  height: 6px;
  border-radius: 999px;
  background: #e6e9f4;
  overflow: hidden;
}

.aa-insight__track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--aa-purple);
}

.aa-app[data-page="analytics"] .aa-table-panel {
  padding: 18px 22px 16px;
}

.aa-app[data-page="analytics"] .aa-table-head {
  margin-bottom: 18px;
  flex-direction: row;
  align-items: center;
}

.aa-app[data-page="analytics"] .aa-table-wrap {
  border: 0;
  border-radius: 0;
}

.aa-app[data-page="analytics"] .aa-table th,
.aa-app[data-page="analytics"] .aa-table td {
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid #e6e9f4;
  background: #fff;
}

.aa-app[data-page="analytics"] .aa-table th {
  color: #5a607f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.aa-app[data-page="analytics"] .aa-table td {
  color: #131523;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  vertical-align: middle;
}

.aa-app[data-page="analytics"] .aa-table__lead-copy strong,
.aa-app[data-page="analytics"] .aa-table__metric strong {
  color: #131523;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.aa-app[data-page="analytics"] .aa-table__lead-avatar {
  border-radius: 8px;
  background: #edf2ff;
}

/* Support page */
.as-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.as-card {
  position: relative;
  overflow: hidden;
}

.as-card::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(100, 82, 254, .30), rgba(24, 202, 142, .22));
}

.aa-app[data-page="support"] .aa-filters {
  overflow: visible;
}

.aa-app[data-page="support"] .aa-filters__bottom {
  flex-wrap: nowrap;
  align-items: center;
}

.aa-app[data-page="support"] .aa-preset-row {
  width: 232px;
  flex: 0 0 232px;
}

.aa-app[data-page="support"] .aa-filter-group--controls {
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
}

.aa-app[data-page="support"] .aa-filter-group--meta {
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.aa-app[data-page="support"] .aa-filter-group--dates {
  flex: 0 1 232px;
  min-width: 0;
  justify-content: flex-end;
  margin-left: 0;
}

.aa-app[data-page="support"] .aa-date-picker {
  min-width: 0;
  width: 232px;
  max-width: 100%;
}

.as-select {
  min-width: 0 !important;
  flex: 0 1 220px;
  max-width: 240px;
}

#asRoleWrap {
  flex-basis: 260px;
  max-width: 260px;
}

.as-cards .aa-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.as-cards .aa-card__icon svg {
  width: 22px;
  height: 22px;
}

.as-select .aa-select__label {
  font-size: 11px;
}

.as-select .aa-select__trigger {
  gap: 10px;
}

.as-select .aa-select__value {
  min-width: 72px;
  padding-right: 8px;
}

.as-health-panel,
.as-table-panel {
  padding: 16px;
}

.as-refresh {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--aa-purple);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(100, 82, 254, .2);
  transition: transform .2s ease, opacity .2s ease;
}

.as-refresh:hover {
  transform: translateY(-1px);
}

.as-refresh:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.as-health {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.as-health-item {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-health-item__eyebrow {
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #98a2b3;
}

.as-health-item__label {
  color: #7c8799;
  font-size: 12px;
  font-weight: 900;
}

.as-health-item strong {
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
}

.as-health-item small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.as-health-item.is-danger {
  border-color: rgba(239, 68, 68, .22);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.as-health-item.is-ok {
  border-color: rgba(24, 202, 142, .18);
  background: #fff;
}

.as-table-head {
  margin-bottom: 14px;
}

.as-table-meta {
  margin-top: 5px;
  color: #7c8799;
  font-size: 13px;
  font-weight: 800;
}

.as-table tbody tr:hover td {
  background: #fcfdff;
}

.as-ticket,
.as-user,
.as-sync,
.as-counts,
.as-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.as-ticket--lead,
.as-user--lead {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.as-ticket__avatar,
.as-user__avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #eef2ff 0%, #EDE8FF 100%);
  color: var(--aa-purple);
  font-size: 12px;
  font-weight: 900;
}

.as-user__avatar {
  background: linear-gradient(180deg, #ecfeff 0%, #eef2ff 100%);
  color: #4f46e5;
}

.as-ticket__copy,
.as-user__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.as-ticket strong,
.as-user strong,
.as-date strong {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.as-ticket span,
.as-user span,
.as-sync small,
.as-counts span,
.as-date span {
  color: #7c8799;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

.as-counts strong {
  color: #131523;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
}

.as-ticket em {
  grid-column: 2;
  max-width: 420px;
  color: #dc2626;
  font-style: normal;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.as-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.as-badge--open,
.as-badge--pending {
  color: #4f46e5;
  background: rgba(100, 82, 254, .12);
}

.as-badge--resolved,
.as-badge--closed,
.as-badge--sync-synced {
  color: #0f9f6e;
  background: rgba(24, 202, 142, .14);
}

.as-badge--deleted,
.as-badge--sync-local {
  color: #64748b;
  background: #f1f5f9;
}

.as-badge--sync-error {
  color: #dc2626;
  background: rgba(239, 68, 68, .12);
}

.as-row--error td {
  background: #fffafa;
}

.as-row--error:hover td {
  background: #fff7f7;
}

.as-empty {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7c8799;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .aa-head__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .as-cards,
  .as-health {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aa-app[data-page="support"] .aa-filters__bottom {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .aa-app[data-page="support"] .aa-preset-row,
  .aa-app[data-page="support"] .aa-date-picker {
    width: 100%;
    flex-basis: auto;
  }

  .aa-app[data-page="support"] .aa-filter-group--controls,
  .aa-app[data-page="support"] .aa-filter-group--meta,
  .aa-app[data-page="support"] .aa-filter-group--dates {
    width: 100%;
    flex-basis: 100%;
  }

  .aa-app[data-page="support"] .aa-filter-group--controls {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .as-select {
    max-width: none;
  }
}

@media (max-width: 720px) {

  .as-cards,
  .as-health {
    grid-template-columns: 1fr;
  }

  .as-refresh {
    width: 100%;
  }
}

.aa-search--moderation {
  width: min(100%, 340px);
  height: 40px;
  flex: 1 1 280px;
}

.aa-mod-native-select select {
  position: static;
  inset: auto;
  opacity: 1;
  pointer-events: auto;
  min-width: 120px;
  flex: 1 1 auto;
  appearance: none;
  cursor: pointer;
}

.aa-mod-native-select {
  position: relative;
}

.aa-mod-select {
  position: relative;
}

.aa-mod-native-select::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  opacity: .75;
  background: url('/register/img/chevron_down_figma.svg') no-repeat center / 14px 14px;
  pointer-events: none;
}

.aa-mod-native-select--compact {
  height: 34px;
  min-width: 230px;
}

.aa-mod-native-select--compact::after {
  margin-left: auto;
}

.aa-mod-native-select--compact select {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
}

.aa-mod-panel {
  padding: 16px 16px 10px;
}

.aa-mod-table-head {
  margin-bottom: 8px;
  align-items: flex-start;
}

.aa-mod-table-head .aa-table-controls {
  width: 100%;
  justify-content: flex-start;
  gap: 14px;
}

.aa-mod-table-wrap {
  overflow: auto;
}

.aa-mod-table th:last-child,
.aa-mod-table td:last-child {
  width: 84px;
}

.aa-mod-user {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aa-mod-user__link {
  display: inline-flex;
  align-items: flex-start;
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--aa-purple);
  text-align: left;
  cursor: pointer;
}

.aa-mod-user__link:hover {
  color: #6452FE;
}

.aa-mod-user__link:focus-visible {
  outline: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aa-mod-user__name {
  font-size: 14px;
  font-weight: 800;
  color: var(--aa-text);
}

.aa-mod-user__meta {
  font-size: 12px;
  color: var(--aa-muted);
  line-height: 1.25;
}

.aa-mod-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* Modernize-aligned moderation pills (Figma badge palette) */
.aa-mod-pill--role {
  color: #1E5EFF;
  background: #E8EEFF;
}

.aa-mod-pill--pending,
.aa-mod-pill--warning,
.aa-mod-pill--orange {
  color: #C57E00;
  background: #FFF4DD;
}

.aa-mod-pill--approved,
.aa-mod-pill--success,
.aa-mod-pill--green {
  color: #39B27C;
  background: #E1F7EF;
}

.aa-mod-pill--rejected,
.aa-mod-pill--danger,
.aa-mod-pill--error,
.aa-mod-pill--red {
  color: #FF4842;
  background: #FFE6E5;
}

.aa-mod-pill--info,
.aa-mod-pill--blue {
  color: #1E5EFF;
  background: #E8EEFF;
}

.aa-mod-pill--gray,
.aa-mod-pill--neutral,
.aa-mod-pill--archived {
  color: #5A607F;
  background: #F1F2F6;
}

.aa-mod-pill--purple,
.aa-mod-pill--brand {
  color: #6452FE;
  background: rgba(100, 82, 254, .12);
}

.aa-mod-table-meta {
  margin-bottom: 10px;
  color: #8a94a6;
  font-size: 13px;
  font-weight: 700;
}

.aa-mod-menu-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.aa-mod-kebab {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: background .2s ease;
}

.aa-mod-kebab:hover,
.aa-mod-kebab.is-open {
  opacity: .7;
}

.aa-mod-kebab span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #334155;
  display: block;
}

.aa-mod-menu {
  position: absolute;
  right: 0;
  top: 28px;
  min-width: 170px;
  width: 190px;
  max-width: calc(100vw - 24px);
  padding: 6px 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #EEE;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  z-index: 20;
  box-sizing: border-box;
  overflow: hidden;
}

.aa-mod-menu.aa-mod-menu--floating {
  position: fixed;
  top: 0;
  right: auto;
  left: 0;
  z-index: 120;
}

.aa-mod-menu.aa-mod-menu--up {
  top: auto;
  bottom: 28px;
}

.aa-mod-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
  box-sizing: border-box;
  text-decoration: none;
}

.aa-mod-menu__item:hover {
  background: #F6F6F6;
  color: #334155;
}

.aa-mod-menu__item.is-disabled {
  color: #94a3b8;
  cursor: default;
  pointer-events: none;
}

.aa-mod-menu__item--danger:hover {
  color: #ef4444;
}

.aa-mod-empty {
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  color: var(--aa-muted);
}

.aa-mod-confirm-body {
  max-width: 480px;
  width: min(480px, calc(100vw - 32px));
}

.aa-mod-confirm-text {
  margin-bottom: 20px;
  text-align: left;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
}

.aa-mod-confirm-actions {
  justify-content: space-between;
}

.aa-mod-confirm-actions .op-confirm-btn {
  max-width: none;
  min-width: 0;
}

.aa-mod-reject-body {
  max-width: 560px;
  width: min(560px, calc(100vw - 32px));
  padding: 28px 24px 24px;
}

.aa-mod-reject-title {
  margin: 0 0 18px;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
}

.aa-mod-reject-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.aa-mod-reject-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aa-mod-reject-select {
  width: 100%;
  min-width: 0;
}

.aa-mod-reject-select .aa-select__value {
  font-size: 16px;
  font-weight: 600;
}

.aa-mod-reject-select .aa-select__menu {
  z-index: 160;
  max-height: 136px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.aa-mod-reject-select .aa-select__option {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 14px;
}

.aa-mod-reject-select.is-error {
  border-color: #ef4444 !important;
}

.aa-mod-reject-textarea {
  min-height: 92px;
  resize: none;
}

.aa-mod-reject-textarea.error {
  border-color: #ef4444 !important;
}

.aa-mod-reject-field .op-edit-error-text {
  margin-top: 0;
}

#aaModInfoModal {
  padding: 16px;
}

.aa-mod-detail-modal {
  width: calc(100vw - 32px);
  max-width: calc(100vw - 32px);
  min-height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
}

.aa-mod-detail-modal__close {
  z-index: 3;
}

.aa-mod-detail-card .op-job-detail-actions {
  gap: 10px;
}

.aa-mod-detail-action {
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  box-shadow: none;
}

.aa-mod-detail-action--approve {
  background: #f0fdf4;
  color: #16a34a;
}

.aa-mod-detail-action--approve:hover {
  background: #dcfce7;
}

.aa-mod-detail-action--reject {
  background: #fef2f2;
  color: #dc2626;
}

.aa-mod-detail-action--reject:hover {
  background: #fee2e2;
}

.aa-mod-detail-card {
  min-height: auto;
}

.aa-mod-detail-card .op-job-info-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.aa-mod-detail-card .op-job-info-row {
  align-items: flex-start;
}

.aa-mod-detail-card .op-job-info-row--top .op-job-info-label,
.aa-mod-detail-card .op-job-info-row--top .op-job-info-value {
  padding-top: 1px;
}

.aa-mod-detail-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 8px;
  background: #fff;
}

.aa-mod-detail-company__meta {
  min-width: 0;
}

.aa-mod-detail-company__name {
  font-size: 14px;
  font-weight: 800;
  color: #111;
  line-height: 1.3;
}

.aa-mod-detail-company__sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.aa-mod-detail-company__logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.aa-mod-detail-logo-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 16px 14px;
}

.aa-mod-detail-logo-box {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.aa-mod-detail-logo-frame {
  width: 220px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border: 1px solid #A0ABBB;
  border-radius: 8px;
  background: rgba(246, 248, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

.aa-mod-detail-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.aa-mod-detail-company-block {
  min-height: 0;
  height: 100%;
}

.aa-mod-detail-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 24px;
  align-items: stretch;
}

.aa-mod-detail-address-block {
  width: 100%;
  min-height: 0;
  height: 100%;
}

.aa-mod-detail-accordions {
  margin-top: 24px;
  margin-bottom: 0;
}

.aa-mod-history {
  margin-top: 24px;
}

.aa-mod-history__empty {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.aa-mod-history-item+.aa-mod-history-item {
  margin-top: 10px;
}

.aa-mod-history-toggle {
  width: 100%;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.aa-mod-history-toggle.is-open {
  border-color: #6452FE;
  background: #f9fafb;
}

.aa-mod-history-toggle.is-open .op-worker-expand-icon {
  transform: rotate(180deg);
}

.aa-mod-history-avatar {
  background: #eef2ff;
  color: #6452FE;
}

.aa-mod-history-avatar--large {
  font-size: 22px;
  font-weight: 800;
}

.aa-mod-history-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.aa-mod-history-status--approved {
  color: #065f46;
  background: #d1fae5;
}

.aa-mod-history-status--rejected {
  color: #991b1b;
  background: #fee2e2;
}

.aa-mod-history-status--pending {
  color: #92400e;
  background: #fef3c7;
}

.aa-mod-history-panel {
  margin-top: 8px;
}

.aa-mod-history-panel__header {
  grid-template-columns: 60px minmax(0, 1fr);
}

.aa-mod-history-panel .op-worker-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aa-mod-detail-company__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.aa-mod-detail-company__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--aa-purple);
  font-size: 28px;
  font-weight: 900;
  border-radius: 8px;
}

.aa-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--aa-muted);
}

.au-page-subtitle {
  margin-bottom: 12px;
}

.au-period-filters {
  margin-bottom: 12px;
}

.au-period-controls {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.au-period-filters .aa-filters__bottom {
  align-items: center;
  gap: 10px;
}

.au-period-filters .aa-filter-group--controls {
  flex: 0 0 auto;
}

.au-cards {
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.au-loading {
  grid-column: 1 / -1;
}

.aa-jm-loading {
  grid-column: 1 / -1;
}

.au-cards .aa-card {
  min-height: 112px;
  padding: 18px 18px 16px;
}

.au-cards .aa-card__head {
  position: relative;
  display: block;
  padding-right: 56px;
  min-height: 36px;
}

.au-cards .aa-card__icon {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex: none;
}

.au-cards .aa-card__icon svg {
  width: 17px;
  height: 17px;
}

.au-cards .aa-card__label {
  display: block;
  max-width: none;
  padding-top: 2px;
}

.au-cards .aa-card__value {
  margin-top: 12px;
}

.au-panel {
  margin-top: 18px;
}

.au-table-head {
  gap: 18px;
  align-items: flex-start;
}

.au-table-topbar {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.au-table-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
}

.au-invite-btn {
  min-width: 196px;
  height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.au-filters {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: 0 0 20px;
}

.au-filters .aa-select {
  min-width: 0;
  width: 100%;
}

.au-filters .aa-select__value,
.au-filters .aa-select--compact .aa-select__value {
  min-width: 0;
}

.au-filters[data-mode="customers"] #auCustomerCityWrap {
  grid-column: span 6;
}

.au-filters[data-mode="customers"] #auCustomerTypeWrap {
  grid-column: span 6;
}

.au-filters[data-mode="workers"] #auWorkerCityWrap,
.au-filters[data-mode="workers"] #auWorkerGenderWrap,
.au-filters[data-mode="workers"] #auWorkerOccupationWrap {
  grid-column: span 4;
}

.au-filters[data-mode="staff"] #auStaffRoleWrap,
.au-filters[data-mode="staff"] #auStaffStatusWrap {
  grid-column: span 6;
}

.au-filters[data-mode="invitations"] #auInvitationStatusWrap {
  grid-column: span 6;
}

.au-search {
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
}

.au-search__ico {
  display: inline-flex;
  color: #94a3b8;
  flex-shrink: 0;
}

.au-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 600;
}

.au-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.au-table-wrap {
  overflow-x: auto;
}

.au-table th:last-child,
.au-table td:last-child {
  text-align: right;
}

.au-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.au-user--compact {
  min-width: 0;
}

.au-user__avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #F4F6FB;
  border: 1px solid rgba(15, 23, 42, .05);
  color: #677489;
  font-size: 12px;
  font-weight: 800;
}

.au-user__meta {
  min-width: 0;
}

.au-user__name {
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.au-user__name--link {
  color: #6452FE;
  text-decoration: none;
}

.au-user__name--link:hover {
  color: #6d28d9;
}

.au-user__sub {
  margin-top: 2px;
  color: #8C97A8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.au-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

/* Modernize-aligned pill colors (Figma badge palette) */
.au-pill--blue {
  background: #E8EEFF;
  color: #1E5EFF;
}

.au-pill--green {
  background: #E1F7EF;
  color: #39B27C;
}

.au-pill--orange {
  background: #FFF4DD;
  color: #C57E00;
}

.au-pill--red {
  background: #FFE6E5;
  color: #FF4842;
}

.au-pill--gray {
  background: #F1F2F6;
  color: #5A607F;
}

.au-pill--staff,
.au-pill--purple {
  background: rgba(100, 82, 254, .12);
  color: #6452FE;
}

.au-pill--yellow {
  background: #FFF8DC;
  color: #B07D00;
}

.au-pill--dark {
  background: #131523;
  color: #FFFFFF;
}

.au-empty {
  padding: 42px 18px;
  text-align: center;
  color: var(--aa-muted);
  font-size: 14px;
  font-weight: 600;
}

.au-access-meta-cell {
  display: grid;
  gap: 4px;
  min-width: 160px;
}

.au-access-meta-cell strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.au-access-meta-cell span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.au-actions-empty {
  display: inline-flex;
  color: #A0AABC;
  font-size: 14px;
  font-weight: 700;
}

.au-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 8px;
}

.au-dialog--invite {
  width: min(860px, calc(100vw - 32px));
  max-width: min(860px, calc(100vw - 32px));
  padding: 30px 34px 24px;
  border-radius: 8px;
}

.au-access-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: min(980px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  overflow: auto;
}

.au-access-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.au-access-summary__item {
  position: relative;
  min-width: 110px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.au-access-summary__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.au-access-summary__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}

.au-access-summary__icon svg {
  width: 18px;
  height: 18px;
}

.au-access-summary__item--purple .au-access-summary__icon {
  background: rgba(100, 82, 254, .12);
  color: var(--aa-purple);
}

.au-access-summary__item--blue .au-access-summary__icon {
  background: rgba(79, 124, 254, .12);
  color: var(--aa-blue);
}

.au-access-summary__item--red .au-access-summary__icon {
  background: rgba(239, 68, 68, .12);
  color: #ef4444;
}

.au-access-summary__item--green .au-access-summary__icon {
  background: rgba(24, 202, 142, .14);
  color: var(--aa-green);
}

.au-access-summary__label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.au-access-summary__value {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
}

.au-access-toolbar {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.au-access-presets,
.au-access-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.au-access-presets {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.au-access-presets::-webkit-scrollbar {
  display: none;
}

.au-access-filters {
  flex-wrap: wrap;
}

.au-access-preset,
.au-access-filter {
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
  color: #94a3b8;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.au-access-preset.is-active,
.au-access-filter.is-active {
  color: #6452FE;
  border-color: rgba(100, 82, 254, .24);
  background: #EDE8FF;
}

.au-access-list {
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .06);
  background: linear-gradient(180deg, rgba(100, 82, 254, .04), rgba(100, 82, 254, 0));
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.au-access-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  padding: 16px 18px;
}

.au-access-item__main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.au-access-item__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.au-access-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
  background: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, .12);
}

.au-access-item__dot--green {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.au-access-item__dot--red {
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
}

.au-access-item__device {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.au-access-item__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex: 0 0 30px;
}

.au-access-item__icon svg {
  width: 18px;
  height: 18px;
}

.au-access-item__device-text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.au-access-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
}

.au-access-item__meta strong {
  color: #64748b;
  font-weight: 700;
}

.au-access-item__action {
  border: 0;
  background: none;
  color: #6452FE;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.au-access-item__action[disabled] {
  color: #cbd5e1;
  cursor: default;
}

.au-access-empty {
  border-radius: 8px;
  border: 1px dashed rgba(15, 23, 42, .12);
  background: #fff;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 30px 20px;
}

.au-dialog__title {
  color: var(--aa-text);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.au-dialog__text {
  margin-top: 8px;
  color: var(--aa-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.au-dialog__fields {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.au-dialog--invite .au-dialog__title {
  font-size: 22px;
}

.au-dialog--invite .au-dialog__text {
  margin-top: 10px;
  max-width: none;
  font-size: 13px;
  line-height: 1.55;
}

.au-invite-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(100, 82, 254, .12);
  background: rgba(100, 82, 254, .05);
}

.au-dialog--invite .au-invite-note {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
}

.au-invite-note__title {
  color: var(--aa-purple);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.au-invite-note__text {
  margin-top: 6px;
  color: #5B6476;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.au-dialog__error {
  margin-top: 14px;
}

.au-dialog--invite .au-dialog__error {
  min-height: 20px;
  margin-top: 12px;
}

.au-field {
  display: grid;
  gap: 8px;
}

.au-dialog--invite .au-dialog__fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.au-dialog--invite .au-dialog__fields>* {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.au-dialog--invite .au-field {
  min-width: 0;
}

.au-field span {
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 700;
}

.au-field__error {
  min-height: 18px;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.au-field .op-input {
  height: 46px;
  border-radius: 8px;
}

.au-dialog--invite .au-field {
  gap: 7px;
}

.au-dialog--invite .au-field .op-input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border-radius: 8px;
  box-sizing: border-box;
}

.au-field .op-input.is-invalid {
  border-color: rgba(220, 38, 38, .42);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .08);
}

.au-field--select .aa-select__label,
.au-role-select .aa-select__label {
  display: none;
}

.au-dialog--invite .au-field--role {
  align-self: start;
}

.au-dialog--invite .au-role-select {
  height: 52px;
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--aa-border);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
}

.au-dialog--invite .au-role-select .aa-select__trigger {
  height: 52px;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.au-dialog--invite .au-role-select .aa-select__value {
  font-size: 14px;
  font-weight: 700;
}

.au-dialog--invite .au-role-select .aa-select__menu {
  left: 0;
  right: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.au-invite-role-card {
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, .06);
  background: #F8FAFF;
}

.au-dialog--invite .au-invite-role-card {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 18px 20px 16px;
  border-radius: 8px;
}

.au-invite-role-card__label {
  color: #8C97A8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.au-invite-role-card__title {
  margin-top: 8px;
  color: var(--aa-text);
  font-size: 18px;
  font-weight: 800;
}

.au-invite-role-card__text {
  margin-top: 6px;
  color: #5B6476;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.au-invite-success {
  margin-top: 22px;
  padding-top: 6px;
}

.au-invite-success__icon {
  display: flex;
  justify-content: center;
}

.au-invite-success__title {
  margin-top: 14px;
  color: var(--aa-text);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.au-invite-success__text {
  margin-top: 10px;
  color: #5B6476;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.au-copy-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--aa-border);
  background: #F8FAFF;
}

.au-copy-box__label {
  color: #8C97A8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.au-copy-box__row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.au-copy-box__input {
  flex: 1 1 auto;
  min-width: 0;
}

.au-copy-box__btn {
  min-width: 128px;
}

.au-copy-box__hint {
  min-height: 18px;
  margin-top: 8px;
  color: var(--aa-purple);
  font-size: 12px;
  font-weight: 700;
}

.au-dialog--invite .aa-mod-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 0;
}

.au-dialog--invite .aa-mod-confirm-actions .op-confirm-btn {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.au-dialog--invite .aa-mod-confirm-actions .op-confirm-btn:disabled {
  opacity: .7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.au-dialog--invite .aa-mod-confirm-actions #auInviteCopyDone {
  grid-column: 1 / -1;
}

.au-dialog--invite .au-invite-success {
  margin-top: 18px;
}

.au-dialog--invite .au-copy-box {
  margin-top: 16px;
  border-radius: 8px;
}

.au-invite-success-modal .au-invite-success-sheet {
  max-width: 540px;
  width: min(540px, calc(100vw - 32px));
  padding: 28px 24px 24px;
  border-radius: 8px;
}

.au-invite-success-sheet .op-success-text {
  margin-bottom: 18px;
}

.au-invite-success-sheet__text {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.au-invite-success-sheet .au-copy-box {
  margin-top: 0;
  text-align: left;
}

.au-invite-success-sheet .au-copy-box__row {
  align-items: stretch;
}

.au-invite-success-sheet .au-copy-box__input {
  width: 100%;
}

.au-invite-success-sheet .au-copy-box__btn {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.au-invite-success-sheet__close {
  margin-top: 16px;
}

.au-invite-success-sheet .au-copy-box__btn.is-copied {
  background: #18CA8E;
  box-shadow: 0 10px 24px rgba(24, 202, 142, .28);
  animation: au-copy-pop .35s ease;
}

.au-invite-success-sheet .au-copy-box__btn.is-copy-error {
  background: #EF4444;
  box-shadow: 0 10px 24px rgba(239, 68, 68, .22);
}

.au-invite-success-sheet .au-copy-box__hint {
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}

.au-invite-success-sheet .au-copy-box__hint.is-copy-ok {
  color: #18CA8E;
  transform: translateY(-1px);
}

.au-invite-success-sheet .au-copy-box__hint.is-copy-error {
  color: #EF4444;
}

@keyframes au-copy-pop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width:1100px) {
  .au-table-head {
    flex-direction: column;
    align-items: stretch;
  }

  .au-table-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .au-table-actions {
    justify-content: space-between;
  }

  .au-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .au-filters[data-mode="customers"] #auCustomerCityWrap,
  .au-filters[data-mode="customers"] #auCustomerTypeWrap,
  .au-filters[data-mode="workers"] #auWorkerCityWrap,
  .au-filters[data-mode="workers"] #auWorkerGenderWrap,
  .au-filters[data-mode="workers"] #auWorkerOccupationWrap,
  .au-filters[data-mode="staff"] #auStaffRoleWrap,
  .au-filters[data-mode="staff"] #auStaffStatusWrap,
  .au-filters[data-mode="invitations"] #auInvitationStatusWrap {
    grid-column: span 1;
  }

  .au-access-dialog {
    width: min(900px, calc(100vw - 24px));
  }
}

@media (max-width:900px) {
  .aa-mod-cards {
    grid-template-columns: 1fr;
  }

  .aa-mod-confirm-text,
  .aa-mod-reject-title {
    font-size: 18px;
  }

  .aa-mod-native-select--compact {
    width: 100%;
  }

  .aa-mod-detail-company {
    grid-template-columns: 1fr;
  }

  .aa-mod-detail-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .au-access-summary {
    grid-template-columns: 1fr 1fr;
  }

  .au-access-summary {
    width: 100%;
  }

  .au-access-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .au-access-dialog {
    padding: 24px 18px 18px;
  }

  .aa-mod-detail-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .aa-mod-detail-accordions {
    margin-top: 0;
  }

  .aa-mod-history-panel__header,
  .aa-mod-history-panel .op-worker-details {
    grid-template-columns: 1fr;
  }

  .aa-mod-detail-logo-frame {
    width: 164px;
    max-width: 164px;
  }

  .au-filters {
    padding: 0 18px 18px;
  }

  .au-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .au-search {
    max-width: none;
    width: 100%;
  }

  .au-dialog {
    padding: 24px 18px;
    border-radius: 8px;
  }

  .au-dialog--invite {
    width: min(720px, calc(100vw - 24px));
    max-width: min(720px, calc(100vw - 24px));
    padding: 24px 20px 20px;
  }

  .au-dialog--invite .au-dialog__fields {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .au-dialog--invite .aa-mod-confirm-actions {
    grid-template-columns: 1fr;
  }

  .au-copy-box__row {
    flex-direction: column;
  }

  .au-copy-box__btn {
    width: 100%;
  }
}

/* Modernize fidelity pass for legacy admin pages (users/jobs/moderation). */
.aa-app[data-page="users"],
.aa-app[data-page="jobs"],
.aa-app[data-page="moderation"] {
  --aa-border: #e6e9f4;
  --aa-border-strong: #d7dbec;
  --aa-shadow: 0 1px 4px rgba(21, 34, 50, .08);
  background: #f5f6fa;
}

.aa-app[data-page="users"] .aa-main,
.aa-app[data-page="jobs"] .aa-main,
.aa-app[data-page="moderation"] .aa-main {
  min-height: calc(100vh - 64px);
}

.aa-app[data-page="users"] .aa-content,
.aa-app[data-page="jobs"] .aa-content,
.aa-app[data-page="moderation"] .aa-content {
  gap: 20px;
  padding: 30px 40px 40px;
}

.aa-app[data-page="users"] .aa-head,
.aa-app[data-page="jobs"] .aa-head,
.aa-app[data-page="moderation"] .aa-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.aa-app[data-page="users"] .aa-title,
.aa-app[data-page="jobs"] .aa-title,
.aa-app[data-page="moderation"] .aa-title {
  margin: 0;
  color: #131523;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 800;
}

.aa-app[data-page="users"] .aa-subtitle,
.aa-app[data-page="jobs"] .aa-subtitle,
.aa-app[data-page="moderation"] .aa-subtitle {
  margin: 0;
  color: #5a607f;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.aa-app[data-page="users"] .aa-tabs,
.aa-app[data-page="moderation"] .aa-subtabs {
  width: max-content;
  max-width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.aa-app[data-page="users"] .aa-tab,
.aa-app[data-page="moderation"] .aa-subtab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5a607f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .16s ease;
}

.aa-app[data-page="users"] .aa-tab:hover,
.aa-app[data-page="moderation"] .aa-subtab:hover {
  background: rgba(100, 82, 254, .08);
  color: var(--aa-purple);
}

.aa-app[data-page="users"] .aa-tab--active,
.aa-app[data-page="moderation"] .aa-subtab--active {
  background: #EDE8FF;
  color: var(--aa-purple);
}

.aa-app[data-page="users"] .aa-tabs__indicator,
.aa-app[data-page="moderation"] .aa-subtabs__indicator {
  display: none;
}

.aa-app[data-page="users"] .aa-filters,
.aa-app[data-page="jobs"] .aa-filters,
.aa-app[data-page="moderation"] .aa-filters {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.aa-app[data-page="users"] .aa-filters__top,
.aa-app[data-page="users"] .aa-filters__bottom,
.aa-app[data-page="jobs"] .aa-filters__top,
.aa-app[data-page="jobs"] .aa-filters__bottom,
.aa-app[data-page="moderation"] .aa-filters__top,
.aa-app[data-page="moderation"] .aa-filters__bottom {
  display: contents;
}

.aa-app[data-page="users"] .aa-preset-row,
.aa-app[data-page="jobs"] .aa-preset-row,
.aa-app[data-page="moderation"] .aa-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: auto;
}

.aa-app[data-page="users"] .aa-filter-group--controls,
.aa-app[data-page="jobs"] .aa-filter-group--controls,
.aa-app[data-page="moderation"] .aa-filter-group--controls {
  flex: 1 1 360px;
  justify-content: flex-start;
  margin-left: 0;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.aa-app[data-page="users"] .aa-filter-group--meta,
.aa-app[data-page="jobs"] .aa-filter-group--meta,
.aa-app[data-page="moderation"] .aa-filter-group--meta,
.aa-app[data-page="users"] .aa-filter-group--dates,
.aa-app[data-page="jobs"] .aa-filter-group--dates,
.aa-app[data-page="moderation"] .aa-filter-group--dates {
  width: auto;
  flex: 0 1 auto;
  justify-content: flex-start;
}

.aa-app[data-page="users"] .aa-date-picker,
.aa-app[data-page="jobs"] .aa-date-picker,
.aa-app[data-page="moderation"] .aa-date-picker {
  width: 260px;
  min-width: 220px;
}

.aa-app[data-page="users"] .aa-chip,
.aa-app[data-page="jobs"] .aa-chip,
.aa-app[data-page="moderation"] .aa-chip {
  width: auto;
  min-width: 104px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #d7dbec;
  border-radius: 8px;
  background: #fff;
  color: #5a607f;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease, transform .16s ease;
}

.aa-app[data-page="users"] .aa-chip:hover,
.aa-app[data-page="jobs"] .aa-chip:hover,
.aa-app[data-page="moderation"] .aa-chip:hover {
  border-color: rgba(100, 82, 254, .34);
  color: var(--aa-purple);
}

.aa-app[data-page="users"] .aa-chip:active,
.aa-app[data-page="jobs"] .aa-chip:active,
.aa-app[data-page="moderation"] .aa-chip:active {
  transform: scale(.98);
}

.aa-app[data-page="users"] .aa-chip--active,
.aa-app[data-page="jobs"] .aa-chip--active,
.aa-app[data-page="moderation"] .aa-chip--active {
  border-color: rgba(100, 82, 254, .36);
  background: #EDE8FF;
  color: var(--aa-purple);
  box-shadow: inset 0 0 0 1px rgba(100, 82, 254, .1);
}

.aa-app[data-page="users"] .aa-select,
.aa-app[data-page="jobs"] .aa-select,
.aa-app[data-page="moderation"] .aa-select,
.aa-app[data-page="users"] .aa-date-picker__trigger,
.aa-app[data-page="jobs"] .aa-date-picker__trigger,
.aa-app[data-page="moderation"] .aa-date-picker__trigger {
  height: 40px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #d7dbec;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #131523;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.aa-app[data-page="users"] .aa-select:hover,
.aa-app[data-page="jobs"] .aa-select:hover,
.aa-app[data-page="moderation"] .aa-select:hover,
.aa-app[data-page="users"] .aa-date-picker__trigger:hover,
.aa-app[data-page="jobs"] .aa-date-picker__trigger:hover,
.aa-app[data-page="moderation"] .aa-date-picker__trigger:hover {
  border-color: rgba(100, 82, 254, .34);
  color: var(--aa-purple);
}

.aa-app[data-page="users"] .aa-select__label,
.aa-app[data-page="jobs"] .aa-select__label,
.aa-app[data-page="moderation"] .aa-select__label,
.aa-app[data-page="users"] .aa-date-picker__label,
.aa-app[data-page="jobs"] .aa-date-picker__label,
.aa-app[data-page="moderation"] .aa-date-picker__label {
  color: #7e84a3;
  font-size: 12px;
  font-weight: 700;
}

.aa-app[data-page="users"] .aa-select__menu,
.aa-app[data-page="jobs"] .aa-select__menu,
.aa-app[data-page="moderation"] .aa-select__menu,
.aa-app[data-page="users"] .aa-date-picker__panel,
.aa-app[data-page="jobs"] .aa-date-picker__panel,
.aa-app[data-page="moderation"] .aa-date-picker__panel {
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(38, 44, 71, .16);
  animation: aaPopIn .22s cubic-bezier(.22, .61, .36, 1) both;
}

.aa-app[data-page="users"] .aa-select__option,
.aa-app[data-page="jobs"] .aa-select__option,
.aa-app[data-page="moderation"] .aa-select__option {
  min-height: 40px;
  border-radius: 0;
  color: #131523;
  font-size: 14px;
  font-weight: 500;
}

.aa-app[data-page="users"] .aa-select__option:hover,
.aa-app[data-page="jobs"] .aa-select__option:hover,
.aa-app[data-page="moderation"] .aa-select__option:hover {
  background: #EDE8FF;
  color: var(--aa-purple);
}

.aa-app[data-page="users"] .aa-select__option.is-selected,
.aa-app[data-page="jobs"] .aa-select__option.is-selected,
.aa-app[data-page="moderation"] .aa-select__option.is-selected {
  background: #EDE8FF;
  color: var(--aa-purple);
}

.aa-app[data-page="users"] .aa-cards,
.aa-app[data-page="jobs"] .aa-cards,
.aa-app[data-page="moderation"] .aa-cards {
  gap: 16px;
}

.aa-app[data-page="users"] .aa-card,
.aa-app[data-page="jobs"] .aa-card,
.aa-app[data-page="moderation"] .aa-card {
  min-height: 116px;
  padding: 18px 20px;
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.aa-app[data-page="users"] .aa-card:hover,
.aa-app[data-page="jobs"] .aa-card:hover,
.aa-app[data-page="moderation"] .aa-card:hover {
  transform: translateY(-2px);
  border-color: #d7dbec;
  box-shadow: 0 10px 24px rgba(21, 34, 50, .06);
}

.aa-app[data-page="users"] .aa-card__label,
.aa-app[data-page="jobs"] .aa-card__label,
.aa-app[data-page="moderation"] .aa-card__label {
  color: #7e84a3;
  font-size: 13px;
  font-weight: 700;
}

.aa-app[data-page="users"] .aa-card__value,
.aa-app[data-page="jobs"] .aa-card__value,
.aa-app[data-page="moderation"] .aa-card__value {
  color: #131523;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.aa-app[data-page="users"] .aa-panel,
.aa-app[data-page="jobs"] .aa-panel,
.aa-app[data-page="moderation"] .aa-panel {
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.aa-app[data-page="jobs"] .aa-jm-panel .aa-panel__head {
  padding: 22px 24px 12px;
}

.aa-app[data-page="jobs"] .aa-panel__title,
.aa-app[data-page="users"] .aa-table-section-title,
.aa-app[data-page="moderation"] .aa-table-section-title {
  color: #131523;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.aa-app[data-page="jobs"] .aa-panel__subtitle,
.aa-app[data-page="users"] .aa-mod-table-meta,
.aa-app[data-page="moderation"] .aa-mod-table-meta {
  color: #7e84a3;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.aa-app[data-page="users"] .aa-table-head,
.aa-app[data-page="moderation"] .aa-table-head {
  margin: 0;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #e6e9f4;
  flex-direction: row;
  align-items: center;
}

.aa-app[data-page="users"] .au-filters {
  padding: 16px 24px 0;
}

.aa-app[data-page="users"] .aa-table-wrap,
.aa-app[data-page="moderation"] .aa-table-wrap {
  border: 0;
  border-radius: 0;
  overflow: auto;
}

.aa-app[data-page="users"] .aa-table th,
.aa-app[data-page="users"] .aa-table td,
.aa-app[data-page="moderation"] .aa-table th,
.aa-app[data-page="moderation"] .aa-table td {
  min-height: 56px;
  padding: 14px 18px;
  border-bottom: 1px solid #e6e9f4;
  background: #fff;
  color: #5a607f;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}

.aa-app[data-page="users"] .aa-table th,
.aa-app[data-page="moderation"] .aa-table th {
  background: #f8f9fc;
  color: #7e84a3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}

.aa-app[data-page="users"] .aa-table tbody tr,
.aa-app[data-page="moderation"] .aa-table tbody tr {
  transition: background .18s ease;
}

.aa-app[data-page="users"] .aa-table tbody tr:hover td,
.aa-app[data-page="moderation"] .aa-table tbody tr:hover td {
  background: #fbfcff;
}

.aa-app[data-page="moderation"] .aa-mod-pill {
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.aa-app[data-page="moderation"] .aa-mod-kebab {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f5f6fa;
  transition: background .18s ease, color .18s ease;
}

.aa-app[data-page="moderation"] .aa-mod-kebab:hover,
.aa-app[data-page="moderation"] .aa-mod-kebab.is-open {
  opacity: 1;
  background: #EDE8FF;
}

.aa-app[data-page="moderation"] .aa-mod-menu {
  padding: 8px;
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(38, 44, 71, .16);
  animation: aaPopIn .22s cubic-bezier(.22, .61, .36, 1) both;
}

.aa-app[data-page="moderation"] .aa-mod-menu__item {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #131523;
  font-size: 13px;
  font-weight: 700;
}

.aa-app[data-page="moderation"] .aa-mod-menu__item:hover {
  background: #EDE8FF;
  color: var(--aa-purple);
}

.aa-app[data-page="jobs"] .aa-jm-frame-wrap {
  padding: 0 24px 24px;
  overflow-x: auto;
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-table,
.aa-app[data-page="jobs"] .aa-jm-opapp .op-card,
.aa-app[data-page="jobs"] .aa-jm-opapp .op-panel {
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-table {
  min-width: 980px;
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-jobs-tabs {
  width: max-content;
  max-width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 18px;
  padding: 8px;
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-jobs-tab {
  min-height: 40px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5a607f;
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, transform .16s ease;
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-jobs-tab:hover {
  background: rgba(100, 82, 254, .08);
  color: var(--aa-purple);
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-jobs-tab.active {
  background: #EDE8FF;
  color: var(--aa-purple);
}

.aa-app[data-page="jobs"] .aa-jm-opapp .op-table th,
.aa-app[data-page="jobs"] .aa-jm-opapp .op-table td {
  border-color: #e6e9f4;
}

.aa-app[data-page="users"] .op-modal,
.aa-app[data-page="jobs"] .op-modal,
.aa-app[data-page="moderation"] .op-modal {
  backdrop-filter: blur(6px);
}

.aa-app[data-page="users"]~.op-modal .op-confirm-body,
.aa-app[data-page="jobs"]~.op-modal .op-confirm-body,
.aa-app[data-page="moderation"]~.op-modal .op-confirm-body,
.aa-app[data-page="moderation"]~.op-modal .op-job-detail-body {
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 54px rgba(21, 34, 50, .18);
  animation: aaPopIn .24s cubic-bezier(.22, .61, .36, 1) both;
}

@media (max-width: 1180px) {

  .aa-app[data-page="users"] .aa-content,
  .aa-app[data-page="jobs"] .aa-content,
  .aa-app[data-page="moderation"] .aa-content {
    padding: 24px 20px 34px;
  }

  .aa-app[data-page="users"] .aa-cards,
  .aa-app[data-page="jobs"] .aa-cards,
  .aa-app[data-page="moderation"] .aa-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {

  .aa-app[data-page="users"],
  .aa-app[data-page="jobs"],
  .aa-app[data-page="moderation"] {
    grid-template-rows: 64px 1fr;
  }

  .aa-app[data-page="users"] .aa-topbar,
  .aa-app[data-page="jobs"] .aa-topbar,
  .aa-app[data-page="moderation"] .aa-topbar {
    height: 56px;
    min-height: 56px;
    flex-direction: row;
    align-items: center;
    padding: 0 18px 0 0;
  }

  .aa-app[data-page="users"] .aa-topbar__left,
  .aa-app[data-page="jobs"] .aa-topbar__left,
  .aa-app[data-page="moderation"] .aa-topbar__left {
    display: grid;
    grid-template-columns: 170px minmax(180px, 1fr);
    align-items: center;
    gap: 14px;
  }

  .aa-app[data-page="users"] .aa-brand,
  .aa-app[data-page="jobs"] .aa-brand,
  .aa-app[data-page="moderation"] .aa-brand {
    height: 70px;
    padding-left: 18px;
  }

  .aa-app[data-page="users"] .aa-brand__logo,
  .aa-app[data-page="jobs"] .aa-brand__logo,
  .aa-app[data-page="moderation"] .aa-brand__logo {
    width: 134px;
    height: 32px;
  }

  .aa-app[data-page="users"] .aa-topbar__actions,
  .aa-app[data-page="jobs"] .aa-topbar__actions,
  .aa-app[data-page="moderation"] .aa-topbar__actions {
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .aa-app[data-page="users"] .aa-profile__email,
  .aa-app[data-page="jobs"] .aa-profile__email,
  .aa-app[data-page="moderation"] .aa-profile__email {
    display: none;
  }
}

@media (max-width: 760px) {

  .aa-app[data-page="users"] .aa-title,
  .aa-app[data-page="jobs"] .aa-title,
  .aa-app[data-page="moderation"] .aa-title {
    font-size: 26px;
  }

  .aa-app[data-page="users"] .aa-filters,
  .aa-app[data-page="jobs"] .aa-filters,
  .aa-app[data-page="moderation"] .aa-filters {
    padding: 16px;
  }

  .aa-app[data-page="users"] .aa-chip,
  .aa-app[data-page="jobs"] .aa-chip,
  .aa-app[data-page="moderation"] .aa-chip {
    min-width: 0;
    flex: 1 1 30%;
  }

  .aa-app[data-page="users"] .aa-cards,
  .aa-app[data-page="jobs"] .aa-cards,
  .aa-app[data-page="moderation"] .aa-cards {
    grid-template-columns: 1fr;
  }
}

.aa-icon-mask {
  width: 24px;
  height: 24px;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-image: var(--aa-icon);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: var(--aa-icon);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Unified Modernize admin shell: keep navigation, header and filters identical across sections. */
.aa-app:not(.aa-app--embed) {
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: 56px 1fr;
  background: var(--aa-bg);
  overflow-x: clip;
}

.aa-app:not(.aa-app--embed) .aa-topbar {
  grid-column: 1 / 3;
  height: 56px;
  min-height: 56px;
  padding: 0 24px 0 20px;
  gap: 18px;
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
  z-index: 120;
}

.aa-app:not(.aa-app--embed) .aa-topbar__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1 1 auto;
}

.aa-app:not(.aa-app--embed) .aa-brand {
  min-width: 134px;
  height: 44px;
  padding-left: 0;
  flex: 0 0 134px;
}

.aa-app:not(.aa-app--embed) .aa-brand__logo {
  width: 134px;
  height: 32px;
}

.aa-app:not(.aa-app--embed) .aa-search {
  flex: 1 1 auto;
  max-width: 360px;
  min-width: 180px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.aa-app:not(.aa-app--embed) .aa-topbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: 0;
}

.aa-app:not(.aa-app--embed) .aa-bell {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
}

.aa-app:not(.aa-app--embed) .aa-profile__btn {
  min-height: 40px;
  padding: 4px 6px 4px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-text);
}

.aa-app:not(.aa-app--embed) .aa-profile__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.aa-app:not(.aa-app--embed) .aa-profile__email {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-profile__pill {
  display: flex;
}

.aa-app:not(.aa-app--embed) .aa-sidebar {
  grid-column: 1;
  grid-row: 2;
  top: 56px;
  height: calc(100vh - 56px);
  gap: 18px;
  padding: 22px 16px 18px;
  border-right: 0;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .02);
  z-index: 40;
}

.aa-app:not(.aa-app--embed) .aa-sidebar__brand {
  gap: 12px;
  padding: 4px 8px 0;
  margin-bottom: 0;
}

.aa-app:not(.aa-app--embed) .aa-sidebar__avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 15px;
  font-weight: 800;
}

.aa-app:not(.aa-app--embed) .aa-sidebar__eyebrow {
  color: var(--aa-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.aa-app:not(.aa-app--embed) .aa-sidebar__title {
  color: var(--aa-soft);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-navs {
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
}

.aa-app:not(.aa-app--embed) .aa-nav,
.aa-app:not(.aa-app--embed) .aa-logout {
  min-height: 44px;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-nav--active {
  background: var(--aa-purple);
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 82, 254, .3);
}

.aa-app:not(.aa-app--embed) .aa-nav__ico,
.aa-app:not(.aa-app--embed) .aa-logout__ico,
.aa-app:not(.aa-app--embed) .aa-nav__ico::before,
.aa-app:not(.aa-app--embed) .aa-logout__ico::before {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.aa-app:not(.aa-app--embed) .aa-main {
  grid-column: 2;
  grid-row: 2;
  min-height: calc(100vh - 68px);
  display: flex;
  justify-content: flex-start;
}

.aa-app:not(.aa-app--embed) .aa-content,
.aa-app[data-page="users"] .aa-content,
.aa-app[data-page="jobs"] .aa-content,
.aa-app[data-page="moderation"] .aa-content,
.aa-app[data-page="support"] .aa-content,
.aa-app.aa-app--profile .aa-content {
  width: min(100%, 1296px);
  gap: 22px;
  margin: 0;
  padding: 30px 28px 40px 24px;
}

.aa-app:not(.aa-app--embed) .aa-title {
  color: var(--aa-text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-subtitle {
  display: block;
  color: var(--aa-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.aa-app:not(.aa-app--embed) .aa-head__meta {
  display: block;
}

.aa-app:not(.aa-app--embed) .aa-head__eyebrow,
.aa-app:not(.aa-app--embed) .aa-head__badge {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  overflow: visible;
}

.aa-app:not(.aa-app--embed) .aa-filters__top,
.aa-app:not(.aa-app--embed) .aa-filters__bottom,
.aa-app:not(.aa-app--embed) .aa-filters__bar,
.aa-app:not(.aa-app--embed) .aa-filter-group--controls,
.aa-app:not(.aa-app--embed) .aa-filter-group--meta,
.aa-app:not(.aa-app--embed) .aa-filter-group--dates,
.aa-app:not(.aa-app--embed) .aa-preset-row {
  display: contents;
}

.aa-app:not(.aa-app--embed) .aa-chip {
  width: auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--aa-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--aa-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-chip--active {
  border-color: rgba(100, 82, 254, .36);
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  box-shadow: inset 0 0 0 1px rgba(100, 82, 254, .10);
}

.aa-app:not(.aa-app--embed) .aa-select,
.aa-app:not(.aa-app--embed) .aa-date-picker,
.aa-app:not(.aa-app--embed) .aa-date-picker__trigger {
  min-width: 0;
}

.aa-app:not(.aa-app--embed) .aa-select,
.aa-app:not(.aa-app--embed) .aa-date-picker {
  grid-column: span 2;
}

.aa-app[data-page="jobs"] .aa-filter-group--meta .aa-select,
.aa-app[data-page="moderation"] .aa-filter-group--meta .aa-select {
  grid-column: span 3;
}

.aa-app[data-page="jobs"] .aa-date-picker,
.aa-app[data-page="moderation"] .aa-date-picker {
  grid-column: span 3;
}

.aa-app[data-page="users"] .aa-date-picker {
  grid-column: span 6;
}

.aa-app:not(.aa-app--embed) .aa-select,
.aa-app:not(.aa-app--embed) .aa-date-picker__trigger {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--aa-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--aa-text);
  box-shadow: none;
}

.aa-app:not(.aa-app--embed) .aa-select__label,
.aa-app:not(.aa-app--embed) .aa-date-picker__label {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-select__value,
.aa-app:not(.aa-app--embed) .aa-date-picker__value {
  color: var(--aa-text);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-select__menu,
.aa-app:not(.aa-app--embed) .aa-date-picker__panel {
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(38, 44, 71, .16);
}

.aa-app:not(.aa-app--embed) .aa-panel,
.aa-app:not(.aa-app--embed) .aa-card,
.aa-app:not(.aa-app--embed) .op-confirm-body,
.aa-app:not(.aa-app--embed) .op-job-detail-body {
  border-radius: 8px;
}

.aa-app[data-page="support"] .aa-scene__canvas,
.aa-app.aa-app--profile .aa-scene__canvas,
.aa-app:not(.aa-app--embed) .aa-scene__canvas {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.aa-app:not(.aa-app--embed) .aa-scene__canvas::before {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-scene__stack {
  gap: 22px;
}

.aa-app:not(.aa-app--embed) .aa-tabs,
.aa-app .aa-subtabs {
  width: max-content;
  max-width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.aa-app:not(.aa-app--embed) .aa-tab,
.aa-app:not(.aa-app--embed) .aa-subtab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 800;
}

.aa-app:not(.aa-app--embed) .aa-tab--active,
.aa-app:not(.aa-app--embed) .aa-subtab--active {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
}

.aa-app:not(.aa-app--embed) .aa-tabs__indicator,
.aa-app .aa-subtabs__indicator {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-cards {
  gap: 14px;
}

.aa-app:not(.aa-app--embed) .aa-card {
  min-height: 104px;
  padding: 22px 24px;
  border: 1px solid var(--aa-border);
  background: #fff;
  box-shadow: none;
}

.aa-app:not(.aa-app--embed) .aa-card__value {
  color: var(--aa-text);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.aa-app:not(.aa-app--embed) .aa-card__label {
  color: var(--aa-muted);
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.aa-app:not(.aa-app--embed) .aa-panel,
.aa-app .aa-table-panel {
  border: 1px solid var(--aa-border);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.aa-app:not(.aa-app--embed) .aa-panel__head,
.aa-app .aa-table-head,
.aa-app:not(.aa-app--embed) .au-table-head {
  padding: 22px 24px 14px;
}

.aa-app:not(.aa-app--embed) .aa-panel__title,
.aa-app .aa-table-section-title {
  color: var(--aa-text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
}

.aa-app:not(.aa-app--embed) .aa-panel__subtitle,
.aa-app:not(.aa-app--embed) .aa-mod-table-meta {
  color: var(--aa-soft);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.aa-app .aa-table {
  border-collapse: collapse;
}

.aa-app .aa-table th {
  height: 44px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--aa-border);
  background: #F5F6FA;
  color: var(--aa-muted);
  font-size: 12px;
  line-height: 20px;
  font-weight: 800;
}

.aa-app .aa-table td {
  min-height: 56px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--aa-border);
  color: var(--aa-text);
  font-size: 13px;
  line-height: 20px;
}

.aa-app .aa-table tbody tr:hover {
  background: #F8FAFF;
}

.aa-app:not(.aa-app--embed) .op-modal {
  background: rgba(19, 21, 35, .42);
  backdrop-filter: blur(4px);
}

.aa-app:not(.aa-app--embed) .op-confirm-body,
.aa-app:not(.aa-app--embed) .op-job-detail-body,
.aa-app:not(.aa-app--embed) .aa-mod-detail-modal,
.aa-app:not(.aa-app--embed) .aa-mod-confirm-body,
.aa-app:not(.aa-app--embed) .aa-mod-reject-body,
.aa-app:not(.aa-app--embed) .au-dialog {
  border: 1px solid var(--aa-border);
  background: #fff;
  box-shadow: 0 6px 24px rgba(38, 44, 71, .16);
  animation: aaPopIn .22s cubic-bezier(.22, .61, .36, 1) both;
}

.aa-app:not(.aa-app--embed) .op-confirm-ok,
.aa-app:not(.aa-app--embed) .aa-date-picker__apply {
  border-radius: 8px;
  background: var(--aa-primary);
  color: #fff;
}

@media (max-width: 1180px) and (min-width: 641px) {
  .aa-app:not(.aa-app--embed) {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .aa-app:not(.aa-app--embed) .aa-sidebar {
    display: flex;
  }

  .aa-app:not(.aa-app--embed) .aa-topbar {
    height: 56px;
    padding: 0 24px 0 20px;
    flex-direction: row;
    flex-wrap: nowrap;
  }
}

@media (max-width: 640px) {
  .aa-app:not(.aa-app--embed) {
    grid-template-columns: 1fr;
  }

  .aa-app:not(.aa-app--embed) .aa-topbar {
    grid-column: 1;
    height: 58px;
    min-height: 58px;
    padding: 0 16px 0 18px;
    flex-wrap: nowrap;
  }

  .aa-app:not(.aa-app--embed) .aa-brand {
    display: none;
  }

  .aa-app:not(.aa-app--embed) .aa-search {
    max-width: none;
  }

  .aa-app:not(.aa-app--embed) .aa-sidebar {
    display: none;
  }

  .aa-app:not(.aa-app--embed) .aa-main {
    grid-column: 1;
  }

  .aa-app:not(.aa-app--embed) .aa-content {
    padding: 24px 18px 32px;
  }

  .aa-app:not(.aa-app--embed) .aa-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
  }

  .aa-app:not(.aa-app--embed) .aa-select,
  .aa-app:not(.aa-app--embed) .aa-date-picker,
  .aa-app[data-page="jobs"] .aa-filter-group--meta .aa-select,
  .aa-app[data-page="moderation"] .aa-filter-group--meta .aa-select,
  .aa-app[data-page="users"] .aa-filter-group--meta .aa-select,
  .aa-app[data-page="jobs"] .aa-date-picker,
  .aa-app[data-page="moderation"] .aa-date-picker,
  .aa-app[data-page="users"] .aa-date-picker {
    grid-column: span 3;
  }
}

/* Analytics page uses the same filter popover pattern as other pages */

/* Modernize shell parity for every Jinja admin section. */
.aa-app:not(.aa-app--embed) .aa-page-titlebar,
.aa-app:not(.aa-app--embed) .aa-head__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.aa-app:not(.aa-app--embed) .aa-head {
  position: relative;
  z-index: 30;
  width: 100%;
  align-self: stretch;
  align-items: stretch;
}

.aa-app .aa-filter-toggle {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-primary);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.aa-app .aa-filter-toggle:hover,
.aa-app .aa-filter-toggle.is-active {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
}

.aa-filter-toggle__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.aa-filter-toggle__icon,
.aa-app:not(.aa-app--embed) .aa-search__ico::before,
.aa-app:not(.aa-app--embed) .aa-bell__ico::before,
.aa-app:not(.aa-app--embed) .aa-nav__ico::before,
.aa-app:not(.aa-app--embed) .aa-logout__ico::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: var(--aa-icon) center / contain no-repeat;
  mask: var(--aa-icon) center / contain no-repeat;
}

.aa-filter-toggle__icon {
  --aa-icon: url("/static/admin/modernize-icons/filter-gear.svg");
}

.aa-app:not(.aa-app--embed) .aa-search__ico::before {
  --aa-icon: url("/static/admin/modernize-icons/search.svg");
  color: var(--aa-soft);
}

.aa-app:not(.aa-app--embed) .aa-bell__ico::before {
  --aa-icon: url("/static/admin/modernize-icons/bell.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico svg,
.aa-app:not(.aa-app--embed) .aa-logout__ico svg {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--analytics::before {
  --aa-icon: url("/static/admin/modernize-icons/statistics.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--jobs::before {
  --aa-icon: url("/static/admin/modernize-icons/case.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--users::before {
  --aa-icon: url("/static/admin/modernize-icons/users.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--support::before {
  --aa-icon: url("/static/admin/modernize-icons/chat.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--moderation::before {
  --aa-icon: url("/static/admin/modernize-icons/secure.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--notifications::before {
  --aa-icon: url("/static/admin/modernize-icons/bell.svg");
}

.aa-app:not(.aa-app--embed) .aa-nav__ico--settings::before {
  --aa-icon: url("/static/admin/modernize-icons/settings.svg");
}

.aa-app:not(.aa-app--embed) .aa-logout__ico::before {
  --aa-icon: url("/static/admin/modernize-icons/logout.svg");
}

.aa-app:not(.aa-app--embed) .aa-search {
  border-radius: 0;
  background: transparent;
}

.aa-app:not(.aa-app--embed) .aa-search:focus-within {
  background: transparent;
}

.aa-app:not(.aa-app--embed) .aa-bell {
  border-radius: 8px;
  background: transparent;
  color: var(--aa-soft);
}

.aa-app:not(.aa-app--embed) .aa-bell:hover {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
}

.aa-app:not(.aa-app--embed) .aa-bell__badge {
  right: 2px;
  top: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
}

.aa-app:not(.aa-app--embed) .aa-profile__btn {
  gap: 10px;
}

.aa-app:not(.aa-app--embed) .aa-profile__name {
  color: #131523;
  font-size: 13px;
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-nav--active {
  background: var(--aa-primary);
  color: #fff;
}

.aa-app:not(.aa-app--embed) .aa-nav--active .aa-nav__ico {
  color: #fff;
}

/* =====================================================================
   FILTER DRAWER — глобальный side-panel для фильтров (Modernize)
   ---------------------------------------------------------------------
   Используется на главных страницах админки (/admin/users, /analytics,
   /moderation, /jobs, /support).
   - Открывается справа, сдвигаясь по transform.
   - Перекрытие страницы через .aa-filter-backdrop.
   - Контент внутри — секции с заголовками (.aa-filter-drawer__section),
     внутри секций — пресеты / селекты / date-picker — всё на 100% ширины.
   - Внизу всегда виден фиксированный footer (Сбросить + Применить).
   ===================================================================== */
.aa-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  opacity: 0;
  visibility: hidden;
  z-index: 199;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.aa-filter-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}

.aa-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #fff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, .12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%) !important;
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
  z-index: 200;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  /* Гасим .aa-content > * { animation: aaFadeUp } которая иначе сбрасывает
     transform на translateY(0) и drawer всегда видим. */
  animation: none !important;
}
.aa-filter-drawer.is-open {
  transform: translateX(0) !important;
}

.aa-filter-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #F0F2F8;
  flex: 0 0 auto;
}
.aa-filter-drawer__title {
  font: 700 16px/1.2 "Plus Jakarta Sans", sans-serif;
  color: #131523;
  margin: 0;
}
.aa-filter-drawer__close {
  width: 32px; height: 32px;
  border: 0; background: transparent;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #5A607F;
  flex: 0 0 32px;
}
.aa-filter-drawer__close:hover {
  background: #F4F5FB;
  color: #2A3547;
}

.aa-filter-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aa-filter-drawer__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid #F0F2F8;
  background: #fff;
  flex: 0 0 auto;
}
.aa-filter-drawer__reset {
  flex: 0 0 auto;
  height: 40px; padding: 0 16px;
  border: 1px solid #E7E9F2;
  border-radius: 10px;
  background: #fff;
  color: #5A607F;
  font: 600 13px/1 "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.aa-filter-drawer__reset:hover {
  color: #2A3547;
  background: #F4F5FB;
  border-color: #D7DBEC;
}
.aa-filter-drawer__apply {
  flex: 1 1 auto;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: #6452FE;
  color: #fff;
  font: 600 13px/1 "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.aa-filter-drawer__apply:hover { background: #5641E8; }
.aa-filter-drawer__apply:active { transform: scale(.985); }

/* Секции внутри drawer */
.aa-filter-drawer__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aa-filter-drawer__section + .aa-filter-drawer__section {
  border-top: 1px solid #F0F2F8;
  padding-top: 18px;
}
.aa-filter-drawer__section-title {
  font: 600 11px/1 "Plus Jakarta Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7E84A3;
  margin: 0 0 4px;
}
.aa-filter-drawer__field-label {
  font: 500 12px/1 "Plus Jakarta Sans", sans-serif;
  color: #7E84A3;
  margin: 4px 0 4px;
}

/* Пресет-чипы внутри drawer — сетка 3×2 (две строки по 3 чипа) */
.aa-filter-drawer .aa-preset-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  padding: 0;
  width: 100%;
}
.aa-filter-drawer .aa-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 36px;
  height: auto !important;
  padding: 0 10px !important;
  border: 1px solid #E7E9F2 !important;
  background: #fff !important;
  border-radius: 8px !important;
  color: #2A3547 !important;
  font: 500 12.5px/1.2 "Plus Jakarta Sans", sans-serif !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.aa-filter-drawer .aa-chip:hover {
  background: #F4F5FB !important;
  color: #2A3547 !important;
  border-color: #D7DBEC !important;
}
.aa-filter-drawer .aa-chip--active,
.aa-filter-drawer .aa-chip.aa-chip--active {
  background: rgba(100, 82, 254, .10) !important;
  border-color: var(--aa-purple) !important;
  color: var(--aa-purple) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
/* В сеточном варианте убираем галочку справа — она бы ломала центрирование текста */
.aa-filter-drawer .aa-chip--active::after,
.aa-filter-drawer .aa-chip.aa-chip--active::after {
  content: none !important;
}

/* Select-ы и date-range внутри drawer */
.aa-filter-drawer .aa-select,
.aa-filter-drawer .aa-date {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  grid-column: auto !important;
  flex-basis: auto !important;
}
.aa-filter-drawer .aa-select {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 10px;
  border: 1px solid #ECEEF6;
  background: #fff;
}
/* Wrapper остаётся высотой триггера — menu абсолютно позиционировано и не
   растягивает wrapper. */
.aa-filter-drawer .aa-select.is-open {
  height: 42px !important;
  /* В открытом состоянии — фиолетовая рамка, фон остаётся белым,
   * заливка не применяется (перебивает глобальное правило
   * .aa-app .aa-select.is-open .aa-select__trigger { background: ... }) */
  border-color: var(--aa-purple) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .10) !important;
}
.aa-filter-drawer .aa-select.is-open .aa-select__trigger {
  background: transparent !important;
  color: var(--aa-purple) !important;
}
.aa-filter-drawer .aa-select.is-open .aa-select__value {
  color: var(--aa-purple) !important;
}

/* Текст и иконка triggerа выровнены по сторонам (text слева, шеврон справа). */
.aa-filter-drawer .aa-select__trigger {
  text-align: left !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
}
/* Сам <span class="aa-select__label"> внутри select-обёртки не нужен —
 * у нас есть отдельный .aa-filter-drawer__field-label сверху. */
.aa-filter-drawer .aa-select__label {
  display: none !important;
}
.aa-filter-drawer .aa-select__value {
  text-align: left !important;
  flex: 1 1 auto !important;
}
.aa-filter-drawer .aa-select__chevron {
  flex: 0 0 auto !important;
}

/* Произвольный диапазон — два компактных поля с/по в одну строку,
   без dropdown. */
.aa-filter-drawer .aa-date-range {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.aa-filter-drawer .aa-date-range .aa-date {
  flex: 1 1 0;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  border: 1px solid #ECEEF6 !important;
  background: #fff !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.aa-filter-drawer .aa-date-range .aa-date span {
  color: #8893A3;
  font: 700 11px/1 "Plus Jakarta Sans", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  flex: 0 0 auto;
}
.aa-filter-drawer .aa-date-range .aa-date input {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #2A3547;
  font: 500 13px/1 "Plus Jakarta Sans", sans-serif;
}
.aa-filter-drawer .aa-date-range .aa-date:focus-within {
  border-color: var(--aa-purple) !important;
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .10) !important;
}

/* Бейдж количества активных фильтров на кнопке "Фильтры" */
.aa-app .aa-filter-toggle__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #6452FE;
  color: #fff;
  font: 700 11px/1 "Plus Jakarta Sans", sans-serif;
  margin-left: 6px;
}
.aa-app .aa-filter-toggle__badge:empty { display: none; }

@media (max-width: 480px) {
  .aa-filter-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* =====================================================================
   FILTER POPOVER (legacy / profile) — стиль для compact dropdown
   используется в /admin/users/customer|worker (вкладки) — НЕ drawer.
   Здесь это просто остатки прежнего поведения чтобы старый код в
   профиле не сломался. Главные страницы НЕ ИСПОЛЬЗУЮТ
   .aa-filter-popover напрямую — у них на drawer перешли.
   ===================================================================== */
.aa-app .aa-filter-popover {
  position: fixed;
  top: 116px;
  right: 32px;
  z-index: 90;
  width: 280px;
  max-width: calc(100vw - 36px);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid #ECEEF6;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .05);
}
.aa-app .aa-filter-popover::before { display: none; }
.aa-app .aa-filter-popover.is-open {
  display: flex;
  animation: aaFadePop .14s ease-out;
}
@keyframes aaFadePop {
  from { opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
/* =====================================================================
   MODERNIZE 2026 — COMPREHENSIVE COMPONENT OVERRIDES
   Phase 2: op-btn, op-input, micro-interactions, animations, polish
   ===================================================================== */

/* ─── Custom scrollbar ─────────────────────────────────────────────── */
.aa-app * {
  scrollbar-width: thin;
  scrollbar-color: #d7dbec transparent;
}
.aa-app *::-webkit-scrollbar { width: 5px; height: 5px; }
.aa-app *::-webkit-scrollbar-track { background: transparent; }
.aa-app *::-webkit-scrollbar-thumb { background: #d7dbec; border-radius: 99px; }
.aa-app *::-webkit-scrollbar-thumb:hover { background: #a1a7c4; }

/* ─── Override op-btn to match Modernize button spec ───────────────── */
.aa-app .op-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: var(--aa-primary);
  color: #fff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.aa-app .op-btn:hover {
  background: var(--aa-primary-90);
  box-shadow: 0 4px 14px rgba(100, 82, 254, .28);
}
.aa-app .op-btn:active { transform: translateY(1px); box-shadow: none; }
.aa-app .op-btn:disabled,
.aa-app .op-btn[disabled] { opacity: .5; cursor: default; pointer-events: none; }

/* Secondary / ghost op-btn variants */
.aa-app .op-btn.op-btn--ghost,
.aa-app .au-invite-btn.op-btn--ghost {
  background: #fff;
  color: var(--aa-primary);
  border: 1px solid rgba(100, 82, 254, .28);
  box-shadow: none;
}
.aa-app .op-btn.op-btn--ghost:hover { background: var(--aa-primary-30); box-shadow: none; }

/* ─── Override op-input to match Modernize input spec ──────────────── */
.aa-app .op-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--aa-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}
.aa-app .op-input:focus {
  border-color: var(--aa-primary);
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .1);
}
.aa-app .op-input::placeholder { color: var(--aa-soft); font-weight: 500; }
.aa-app .op-input.is-invalid,
.aa-app .op-input.error { border-color: var(--aa-red) !important; }

/* ─── Override op-confirm-btn ──────────────────────────────────────── */
.aa-app .op-confirm-btn,
.aa-app .op-confirm-cancel,
.aa-app .op-confirm-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.aa-app .op-confirm-cancel {
  background: var(--aa-border);
  color: var(--aa-muted);
  border-color: var(--aa-border-strong);
}
.aa-app .op-confirm-cancel:hover { background: var(--aa-border-strong); }
.aa-app .op-confirm-ok {
  background: var(--aa-primary);
  color: #fff;
  border-color: var(--aa-primary);
}
.aa-app .op-confirm-ok:hover { background: var(--aa-primary-90); }
.aa-app .op-confirm-btn:active { transform: translateY(1px); }

/* Logout modal specific — make confirm-actions look clean */
.aa-app .op-confirm-body .op-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 0;
  padding: 0;
  border-top: 0;
}

/* ─── Card hover micro-interactions ────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-card {
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.aa-app:not(.aa-app--embed) .aa-card:hover {
  border-color: rgba(100, 82, 254, .2);
  box-shadow: 0 4px 20px rgba(100, 82, 254, .08);
  transform: translateY(-1px);
}

/* ─── Panel hover micro-interactions ───────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-panel,
.aa-app .aa-table-panel {
  transition: border-color .22s ease, box-shadow .22s ease;
}
.aa-app:not(.aa-app--embed) .aa-panel:hover,
.aa-app .aa-table-panel:hover {
  border-color: rgba(100, 82, 254, .15);
}

/* ─── Filter popover open animation ────────────────────────────────── */
@keyframes aaPopoverIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.aa-app .aa-filter-popover.is-open {
  animation: aaPopoverIn .22s cubic-bezier(.22, .61, .36, 1) both;
}

/* ─── Better button for au-invite-btn ──────────────────────────────── */
.aa-app .au-invite-btn {
  height: 40px;
  min-width: auto;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ─── Modernize logout modal design ────────────────────────────────── */
.aa-app .aa-logout-modal {
  max-width: 380px;
  width: min(380px, calc(100vw - 32px));
  padding: 28px 24px 24px;
}
.aa-app .aa-logout-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(240, 20, 47, .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--aa-red);
}
.aa-app .aa-logout-modal__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--aa-text);
}
.aa-app .aa-logout-modal__text {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--aa-muted);
}
.aa-app .aa-logout-modal__actions {
  display: flex;
  gap: 12px;
}
.aa-app .aa-logout-modal__cancel {
  flex: 1;
  height: 44px;
  border: 1px solid var(--aa-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--aa-muted);
  font-size: 14px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.aa-app .aa-logout-modal__cancel:hover { background: var(--aa-border); }
.aa-app .aa-logout-modal__ok {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--aa-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: background .18s ease;
}
.aa-app .aa-logout-modal__ok:hover { background: #d41128; }

/* ─── Status badge variants ────────────────────────────────────────── */
.aa-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: .02em;
}
.aa-badge--blue   { background: var(--aa-primary-30);          color: var(--aa-primary); }
.aa-badge--green  { background: rgba(6, 165, 97, .12);         color: #06a561; }
.aa-badge--red    { background: rgba(240, 20, 47, .1);         color: var(--aa-red); }
.aa-badge--yellow { background: rgba(249, 150, 0, .12);        color: #c97700; }
.aa-badge--gray   { background: var(--aa-border);              color: var(--aa-muted); }
.aa-badge--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── Operator table improvements ──────────────────────────────────── */
.aa-app .op-table {
  border-collapse: collapse;
  width: 100%;
}
.aa-app .op-table th {
  height: 44px;
  padding: 12px 16px;
  background: #F5F6FA;
  border-bottom: 1px solid var(--aa-border);
  color: var(--aa-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .op-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--aa-border);
  color: var(--aa-text);
  font-size: 13px;
  line-height: 1.5;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .op-table tbody tr:hover td { background: #F8FAFF; }

/* ─── Operator pagination improvements ─────────────────────────────── */
.aa-app .op-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--aa-border);
}
.aa-app .op-pagination .op-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  color: var(--aa-muted);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.aa-app .op-pagination .op-btn:hover { background: var(--aa-primary-30); color: var(--aa-primary); border-color: rgba(100, 82, 254, .24); box-shadow: none; }
.aa-app .op-pagination .op-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.aa-app .op-pagination .op-btn.active,
.aa-app .op-pagination .op-btn[data-active="true"] { background: var(--aa-primary); color: #fff; border-color: var(--aa-primary); }

/* ─── Operator search/filter bar improvements ──────────────────────── */
.aa-app .op-search-bar,
.aa-app .op-jobs-tabs {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .op-jobs-tabs .op-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--aa-muted);
  border: 1px solid var(--aa-border);
  box-shadow: none;
}
.aa-app .op-jobs-tabs .op-btn.active,
.aa-app .op-jobs-tabs .op-btn[data-active] {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  border-color: rgba(100, 82, 254, .28);
}

/* ─── Operator select overrides ────────────────────────────────────── */
.aa-app .op-select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-text);
  outline: none;
  cursor: pointer;
}
.aa-app .op-select:focus { border-color: var(--aa-primary); }

/* ─── Operator modal confirmation override ──────────────────────────── */
.aa-app .op-confirm-text {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--aa-text);
}

/* ─── Improved page title size for non-analytics pages ─────────────── */
.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-title,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-title,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-title,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-title,
.aa-app.aa-app--profile .aa-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ─── Improved select dropdown trigger appearance ───────────────────── */
.aa-app .aa-select__trigger {
  transition: background .18s ease;
}
.aa-app .aa-select.is-open .aa-select__trigger {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
}
.aa-app .aa-select__menu {
  animation: aaPopoverIn .18s cubic-bezier(.22, .61, .36, 1) both;
}

/* ─── Better aa-select focus/hover states ───────────────────────────── */
.aa-app .aa-select:focus-within { border-color: var(--aa-primary); }

/* ─── Better date-picker trigger focus ─────────────────────────────── */
.aa-app .aa-date-picker__trigger:hover {
  border-color: rgba(100, 82, 254, .24);
  background: #F8FAFF;
}
.aa-app .aa-date-picker__panel {
  animation: aaPopoverIn .18s cubic-bezier(.22, .61, .36, 1) both;
}

/* ─── aa-jm-cards accent strips (jobs metric cards) ────────────────── */
.aa-app .aa-jm-card {
  position: relative;
  overflow: hidden;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.aa-app:not(.aa-app--embed) .aa-jm-card:hover {
  border-color: rgba(100, 82, 254, .2);
  box-shadow: 0 4px 20px rgba(100, 82, 254, .08);
  transform: translateY(-1px);
}

/* ─── Nav active: DashStack solid pill style ──────────────────────── */
.aa-app:not(.aa-app--embed) .aa-nav--active {
  position: relative;
  background: var(--aa-purple);
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 82, 254, .3);
}
.aa-app:not(.aa-app--embed) .aa-nav--active::before {
  display: none;
}
.aa-app:not(.aa-app--embed) .aa-nav--active .aa-nav__ico { color: #fff; }

/* ─── Subtle separator in sidebar between nav and logout ───────────── */
.aa-app:not(.aa-app--embed) .aa-sidebar__bottom {
  border-top: 1px solid var(--aa-border);
  padding-top: 12px;
}

/* ─── Better profile button hover ──────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-profile__btn:hover {
  background: var(--aa-primary-30) !important;
  border-color: rgba(100, 82, 254, .2) !important;
  border-radius: 8px;
}

/* ─── Chip active animation ─────────────────────────────────────────── */
.aa-chip {
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}
.aa-chip:active { transform: scale(.96); }

/* ─── Panel head divider ─────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-panel__head,
.aa-app .aa-table-head,
.aa-app:not(.aa-app--embed) .au-table-head {
  border-bottom: 1px solid var(--aa-border);
}

/* ─── Table row count badge ─────────────────────────────────────────── */
.aa-app .aa-mod-table-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-soft);
}

/* ─── Improved subtabs indicator ────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-tab--active,
.aa-app:not(.aa-app--embed) .aa-subtab--active {
  font-weight: 800;
  background: var(--aa-primary-30);
  color: var(--aa-primary);
}

/* ─── Textarea in modals ─────────────────────────────────────────────── */
.aa-app textarea.op-input,
.aa-app textarea.aa-mod-reject-textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.55;
}

/* ─── Form field labels in dialogs ──────────────────────────────────── */
.aa-app .au-field > span,
.aa-app .aa-mod-reject-field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--aa-muted);
  letter-spacing: .01em;
}
.aa-app .au-field { display: flex; flex-direction: column; }

/* ─── au-dialog improvements ─────────────────────────────────────────── */
.aa-app .au-dialog {
  padding: 28px 24px 24px;
}
.aa-app .au-dialog__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--aa-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .au-dialog__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--aa-muted);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .au-dialog__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

/* ─── au-invite-note ─────────────────────────────────────────────────── */
.aa-app .au-invite-note {
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--aa-primary);
  background: var(--aa-primary-30);
  margin-bottom: 20px;
}
.aa-app .au-invite-note__title {
  font-size: 12px;
  font-weight: 800;
  color: var(--aa-primary);
  margin-bottom: 4px;
}
.aa-app .au-invite-note__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--aa-muted);
}

/* ─── Profile page improvements ─────────────────────────────────────── */
.aa-app.aa-app--profile .cc-prof-tab {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

/* ─── Topbar search input placeholder ───────────────────────────────── */
.aa-topbar #aaPageSearch::placeholder { color: var(--aa-soft); }

/* ─── Header search focus glow ──────────────────────────────────────── */
.aa-app .aa-search:focus-within { background: var(--aa-primary-30) !important; }
.aa-app .aa-search:focus-within input { color: var(--aa-text); }

/* ─── aa-mod-menu border-radius to 4px ──────────────────────────────── */
.aa-app .aa-mod-menu { border-radius: 8px; }

/* ─── Empty state illustration container ────────────────────────────── */
.aa-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 12px;
  text-align: center;
}
.aa-empty-state__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--aa-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aa-soft);
}
.aa-empty-state__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--aa-text);
  margin: 0;
}
.aa-empty-state__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--aa-muted);
  max-width: 280px;
  margin: 0;
}

/* ─── Skeleton loading ───────────────────────────────────────────────── */
@keyframes aaSkeleton {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.aa-skeleton {
  background: linear-gradient(90deg, #ecedf4 25%, #f5f6fa 50%, #ecedf4 75%);
  background-size: 200% 100%;
  animation: aaSkeleton 1.6s ease infinite;
  border-radius: 8px;
}

/* ─── Loading spinner ────────────────────────────────────────────────── */
@keyframes aaSpin { to { transform: rotate(360deg); } }
.aa-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--aa-border-strong);
  border-top-color: var(--aa-primary);
  border-radius: 50%;
  animation: aaSpin .7s linear infinite;
  display: inline-block;
}

/* ─── Tooltip ────────────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
  cursor: default;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: #131523;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease;
  z-index: 200;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ─── op-close button (modal X) override ───────────────────────────── */
.aa-app .op-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .16s ease, color .16s ease;
}
.aa-app .op-close:hover {
  background: var(--aa-border);
  color: var(--aa-text);
}

/* ─── as-refresh (support page refresh button) ──────────────────────── */
.aa-app .as-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--aa-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--aa-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  transition: background .18s ease, border-color .18s ease;
}
.aa-app .as-refresh:hover {
  background: var(--aa-primary-30);
  border-color: rgba(100, 82, 254, .24);
}

/* ─── Support table meta ─────────────────────────────────────────────── */
.aa-app .as-table-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-soft);
}

/* ─── Worker/customer profile improvements ──────────────────────────── */
.aa-app .cc-prof-tab {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ─── Improve op-confirm-text for modals ────────────────────────────── */
.aa-app .op-confirm-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--aa-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .aa-mod-confirm-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--aa-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ─── op-modal improved entrance animation ──────────────────────────── */
.aa-app:not(.aa-app--embed) .op-confirm-body,
.aa-app:not(.aa-app--embed) .op-job-detail-body,
.aa-app:not(.aa-app--embed) .aa-mod-detail-modal,
.aa-app:not(.aa-app--embed) .aa-mod-confirm-body,
.aa-app:not(.aa-app--embed) .aa-mod-reject-body,
.aa-app:not(.aa-app--embed) .au-dialog {
  animation: aaPopIn .24s cubic-bezier(.22, .61, .36, 1) both;
  border-radius: 4px !important;
}

/* ─── Anchor/link color in admin ────────────────────────────────────── */
.aa-app .aa-panel a:not([class]),
.aa-app .aa-content a:not([class]) {
  color: var(--aa-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Improve analytics page head (non-embed) ───────────────────────── */
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-head__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-title {
  font-size: 22px;
  font-weight: 800;
}
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-subtitle {
  font-size: 13px;
  color: var(--aa-soft);
  margin-top: 4px;
}

/* ─── Table "action" column alignment ──────────────────────────────── */
.aa-app .aa-table th:last-child,
.aa-app .aa-table td:last-child {
  text-align: right;
}
.aa-app .aa-mod-table td:last-child,
.aa-app .aa-mod-table th:last-child {
  text-align: center;
}

/* ─── Hover animation on table rows ────────────────────────────────── */
.aa-app .aa-table tbody tr {
  transition: background .14s ease;
}

/* ─── Better number formatting in card values ───────────────────────── */
.aa-app .aa-card__value {
  font-variant-numeric: tabular-nums;
}

/* ─── Responsive improvements for profile page ─────────────────────── */
@media (max-width: 640px) {
  .aa-app .aa-logout-modal { padding: 22px 18px 20px; }
  .aa-app .au-dialog { padding: 22px 18px 20px; }
}

/* ─── au-invite-success state ───────────────────────────────────────── */
.aa-app .au-invite-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 16px;
  gap: 8px;
}
.aa-app .au-invite-success__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-app .au-invite-success__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--aa-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .au-invite-success__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--aa-muted);
  max-width: 340px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ─── au-copy-box ────────────────────────────────────────────────────── */
.aa-app .au-copy-box {
  width: 100%;
  margin-top: 16px;
  text-align: left;
}
.aa-app .au-copy-box__label {
  font-size: 11px;
  font-weight: 800;
  color: var(--aa-muted);
  letter-spacing: .02em;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .au-copy-box__row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.aa-app .au-copy-box__input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--aa-border);
  color: var(--aa-muted);
  font-size: 12px;
  cursor: default;
}
.aa-app .au-copy-box__btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
}
.aa-app .au-copy-box__hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--aa-green);
  font-weight: 700;
}

/* ─── au-invite-role-card ─────────────────────────────────────────────── */
.aa-app .au-invite-role-card {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--aa-border);
  background: var(--aa-border);
}
.aa-app .au-invite-role-card__label {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--aa-soft);
  margin-bottom: 4px;
}
.aa-app .au-invite-role-card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--aa-text);
  margin-bottom: 4px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.aa-app .au-invite-role-card__text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--aa-muted);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ─── Access dialog summary ──────────────────────────────────────────── */
.aa-app .au-access-summary {
  margin-bottom: 16px;
}
.aa-app .au-access-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* =====================================================================
   FIGMA MODERNIZE — PHASE 3: COMPLETE VISUAL REDESIGN
   Based on Figma UI kit: typography, spacing, cards, tables, panels
   ===================================================================== */

/* ─── Topbar vertical separator ────────────────────────────────────── */
.aa-topbar__sep {
  display: none;
}
.aa-app:not(.aa-app--embed) .aa-topbar__sep {
  display: block;
  width: 1px;
  height: 24px;
  background: var(--aa-border);
  flex-shrink: 0;
}

/* ─── Topbar search — proper focus ring ────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-search {
  height: 40px;
  padding: 0 14px;
  gap: 8px;
  transition: background .18s ease;
}
.aa-app:not(.aa-app--embed) .aa-search:focus-within {
  background: var(--aa-primary-30) !important;
  border-radius: 8px;
}
.aa-app:not(.aa-app--embed) .aa-search:focus-within .aa-search__ico::before {
  color: var(--aa-primary);
}

/* ─── Bell — hide badge when count is 0 ────────────────────────────── */
.aa-bell__badge:empty,
.aa-bell__badge[data-count="0"] {
  display: none;
}

/* ─── Profile dropdown — add proper open state border ──────────────── */
.aa-app:not(.aa-app--embed) .aa-profile.is-open .aa-profile__btn {
  background: var(--aa-primary-30) !important;
  border-color: rgba(100, 82, 254, .2) !important;
}

/* ─── Sidebar brand card — Figma style ─────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-sidebar__brand {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--aa-border);
  background: linear-gradient(135deg, var(--aa-primary-30) 0%, #fff 60%);
  margin-bottom: 8px;
  gap: 12px;
}
.aa-app:not(.aa-app--embed) .aa-sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--aa-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}
.aa-app:not(.aa-app--embed) .aa-sidebar__eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-text);
  letter-spacing: 0;
  text-transform: none;
}
.aa-app:not(.aa-app--embed) .aa-sidebar__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--aa-soft);
}

/* ─── Sidebar nav — polished spacing ───────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-nav {
  min-height: 40px;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}
.aa-app:not(.aa-app--embed) .aa-nav:hover {
  background: #f0eeff;
  color: var(--aa-purple);
}
.aa-app:not(.aa-app--embed) .aa-nav--active {
  background: var(--aa-purple) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(100, 82, 254, .3);
}

/* ─── Page title section — add subtitle per page ───────────────────── */
.aa-page-titlebar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.aa-page-titlebar .aa-title { flex: 1 1 auto; }

/* ─── Filter button — Figma pill style ─────────────────────────────── */
.aa-app .aa-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--aa-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--aa-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}
.aa-app .aa-filter-toggle .aa-filter-toggle__icon {
  color: var(--aa-soft);
}
.aa-app .aa-filter-toggle:hover {
  border-color: var(--aa-primary);
  color: var(--aa-primary);
  background: var(--aa-primary-30);
}
.aa-app .aa-filter-toggle.is-active {
  border-color: var(--aa-primary);
  color: var(--aa-primary);
  background: var(--aa-primary-30);
}
.aa-app .aa-filter-toggle.is-active .aa-filter-toggle__icon {
  color: var(--aa-primary);
}

/* ─── Cards — DashStack clean white card ─────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-card {
  position: relative;
  border-radius: 16px;
  border: 1px solid #ECEEF5;
  background: #fff;
  padding: 22px 24px;
  min-height: 140px;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
/* DashStack: no colored top stripe — clean white cards */
.aa-app:not(.aa-app--embed) .aa-card::before {
  display: none !important;
}

/* DashStack: per-card icon background tint instead of stripe */
.aa-app:not(.aa-app--embed) .aa-card:nth-child(1) .aa-card__icon { background: rgba(100, 82, 254, .12); color: var(--aa-primary); }
.aa-app:not(.aa-app--embed) .aa-card:nth-child(2) .aa-card__icon { background: rgba(31, 210, 134, .14); color: #1FD286; }
.aa-app:not(.aa-app--embed) .aa-card:nth-child(3) .aa-card__icon { background: rgba(255, 159, 67, .14); color: #FF9F43; }
.aa-app:not(.aa-app--embed) .aa-card:nth-child(4) .aa-card__icon { background: rgba(240, 20, 47, .12); color: #F0142F; }

.aa-app:not(.aa-app--embed) .aa-jm-card:nth-child(1) .aa-card__icon { background: rgba(100, 82, 254, .12); color: var(--aa-primary); }
.aa-app:not(.aa-app--embed) .aa-jm-card:nth-child(2) .aa-card__icon { background: rgba(31, 210, 134, .14); color: #1FD286; }
.aa-app:not(.aa-app--embed) .aa-jm-card:nth-child(3) .aa-card__icon { background: rgba(124, 58, 237, .14); color: #7C3AED; }

.aa-app:not(.aa-app--embed) .au-cards .aa-card:nth-child(1) .aa-card__icon { background: rgba(100, 82, 254, .12); color: var(--aa-primary); }
.aa-app:not(.aa-app--embed) .au-cards .aa-card:nth-child(2) .aa-card__icon { background: rgba(6, 165, 97, .14); color: #06A561; }
.aa-app:not(.aa-app--embed) .au-cards .aa-card:nth-child(3) .aa-card__icon { background: rgba(249, 150, 0, .14); color: #F99600; }
.aa-app:not(.aa-app--embed) .au-cards .aa-card:nth-child(4) .aa-card__icon { background: rgba(240, 20, 47, .12); color: #F0142F; }

.aa-app:not(.aa-app--embed) .aa-mod-cards .aa-card:nth-child(1) .aa-card__icon { background: rgba(249, 150, 0, .14); color: #F99600; }
.aa-app:not(.aa-app--embed) .aa-mod-cards .aa-card:nth-child(2) .aa-card__icon { background: rgba(31, 210, 134, .14); color: #1FD286; }
.aa-app:not(.aa-app--embed) .aa-mod-cards .aa-card:nth-child(3) .aa-card__icon { background: rgba(240, 20, 47, .12); color: #F0142F; }

.aa-app:not(.aa-app--embed) .as-cards .aa-card:nth-child(1) .aa-card__icon { background: rgba(100, 82, 254, .12); color: var(--aa-primary); }
.aa-app:not(.aa-app--embed) .as-cards .aa-card:nth-child(2) .aa-card__icon { background: rgba(31, 210, 134, .14); color: #1FD286; }
.aa-app:not(.aa-app--embed) .as-cards .aa-card:nth-child(3) .aa-card__icon { background: rgba(249, 150, 0, .14); color: #F99600; }

/* DashStack card icon — round soft tinted circle */
.aa-app:not(.aa-app--embed) .aa-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(100, 82, 254, .12);
  color: var(--aa-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aa-app:not(.aa-app--embed) .aa-card__icon svg {
  width: 22px;
  height: 22px;
}
.aa-app:not(.aa-app--embed) .aa-card__value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-top: 8px;
  color: var(--aa-text);
}
.aa-app:not(.aa-app--embed) .aa-card__label {
  margin-top: 0;
  font-size: 14px;
  font-weight: 500;
  color: #8A94A6;
  line-height: 1.4;
}
.aa-app:not(.aa-app--embed) .aa-card:hover {
  border-color: #ECEEF5;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

/* ─── Panel — DashStack white rounded card ─────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-panel,
.aa-app .aa-table-panel {
  border-radius: 16px;
  border: 1px solid #ECEEF5;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  overflow: hidden;
}

.aa-app:not(.aa-app--embed) .aa-panel__head,
.aa-app .aa-table-head,
.aa-app:not(.aa-app--embed) .au-table-head {
  padding: 22px 24px 16px;
  border-bottom: 1px solid #F0F2F7;
  background: #fff;
}
.aa-app:not(.aa-app--embed) .aa-panel__headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Panel title — Figma heading 5 style */
.aa-app:not(.aa-app--embed) .aa-panel__title,
.aa-app .aa-table-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--aa-text);
  line-height: 1.3;
}
.aa-app:not(.aa-app--embed) .aa-panel__subtitle,
.aa-app:not(.aa-app--embed) .aa-mod-table-meta {
  margin-top: 3px;
  font-size: 13px;
  color: var(--aa-soft);
  font-weight: 500;
}

/* ─── Table — Figma table design ────────────────────────────────────── */
.aa-app .aa-table-wrap,
.aa-app:not(.aa-app--embed) .au-table-wrap,
.aa-app:not(.aa-app--embed) .aa-mod-table-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #d7dbec transparent;
}
.aa-app .aa-table {
  width: 100%;
  min-width: 640px;
}
.aa-app .aa-table th {
  height: 44px;
  padding: 0 20px;
  background: var(--aa-bg);
  border-bottom: 1px solid var(--aa-border);
  color: var(--aa-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  text-align: left;
}
.aa-app .aa-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--aa-border);
  color: var(--aa-text);
  font-size: 13px;
  line-height: 1.5;
  vertical-align: middle;
}
.aa-app .aa-table tbody tr:last-child td { border-bottom: 0; }
.aa-app .aa-table tbody tr:hover td {
  background: var(--aa-primary-30);
  cursor: pointer;
}

/* ─── Table lead cell (user name/avatar) ────────────────────────────── */
.aa-app .aa-table__lead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aa-app .aa-table__lead-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-app .aa-table__lead-copy strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-text);
  display: block;
}
.aa-app .aa-table__lead-copy span {
  font-size: 12px;
  color: var(--aa-soft);
}

/* ─── Table metric cells ─────────────────────────────────────────────── */
.aa-app .aa-table__metric strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--aa-text);
  display: block;
}
.aa-app .aa-table__metric span {
  font-size: 11px;
  font-weight: 700;
}

/* ─── Table controls (subtabs + search row) ─────────────────────────── */
.aa-app .aa-table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Tabs redesign — Figma pill tabs ───────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-tabs {
  width: auto;
  max-width: 100%;
  min-height: auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: var(--aa-bg);
}
.aa-app:not(.aa-app--embed) .aa-tab {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--aa-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.aa-app:not(.aa-app--embed) .aa-tab:hover { background: var(--aa-border); color: var(--aa-text); }
.aa-app:not(.aa-app--embed) .aa-tab--active {
  background: #fff;
  color: var(--aa-primary);
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.aa-app:not(.aa-app--embed) .aa-tabs__indicator { display: none; }

/* ─── Subtabs (inside panel) ─────────────────────────────────────────── */
.aa-app .aa-subtabs {
  height: 40px;
  min-height: 40px;
  padding: 3px;
  gap: 2px;
  border-radius: 8px;
  background: var(--aa-bg);
  border: 1px solid var(--aa-border);
}
.aa-app:not(.aa-app--embed) .aa-subtab {
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
}
.aa-app:not(.aa-app--embed) .aa-subtab--active {
  background: #fff;
  color: var(--aa-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  font-weight: 800;
}
.aa-app .aa-subtabs__indicator { display: none; }

/* ─── Content area spacing ──────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-content {
  gap: 20px;
  padding: 28px 28px 40px 24px;
}

/* ─── Page title — Figma heading sizes ──────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--aa-text);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0;
}

/* ─── Head section ───────────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-head {
  gap: 12px;
}

/* (filter popover overrides перенесены в основной блок выше — этот блок
   оставлен пустым, чтобы width/radius/shadow не перебивали компактный
   dropdown стиль). */

/* ─── jm-cards — keep 3-col grid ────────────────────────────────────── */
.aa-jm-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ─── au-search bar ─────────────────────────────────────────────────── */
.aa-app .au-search {
  height: 40px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.aa-app .au-search:focus-within {
  border-color: var(--aa-primary);
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .1);
}

/* (chips full-width внутри popover задаются в компактном dropdown стиле выше) */

/* ─── Date-picker field label ────────────────────────────────────────── */
.aa-app .aa-date-picker__label,
.aa-app .aa-select__label {
  color: var(--aa-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* ─── Table head actions row ─────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .au-table-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ─── Moderation status chips ────────────────────────────────────────── */
.aa-app .aa-mod-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.aa-app .aa-mod-status--pending  { background: rgba(249,150,0,.12);  color: #c97700; }
.aa-app .aa-mod-status--approved { background: rgba(6,165,97,.12);   color: #06a561; }
.aa-app .aa-mod-status--rejected { background: rgba(240,20,47,.1);   color: var(--aa-red); }
.aa-app .aa-mod-status--active   { background: var(--aa-primary-30); color: var(--aa-primary); }

/* ─── Support status chips ───────────────────────────────────────────── */
.aa-app .as-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
}
.aa-app .as-status--open     { background: var(--aa-primary-30);    color: var(--aa-primary); }
.aa-app .as-status--pending  { background: rgba(249,150,0,.12);     color: #c97700; }
.aa-app .as-status--resolved { background: rgba(6,165,97,.12);      color: #06a561; }
.aa-app .as-status--closed   { background: var(--aa-border);        color: var(--aa-muted); }

/* ─── Operator status labels (jobs table) ────────────────────────────── */
.aa-app .op-status,
.aa-app .op-job-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ─── Breadcrumb / page context ──────────────────────────────────────── */
.aa-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-soft);
  margin-bottom: 8px;
}
.aa-breadcrumb a { color: var(--aa-primary); }
.aa-breadcrumb__sep { color: var(--aa-border-strong); }

/* ─── Page subtitle (small text below title) ─────────────────────────── */
.aa-page-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-soft);
  margin-top: 3px;
  line-height: 1.4;
}

/* ─── Scrollable content area on small screens ───────────────────────── */
@media (max-width: 1024px) {
  .aa-app:not(.aa-app--embed) .aa-cards { grid-template-columns: repeat(2, 1fr); }
  .aa-app:not(.aa-app--embed) .aa-jm-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .aa-app:not(.aa-app--embed) .aa-cards,
  .aa-app:not(.aa-app--embed) .aa-jm-cards { grid-template-columns: 1fr; }
}

/* ─── Loading pulse animation for table skeleton ─────────────────────── */
@keyframes aaPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.aa-loading-row td { animation: aaPulse 1.5s ease infinite; }
.aa-loading-row:nth-child(2) td { animation-delay: .15s; }
.aa-loading-row:nth-child(3) td { animation-delay: .3s; }

/* ─── Better error state styling ─────────────────────────────────────── */
.au-field__error,
.op-edit-error-text {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--aa-red);
  margin-top: 4px;
  min-height: 16px;
}

/* ─── Input field within au-field (Figma labeled field) ─────────────── */
.aa-app .au-field > span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--aa-muted);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

/* ─── Panel head actions area ────────────────────────────────────────── */
.aa-panel__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Card row layout (Figma: label left + icon right) ──────────────── */
.aa-card__row,
.aa-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.aa-card__row .aa-card__label,
.aa-card__head .aa-card__label {
  margin-top: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
  flex: 1 1 auto;
  line-height: 1.4;
  min-width: 0;
}
.aa-card__row .aa-card__icon,
.aa-card__head .aa-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aa-primary);
  background: var(--aa-primary-30);
}
/* Color variants for icon */
.aa-card__icon--green,
.aa-card__icon--green  { color: #06a561; background: rgba(6,165,97,.12); }
.aa-card__icon--red    { color: var(--aa-red); background: rgba(240,20,47,.1); }
.aa-card__icon--yellow { color: #c97700; background: rgba(249,150,0,.12); }
.aa-card__icon--purple { color: #7c3aed; background: rgba(124,58,237,.1); }
.aa-card__icon--blue   { color: var(--aa-primary); background: var(--aa-primary-30); }

/* Card delta row */
.aa-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}
.aa-card__hint {
  font-size: 12px;
  color: var(--aa-soft);
  font-weight: 500;
}
.aa-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
}
.aa-card__delta.is-up    { background: rgba(6,165,97,.1); color: #06a561; }
.aa-card__delta.is-down  { background: rgba(240,20,47,.1); color: var(--aa-red); }
.aa-card__delta--empty   { display: none; }

/* Card eyebrow (support page) */
.aa-card__eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aa-soft);
  margin-bottom: 4px;
}
.aa-card__meta {
  display: flex;
  flex-direction: column;
}

/* =====================================================================
   FIGMA MODERNIZE — PHASE 4: FINAL POLISH & TYPOGRAPHY
   ===================================================================== */

/* ─── Bell button — clean style (Figma: no fill BG by default) ──────── */
.aa-app:not(.aa-app--embed) .aa-bell {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease;
}
.aa-app:not(.aa-app--embed) .aa-bell:hover {
  background: var(--aa-border);
  border-color: var(--aa-border);
  color: var(--aa-text);
  transform: none;
}
.aa-app:not(.aa-app--embed) .aa-bell__badge {
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  background: var(--aa-red);
}

/* ─── Profile btn — cleaner layout ──────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-profile__btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 8px 5px 6px;
}
.aa-app:not(.aa-app--embed) .aa-profile__btn:hover {
  background: var(--aa-bg);
  border-color: var(--aa-border);
}

/* ─── Topbar — right side spacing ───────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-topbar__actions {
  gap: 6px;
  align-items: center;
}

/* ─── Profile avatar — match Figma rounded corners ──────────────────── */
.aa-app:not(.aa-app--embed) .aa-profile__avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ─── Profile pill badge ─────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-profile__pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--aa-primary-30);
  color: var(--aa-primary);
}

/* ─── Profile dropdown menu — Figma dropdown ────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-profile__menu {
  min-width: 220px;
  border-radius: 8px;
  border: 1px solid var(--aa-border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, .12);
  padding: 6px;
}
.aa-app:not(.aa-app--embed) .aa-profile__item {
  border-radius: 8px;
  height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-text);
  text-decoration: none;
  transition: background .14s ease, color .14s ease;
}
.aa-app:not(.aa-app--embed) .aa-profile__item:hover {
  background: var(--aa-bg);
  color: var(--aa-primary);
}
.aa-app:not(.aa-app--embed) .aa-profile__item-ico {
  color: var(--aa-soft);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Pagination — Figma design ─────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--aa-border);
  gap: 12px;
}
.aa-app:not(.aa-app--embed) .aa-pagination__info {
  font-size: 13px;
  color: var(--aa-soft);
  font-weight: 500;
}
.aa-app:not(.aa-app--embed) .aa-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.aa-app:not(.aa-app--embed) .aa-pagination__page {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .14s ease;
}
.aa-app:not(.aa-app--embed) .aa-pagination__page:hover {
  background: var(--aa-border);
  color: var(--aa-text);
}
.aa-app:not(.aa-app--embed) .aa-pagination__page--active {
  background: var(--aa-primary) !important;
  color: #fff !important;
  border-color: var(--aa-primary) !important;
}
.aa-app:not(.aa-app--embed) .aa-pagination__page--prev,
.aa-app:not(.aa-app--embed) .aa-pagination__page--next {
  border: 1px solid var(--aa-border);
  background: #fff;
}

/* ─── Jobs panel frame wrap ──────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-jm-frame-wrap {
  padding: 0;
  overflow: hidden;
}

/* ─── Profile page card — Figma account card ────────────────────────── */
.aa-app:not(.aa-app--embed) .cc-prof-card {
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}
.aa-app:not(.aa-app--embed) .cc-prof-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 900;
}

/* ─── Profile tabs redesign ──────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .cc-prof-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 2px solid var(--aa-border);
  padding: 0 24px;
  background: #fff;
}
.aa-app:not(.aa-app--embed) .cc-prof-tab {
  height: 48px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-soft);
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color .18s ease;
}
.aa-app:not(.aa-app--embed) .cc-prof-tab.active {
  color: var(--aa-primary);
  font-weight: 800;
}
.aa-app:not(.aa-app--embed) .cc-prof-tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--aa-primary);
  border-radius: 2px 2px 0 0;
}
.aa-app:not(.aa-app--embed) .cc-prof-ind {
  display: none !important;
}

/* ─── Head badge (Workspace account) ────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-head__badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  white-space: nowrap;
}

/* ─── Support health panel ───────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .as-health {
  padding: 20px 24px;
}

/* ─── Support refresh button ─────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .as-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--aa-border);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: var(--aa-muted);
  cursor: pointer;
  transition: all .18s ease;
}
.aa-app:not(.aa-app--embed) .as-refresh:hover {
  border-color: var(--aa-primary);
  color: var(--aa-primary);
  background: var(--aa-primary-30);
}

/* ─── Topbar separator improved width ───────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-topbar__sep {
  opacity: .7;
  margin: 0 4px;
}

/* ─── Content section spacing ────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-head {
  padding-bottom: 0;
}

/* ─── Panel padding for table-only sections ─────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-panel__head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--aa-border);
}

/* ─── Table head (non-panel) ─────────────────────────────────────────── */
.aa-app .aa-table-head {
  padding: 20px 24px 16px;
}

/* ─── Placeholder page ────────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-placeholder {
  padding: 60px 24px;
  text-align: center;
}

/* ─── Notification count in bell (small improvements) ──────────────── */
.aa-app:not(.aa-app--embed) .aa-bell__badge {
  font-variant-numeric: tabular-nums;
}

/* ─── Cards grid gap ─────────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-cards {
  gap: 16px;
}
.aa-app:not(.aa-app--embed) .aa-jm-cards {
  gap: 16px;
}

/* ─── Card min-height to prevent collapse ────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-card {
  min-height: 120px;
}
.aa-app:not(.aa-app--embed) .aa-card .aa-card__value {
  margin-top: 16px;
}

/* ─── Table th text improvement ──────────────────────────────────────── */
.aa-app .aa-table th:first-child { padding-left: 24px; }
.aa-app .aa-table td:first-child { padding-left: 24px; }
.aa-app .aa-table th:last-child  { padding-right: 24px; }
.aa-app .aa-table td:last-child  { padding-right: 24px; }

/* ─── Logout nav item ────────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--aa-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.aa-app:not(.aa-app--embed) .aa-logout:hover {
  background: rgba(240, 20, 47, .08);
  color: var(--aa-red);
}
.aa-app:not(.aa-app--embed) .aa-logout:hover .aa-logout__ico {
  color: var(--aa-red);
}

/* ─── Topbar left gap ────────────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-topbar__left {
  flex: 1 1 auto;
  gap: 16px;
}

/* ─── Placeholder page styling ───────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-placeholder__body {
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.aa-placeholder__badge {
  display: inline-flex;
  height: 22px;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  align-items: center;
}
.aa-placeholder__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--aa-text);
  margin: 4px 0 0;
}
.aa-placeholder__text {
  font-size: 14px;
  color: var(--aa-muted);
  max-width: 440px;
  line-height: 1.6;
}
.aa-placeholder__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--aa-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
  transition: background .18s ease, transform .18s ease;
}
.aa-placeholder__link:hover {
  background: #1850df;
  transform: translateY(-1px);
}

/* ─── Card label overflow fix ────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-card__label {
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.aa-app:not(.aa-app--embed) .aa-card__row,
.aa-app:not(.aa-app--embed) .aa-card__head {
  align-items: flex-start;
  gap: 8px;
}
.aa-app:not(.aa-app--embed) .aa-jm-cards {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}
.aa-app:not(.aa-app--embed) .aa-cards {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

/* ─── Jobs metric cards: override absolute icon to flex row ─────────── */
.aa-app:not(.aa-app--embed) .aa-jm-card .aa-card__row .aa-card__icon,
.aa-app:not(.aa-app--embed) .aa-jm-card .aa-card__head .aa-card__icon {
  position: static !important;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-app:not(.aa-app--embed) .aa-jm-card .aa-card__value {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

/* ─── Users cards: same fix ──────────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .au-cards .aa-card .aa-card__row .aa-card__icon,
.aa-app:not(.aa-app--embed) .au-cards .aa-card .aa-card__head .aa-card__icon {
  position: static !important;
}

/* ─── All pages cards icon fix ───────────────────────────────────────── */
.aa-app:not(.aa-app--embed) .aa-card .aa-card__row .aa-card__icon,
.aa-app:not(.aa-app--embed) .aa-card .aa-card__head .aa-card__icon {
  position: static !important;
  flex-shrink: 0;
}

/* ─── Compact card layout to prevent text wrapping ───────────────────── */
.aa-app:not(.aa-app--embed) .aa-jm-card,
.aa-app:not(.aa-app--embed) .aa-card {
  padding: 16px 18px 18px;
}
.aa-app:not(.aa-app--embed) .aa-card .aa-card__row .aa-card__icon,
.aa-app:not(.aa-app--embed) .aa-card .aa-card__head .aa-card__icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px;
  flex-shrink: 0;
}
.aa-app:not(.aa-app--embed) .aa-card__row,
.aa-app:not(.aa-app--embed) .aa-card__head {
  gap: 6px;
}
.aa-app:not(.aa-app--embed) .aa-card__row .aa-card__label,
.aa-app:not(.aa-app--embed) .aa-card__head .aa-card__label {
  font-size: 12px;
  font-weight: 700;
}

/* ─── Card layout: label full-width, icon absolute top-right ─────────── */
.aa-app:not(.aa-app--embed) .aa-card {
  position: relative;
  padding: 18px 18px 16px;
}
.aa-app:not(.aa-app--embed) .aa-card > .aa-card__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
  line-height: 1.4;
  padding-right: 48px;
  margin-top: 0;
}
.aa-app:not(.aa-app--embed) .aa-card > .aa-card__icon {
  position: absolute !important;
  top: 16px;
  right: 14px;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aa-app:not(.aa-app--embed) .aa-card > .aa-card__value {
  margin-top: 10px;
  display: block;
}

/* Undo the flex row fix since we reverted to absolute icon */
.aa-app:not(.aa-app--embed) .aa-card .aa-card__row .aa-card__icon,
.aa-app:not(.aa-app--embed) .aa-card .aa-card__head .aa-card__icon {
  position: static !important;
}

/* ─── Card label: block with proper right padding for icon ───────────── */
.aa-app:not(.aa-app--embed) .aa-card > .aa-card__label {
  display: block;
  padding-right: 50px;
  box-sizing: border-box;
  width: 100%;
}

/* Ensure card icon is absolutely positioned top-right */
.aa-app:not(.aa-app--embed) .aa-card > .aa-card__icon,
.aa-app:not(.aa-app--embed) .aa-jm-card > .aa-card__icon,
.aa-app:not(.aa-app--embed) .aa-jm-card .aa-card__icon {
  position: absolute !important;
  top: 16px;
  right: 16px;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
}

/* ─── Card label: allow wrapping (DashStack style) ─────────────────── */
.aa-app:not(.aa-app--embed) .aa-card > .aa-card__label {
  display: block;
  white-space: normal;
  overflow: visible;
  padding-right: 50px;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
  line-height: 1.4;
}

/* =====================================================================
   DASHSTACK v20 — analytics card icon: circle, percent on the right
   ===================================================================== */
.aa-app[data-page="analytics"] .aa-card .aa-card__head .aa-card__icon,
.aa-app[data-page="analytics"] .aa-card__head .aa-card__visual .aa-card__icon,
.aa-app[data-page="analytics"] .aa-card .aa-card__visual .aa-card__icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.aa-app[data-page="analytics"] .aa-card .aa-card__head .aa-card__icon svg,
.aa-app[data-page="analytics"] .aa-card__head .aa-card__visual .aa-card__icon svg,
.aa-app[data-page="analytics"] .aa-card .aa-card__visual .aa-card__icon svg {
  width: 20px !important;
  height: 20px !important;
  display: block;
}

.aa-app[data-page="analytics"] .aa-card .aa-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.aa-app[data-page="analytics"] .aa-card .aa-card__foot .aa-card__hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--aa-muted);
}

.aa-app[data-page="analytics"] .aa-card .aa-card__foot .aa-card__delta {
  margin-left: auto;
}

/* =====================================================================
   MODERNIZE — TABLE  (clean rows, no uppercase, circle avatars)
   ===================================================================== */
.aa-app[data-page="analytics"] .aa-table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.aa-app[data-page="analytics"] .aa-table th,
.aa-app[data-page="analytics"] .aa-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #EEF0F4;
  background: #ffffff;
  vertical-align: middle;
}

.aa-app[data-page="analytics"] .aa-table th {
  background: #ffffff !important;
  color: #8A94A6 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-bottom: 1px solid #EEF0F4 !important;
  position: sticky;
  top: 0;
  z-index: 2;
}

.aa-app[data-page="analytics"] .aa-table tr td:first-child,
.aa-app[data-page="analytics"] .aa-table tr th:first-child {
  position: static;
  z-index: auto;
}

.aa-app[data-page="analytics"] .aa-table td {
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 500;
}

.aa-app[data-page="analytics"] .aa-table tbody tr:last-child td {
  border-bottom: 0;
}

.aa-app[data-page="analytics"] .aa-table tbody tr:hover td {
  background: #FAFBFD;
}

.aa-app[data-page="analytics"] .aa-table__lead {
  min-height: 0;
  gap: 12px;
}

.aa-app[data-page="analytics"] .aa-table__lead-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--aa-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.aa-app[data-page="analytics"] .aa-table__lead-copy strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--aa-text);
  line-height: 1.2;
}

.aa-app[data-page="analytics"] .aa-table__lead-copy span {
  font-size: 12px;
  font-weight: 400;
  color: var(--aa-muted);
}

.aa-app[data-page="analytics"] .aa-table-panel {
  padding: 4px 0 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #EEF0F4;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  overflow: hidden;
}

.aa-app[data-page="analytics"] .aa-table-head {
  padding: 18px 20px 14px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}

.aa-app[data-page="analytics"] .aa-table-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--aa-text);
  letter-spacing: 0;
}

.aa-app[data-page="analytics"] .aa-table-panel[data-tab="users"] .aa-table-controls {
  width: auto;
  justify-content: flex-end;
}

/* =====================================================================
   MODERNIZE — TYPOGRAPHY  (Plus Jakarta Sans on every admin element)
   ===================================================================== */
.aa-app,
.aa-app *,
.aa-app *::before,
.aa-app *::after {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.aa-app input,
.aa-app select,
.aa-app textarea,
.aa-app button {
  font-family: inherit;
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--aa-text);
  letter-spacing: -.01em;
}

.aa-app[data-page="analytics"] .aa-page-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
}

.aa-app[data-page="analytics"] .aa-panel__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--aa-text);
  letter-spacing: 0;
}

.aa-app[data-page="analytics"] .aa-panel__subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--aa-muted);
}

/* =====================================================================
   MODERNIZE — BOTTOM GRID (wide chart + side bar-chart card)
   ===================================================================== */
.aa-app[data-page="analytics"] .aa-grid--bottom {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .aa-app[data-page="analytics"] .aa-grid--bottom {
    grid-template-columns: 1fr;
  }
}

.aa-app[data-page="analytics"] .aa-bars-panel {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #EEF0F4;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  overflow: hidden;
  min-height: 0;
}

.aa-app[data-page="analytics"] .aa-bars-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 24px 20px;
  flex: 1;
  min-height: 0;
}

.aa-bars-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aa-bars-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aa-bars-stat__value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--aa-text);
  letter-spacing: -.01em;
}

.aa-bars-stat__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--aa-muted);
}

.aa-bars-divider {
  height: 1px;
  background: #EDEFF3;
  margin: 0 -4px;
}

.aa-bars-chart {
  flex: 1;
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.aa-bars-chart svg {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
  overflow: visible;
}

.aa-bars-rect {
  transition: opacity .15s ease;
}

.aa-bars-rect:hover {
  opacity: .85;
}

.aa-bars-axis text {
  fill: #9aa3b8;
  font-size: 11px;
  font-weight: 500;
}

.aa-bars-tooltip text {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* =====================================================================
   MODERNIZE — SIDEBAR  (full-width blue active pill, nested analytics)
   ===================================================================== */
.aa-app:not(.aa-app--embed) .aa-sidebar.aa-sidebar--modernize {
  background: #ffffff;
  padding: 18px 16px 16px;
  border-right: 1px solid #EDEFF3;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-navs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: 0;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #5A6072;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
  border: 0;
  list-style: none;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__ico::before {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__label {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__badge {
  margin-left: auto;
  min-width: 24px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #131523;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav:hover {
  background: #F4F5F9;
  color: var(--aa-primary);
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav {
  box-shadow: none !important;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav--active {
  background: var(--aa-primary) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav--active .aa-nav__ico,
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav--active .aa-nav__chevron {
  color: #ffffff;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav--active .aa-nav__badge {
  background: rgba(255, 255, 255, .22);
  color: #ffffff;
}

/* Section heading (Другое / Settings) */
.aa-nav-section {
  padding: 14px 14px 6px;
  color: #98A0AE;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Expandable group (Аналитика) */
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav-group {
  display: block;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #98A0AE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, color .15s ease;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav-group--open .aa-nav__chevron {
  transform: rotate(180deg);
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 8px 14px;
  margin: 4px 0 4px 24px;
  border-left: 1px solid #ECEEF3;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav-group--open .aa-subnav {
  display: flex;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  color: #6C7281;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item .aa-subnav__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #C8CCD3;
  flex: 0 0 5px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item:hover {
  background: #F4F5F9;
  color: var(--aa-primary);
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item:hover .aa-subnav__dot {
  background: var(--aa-primary);
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item--active {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  font-weight: 700;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item--active .aa-subnav__dot {
  background: var(--aa-primary);
}

/* Smooth transitions for subnav highlight + chevron */
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item,
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__dot {
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

/* Main content fade-in when switching tabs (SPA-style) */
@keyframes aaTabFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-main--tab-fade .aa-content > .aa-cards,
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-main--tab-fade .aa-content > .aa-grid,
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-main--tab-fade .aa-content > .aa-table-panel,
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-main--tab-fade .aa-content > .aa-grid--bottom {
  animation: aaTabFade .28s cubic-bezier(.22, 1, .36, 1);
}

/* =====================================================================
   MODERNIZE — COMPACT SCALE  (1-to-1 with Figma 0-1682 dashboard)
   ===================================================================== */

/* Topbar — slimmer 56px height, image brand replaces SVG mark+wordmark */
.aa-app:not(.aa-app--embed) .aa-topbar.aa-topbar--modernize {
  height: 56px;
  min-height: 56px;
  padding: 0 24px 0 20px;
  gap: 18px;
  grid-template-columns: 220px 1fr auto;
}

/* Brand: PNG image instead of inline SVG + text composition */
.aa-brand.cc-brand{
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}
.aa-brand.cc-brand .cc-brand-img{
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}
.aa-brand.cc-brand .aa-brand__mark,
.aa-brand.cc-brand .aa-brand__name,
.aa-brand.cc-brand .aa-brand__suffix{ display: none !important; }

.aa-search--modernize {
  height: 36px;
}

.aa-search--modernize input {
  font-size: 13px;
}

/* Topbar action buttons — unified 36px square (bell etc) */
.aa-topbar--modernize .aa-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--aa-border, #E6E9F4);
}
.aa-topbar--modernize .aa-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Profile button — 36px height to match other actions */
.aa-topbar--modernize .aa-profile__btn{
  height: 36px;
  padding: 0 8px 0 4px;
  border-radius: 10px;
}
.aa-profile--modernize .aa-profile__avatar {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.aa-profile--modernize .aa-profile__name {
  font-size: 12.5px;
}

/* Sidebar — reduce row height + gaps */
.aa-app:not(.aa-app--embed) .aa-sidebar.aa-sidebar--modernize {
  padding: 14px 12px 14px;
  gap: 10px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav {
  height: 40px;
  padding: 0 12px;
  gap: 10px;
  font-size: 13px;
  border-radius: 7px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav__ico {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav {
  margin: 2px 0 2px 22px;
  padding: 4px 0 4px 12px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-subnav__item {
  height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-logout {
  height: 38px;
  font-size: 13px;
  padding: 0 12px;
}

.aa-nav-section {
  padding: 10px 12px 4px;
  font-size: 10.5px;
}

/* Page title row — smaller */
.aa-app[data-page="analytics"]:not(.aa-app--embed) .aa-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.aa-app[data-page="analytics"] .aa-page-subtitle {
  font-size: 12.5px;
}

/* Content area — tighter gaps */
.aa-app:not(.aa-app--embed) .aa-content {
  padding: 20px 24px 32px;
  gap: 16px;
}

.aa-app[data-page="analytics"] .aa-grid {
  gap: 16px;
}

.aa-app[data-page="analytics"] .aa-grid--bottom {
  gap: 16px;
}

/* Metric cards — Modernize compact size */
.aa-app[data-page="analytics"] .aa-cards--modernize .aa-mcard {
  padding: 16px 18px;
  gap: 12px;
}

.aa-mcard__value {
  font-size: 20px;
}

.aa-mcard__label {
  font-size: 12px;
}

.aa-mcard__delta {
  font-size: 11.5px;
}

.aa-mcard__icon {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
}

.aa-mcard__icon svg {
  width: 18px;
  height: 18px;
}

/* Panel head — smaller title + tighter padding */
.aa-app[data-page="analytics"] .aa-panel__head {
  padding: 16px 20px 8px;
}

.aa-app[data-page="analytics"] .aa-panel__title {
  font-size: 14px;
}

.aa-app[data-page="analytics"] .aa-panel__subtitle {
  font-size: 11.5px;
}

/* Chart — smaller KPI on top */
.aa-app[data-page="analytics"] .aa-chart {
  padding: 8px 20px 16px;
  gap: 12px;
}

.aa-chart__kpis {
  gap: 28px;
}

.aa-chart__kpi-value {
  font-size: 19px;
}

.aa-chart__kpi-label {
  font-size: 11.5px;
}

.aa-app[data-page="analytics"] .aa-legend-item {
  font-size: 11.5px;
}

.aa-app[data-page="analytics"] .aa-chart__axis text {
  font-size: 10.5px;
}

/* Donut card — smaller */
.aa-app[data-page="analytics"] .aa-side-grid {
  padding: 4px 20px 16px;
  gap: 14px;
}

.aa-app[data-page="analytics"] .aa-donut {
  width: 130px;
  height: 130px;
  flex: 0 0 130px;
}

.aa-app[data-page="analytics"] .aa-donut::after {
  inset: 16px;
}

.aa-app[data-page="analytics"] .aa-donut::before {
  font-size: 22px;
}

.aa-app[data-page="analytics"] .aa-donut-item {
  font-size: 12px;
}

.aa-app[data-page="analytics"] .aa-donut-item__label {
  font-size: 12px;
}

.aa-app[data-page="analytics"] .aa-donut-item__value {
  font-size: 13px;
}

/* Bars side card — compact */
.aa-app[data-page="analytics"] .aa-bars-card {
  padding: 2px 20px 18px;
  gap: 14px;
}

.aa-bars-stat__value {
  font-size: 19px;
}

.aa-bars-stat__label {
  font-size: 11.5px;
}

/* Table — compact rows */
.aa-app[data-page="analytics"] .aa-table-head {
  padding: 14px 18px 12px;
}

.aa-app[data-page="analytics"] .aa-table-section-title {
  font-size: 14px;
}

.aa-app[data-page="analytics"] .aa-table th,
.aa-app[data-page="analytics"] .aa-table td {
  padding: 12px 16px;
}

.aa-app[data-page="analytics"] .aa-table th {
  font-size: 11px !important;
}

.aa-app[data-page="analytics"] .aa-table td {
  font-size: 12.5px;
}

.aa-app[data-page="analytics"] .aa-table__lead-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  font-size: 11px;
}

.aa-app[data-page="analytics"] .aa-table__lead-copy strong {
  font-size: 13px;
}

.aa-app[data-page="analytics"] .aa-table__lead-copy span {
  font-size: 11.5px;
}

/* Tabs (hidden anyway, but if shown in embed) */
.aa-app[data-page="analytics"] .aa-tab {
  font-size: 13px;
  padding: 6px 0 10px;
}

/* Modernize colour tokens — pull from 00 Colors.svg */
.aa-app {
  --aa-modernize-blue: #1E5EFF;
  --aa-modernize-blue-soft: #ECF2FF;
  --aa-modernize-purple: #6E0BD4;
  --aa-modernize-purple-soft: #ECE5FF;
}

/* =====================================================================
   MODERNIZE — DROPDOWN MENU (portal version, escapes overflow:hidden)
   ===================================================================== */
.aa-select__menu.aa-select__menu--portal {
  display: none;
  background: #ffffff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
  padding: 6px;
  z-index: 1000;
  max-height: 260px;
  overflow: auto;
  scrollbar-width: none;
  min-width: 180px;
}

.aa-select__menu.aa-select__menu--portal::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.aa-select__menu.aa-select__menu--portal.is-open {
  display: block;
  animation: aaSelectFade .15s cubic-bezier(.22, 1, .36, 1);
}

@keyframes aaSelectFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aa-select__menu.aa-select__menu--portal .aa-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  white-space: normal;
  line-height: 1.35;
  word-break: break-word;
}

.aa-select__menu.aa-select__menu--portal .aa-select__option > span:first-child {
  flex: 1;
  min-width: 0;
}

.aa-select__menu.aa-select__menu--portal .aa-select__option:hover {
  background: #F4F5F9;
}

.aa-select__menu.aa-select__menu--portal .aa-select__option.is-selected {
  background: var(--aa-primary-30);
  color: var(--aa-primary);
  font-weight: 700;
}

.aa-select__menu.aa-select__menu--portal .aa-select__check {
  margin-left: auto;
  color: var(--aa-primary);
  font-size: 13px;
  opacity: 0;
}

.aa-select__menu.aa-select__menu--portal .aa-select__option.is-selected .aa-select__check {
  opacity: 1;
}

/* =====================================================================
   MODERNIZE — FILTERS  (compact dropdown — стиль задан выше в одной точке)
   ===================================================================== */
/* Внутри popover preset-row всегда вертикальный список — поэтому здесь
   задаём grid только для preset-row ВНЕ popover (т.е. как inline-tabs). */
.aa-app[data-page="analytics"] .aa-filter-popover .aa-preset-row,
.aa-app[data-page="analytics"] .aa-filter-popover .aa-chip {
  /* стиль из основного блока, переопределения не нужны */
}

.aa-app[data-page="analytics"] .aa-chip {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #E4E7EF;
  background: #fff;
  color: var(--aa-text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.aa-app[data-page="analytics"] .aa-chip:hover {
  border-color: var(--aa-primary);
  color: var(--aa-primary);
}

.aa-app[data-page="analytics"] .aa-chip--active {
  background: var(--aa-primary);
  border-color: var(--aa-primary);
  color: #fff;
}

.aa-app[data-page="analytics"] .aa-filter-group--controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: stretch;
}

.aa-app[data-page="analytics"] .aa-filter-group--meta {
  display: contents;
}

.aa-app[data-page="analytics"] .aa-filters .aa-select,
.aa-app[data-page="analytics"] .aa-filters .aa-date-picker {
  width: 100%;
  min-width: 0;
}

.aa-app[data-page="analytics"] .aa-filters .aa-select__trigger,
.aa-app[data-page="analytics"] .aa-date-picker__trigger {
  width: 100%;
  height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #E4E7EF !important;
  border-radius: 8px !important;
  background: #fff !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: none !important;
}

.aa-app[data-page="analytics"] .aa-filters .aa-select__label,
.aa-app[data-page="analytics"] .aa-filters .aa-date-picker__label {
  display: none;
}

.aa-app[data-page="analytics"] .aa-filters .aa-select__value,
.aa-app[data-page="analytics"] .aa-date-picker__value {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--aa-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .aa-app[data-page="analytics"] .aa-filter-group--controls {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   MODERNIZE — INTERACTIVE LINE CHART TOOLTIP
   ===================================================================== */
.aa-chart__hover-zones rect {
  cursor: crosshair;
}

.aa-chart__hover-tip {
  pointer-events: none;
  transition: opacity .08s ease;
}

.aa-chart__hover-tip text.aa-chart__tip-head {
  font-size: 12px;
  font-weight: 700;
  fill: #ffffff;
}

.aa-chart__hover-tip text.aa-chart__tip-sub {
  font-size: 12px;
  font-weight: 400;
  fill: #ffffff;
}

.aa-chart__hover-line {
  display: none;
}

/* When parent group is open (Analytics active), parent itself is purple text on transparent — sub-item gets the highlight */
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav-group--open > .aa-nav.aa-nav--active {
  background: transparent !important;
  color: var(--aa-primary) !important;
  box-shadow: none !important;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav-group--open > .aa-nav.aa-nav--active .aa-nav__ico,
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-nav-group--open > .aa-nav.aa-nav--active .aa-nav__chevron {
  color: var(--aa-primary);
}

/* Logout block at bottom */
.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-sidebar__bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #EDEFF3;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #5A6072;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-logout:hover {
  background: rgba(240, 20, 47, .08);
  color: #F0142F;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-logout__ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-logout__ico::before {
  display: none;
}

.aa-app:not(.aa-app--embed) .aa-sidebar--modernize .aa-logout__ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* =====================================================================
   MODERNIZE — TOPBAR / SEARCH / ICON BUTTONS / PROFILE  (1-to-1 layout)
   ===================================================================== */
.aa-app:not(.aa-app--embed) .aa-topbar.aa-topbar--modernize {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 18px;
  height: 56px;
  min-height: 56px;
  padding: 0 24px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #EDEFF3;
  box-shadow: none;
}

.aa-brand--modernize {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--aa-text);
}

.aa-brand--modernize .aa-brand__mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aa-brand--modernize .aa-brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.aa-brand--modernize .aa-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--aa-text);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.aa-brand--modernize .aa-brand__suffix {
  color: #18CA8E;
}

.aa-search--modernize {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 0 4px;
  border-radius: 0;
  box-shadow: none;
}

.aa-search--modernize .aa-search__ico {
  width: 20px;
  height: 20px;
  color: #9aa3b2;
  background: transparent;
}

.aa-search--modernize .aa-search__ico svg {
  display: block;
}

.aa-search--modernize input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--aa-text);
  padding: 0;
}

.aa-search--modernize input::placeholder {
  color: #B4B9C5;
  font-weight: 500;
}

.aa-topbar--modernize .aa-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.aa-icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 0;
  color: #5A6072;
  cursor: pointer;
  position: relative;
  transition: background .15s ease, color .15s ease;
}

.aa-icon-btn:hover {
  background: #F4F5F9;
  color: var(--aa-primary);
}

.aa-icon-btn svg {
  display: block;
}

.aa-topbar--modernize .aa-bell .aa-bell__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--aa-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  line-height: 1;
}

.aa-profile--modernize .aa-profile__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  transition: background .15s ease;
}

.aa-profile--modernize .aa-profile__btn:hover {
  background: #F4F5F9;
}

.aa-profile--modernize .aa-profile__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aa-primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 13px;
}

.aa-profile--modernize .aa-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aa-profile--modernize .aa-profile__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
}

.aa-profile--modernize .aa-profile__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--aa-text);
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 160px;
}

.aa-profile--modernize .aa-profile__email,
.aa-profile--modernize .aa-profile__pill {
  display: none !important;
}

.aa-profile--modernize .aa-profile__chevron {
  width: 14px;
  height: 14px;
  color: #9aa3b2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hide old separators that came with the previous topbar markup */
.aa-topbar--modernize .aa-topbar__sep { display: none; }

/* =====================================================================
   MODERNIZE — METRIC PANEL  (one block, 4 columns, vertical dividers)
   ===================================================================== */
.aa-app[data-page="analytics"] .aa-cards.aa-cards--modernize,
.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 !important;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  padding: 0;
  overflow: hidden;
  border: 1px solid #EEF0F4;
}

/* Jobs and moderation have 3 metrics → 3 columns */
.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aa-app[data-page="analytics"] .aa-cards--modernize .aa-mcard,
.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.aa-app[data-page="analytics"] .aa-cards--modernize .aa-mcard + .aa-mcard::before,
.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard + .aa-mcard::before,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard + .aa-mcard::before,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard + .aa-mcard::before,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard + .aa-mcard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: #ECEEF3;
}

.aa-mcard__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.aa-mcard__value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--aa-text);
  letter-spacing: -.01em;
}

.aa-mcard__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted);
  line-height: 1.3;
}

.aa-mcard__delta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.aa-mcard__delta.is-up {
  color: #1FD286;
}

.aa-mcard__delta.is-down {
  color: #FA5252;
}

.aa-mcard__delta--empty {
  display: none;
}

.aa-mcard__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aa-mcard__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

@media (max-width: 1100px) {
  .aa-app[data-page="analytics"] .aa-cards.aa-cards--modernize,
  .aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
  .aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
  .aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize,
  .aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards.aa-cards--modernize {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aa-app[data-page="analytics"] .aa-cards--modernize .aa-mcard:nth-child(3)::before,
  .aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(3)::before,
  .aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(3)::before,
  .aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(3)::before {
    display: none;
  }
  .aa-app[data-page="analytics"] .aa-cards--modernize .aa-mcard:nth-child(3),
  .aa-app[data-page="analytics"] .aa-cards--modernize .aa-mcard:nth-child(4),
  .aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(3),
  .aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(4),
  .aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(3),
  .aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(4),
  .aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(3),
  .aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards--modernize .aa-mcard:nth-child(4) {
    border-top: 1px solid #ECEEF3;
  }
}

/* =====================================================================
   MODERNIZE — CHART TOPLINE (KPI strip + legend) + dotted grid + tooltip
   ===================================================================== */
.aa-app[data-page="analytics"] .aa-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px 24px 22px;
}

.aa-chart__topline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.aa-chart__kpis {
  display: flex;
  align-items: flex-start;
  gap: 38px;
}

.aa-chart__legend--bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  margin-top: 6px;
  padding: 10px 6px 0;
  border-top: 0;
}

.aa-chart__kpi-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.aa-chart__kpi-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--aa-text);
  letter-spacing: -.01em;
}

.aa-chart__kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--aa-muted);
}

.aa-app[data-page="analytics"] .aa-chart__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 22px;
  margin: 6px 0 0;
  padding: 10px 6px 0;
  background: transparent;
  border: 0;
}

.aa-app[data-page="analytics"] .aa-chart__legend--bottom {
  margin-top: 10px;
}

.aa-app[data-page="analytics"] .aa-legend-item {
  font-size: 12px;
  font-weight: 600;
  color: #5A6072;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.aa-app[data-page="analytics"] .aa-legend-item__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.aa-chart__plot {
  position: relative;
  width: 100%;
}

.aa-chart__plot svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* dotted horizontal grid + thinner axis labels for analytics chart */
.aa-app[data-page="analytics"] .aa-chart__grid line {
  stroke: #E4E7EF;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.aa-app[data-page="analytics"] .aa-chart__axis text {
  fill: #9aa3b8;
  font-size: 11px;
  font-weight: 500;
}

/* dark Modernize-style callout */
.aa-app[data-page="analytics"] .aa-chart__callout text.aa-chart__callout-value {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.aa-app[data-page="analytics"] .aa-chart__callout text.aa-chart__callout-meta {
  fill: #fff;
  font-size: 10.5px;
  font-weight: 500;
  opacity: .82;
}

/* keep series area visible */
.aa-app[data-page="analytics"] .aa-chart__area {
  opacity: .55;
}

.aa-app[data-page="analytics"] .aa-chart__line {
  stroke-width: 2.6;
}

@media (max-width: 1024px) {
  .aa-app:not(.aa-app--embed) .aa-topbar.aa-topbar--modernize {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 0 16px;
  }
  .aa-profile--modernize .aa-profile__meta { display: none; }
}

/* =====================================================================
   MODERNIZE — Segmented buttons (Заказчики / Исполнители и аналогичные)
   Удаляем серый контейнер, делаем каждую кнопку отдельной — Modernize style:
   inactive = white + light border, active = filled primary purple.
   ===================================================================== */
.aa-app .aa-subtabs,
.aa-app[data-page="analytics"] .aa-subtabs,
.aa-app[data-page="moderation"] .aa-subtabs {
  display: inline-flex !important;
  gap: 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
  position: relative;
}

.aa-app .aa-subtabs[hidden],
.aa-app[data-page="analytics"] .aa-subtabs[hidden],
.aa-app[data-page="moderation"] .aa-subtabs[hidden],
.aa-app--embed .aa-subtabs[hidden] {
  display: none !important;
}

.aa-app--embed .aa-section-header__actions:empty,
.aa-app--embed .aa-section-header__actions:has(> :only-child[hidden]) {
  display: none !important;
}

.aa-app:not(.aa-app--embed) .aa-subtab,
.aa-app[data-page="analytics"] .aa-subtab,
.aa-app[data-page="moderation"] .aa-subtab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  border: 1px solid #DFE5EF !important;
  background: #FFFFFF !important;
  color: #2A3547 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1;
  cursor: pointer;
  box-shadow: none !important;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}

.aa-app:not(.aa-app--embed) .aa-subtab:hover,
.aa-app[data-page="analytics"] .aa-subtab:hover,
.aa-app[data-page="moderation"] .aa-subtab:hover {
  border-color: var(--aa-purple) !important;
  color: var(--aa-purple) !important;
  background: #F4F2FF !important;
}

.aa-app:not(.aa-app--embed) .aa-subtab--active,
.aa-app[data-page="analytics"] .aa-subtab--active,
.aa-app[data-page="moderation"] .aa-subtab--active {
  background: var(--aa-purple) !important;
  border-color: var(--aa-purple) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 10px rgba(99, 91, 255, .22) !important;
}

.aa-app:not(.aa-app--embed) .aa-subtab--active:hover,
.aa-app[data-page="analytics"] .aa-subtab--active:hover,
.aa-app[data-page="moderation"] .aa-subtab--active:hover {
  background: var(--aa-purple) !important;
  color: #FFFFFF !important;
  filter: brightness(.96);
}

.aa-app .aa-subtabs__indicator,
.aa-app[data-page="analytics"] .aa-subtabs__indicator,
.aa-app[data-page="moderation"] .aa-subtabs__indicator {
  display: none !important;
}

/* =====================================================================
   MODERNIZE — Insights row: compact Funnel (left) + Breakdown bars (right)
   Pattern from Modernize node 0:6180.
   ===================================================================== */
.aa-grid--insights {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .aa-grid--insights { grid-template-columns: 1fr; }
}

.aa-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 960px) {
  .aa-insights-grid { grid-template-columns: 1fr; }
}

.aa-insight-panel {
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #EAEDF3;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.aa-grid--insights .aa-insight-panel .aa-cities-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
}

.aa-grid--insights .aa-funnel-panel {
  display: flex;
  flex-direction: column;
}

.aa-grid--insights .aa-funnel-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  min-width: 0;
}

.aa-grid--insights .aa-funnel-chart > svg {
  width: 100%;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

.aa-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.aa-insight-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1F2A37;
  letter-spacing: -.01em;
}

/* Most Visited Pages table */
.aa-pages-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aa-pages-row {
  display: grid;
  grid-template-columns: 1fr 70px 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: #2A3547;
  border-bottom: 1px solid #F1F3F8;
}

.aa-pages-row:last-child { border-bottom: 0; }

.aa-pages-row--head {
  font-size: 11px;
  font-weight: 600;
  color: #8A95A8;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 8px;
  border-bottom: 1px solid #EAEDF3;
}

.aa-pages-row__path {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-pages-row__count {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Cities horizontal progress (Social Media Performance pattern) */
.aa-cities-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aa-cities-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}

.aa-cities-item__name {
  font-size: 13px;
  font-weight: 600;
  color: #2A3547;
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-cities-item__count {
  font-size: 13px;
  font-weight: 500;
  color: #8A95A8;
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.aa-cities-item__bar {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #ECEEF5;
  overflow: hidden;
}

.aa-cities-item__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aa-purple, #635BFF), #8A7DFF);
  transition: width .35s ease;
}

.aa-cities-item__bar-fill--alt {
  background: linear-gradient(90deg, #1E5EFF, #4F87FF);
}

/* Compact Funnel below the insights row */
.aa-funnel-section {
  display: block;
  margin: 0;
}

.aa-funnel-panel {
  padding: 18px 22px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #EAEDF3;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
}

.aa-funnel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.aa-funnel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1F2A37;
  letter-spacing: -.01em;
}

.aa-funnel-meta {
  margin-top: 4px;
  font-size: 13px;
  color: #5A6072;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.aa-funnel-meta__rate {
  font-weight: 700;
  color: #1F2A37;
}

.aa-funnel-meta__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(31, 210, 134, .14);
  color: #18A06A;
}

.aa-funnel-meta__delta--neg {
  background: rgba(239, 80, 80, .12);
  color: #D14343;
}

.aa-funnel-head__period {
  font-size: 13px;
  font-weight: 600;
  color: #5A6072;
  padding: 6px 12px;
  border-radius: 8px;
  background: #F4F5F9;
}

.aa-funnel-chart {
  position: relative;
  width: 100%;
}

.aa-funnel-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.aa-funnel-rect {
  transition: opacity .15s ease, filter .15s ease;
}

.aa-funnel-rect.is-hot {
  filter: brightness(1.05);
}

.aa-funnel-grid line {
  stroke: #E4E7EF;
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.aa-funnel-axis text {
  fill: #9AA3B8;
  font-size: 11px;
  font-weight: 500;
}

.aa-funnel-xlabel text {
  fill: #2A3547;
  font-size: 12px;
  font-weight: 600;
}

.aa-funnel-pct text {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.aa-funnel-pct rect {
  fill: #272B41;
}

/* Thin-bar time-series funnel legend (Modernize chart legend pattern) */
.aa-funnel-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 14px;
  padding: 14px 4px 2px;
  border-top: 1px dashed #ECEEF5;
}

.aa-funnel-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5A6072;
  font-weight: 500;
}

.aa-funnel-legend__swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.aa-funnel-legend__label {
  color: #2A3547;
}

.aa-funnel-legend__value {
  color: #8A95A8;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.aa-funnel-rect {
  transition: opacity .15s ease;
}

.aa-funnel-zone {
  cursor: pointer;
}

/* Modernize dark callout used for the funnel time-series tooltip (DIV variant) */
#aaFunnelTip {
  background: #272B41;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
  min-width: 180px;
  max-width: 280px;
}

#aaFunnelTip .aa-chart__hover-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  font-size: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#aaFunnelTip .aa-chart__hover-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 12px;
}

#aaFunnelTip .aa-chart__hover-row span:nth-child(2) {
  color: rgba(255, 255, 255, .82);
}

#aaFunnelTip .aa-chart__hover-row strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#aaFunnelTip .aa-chart__hover-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .aa-funnel-panel { padding: 16px 14px 20px; }
  .aa-funnel-title { font-size: 16px; }
}

/* =====================================================================
   MODERNIZE 2026 — Global polish pass for ALL admin pages
   Brings jobs/users/moderation/support/profile to the same level as
   analytics: rounded corners, consistent typography, purple accent.
   ===================================================================== */

/* Unified rounded corners for major surfaces on every admin page */
.aa-app:not(.aa-app--embed) .aa-panel,
.aa-app .aa-table-panel,
.aa-app:not(.aa-app--embed) .aa-card,
.aa-app:not(.aa-app--embed) .op-confirm-body,
.aa-app:not(.aa-app--embed) .au-dialog,
.aa-app:not(.aa-app--embed) .aa-mod-detail-modal,
.aa-app:not(.aa-app--embed) .aa-mod-confirm-body,
.aa-app:not(.aa-app--embed) .aa-mod-reject-body {
  border-radius: 14px;
}

/* Modal max-width — keep modals from being too narrow on wide screens */
.aa-app:not(.aa-app--embed) .au-dialog {
  max-width: 480px;
  width: 90vw;
  padding: 28px;
}

.aa-app:not(.aa-app--embed) .au-dialog--invite,
.aa-app:not(.aa-app--embed) .au-access-dialog {
  max-width: 560px;
}

.aa-app:not(.aa-app--embed) .au-dialog__title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--aa-text, #1F2A37);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}

.aa-app:not(.aa-app--embed) .au-dialog__text {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--aa-muted, #5A6072);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Form labels inside dialogs */
.aa-app:not(.aa-app--embed) .au-field > span {
  display: block;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--aa-muted, #5A6072);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

/* Hover row in tables — keep Modernize hover tint everywhere */
.aa-app .aa-table tbody tr:hover td,
.aa-app:not(.aa-app--embed) .au-table tbody tr:hover td {
  background: rgba(100, 82, 254, .04);
}

/* Subtab/segmented control consistency on user_admin / support / moderation */
.aa-app:not(.aa-app--embed) .au-access-preset,
.aa-app:not(.aa-app--embed) .au-access-filter {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #E6E9F4;
  background: #fff;
  color: #5A607F;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.aa-app:not(.aa-app--embed) .au-access-preset:hover,
.aa-app:not(.aa-app--embed) .au-access-filter:hover {
  border-color: var(--aa-primary, #635BFF);
  color: var(--aa-primary, #635BFF);
}

.aa-app:not(.aa-app--embed) .au-access-preset.is-active,
.aa-app:not(.aa-app--embed) .au-access-filter.is-active {
  background: var(--aa-primary, #635BFF);
  border-color: var(--aa-primary, #635BFF);
  color: #fff;
  box-shadow: 0 4px 12px rgba(100, 82, 254, .22);
}

/* Status pills (used in jobs/users tables) — rounded, soft tints */
.aa-app:not(.aa-app--embed) .op-status-pill,
.aa-app:not(.aa-app--embed) .au-status,
.aa-app:not(.aa-app--embed) .op-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

/* Page subtitles consistent — softened gray */
.aa-app:not(.aa-app--embed) .aa-page-subtitle,
.aa-app:not(.aa-app--embed) .aa-panel__subtitle {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  color: #5A6072;
  font-weight: 500;
  margin-top: 4px;
}

/* Panel title typography — same across pages */
.aa-app:not(.aa-app--embed) .aa-panel__title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--aa-text, #1F2A37);
  letter-spacing: -.01em;
}

/* Invite/role mini-card on user admin */
.aa-app:not(.aa-app--embed) .au-invite-role-card {
  border-radius: 12px;
  background: rgba(100, 82, 254, .06);
  border: 1px solid rgba(100, 82, 254, .14);
  padding: 14px 16px;
}

/* =====================================================================
   MODERNIZE 2026 — Unified card styling across ALL admin pages
   Brings jobs/users/moderation to the same Modernize card spec as analytics
   ===================================================================== */
.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-jm-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card {
  min-height: 140px;
  padding: 22px 24px;
  border: 1px solid #ECEEF5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .03);
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card:hover,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card:hover,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card:hover,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
  border-color: #ECEEF5;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__head,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__head,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__head,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__head {
  display: block;
  position: relative;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__meta,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__meta,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__meta,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__meta {
  display: block;
  min-width: auto;
  flex: none;
  padding-right: 56px;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__label,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__label,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__label,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__label {
  color: #8A94A6 !important;
  font-size: 14px !important;
  line-height: 1.35;
  font-weight: 500 !important;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__visual,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__visual,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__visual,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__visual {
  position: absolute;
  top: -2px;
  right: 0;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__icon,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__icon,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__icon,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__icon {
  position: absolute;
  top: 22px;
  right: 22px;
  border-radius: 50% !important;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__value,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__value,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__value,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__value {
  margin-top: 12px;
  color: #1F2A37 !important;
  font-size: 32px !important;
  line-height: 1.1 !important;
  letter-spacing: -.02em;
  font-weight: 800 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__foot,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__foot,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__foot,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__delta,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__delta,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__delta,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-card__hint,
.aa-app[data-page="users"]:not(.aa-app--embed) .aa-card__hint,
.aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-card__hint,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-card__hint {
  font-size: 12px;
  font-weight: 500;
  color: #8A95A8;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (max-width: 1180px) {
  .aa-app[data-page="jobs"]:not(.aa-app--embed) .aa-cards,
  .aa-app[data-page="users"]:not(.aa-app--embed) .aa-cards,
  .aa-app[data-page="moderation"]:not(.aa-app--embed) .aa-cards,
  .aa-app[data-page="support"]:not(.aa-app--embed) .aa-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
   MODERNIZE 2026 — Admin Support Chat (Figma node 0:4471)
   Two-pane chat layout: conversation list (left) + active chat (right)
   ===================================================================== */
.as-chat {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  min-height: 640px;
  height: calc(100vh - 240px);
  max-height: 800px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #EAEDF3;
}

/* Left pane — conversation list */
.as-chat__list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #EAEDF3;
  background: #fff;
}

.as-chat__list-head {
  padding: 18px 20px 14px;
}

.as-chat__list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1F2A37;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.as-chat__list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(100, 82, 254, .12);
  color: var(--aa-primary, #635BFF);
  font-size: 11px;
  font-weight: 700;
}

.as-chat__search {
  position: relative;
}

.as-chat__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: inline-flex;
  color: #7E84A3;
}

.as-chat__search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.as-chat__search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 38px;
  border-radius: 6px;
  border: 1px solid #D7DBEC;
  background: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #131523;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.as-chat__search input:focus {
  border-color: var(--aa-primary, #635BFF);
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .12);
}

.as-chat__search input::placeholder {
  color: #A8B4C8;
}

.as-chat__threads {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 16px;
}

.as-chat__thread {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.as-chat__thread:hover {
  background: #F5F7FB;
}

.as-chat__thread.is-active {
  background: rgba(100, 82, 254, .08);
}

.as-chat__thread-avatar {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(135deg, #635BFF, #8A7DFF);
}

.as-chat__thread-avatar--online::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1FD286;
  border: 2px solid #fff;
}

.as-chat__thread-name {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1F2A37;
  min-width: 0;
}

.as-chat__thread-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.as-chat__thread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--aa-primary, #635BFF);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-chat__thread-time {
  grid-column: 3;
  grid-row: 1;
  font-size: 12px;
  font-weight: 600;
  color: #8A95A8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.as-chat__thread-preview {
  grid-column: 2 / span 2;
  grid-row: 2;
  font-size: 13px;
  color: #5A6072;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Right pane — active conversation */
.as-chat__pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
}

.as-chat__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  text-align: center;
  color: #5A6072;
}

.as-chat__empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(100, 82, 254, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as-chat__empty-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #1F2A37;
  margin-top: 4px;
}

.as-chat__empty-text {
  font-size: 13px;
  font-weight: 500;
  color: #8A95A8;
  max-width: 280px;
}

.as-chat__active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.as-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #EAEDF3;
  background: #fff;
}

.as-chat__header-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.as-chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #635BFF, #8A7DFF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.as-chat__header-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.as-chat__header-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #1F2A37;
}

.as-chat__online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1FD286;
  flex-shrink: 0;
}

.as-chat__header-sub {
  font-size: 12px;
  color: #8A95A8;
  font-weight: 500;
}

.as-chat__header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.as-chat__icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background .15s ease;
}

.as-chat__icon-btn:hover {
  background: #F5F7FB;
}

/* Messages list */
.as-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}

.as-chat__msg {
  display: flex;
  gap: 10px;
  max-width: 78%;
}

.as-chat__msg--in {
  align-self: flex-start;
}

.as-chat__msg--out {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.as-chat__msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C7C2FF, #8A7DFF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.as-chat__msg--out .as-chat__msg-avatar {
  background: linear-gradient(135deg, #5A6072, #2A3547);
}

.as-chat__msg-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.as-chat__msg--out .as-chat__msg-body {
  align-items: flex-end;
}

.as-chat__bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  word-break: break-word;
  white-space: pre-wrap;
}

.as-chat__msg--in .as-chat__bubble {
  background: var(--aa-primary, #635BFF);
  color: #fff;
  border-radius: 4px 12px 12px 12px;
}

.as-chat__msg--out .as-chat__bubble {
  background: #F1F3F8;
  color: #2A3547;
  border-radius: 12px 4px 12px 12px;
}

.as-chat__bubble--private {
  background: #FFF6E0 !important;
  color: #8A6D00 !important;
  border: 1px dashed #E7B956;
}

.as-chat__msg-time {
  font-size: 11px;
  font-weight: 600;
  color: #8A95A8;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.as-chat__msg-author {
  font-size: 11px;
  font-weight: 700;
  color: #5A6072;
  letter-spacing: .02em;
}

.as-chat__msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.as-chat__attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #F5F7FB;
  border: 1px solid #E6E9F4;
  font-size: 12px;
  font-weight: 600;
  color: #2A3547;
  text-decoration: none;
  max-width: 240px;
}

.as-chat__attachment-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-chat__msg--system {
  align-self: center;
  max-width: 80%;
  text-align: center;
}

.as-chat__msg--system .as-chat__bubble {
  background: #F5F7FB;
  color: #5A6072;
  font-style: italic;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
}

.as-chat__msg--system .as-chat__msg-avatar {
  display: none;
}

/* Composer */
.as-chat__composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #EAEDF3;
  background: #fff;
}

.as-chat__attach {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background .15s ease;
  flex-shrink: 0;
}

.as-chat__attach:hover { background: #F5F7FB; }

.as-chat__composer input {
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1F2A37;
  outline: none;
}

.as-chat__composer input::placeholder {
  color: #A8B4C8;
}

.as-chat__send {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.as-chat__loading {
  padding: 20px;
  text-align: center;
  color: #8A95A8;
  font-size: 13px;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .as-chat {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
  .as-chat__list {
    border-right: 0;
    border-bottom: 1px solid #EAEDF3;
    max-height: 360px;
  }
}

/* Hide legacy support panels (health/table) on the new chat page */
.aa-app[data-page="support"] .as-health-panel,
.aa-app[data-page="support"] .as-table-panel,
.aa-app[data-page="support"] .as-empty {
  display: none !important;
}

/* Modernize tooltip animations on bars chart */
.aa-bars-tooltip {
  pointer-events: none;
  transition: opacity .12s ease;
}

.aa-bars-tooltip text {
  fill: #fff;
  font-size: 12px;
  font-weight: 700;
}

.aa-bars-rect {
  transition: opacity .15s ease, filter .15s ease;
}

.aa-bars-rect.is-hot {
  filter: brightness(1.05);
}

/* =====================================================================
   FIGMA-ALIGNED tables (Modernize node 0:4083, compact variant 3:20694)
   Spec: header 40px sentence-case 12px, row ~52px, avatar 40x40 filled.
   Smaller scale to match analytics + Figma proportions.
   ===================================================================== */
.aa-app .aa-table th,
.aa-app:not(.aa-app--embed) .au-table th {
  height: 40px !important;
  padding: 0 16px !important;
  background: #fff !important;
  border-bottom: 1px solid #E6E9F4 !important;
  color: #5A607F !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
  text-align: left;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app .aa-table td,
.aa-app:not(.aa-app--embed) .au-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid #E6E9F4 !important;
  color: #131523 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app .aa-table tbody tr,
.aa-app:not(.aa-app--embed) .au-table tbody tr {
  transition: background-color .18s ease;
}

.aa-app .aa-table tbody tr:hover,
.aa-app:not(.aa-app--embed) .au-table tbody tr:hover {
  background-color: #F8F9FC;
}

.aa-app .aa-table tbody tr:last-child td,
.aa-app:not(.aa-app--embed) .au-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Avatar circle in user lists — 36x36 filled accent (compact Figma) */
.aa-app:not(.aa-app--embed) .au-user__avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #8965E0 0%, #6452FE 100%) !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  flex-shrink: 0;
}

.aa-app:not(.aa-app--embed) .au-user {
  gap: 12px !important;
  min-width: 200px !important;
}

.aa-app:not(.aa-app--embed) .au-user__name {
  color: #131523 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app:not(.aa-app--embed) .au-user__name--link {
  color: #6452FE !important;
}

.aa-app:not(.aa-app--embed) .au-user__sub {
  color: #7E84A3 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

/* Panel head row — text top-left, actions top-right (Figma).
   Use CSS grid to guarantee "title 1fr | actions auto" layout that
   never wraps the actions block onto a new line. */
.aa-app:not(.aa-app--embed) .aa-panel__headrow {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.aa-app:not(.aa-app--embed) .aa-panel__headrow > div:first-child {
  min-width: 0 !important;
  max-width: 100% !important;
  flex: none !important;
}

.aa-app:not(.aa-app--embed) .aa-panel__head-actions,
.aa-app .aa-table-controls,
.aa-app:not(.aa-app--embed) .aa-jm-controls {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  margin-left: 0 !important;
}

.aa-app:not(.aa-app--embed) .aa-panel__title {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #131523 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app:not(.aa-app--embed) .aa-panel__subtitle {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #7E84A3 !important;
  margin-top: 2px !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

/* Status pills — Figma style: pill background tinted, small text */
.aa-app:not(.aa-app--embed) .au-status,
.aa-app:not(.aa-app--embed) .op-status-pill,
.aa-app:not(.aa-app--embed) .op-tag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

/* =====================================================================
   FIGMA-ALIGNED Section header (Modernize node 0:4061 / 0:3037 / 0:2731)
   Title + subtitle on left, actions on right, OUTSIDE the white panel.
   Used for jobs list, users list, moderation queue, etc.
   ===================================================================== */
.aa-app .aa-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 4px;
  margin-top: 24px;
  margin-bottom: 14px;
}

.aa-app .aa-section-header__main {
  min-width: 0;
}

.aa-app .aa-section-header__title {
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
  color: #131523;
  letter-spacing: -.01em;
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.aa-app .aa-section-header__subtitle {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: #7E84A3;
  margin: 3px 0 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.aa-app .aa-section-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

/* When the panel is preceded by a section-header, remove its inner
   head padding-top so the white panel sits flush below the heading. */
.aa-app .aa-section-header + .aa-panel .aa-panel__head,
.aa-app .aa-section-header + .aa-panel .aa-table-head,
.aa-app .aa-section-header + .aa-panel .au-table-head {
  padding: 16px 24px 12px !important;
}

/* Empty head with just sub-controls (no title) — flush layout */
.aa-app:not(.aa-app--embed) .aa-panel__head--bare,
.aa-app .aa-table-head--bare {
  padding: 14px 20px !important;
  border-bottom: 1px solid #F0F2F7 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.aa-app:not(.aa-app--embed) .aa-panel__head--bare:empty,
.aa-app .aa-table-head--bare:empty,
.aa-app:not(.aa-app--embed) .aa-panel__head--bare[hidden],
.aa-app .aa-table-head--bare[hidden] {
  display: none !important;
}

/* =====================================================================
   FIGMA-ALIGNED Buttons (Modernize node 0:3)
   Primary / Secondary / White / Icon-only — medium 36px, radius 6px
   ===================================================================== */
.aa-app:not(.aa-app--embed) .op-btn {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app:not(.aa-app--embed) .op-btn.op-btn--ghost,
.aa-app:not(.aa-app--embed) .au-invite-btn.op-btn--ghost {
  border-radius: 6px !important;
  border: 1px solid #D7DBEC !important;
  background: #fff !important;
  color: #131523 !important;
}

.aa-app:not(.aa-app--embed) .op-btn.op-btn--ghost:hover {
  border-color: #6452FE !important;
  color: #6452FE !important;
  background: #fff !important;
  box-shadow: none !important;
}

/* Secondary primary — light tint with primary text */
.aa-app:not(.aa-app--embed) .op-btn--secondary {
  background: rgba(100, 82, 254, .12) !important;
  color: #6452FE !important;
  border: 0 !important;
}

.aa-app:not(.aa-app--embed) .op-btn--secondary:hover {
  background: rgba(100, 82, 254, .18) !important;
  box-shadow: none !important;
}

/* =====================================================================
   FIGMA-ALIGNED Table toolbar (Modernize node 0:4083 / 3:20694)
   Inside-panel: search input + filter button on LEFT,
   icon-only action buttons on RIGHT.
   ===================================================================== */
.aa-app .aa-table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 16px;
  background: #fff;
  border-bottom: 0;
  flex-wrap: nowrap;
}

/* Inline context filters (city / type / gender / occupation etc.) — Figma 0:4083 */
.aa-app .aa-table-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.aa-app .aa-table-toolbar .aa-select--toolbar {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 36px;
  min-width: 140px;
  padding: 0 36px 0 14px;
  border: 1px solid #D7DBEC;
  border-radius: 6px;
  background: #fff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #131523;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.aa-app .aa-table-toolbar .aa-select--toolbar:hover {
  border-color: #6452FE;
}

.aa-app .aa-table-toolbar .aa-select--toolbar.is-open,
.aa-app .aa-table-toolbar .aa-select--toolbar:focus-within {
  border-color: #6452FE;
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .12);
}

.aa-app .aa-table-toolbar .aa-select--toolbar::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='m6 9 6 6 6-6' stroke='%237E84A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  pointer-events: none;
  transition: transform .2s ease;
}

.aa-app .aa-table-toolbar .aa-select--toolbar.is-open::after {
  transform: rotate(180deg);
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__label,
.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__chevron {
  display: none !important;
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__trigger {
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__value {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #131523;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aa-app .aa-table-toolbar .aa-select--toolbar select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: 260px;
  background: #fff;
  border: 1px solid #E5E9F2;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
  padding: 6px;
  z-index: 60;
  max-height: 280px;
  overflow: auto;
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__option {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #131523;
  min-height: 32px;
  cursor: pointer;
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__option:hover {
  background: rgba(100, 82, 254, .08);
  color: #6452FE;
}

.aa-app .aa-table-toolbar .aa-select--toolbar .aa-select__option.is-selected {
  background: rgba(100, 82, 254, .12);
  color: #6452FE;
}

.aa-app .aa-table-toolbar__search {
  position: relative;
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 360px;
}

.aa-app .aa-table-toolbar__search-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #A1A7C4;
  pointer-events: none;
  display: inline-flex;
}

.aa-app .aa-table-toolbar__search-ico svg {
  width: 20px;
  height: 20px;
  display: block;
}

.aa-app .aa-table-toolbar__search input[type="search"] {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 38px;
  border: 1px solid #D7DBEC;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #131523;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.aa-app .aa-table-toolbar__search input[type="search"]::placeholder {
  color: #A1A7C4;
}

.aa-app .aa-table-toolbar__search input[type="search"]:focus {
  border-color: #6452FE;
  box-shadow: 0 0 0 3px rgba(100, 82, 254, .12);
}

.aa-app .aa-table-toolbar__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #D7DBEC;
  border-radius: 6px;
  background: #fff;
  color: #7E84A3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.aa-app .aa-table-toolbar__filter svg {
  width: 18px;
  height: 18px;
  display: block;
}

.aa-app .aa-table-toolbar__filter:hover {
  border-color: #6452FE;
  color: #6452FE;
  background: #fff;
}

.aa-app .aa-table-toolbar__filter:hover {
  border-color: #6452FE;
  color: #6452FE;
}

.aa-app .aa-table-toolbar__icons {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aa-app .aa-table-toolbar .aa-icon-btn,
.aa-app .aa-table-toolbar__icons .aa-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E9F2;
  border-radius: 6px;
  background: #fff;
  color: #6452FE;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.aa-app .aa-table-toolbar .aa-icon-btn svg,
.aa-app .aa-table-toolbar__icons .aa-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.aa-app .aa-table-toolbar .aa-icon-btn:hover,
.aa-app .aa-table-toolbar__icons .aa-icon-btn:hover {
  border-color: #6452FE;
  background: rgba(100, 82, 254, .08);
}

.aa-app .aa-table-toolbar .aa-icon-btn:active,
.aa-app .aa-table-toolbar__icons .aa-icon-btn:active {
  background: rgba(100, 82, 254, .14);
}

/* Push icon-buttons to the far right of the toolbar */
.aa-app .aa-table-toolbar__icons {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hide the legacy inline "Фильтры" button inside the toolbar (period popover stays accessible via page-level toggle) */
.aa-app .aa-table-toolbar .aa-table-toolbar__filter {
  display: none !important;
}

/* Allow dropdown menus inside the toolbar to render outside the panel bounds */
.aa-app .aa-table-panel,
.aa-app:not(.aa-app--embed) .aa-mod-panel,
.aa-app:not(.aa-app--embed) .au-panel {
  overflow: visible !important;
}

.aa-app .aa-table-toolbar {
  overflow: visible !important;
  position: relative;
}

/* Make sure hidden filter dropdowns inside the toolbar disappear */
.aa-app .aa-table-toolbar .aa-select--toolbar[hidden] {
  display: none !important;
}

/* =====================================================================
   FIGMA-ALIGNED Table headers (Modernize node 0:4250 / 3:20694)
   No top divider, only bottom border on header row.
   First column aligned to toolbar's left padding (24px).
   ===================================================================== */
.aa-app .aa-table th,
.aa-app .aa-table td {
  border-top: 0 !important;
}

.aa-app .aa-table thead th {
  border-bottom: 1px solid #EAEDF3 !important;
  border-top: 0 !important;
}

.aa-app .aa-table th:first-child,
.aa-app .aa-table td:first-child {
  padding-left: 24px !important;
}

.aa-app .aa-table th:last-child,
.aa-app .aa-table td:last-child {
  padding-right: 24px !important;
}

/* =====================================================================
   FIGMA-ALIGNED Checkboxes (Modernize node 0:235)
   ===================================================================== */
.aa-checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  cursor: pointer;
  user-select: none;
}

.aa-checkbox input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.aa-checkbox__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #C7CDDE;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .12s ease, background .12s ease;
}

.aa-checkbox__box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity .12s ease;
  color: #fff;
}

.aa-checkbox:hover .aa-checkbox__box {
  border-color: #6452FE;
}

.aa-checkbox input:checked ~ .aa-checkbox__box {
  background: #6452FE;
  border-color: #6452FE;
}

.aa-checkbox input:checked ~ .aa-checkbox__box svg {
  opacity: 1;
}

.aa-checkbox.is-indeterminate .aa-checkbox__box {
  background: #6452FE;
  border-color: #6452FE;
}

.aa-checkbox.is-indeterminate .aa-checkbox__box::after {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
  position: absolute;
}

.aa-checkbox.is-indeterminate .aa-checkbox__box svg {
  opacity: 0;
}

/* Checkbox column in table */
.aa-app .aa-table th.aa-table__check,
.aa-app .aa-table td.aa-table__check {
  width: 48px;
  padding-left: 24px !important;
  padding-right: 8px !important;
  text-align: left;
  vertical-align: middle;
}

.aa-app .aa-table tbody tr.is-selected td {
  background: rgba(100, 82, 254, .04);
}

/* =====================================================================
   FIGMA-ALIGNED Pagination (Modernize node 0:316)
   ===================================================================== */
.aa-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid #EAEDF3;
  background: #fff;
}

.aa-pagination {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aa-pagination__btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: #5A6072;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}

.aa-pagination__btn:hover {
  background: rgba(100, 82, 254, .08);
  color: #6452FE;
}

.aa-pagination__btn.is-active {
  background: rgba(100, 82, 254, .12);
  color: #6452FE;
  font-weight: 700;
}

.aa-pagination__btn:disabled {
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.aa-pagination__btn svg {
  width: 16px;
  height: 16px;
}

.aa-pagination__ellipsis {
  min-width: 24px;
  text-align: center;
  color: #9AA3B8;
  font-size: 13px;
  font-weight: 600;
  user-select: none;
}

.aa-pagination__count {
  color: #5A6072;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
}

/* Contextual action icons in toolbar (appear when rows are selected) */
.aa-app .aa-table-toolbar__icons .aa-icon-btn[data-selection-only] {
  display: none;
}

.aa-app .aa-table-panel.is-selecting .aa-table-toolbar__icons .aa-icon-btn[data-selection-only],
.aa-app:not(.aa-app--embed) .au-panel.is-selecting .aa-table-toolbar__icons .aa-icon-btn[data-selection-only],
.aa-app:not(.aa-app--embed) .aa-mod-panel.is-selecting .aa-table-toolbar__icons .aa-icon-btn[data-selection-only] {
  display: inline-flex;
}

/* =====================================================================
   FIGMA-ALIGNED Action button tones (Modernize)
   Buttons keep base size; only color tone changes based on intent.
   ===================================================================== */
.aa-app:not(.aa-app--embed) .aa-icon-btn--success,
.aa-app:not(.aa-app--embed) .aa-icon-btn[data-tone="success"],
.aa-app:not(.aa-app--embed) #aaModApproveSelBtn {
  color: #39B27C !important;
  border-color: #C5EFDC !important;
}

.aa-app:not(.aa-app--embed) .aa-icon-btn--success:hover,
.aa-app:not(.aa-app--embed) .aa-icon-btn[data-tone="success"]:hover,
.aa-app:not(.aa-app--embed) #aaModApproveSelBtn:hover {
  background: rgba(57, 178, 124, .10) !important;
  border-color: #39B27C !important;
}

.aa-app:not(.aa-app--embed) .aa-icon-btn--danger,
.aa-app:not(.aa-app--embed) .aa-icon-btn[data-tone="danger"],
.aa-app:not(.aa-app--embed) #aaModRejectSelBtn {
  color: #FF4842 !important;
  border-color: #FFD0CE !important;
}

.aa-app:not(.aa-app--embed) .aa-icon-btn--danger:hover,
.aa-app:not(.aa-app--embed) .aa-icon-btn[data-tone="danger"]:hover,
.aa-app:not(.aa-app--embed) #aaModRejectSelBtn:hover {
  background: rgba(255, 72, 66, .10) !important;
  border-color: #FF4842 !important;
}

.aa-app:not(.aa-app--embed) .aa-icon-btn--info,
.aa-app:not(.aa-app--embed) .aa-icon-btn[data-tone="info"],
.aa-app:not(.aa-app--embed) #auEditSelectionBtn {
  color: #1E5EFF !important;
  border-color: #CDDBFF !important;
}

.aa-app:not(.aa-app--embed) .aa-icon-btn--info:hover,
.aa-app:not(.aa-app--embed) .aa-icon-btn[data-tone="info"]:hover,
.aa-app:not(.aa-app--embed) #auEditSelectionBtn:hover {
  background: rgba(30, 94, 255, .10) !important;
  border-color: #1E5EFF !important;
}

/* Selected row visual + selection counter indicator */
.aa-app .aa-table tbody tr.is-selected td:not(.aa-table__check) {
  background: rgba(100, 82, 254, .04);
}

/* На странице /admin/users и /admin/moderation тулбар-фильтры (city/type)
   живут в .aa-table-toolbar, а кнопка "Фильтры" в шапке открывает Drawer
   с глобальными фильтрами (Период и т.п.). Поэтому НЕ скрываем её. */

@media (max-width: 720px) {
  .aa-app .aa-table-toolbar {
    flex-wrap: wrap;
  }
  .aa-app .aa-table-toolbar__search {
    flex: 1 1 100%;
  }
}

/* =====================================================================
   Support page — remove leftover gradient/accent stripes under metric cards
   ===================================================================== */
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-mcard::after,
.aa-app[data-page="support"]:not(.aa-app--embed) .aa-mcard::before,
.aa-app[data-page="support"]:not(.aa-app--embed) .as-card::after,
.aa-app[data-page="support"]:not(.aa-app--embed) .as-card::before {
  display: none !important;
  content: none !important;
}

.aa-app[data-page="support"]:not(.aa-app--embed) .as-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* =====================================================================
   Compact page title (Modernize) — applied to all admin pages
   ===================================================================== */
.aa-app:not(.aa-app--embed) .aa-page-titlebar .aa-title {
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  letter-spacing: -.01em !important;
  margin: 0 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  color: #131523 !important;
}

.aa-app:not(.aa-app--embed) .aa-page-titlebar .aa-page-subtitle {
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  margin-top: 3px !important;
  color: #7E84A3 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app .aa-filter-toggle {
  height: 34px !important;
  font-size: 12px !important;
  padding: 0 12px !important;
  font-weight: 600 !important;
}

/* =====================================================================
   FIGMA-ALIGNED Cards block — height stays uniform across all pages.
   Fixed visual height regardless of optional delta presence.
   ===================================================================== */
.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard {
  min-height: 92px !important;
  height: 92px !important;
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}

.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard__main {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard__value {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: #131523 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  letter-spacing: -.01em;
}

.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard__label {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #7E84A3 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  line-height: 1.35 !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard__delta {
  margin-top: 3px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
}

.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard__icon {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.aa-app:not(.aa-app--embed) .aa-cards.aa-cards--modernize .aa-mcard__icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* ========================================================== */
/* Modernize-modal pass — Figma 0:479 / 0:481 / 0:483 / 0:489 / 0:491 */
/* Targets: .op-modal, .op-confirm-body, .acp-modal-card, .au-dialog */
/* Color: blue → purple (--aa-primary #6452FE)                */
/* ========================================================== */

/* Backdrop */
.aa-app .op-modal,
body > .op-modal{
  position:fixed;
  inset:0;
  z-index:1100;
  background:rgba(19,21,35,.42);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  overflow-y:auto;
  animation:mmBackdropIn .18s ease-out both;
}
@keyframes mmBackdropIn{ from{opacity:0;} to{opacity:1;} }
@keyframes mmCardIn{ from{opacity:0; transform:translateY(12px) scale(.98);} to{opacity:1; transform:translateY(0) scale(1);} }

/* Card containers — собственно белая карточка */
.aa-app .op-modal .op-confirm-body,
.aa-app .op-modal .au-dialog,
.aa-app .op-modal .acp-modal-card,
.aa-app .op-modal .aa-mod-detail-modal,
.aa-app .op-modal .aa-mod-confirm-body,
.aa-app .op-modal .aa-mod-reject-body,
body > .op-modal .op-confirm-body,
body > .op-modal .au-dialog,
body > .op-modal .acp-modal-card{
  background:#fff !important;
  border:1px solid rgba(15,23,42,.06) !important;
  border-radius:8px !important;
  box-shadow:0 2px 10px rgba(38,44,71,.16) !important;
  padding:28px !important;
  width:min(560px, 100%) !important;
  max-width:560px !important;
  max-height:calc(100vh - 48px) !important;
  overflow-y:auto !important;
  animation:mmCardIn .22s cubic-bezier(.22,.61,.36,1) both !important;
  position:relative;
  font-family:'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  margin:0 !important;
}

/* Wider variants (на сам card) */
.aa-app .op-modal .acp-modal-body .acp-modal-card{ width:min(720px, 100%) !important; max-width:720px !important; }
.aa-app .op-modal .acp-modal-body--balance .acp-modal-card{ width:min(640px, 100%) !important; max-width:640px !important; }
.aa-app .op-modal .acp-modal-body--wide .acp-modal-card{ width:min(820px, 100%) !important; max-width:820px !important; }
.aa-app .op-modal .au-dialog--invite{ width:min(640px, 100%) !important; max-width:640px !important; }
.aa-app .op-modal .au-access-dialog{ width:min(960px, 100%) !important; max-width:960px !important; }

/* Wrapper-only (прозрачный контейнер вокруг настоящего card) */
.aa-app .op-modal .op-job-detail-body,
.aa-app .op-modal .acp-modal-body{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
  width:auto !important;
  max-width:none !important;
  border-radius:0 !important;
  animation:none !important;
  overflow:visible !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
}

/* Close button (×) */
.aa-app .op-modal .op-close,
body > .op-modal .op-close{
  position:absolute !important;
  top:12px !important;
  right:12px !important;
  width:28px !important;
  height:28px !important;
  border-radius:8px !important;
  border:0 !important;
  background:transparent !important;
  color:#7E84A3 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  font:600 22px/1 'Plus Jakarta Sans', sans-serif !important;
  cursor:pointer !important;
  transition:background .15s ease, color .15s ease;
  padding:0 !important;
  z-index:2;
}
.aa-app .op-modal .op-close:hover{
  background:rgba(100,82,254,.08) !important;
  color:#6452FE !important;
}

/* Titles */
.aa-app .op-modal .au-dialog__title,
.aa-app .op-modal .acp-modal-title,
.aa-app .op-modal .op-job-detail__title{
  color:#131523 !important;
  font:700 20px/28px 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing:-.005em !important;
  margin:0 0 8px !important;
  padding-right:36px;
}

/* Subtitle / content */
.aa-app .op-modal .au-dialog__text,
.aa-app .op-modal .acp-modal-subtitle,
.aa-app .op-modal .op-confirm-text{
  color:#5A607F !important;
  font:400 14px/22px 'Plus Jakarta Sans', sans-serif !important;
  margin:0 0 18px !important;
}

/* Inputs in modals (Figma 0:491) */
.aa-app .op-modal .op-input,
.aa-app .op-modal .acp-modal-input,
.aa-app .op-modal .acp-modal-textarea,
.aa-app .op-modal .au-field input,
.aa-app .op-modal .au-field textarea{
  background:#fff !important;
  border:1px solid #D9E1EC !important;
  border-radius:6px !important;
  padding:9px 14px !important;
  font:400 14px/22px 'Plus Jakarta Sans', sans-serif !important;
  color:#131523 !important;
  box-shadow:none !important;
  transition:border-color .15s ease, box-shadow .15s ease;
  min-height:40px;
  width:100%;
}
.aa-app .op-modal .op-input:focus,
.aa-app .op-modal .acp-modal-input:focus,
.aa-app .op-modal .acp-modal-textarea:focus,
.aa-app .op-modal .au-field input:focus,
.aa-app .op-modal .au-field textarea:focus{
  border-color:#6452FE !important;
  box-shadow:0 0 0 3px rgba(100,82,254,.16) !important;
  outline:none !important;
}
.aa-app .op-modal .au-field > span:first-child,
.aa-app .op-modal .acp-modal-label{
  color:#5A607F !important;
  font:400 13px/20px 'Plus Jakarta Sans', sans-serif !important;
  display:block;
  margin-bottom:6px;
}

/* Actions row */
.aa-app .op-modal .op-confirm-actions,
.aa-app .op-modal .aa-mod-confirm-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:14px !important;
  margin-top:24px !important;
  padding-top:0 !important;
  border-top:0 !important;
  flex-wrap:wrap;
}

/* Primary button (Confirm/Save/Ok) — purple */
.aa-app .op-modal .op-confirm-btn.op-confirm-ok,
.aa-app .op-modal .op-confirm-ok{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:40px !important;
  min-width:99px !important;
  padding:0 22px !important;
  border:0 !important;
  border-radius:6px !important;
  background:#6452FE !important;
  color:#fff !important;
  font:600 14px/1 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing:0 !important;
  cursor:pointer;
  box-shadow:0 6px 16px -8px rgba(100,82,254,.45);
  transition:background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.aa-app .op-modal .op-confirm-btn.op-confirm-ok:hover,
.aa-app .op-modal .op-confirm-ok:hover{
  background:#5642F5 !important;
  box-shadow:0 10px 20px -8px rgba(100,82,254,.55);
}
.aa-app .op-modal .op-confirm-btn.op-confirm-ok:active,
.aa-app .op-modal .op-confirm-ok:active{ transform:translateY(1px); }
.aa-app .op-modal .op-confirm-btn.op-confirm-ok:disabled,
.aa-app .op-modal .op-confirm-ok:disabled{
  background:#C9C4FF !important;
  box-shadow:none !important;
  cursor:not-allowed;
}

/* Cancel button — text-only (Figma) */
.aa-app .op-modal .op-confirm-btn.op-confirm-cancel,
.aa-app .op-modal .op-confirm-cancel{
  background:transparent !important;
  border:0 !important;
  color:#6452FE !important;
  font:600 14px/1 'Plus Jakarta Sans', sans-serif !important;
  height:40px !important;
  padding:0 14px !important;
  border-radius:6px !important;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.aa-app .op-modal .op-confirm-btn.op-confirm-cancel:hover,
.aa-app .op-modal .op-confirm-cancel:hover{
  background:rgba(100,82,254,.08) !important;
  color:#5642F5 !important;
}

/* === Variant: .op-modal--destructive (Figma 0:481) === */
.aa-app .op-modal.op-modal--destructive .op-confirm-btn.op-confirm-ok,
.aa-app .op-modal.op-modal--destructive .op-confirm-ok{
  background:#F0142F !important;
  box-shadow:0 6px 16px -8px rgba(240,20,47,.4);
}
.aa-app .op-modal.op-modal--destructive .op-confirm-btn.op-confirm-ok:hover{
  background:#D40E26 !important;
}
.aa-app .op-modal.op-modal--destructive .op-confirm-btn.op-confirm-cancel,
.aa-app .op-modal.op-modal--destructive .op-confirm-cancel{
  color:#F0142F !important;
}
.aa-app .op-modal.op-modal--destructive .op-confirm-cancel:hover{
  background:rgba(240,20,47,.08) !important;
}

/* === Variant: .op-modal--icon (Figma 0:483 — centered icon) === */
.aa-app .op-modal.op-modal--icon .op-confirm-body,
.aa-app .op-modal.op-modal--icon .au-dialog{
  text-align:center;
  padding:40px 28px 28px !important;
}
.aa-app .op-modal.op-modal--icon .mm-icon{
  width:58px;
  height:58px;
  border-radius:50%;
  background:rgba(100,82,254,.12);
  color:#6452FE;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
}
.aa-app .op-modal.op-modal--icon .mm-icon svg{
  width:24px; height:24px;
}
.aa-app .op-modal.op-modal--icon .au-dialog__title,
.aa-app .op-modal.op-modal--icon .acp-modal-title{
  text-align:center;
  padding-right:0 !important;
}
.aa-app .op-modal.op-modal--icon .op-confirm-text,
.aa-app .op-modal.op-modal--icon .acp-modal-subtitle{
  text-align:center;
}
.aa-app .op-modal.op-modal--icon .op-confirm-actions,
.aa-app .op-modal.op-modal--icon .aa-mod-confirm-actions{
  justify-content:center !important;
}

/* === Variant: .op-modal--success (Figma 0:489 — ribbon + check) === */
.aa-app .op-modal.op-modal--success .op-confirm-body,
.aa-app .op-modal.op-modal--success .au-dialog{
  text-align:center;
  padding:48px 28px 32px !important;
}
.aa-app .op-modal.op-modal--success .mm-ribbon{
  width:140px;
  height:140px;
  margin:0 auto 18px;
  display:block;
}
.aa-app .op-modal.op-modal--success .au-dialog__title,
.aa-app .op-modal.op-modal--success .acp-modal-title{
  text-align:center;
  font-size:24px !important;
  line-height:34px !important;
  padding-right:0 !important;
}
.aa-app .op-modal.op-modal--success .op-confirm-text,
.aa-app .op-modal.op-modal--success .acp-modal-subtitle{
  text-align:center;
  margin-bottom:24px !important;
}
.aa-app .op-modal.op-modal--success .op-confirm-actions,
.aa-app .op-modal.op-modal--success .aa-mod-confirm-actions{
  justify-content:center !important;
}

/* Color tint variants for icon-modal */
.aa-app .op-modal.op-modal--icon[data-tone="success"] .mm-icon{
  background:rgba(6,165,97,.12); color:#06A561;
}
.aa-app .op-modal.op-modal--icon[data-tone="danger"] .mm-icon{
  background:rgba(240,20,47,.10); color:#F0142F;
}
.aa-app .op-modal.op-modal--icon[data-tone="warning"] .mm-icon{
  background:rgba(247,154,76,.14); color:#F79A4C;
}
.aa-app .op-modal.op-modal--icon[data-tone="info"] .mm-icon{
  background:rgba(56,142,236,.12); color:#388EEC;
}

/* Form grid (Figma 0:491) */
.aa-app .op-modal .mm-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px 16px;
  margin-bottom:8px;
}
.aa-app .op-modal .mm-form-grid > .mm-form-grid__full{
  grid-column:1 / -1;
}
@media (max-width:520px){
  .aa-app .op-modal .mm-form-grid{ grid-template-columns:1fr; }
}

/* Soft-fix existing au-invite styles to align with Modernize tokens */
.aa-app .op-modal .au-dialog--invite .au-field input,
.aa-app .op-modal .au-dialog--invite .au-field textarea{
  border-radius:6px !important;
}
.aa-app .op-modal .au-invite-note{
  background:rgba(100,82,254,.06) !important;
  border:1px solid rgba(100,82,254,.16) !important;
  border-radius:8px !important;
  padding:14px 16px !important;
}
.aa-app .op-modal .au-invite-note__title{
  color:#6452FE !important;
  font:700 13px/1.2 'Plus Jakarta Sans', sans-serif !important;
  margin-bottom:4px !important;
}
.aa-app .op-modal .au-invite-note__text{
  color:#5A607F !important;
  font:400 13px/1.45 'Plus Jakarta Sans', sans-serif !important;
}

/* Modernize-modal — extras для специальных селекторов */
.aa-app .op-modal .aa-mod-reject-title{
  color:#131523 !important;
  font:700 20px/28px 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing:-.005em !important;
  margin:0 0 14px !important;
  padding-right:36px;
}
.aa-app .op-modal .aa-mod-reject-textarea,
.aa-app .op-modal .op-edit-textarea{
  background:#fff !important;
  border:1px solid #D9E1EC !important;
  border-radius:6px !important;
  padding:10px 14px !important;
  font:400 14px/22px 'Plus Jakarta Sans', sans-serif !important;
  color:#131523 !important;
  min-height:80px;
  resize:vertical;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.aa-app .op-modal .aa-mod-reject-textarea:focus,
.aa-app .op-modal .op-edit-textarea:focus{
  border-color:#6452FE !important;
  box-shadow:0 0 0 3px rgba(100,82,254,.16) !important;
  outline:none !important;
}
.aa-app .op-modal .op-edit-error-text{
  color:#F0142F !important;
  font:500 12px/1.4 'Plus Jakarta Sans', sans-serif !important;
  margin-top:6px;
}

/* Reject-modal: красные акценты для destructive variant */
.aa-app .op-modal.op-modal--destructive .aa-mod-reject-title{
  color:#131523 !important;
}

/* Override legacy aa-logout-modal sizes (для icon-variant) */
.aa-app .op-modal.op-modal--icon .aa-logout-modal{
  width:min(440px, 100%) !important;
  max-width:440px !important;
}
/* Скрыть собственную иконку legacy logout (используется mm-icon) */
.aa-app .op-modal.op-modal--icon .aa-logout-modal .aa-logout-modal__icon{ display:none !important; }

/* Modernize-modal — финальная подгонка legacy .acp-modal-* структур */
.aa-app .op-modal .acp-modal-titlebar{
  display:block !important;
  margin:0 0 16px !important;
  padding:0 !important;
}
.aa-app .op-modal .acp-modal-titlebar > div{
  display:block !important;
}
/* Скрываем inline-иконку titlebar — в Figma 0:479/0:491 иконки нет */
.aa-app .op-modal .acp-modal-titlebar__icon{
  display:none !important;
}
/* Для icon-варианта показываем mm-icon (центральная) */
.aa-app .op-modal.op-modal--icon .acp-modal-titlebar{
  text-align:center;
}
.aa-app .op-modal.op-modal--icon .acp-modal-titlebar__icon{
  display:inline-flex !important;
  width:58px !important;
  height:58px !important;
  border-radius:50% !important;
  margin:0 auto 16px !important;
  flex:0 0 58px !important;
}
.aa-app .op-modal.op-modal--icon .acp-modal-titlebar__icon svg{
  width:24px !important;
  height:24px !important;
}

/* Доп. поля/inputs/textarea/labels внутри .acp-modal-card */
.aa-app .op-modal .acp-modal-field{
  margin-bottom:16px;
}
.aa-app .op-modal .acp-modal-field--full{
  grid-column:1 / -1;
}
.aa-app .op-modal .acp-modal-current{
  background:#FAFBFD !important;
  border:1px solid #ECEEF6 !important;
  border-radius:6px;
  padding:10px 14px;
  color:#5A607F;
  font:400 13px/1.4 'Plus Jakarta Sans', sans-serif;
}
.aa-app .op-modal .acp-modal-hint{
  color:#7E84A3 !important;
  font:400 12px/1.4 'Plus Jakarta Sans', sans-serif !important;
  margin:0 0 8px;
}
.aa-app .op-modal .acp-modal-hint.is-error{
  color:#F0142F !important;
}

/* Company-row в balance/block модалках */
.aa-app .op-modal .acp-modal-company{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  margin:0 0 18px;
  background:#FAFBFD;
  border:1px solid #ECEEF6;
  border-radius:8px;
}
.aa-app .op-modal .acp-modal-company__logo{
  width:40px; height:40px;
  border-radius:10px;
  background:#EDE8FF;
  flex-shrink:0;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.aa-app .op-modal .acp-modal-company__logo img{
  width:100%; height:100%; object-fit:cover;
}
.aa-app .op-modal .acp-modal-company__name{
  color:#131523;
  font:600 14px/1.3 'Plus Jakarta Sans', sans-serif;
}
.aa-app .op-modal .acp-modal-company__sub{
  color:#7E84A3;
  font:400 12px/1.3 'Plus Jakarta Sans', sans-serif;
}

/* acp-radio-row (внутри Block modal) */
.aa-app .op-modal .acp-radio-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.aa-app .op-modal .acp-radio{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border:1px solid #D9E1EC;
  border-radius:6px;
  background:#fff;
  color:#5A607F;
  font:500 13px/1 'Plus Jakarta Sans', sans-serif;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease, background .15s ease;
}
.aa-app .op-modal .acp-radio:hover{
  border-color:#C8CBDA;
  color:#131523;
}
.aa-app .op-modal .acp-radio input{
  accent-color:#6452FE;
  margin:0;
}
.aa-app .op-modal .acp-radio:has(input:checked){
  border-color:#6452FE;
  background:rgba(100,82,254,.06);
  color:#6452FE;
}

/* destructive variant — красный акцент на radio */
.aa-app .op-modal.op-modal--destructive .acp-radio input{ accent-color:#F0142F; }
.aa-app .op-modal.op-modal--destructive .acp-radio:has(input:checked){
  border-color:#F0142F;
  background:rgba(240,20,47,.06);
  color:#F0142F;
}

/* checkbox confirm */
.aa-app .op-modal .acp-confirm-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:8px 0 14px;
  color:#5A607F;
  font:400 13px/1.4 'Plus Jakarta Sans', sans-serif;
  cursor:pointer;
}
.aa-app .op-modal .acp-confirm-check input{ accent-color:#6452FE; }
.aa-app .op-modal.op-modal--destructive .acp-confirm-check input{ accent-color:#F0142F; }

/* Upload drop zone (Logo modal) */
.aa-app .op-modal .acp-upload-drop{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:24px;
  border:1.5px dashed #D9E1EC;
  border-radius:8px;
  background:#FAFBFD;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.aa-app .op-modal .acp-upload-drop:hover{
  border-color:#6452FE;
  background:rgba(100,82,254,.04);
}
.aa-app .op-modal .acp-upload-drop__btn{
  color:#6452FE;
  font:600 14px/1 'Plus Jakarta Sans', sans-serif;
}
.aa-app .op-modal .acp-upload-drop__hint{
  color:#7E84A3;
  font:400 13px/1.3 'Plus Jakarta Sans', sans-serif;
}
.aa-app .op-modal .acp-upload-drop__meta{
  color:#A1A7C4;
  font:400 12px/1.3 'Plus Jakarta Sans', sans-serif;
}

/* === Embed (профиль → Аналитика/Финансы): поповер открывается под кнопкой
   Фильтры (внутри iframe), но контейнер dropdown остаётся таким же
   компактным, как и на главных страницах. ===*/
.aa-app--embed .aa-filter-popover{
  position:absolute !important;
  top:46px !important;
  right:0 !important;
  left:auto !important;
  width:280px !important;
  max-width:calc(100% - 16px);
  grid-template-columns:none !important;
}

/* =====================================================================
   Final Modernize Modal Pass — all admin dialogs
   ===================================================================== */
.aa-app .op-modal,
body > .op-modal{
  background: rgba(19,21,35,.42) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}
.aa-app .op-modal .op-confirm-body,
.aa-app .op-modal .op-modal-body,
.aa-app .op-modal .aa-mod-confirm-body,
.aa-app .op-modal .aa-mod-reject-body,
.aa-app .op-modal .au-dialog,
body > .op-modal .op-confirm-body,
body > .op-modal .op-modal-body{
  background: #fff !important;
  border: 1px solid rgba(15,23,42,.06) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 10px rgba(38,44,71,.16) !important;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}
.aa-app .op-modal .op-confirm-body,
.aa-app .op-modal .aa-mod-confirm-body,
.aa-app .op-modal .aa-mod-reject-body,
.aa-app .op-modal .au-dialog:not(.au-access-dialog):not(.au-dialog--invite),
body > .op-modal .op-confirm-body{
  width: min(560px, calc(100vw - 48px)) !important;
  max-width: 560px !important;
  padding: 28px !important;
}
.aa-app .op-modal .op-close,
body > .op-modal .op-close{
  top: 16px !important;
  right: 16px !important;
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #7E84A3 !important;
}
.aa-app .op-modal .op-close:hover,
body > .op-modal .op-close:hover{
  background: rgba(100,82,254,.08) !important;
  color: #6452FE !important;
}
.aa-app .op-modal .op-confirm-text,
.aa-app .op-modal .au-dialog__text,
.aa-app .op-modal .aa-mod-reject-subtitle{
  color: #5A607F !important;
  font: 500 14px/1.55 "Plus Jakarta Sans", system-ui, sans-serif !important;
}
.aa-app .op-modal .op-confirm-title,
.aa-app .op-modal .au-dialog__title,
.aa-app .op-modal .aa-mod-reject-title{
  color: #131523 !important;
  font: 800 20px/1.35 "Plus Jakarta Sans", system-ui, sans-serif !important;
  letter-spacing: -.01em !important;
}
.aa-app .op-modal .op-confirm-actions,
.aa-app .op-modal .aa-mod-confirm-actions{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 14px !important;
  border-top: 0 !important;
  padding-top: 0 !important;
  margin-top: 24px !important;
}
.aa-app .op-modal.op-modal--icon .op-confirm-actions,
.aa-app .op-modal.op-modal--success .op-confirm-actions{
  justify-content: center !important;
}
.aa-app .op-modal .op-confirm-btn,
.aa-app .op-modal .op-confirm-ok,
.aa-app .op-modal .op-confirm-cancel{
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 99px !important;
  height: 40px !important;
  padding: 0 22px !important;
  border-radius: 6px !important;
  font: 600 14px/1 "Plus Jakarta Sans", system-ui, sans-serif !important;
}
.aa-app .op-modal .op-confirm-ok{
  background: #6452FE !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.aa-app .op-modal .op-confirm-ok:hover{
  background: #5642F5 !important;
}
.aa-app .op-modal .op-confirm-cancel{
  background: transparent !important;
  color: #6452FE !important;
  border: 0 !important;
}
.aa-app .op-modal .op-confirm-cancel:hover{
  background: rgba(100,82,254,.08) !important;
  color: #5642F5 !important;
}
.aa-app .op-modal.op-modal--destructive .op-confirm-ok{
  background: #F0142F !important;
}
.aa-app .op-modal.op-modal--destructive .op-confirm-ok:hover{
  background: #D40E26 !important;
}
.aa-app .op-modal.op-modal--destructive .op-confirm-cancel{
  color: #F0142F !important;
}
.aa-app .op-modal.op-modal--destructive .op-confirm-cancel:hover{
  background: rgba(240,20,47,.08) !important;
}
