@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
}

:root,
.assetra-shell {
  --assetra-bg: #F4F6F9;
  --assetra-sidebar: #FFFFFF;
  --assetra-sidebar-muted: #F8F9FB;
  --assetra-panel: #FFFFFF;
  --assetra-table-header: #FAFBFC;
  --assetra-row: #FFFFFF;
  --assetra-row-alt: #F9FAFB;
  --assetra-row-hover: #F3F6FB;
  --assetra-row-selected: #E8F0FF;
  --assetra-border: #E5E9F0;
  --assetra-border-subtle: #EEF1F6;
  --assetra-border-dashed: #D7DEE8;

  --assetra-text: #0F1929;
  --assetra-text-secondary: #374151;
  --assetra-text-muted: #6B7280;
  --assetra-text-dim: #9CA3AF;
  --assetra-text-on-accent: #FFFFFF;
  --assetra-text-link: #4A7FFF;

  --assetra-accent: #4A7FFF;
  --assetra-accent-hover: #3B6FEA;
  --assetra-accent-soft: #E8F0FF;
  --assetra-accent-soft-2: #F0F5FF;
  --assetra-focus-ring: #93B4FF;

  --assetra-ok: #12B76A;
  --assetra-ok-soft: #ECFDF3;
  --assetra-warning: #F79009;
  --assetra-warning-soft: #FFFAEB;
  --assetra-danger: #F04438;
  --assetra-danger-soft: #FEF3F2;
  --assetra-neutral: #98A2B3;
  --assetra-info: #36BFFA;

  --assetra-chart-1: #4A7FFF;
  --assetra-chart-4: #EE46BC;
  --assetra-chart-3: #F79009;
  --assetra-chart-6: #15B79E;

  --assetra-shadow-sm: 0 1px 2px rgba(15, 25, 41, 0.04);
  --assetra-shadow: 0 4px 16px rgba(15, 25, 41, 0.06);
  --assetra-shadow-lg: 0 12px 32px rgba(15, 25, 41, 0.08);
  --assetra-shadow-fab: 0 6px 16px rgba(74, 127, 255, 0.35);

  --assetra-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --assetra-space-2: 8px;
  --assetra-space-3: 12px;
  --assetra-space-4: 16px;
  --assetra-space-5: 24px;
  --assetra-radius-sm: 6px;
  --assetra-radius: 8px;
  --assetra-radius-md: 12px;
  --assetra-radius-lg: 16px;
  --assetra-radius-full: 999px;
  --dash-sidebar-width: 248px;
  --dash-sidebar-collapsed-width: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

.assetra-shell {
  background: var(--assetra-bg);
  color: var(--assetra-text);
  font-family: var(--assetra-font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* Thin sidebar-style scrollbars for all dashboard surfaces (not OMS blotter). */
.assetra-shell,
.assetra-shell * {
  scrollbar-width: thin;
  scrollbar-color: var(--assetra-border) transparent;
}

.assetra-shell:hover,
.assetra-shell:focus-within,
.assetra-shell *:hover,
.assetra-shell *:focus-within {
  scrollbar-color: var(--assetra-text-muted) transparent;
}

.assetra-shell::-webkit-scrollbar,
.assetra-shell *::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.assetra-shell::-webkit-scrollbar-track,
.assetra-shell *::-webkit-scrollbar-track {
  background: transparent;
}

.assetra-shell::-webkit-scrollbar-thumb,
.assetra-shell *::-webkit-scrollbar-thumb {
  background: var(--assetra-border);
  border-radius: 999px;
}

.assetra-shell:hover::-webkit-scrollbar-thumb,
.assetra-shell:focus-within::-webkit-scrollbar-thumb,
.assetra-shell *:hover::-webkit-scrollbar-thumb,
.assetra-shell *:focus-within::-webkit-scrollbar-thumb {
  background: var(--assetra-text-muted);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.is-up {
  color: var(--assetra-ok);
}

.is-down {
  color: var(--assetra-danger);
}

/* —— Shell —— */

.dash-app {
  display: grid;
  grid-template-columns: var(--dash-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.dash-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--assetra-sidebar);
  border-right: 1px solid var(--assetra-border);
  padding: 20px 16px 24px;
}

.dash-nav {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  margin-right: -10px;
  padding-right: 10px;
  margin-bottom: 8px;
}

.dash-content.is-soft-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.dash-sidebar-footer {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--assetra-border-subtle);
}

.dash-nav-link--exit {
  color: var(--assetra-danger);
}

.dash-nav-link--exit:hover {
  background: var(--assetra-danger-soft);
  color: var(--assetra-danger);
}

.dash-setup-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.dash-setup-trigger[aria-expanded="true"],
.dash-setup-trigger.is-active {
  background: var(--assetra-accent-soft);
  color: var(--assetra-accent);
  font-weight: 600;
}

.dash-setup-trigger[aria-expanded="true"] i,
.dash-setup-trigger.is-active i {
  color: var(--assetra-accent);
}

.dash-sidebar-header {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 4px 0 18px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  padding: 0 8px;
}

.dash-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: var(--assetra-radius-sm);
  color: var(--assetra-text-muted);
  transition: background 120ms ease, color 120ms ease;
}

.dash-sidebar-toggle:hover {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.dash-sidebar-toggle:focus-visible {
  outline: 2px solid var(--assetra-focus-ring);
  outline-offset: 1px;
}

.dash-sidebar-toggle i {
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dash-brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--assetra-accent);
  line-height: 0;
}

.dash-brand-mark-svg {
  display: block;
  width: auto;
  height: auto;
}

.dash-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-brand-name--intro {
  position: relative;
  display: inline-grid;
  align-items: center;
  overflow: hidden;
  min-height: 1.2em;
  vertical-align: middle;
}

.dash-brand-name-layer {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.dash-brand-name-layer--from {
  opacity: 1;
  transform: translateX(0);
}

.dash-brand-name-layer--to {
  opacity: 0;
  transform: translateX(14px);
}

.dash-brand-name--intro.is-playing .dash-brand-name-layer--from {
  animation: assetra-brand-slide-out 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.dash-brand-name--intro.is-playing .dash-brand-name-layer--to {
  animation: assetra-brand-slide-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

.dash-brand-name--intro.is-done .dash-brand-name-layer--from {
  display: none;
}

.dash-brand-name--intro.is-done .dash-brand-name-layer--to {
  opacity: 1;
  transform: none;
}

@keyframes assetra-brand-slide-out {
  to {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes assetra-brand-slide-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-brand-name--intro.is-playing .dash-brand-name-layer--from,
  .dash-brand-name--intro.is-playing .dash-brand-name-layer--to {
    animation: none;
  }

  .dash-brand-name--intro .dash-brand-name-layer--from {
    display: none;
  }

  .dash-brand-name--intro .dash-brand-name-layer--to {
    opacity: 1;
    transform: none;
  }
}

.dash-entity-wrap {
  position: relative;
  margin-bottom: 20px;
}

.dash-entity-wrap>summary {
  list-style: none;
}

.dash-entity-wrap>summary::-webkit-details-marker {
  display: none;
}

.dash-entity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 0;
  padding: 8px 10px;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-md);
  background: var(--assetra-sidebar-muted);
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease;
}

.dash-entity:hover {
  background: var(--assetra-row-hover);
}

.dash-entity-wrap[open] .dash-entity {
  background: var(--assetra-row-selected);
}

.dash-entity-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--assetra-radius-full);
  background: var(--assetra-accent-soft);
  color: var(--assetra-accent);
  font-size: 11px;
  font-weight: 700;
}

.dash-entity-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.dash-entity-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  color: var(--assetra-text);
  line-height: 1.25;
}

.dash-entity-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--assetra-text-muted);
  line-height: 1.25;
}

.dash-entity-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  padding: 8px;
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-md);
  box-shadow: var(--assetra-shadow-lg);
}

.dash-entity-menuitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--assetra-radius);
  background: transparent;
  color: var(--assetra-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}

.dash-entity-menuitem:hover:not([aria-disabled="true"]):not(:disabled) {
  background: var(--assetra-row-hover);
}

.dash-entity-menuitem[aria-disabled="true"],
.dash-entity-menuitem:disabled {
  cursor: default;
  opacity: 0.72;
}

.dash-entity-menuitem--submenu i {
  color: var(--assetra-text-dim);
  font-size: 11px;
}

.dash-entity-menuitem--danger {
  color: var(--assetra-danger);
}

.dash-entity-menuitem--danger:hover:not([aria-disabled="true"]):not(:disabled) {
  background: var(--assetra-danger-soft);
  color: var(--assetra-danger);
}

.dash-nav-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 16px 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--assetra-text-dim);
}

.dash-nav-label-hint {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--assetra-text-muted);
  opacity: 0.85;
}

.dash-nav-label-hint::before {
  content: "(";
}

.dash-nav-label-hint::after {
  content: ")";
}

.dash-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-nav-bracket {
  position: relative;
  margin: 18px 2px 8px;
  padding: 16px 6px 8px;
  border: 1px solid color-mix(in srgb, var(--assetra-warning) 42%, var(--assetra-border));
  border-radius: var(--assetra-radius-md);
  background: color-mix(in srgb, var(--assetra-warning-soft) 70%, var(--assetra-sidebar));
}

.dash-nav-bracket .dash-nav-label {
  margin: 2px 8px 6px;
}

.dash-nav-alert {
  position: absolute;
  top: 0;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 2px 8px 2px 7px;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--assetra-warning) 42%, var(--assetra-border));
  border-radius: 999px;
  background: var(--assetra-warning-soft);
  color: var(--assetra-text);
}

.dash-nav-alert-pulse {
  position: relative;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--assetra-warning);
}

.dash-nav-alert-pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid var(--assetra-warning);
  opacity: 0.55;
  animation: dash-nav-alert-ping 1.8s ease-out infinite;
}

.dash-nav-alert-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

@keyframes dash-nav-alert-ping {
  0% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-nav-alert-pulse::after {
    animation: none;
  }
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--assetra-radius-md);
  color: var(--assetra-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  position: relative;
  transition: background 120ms ease, color 120ms ease;
}

.dash-nav-link i {
  width: 18px;
  text-align: center;
  color: var(--assetra-text-muted);
  font-size: 14px;
}

.dash-nav-link:hover:not(.is-disabled) {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.dash-nav-link.is-active {
  background: var(--assetra-accent-soft);
  color: var(--assetra-accent);
  font-weight: 600;
}

.dash-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--assetra-accent);
}

.dash-nav-link.is-active i {
  color: var(--assetra-accent);
}

.dash-nav-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dash-nav-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.dash-nav-toggle:focus-visible {
  outline: 2px solid var(--assetra-focus-ring);
  outline-offset: -2px;
}

.has-active-child > .dash-nav-toggle {
  color: var(--assetra-accent);
}

.dash-nav-toggle .dash-nav-chevron {
  margin-left: auto;
  font-size: 10px;
}

.dash-nav-toggle[aria-expanded="true"] .dash-nav-chevron {
  transform: rotate(90deg);
}

.dash-nav-sublist[hidden] {
  display: none;
}

.dash-nav-sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 20px;
  padding: 0 0 0 12px;
  list-style: none;
  border-left: 1px solid var(--assetra-border-subtle);
}

.dash-nav-link--sub {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12.5px;
}

.dash-nav-link--sub i {
  font-size: 12px;
}

/* Collapsed icon-rail (desktop only) */
@media (min-width: 821px) {
  /* Override both :root and body.assetra-shell token scopes */
  html.dash-sidebar-collapsed,
  html.dash-sidebar-collapsed .assetra-shell {
    --dash-sidebar-width: var(--dash-sidebar-collapsed-width);
  }

  html.dash-sidebar-collapsed .dash-sidebar {
    padding: 16px 8px 20px;
  }

  html.dash-sidebar-collapsed .dash-sidebar-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
  }

  html.dash-sidebar-collapsed .dash-brand {
    justify-content: center;
    padding: 0;
    flex: 0;
  }

  html.dash-sidebar-collapsed .dash-brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  html.dash-sidebar-collapsed .dash-sidebar-toggle {
    margin-top: 0;
  }

  html.dash-sidebar-collapsed .dash-entity-wrap {
    margin-bottom: 12px;
  }

  html.dash-sidebar-collapsed .dash-entity {
    justify-content: center;
    gap: 0;
    padding: 6px;
  }

  html.dash-sidebar-collapsed .dash-entity-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  html.dash-sidebar-collapsed .dash-nav {
    margin-right: 0;
    padding-right: 0;
  }

  html.dash-sidebar-collapsed .dash-nav-bracket {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  html.dash-sidebar-collapsed .dash-nav-alert {
    position: static;
    justify-content: center;
    transform: none;
    margin: 8px 0 2px;
    padding: 8px;
    background: transparent;
    border-color: transparent;
  }

  html.dash-sidebar-collapsed .dash-nav-alert-text,
  html.dash-sidebar-collapsed .dash-nav-label,
  html.dash-sidebar-collapsed .dash-nav-label-hint,
  html.dash-sidebar-collapsed .dash-nav-chevron,
  html.dash-sidebar-collapsed .dash-nav-link > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  html.dash-sidebar-collapsed .dash-nav-sublist {
    display: none !important;
  }

  html.dash-sidebar-collapsed .dash-nav-link {
    justify-content: center;
    gap: 0;
    padding: 8px;
  }

  html.dash-sidebar-collapsed .dash-nav-link.is-active::before {
    top: 6px;
    bottom: 6px;
  }

  html.dash-sidebar-collapsed .dash-sidebar-footer .dash-nav-link {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .dash-sidebar-toggle {
    display: none;
  }
}

.dash-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 8px;
}

.dash-page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-icon-btn,
.dash-circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--assetra-radius-full);
  color: var(--assetra-text-muted);
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  box-shadow: var(--assetra-shadow-sm);
  transition: background 120ms ease, color 120ms ease;
}

.dash-icon-btn:hover,
.dash-circle-btn:hover {
  background: var(--assetra-accent-soft-2);
  color: var(--assetra-accent);
}

.dash-circle-btn {
  width: 32px;
  height: 32px;
  background: var(--assetra-accent-soft-2);
  border-color: transparent;
  color: var(--assetra-accent);
}

.dash-range-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--assetra-radius);
  border: 1px solid var(--assetra-border);
  background: var(--assetra-panel);
  box-shadow: var(--assetra-shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--assetra-text-secondary);
}

.dash-range-chip i {
  font-size: 10px;
  color: var(--assetra-text-dim);
}

.dash-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--assetra-radius-full);
  background: var(--assetra-accent);
  color: var(--assetra-text-on-accent);
  box-shadow: var(--assetra-shadow-fab);
  transition: background 120ms ease, transform 120ms ease;
}

.dash-fab:hover {
  background: var(--assetra-accent-hover);
  transform: translateY(-1px);
}

.dash-content {
  padding: 8px 28px 32px;
}

.dash-content.is-report-loading {
  position: relative;
  min-height: 640px;
}

.dash-content.is-report-loading > :not(.report-skeleton) {
  visibility: hidden;
  pointer-events: none;
}

.report-skeleton {
  position: absolute;
  inset: 16px 20px 20px;
}

.report-skeleton[hidden] {
  display: none;
}

.report-skeleton__block {
  position: relative;
  overflow: hidden;
  background: #e5eaf1;
  border-radius: 4px;
}

.report-skeleton__block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: translateX(-100%);
  animation: report-skeleton-shimmer 1.6s ease-in-out infinite;
}

.report-skeleton__page {
  padding: 16px 16px 20px;
  min-height: calc(100vh - 24px);
  background: var(--assetra-accent-soft-2);
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-lg);
}

.report-skeleton__header {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) auto minmax(420px, 1.6fr);
  gap: 16px 20px;
  align-items: start;
  margin-bottom: 12px;
}

.report-skeleton__body {
  display: grid;
  grid-template-columns: minmax(250px, 0.26fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.report-skeleton__column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.report-skeleton__panel {
  min-width: 0;
  padding: 8px 10px 10px;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: var(--assetra-panel);
  box-shadow: var(--assetra-shadow-sm);
}

.report-skeleton__heading { width: 90%; height: 30px; }
.report-skeleton__subtitle { width: 55%; height: 14px; margin-top: 6px; }
.report-skeleton__label { width: 75%; height: 10px; }
.report-skeleton__number { width: 48px; height: 22px; }
.report-skeleton__section-title { width: 55%; max-width: 220px; height: 13px; margin-bottom: 12px; }
.report-skeleton__counts { display: flex; gap: 8px; }
.report-skeleton__count { min-width: 92px; display: grid; justify-items: center; gap: 8px; }
.report-skeleton__count .report-skeleton__label { width: 68px; }
.report-skeleton__filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.report-skeleton__select { height: 30px; margin-top: 6px; }
.report-skeleton__pie { width: 156px; height: 156px; border-radius: 50%; margin: 20px auto; }
.report-skeleton__legend { width: 75%; height: 10px; margin: 0 auto 8px; }
.report-skeleton__bar-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; margin: 12px 0; }
.report-skeleton__bar { height: 10px; width: 92%; }
.report-skeleton__bar-row:nth-child(3n) .report-skeleton__bar { width: 64%; }
.report-skeleton__bar-row:nth-child(3n + 1) .report-skeleton__bar { width: 42%; }
.report-skeleton__formula { display: flex; flex-wrap: wrap; gap: 6px; }
.report-skeleton__formula-box { width: 84px; padding: 6px 10px; border: 1px solid var(--assetra-border); display: grid; gap: 6px; justify-items: center; }
.report-skeleton__formula-box .report-skeleton__label { width: 54px; }

.report-skeleton__row,
.report-skeleton__table-head {
  display: grid;
  grid-template-columns: 2fr repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--assetra-border);
}

.report-skeleton__table-head { background: var(--assetra-accent-soft-2); }
.report-skeleton__cell { height: 10px; }
.report-skeleton__row:nth-child(even) .report-skeleton__cell { width: 75%; }
.report-skeleton__row:last-child { border-bottom: 0; }

@keyframes report-skeleton-shimmer {
  to { transform: translateX(100%); }
}

@media (max-width: 1400px) {
  .report-skeleton__header,
  .report-skeleton__body { grid-template-columns: 1fr; }
  .report-skeleton__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .report-skeleton { left: 12px; right: 12px; }
  .report-skeleton__page { padding: 12px; }
  .report-skeleton__counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-skeleton__count { min-width: 0; padding: 8px 4px; }
  .report-skeleton__count .report-skeleton__label { width: 85%; }
  .report-skeleton__row,
  .report-skeleton__table-head { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .report-skeleton__block::after { animation: none; }
}

/* —— Home —— */

.dash-home {
  position: relative;
}

.dash-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--assetra-radius-full);
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  box-shadow: var(--assetra-shadow-lg);
  font-size: 12px;
  font-weight: 600;
  color: var(--assetra-text-secondary);
}

.dash-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dash-pill--review .dash-pill-dot {
  background: var(--assetra-chart-4);
}

.dash-pill--owned .dash-pill-dot {
  background: var(--assetra-chart-3);
}

.dash-pill--proposed .dash-pill-dot {
  background: var(--assetra-chart-6);
}

.dash-pill-count {
  color: var(--assetra-text);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.dash-side-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-card {
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-lg);
  box-shadow: var(--assetra-shadow);
  padding: 20px 22px;
}

.dash-card--hero {
  padding-bottom: 12px;
}

.dash-card-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--assetra-text-muted);
}

.dash-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dash-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}

.dash-hero-total {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dash-hero-change {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.dash-hero-pct {
  font-weight: 600;
}

.dash-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  padding-top: 4px;
}

.dash-meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.dash-meta-label {
  font-size: 11px;
  color: var(--assetra-text-muted);
}

.dash-meta-value {
  font-size: 13px;
  font-weight: 600;
}

.dash-chart-wrap {
  position: relative;
  height: 220px;
  margin: 8px 0 4px;
}

.dash-chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dash-chart-tooltip {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: var(--assetra-radius);
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  box-shadow: var(--assetra-shadow-lg);
  font-size: 12px;
  font-weight: 600;
  color: var(--assetra-text);
  white-space: nowrap;
  transform: translate(-50%, -120%);
}

.dash-chart-tooltip span {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: var(--assetra-text-muted);
}

.dash-subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--assetra-border-subtle);
  margin-top: 4px;
}

.dash-subtab {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--assetra-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dash-subtab.is-active {
  color: var(--assetra-text);
  font-weight: 600;
  border-bottom-color: var(--assetra-accent);
}

.dash-tab-panel {
  padding-top: 12px;
}

.dash-tab-panel[hidden] {
  display: none;
}

.dash-movers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-mover {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) minmax(0, 1fr) minmax(72px, auto);
  align-items: center;
  gap: 12px;
}

.dash-mover-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--assetra-text-secondary);
}

.dash-mover-acct {
  font-size: 11px;
  font-weight: 400;
  color: var(--assetra-text-muted);
}

.dash-mover-bar {
  height: 8px;
  border-radius: var(--assetra-radius-full);
  background: var(--assetra-border-subtle);
  overflow: hidden;
}

.dash-mover-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--assetra-accent);
}

.dash-mover-pct {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

.dash-empty {
  margin: 8px 0 16px;
  color: var(--assetra-text-muted);
  font-size: 13px;
}

.dash-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 72px;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--assetra-border-dashed);
  font-size: 11px;
  font-weight: 500;
  color: var(--assetra-text-muted);
  text-align: right;
}

.dash-table-head span:first-child {
  text-align: left;
}

.dash-portfolio-list {
  display: flex;
  flex-direction: column;
}

.dash-portfolio-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--assetra-border-subtle);
  font-size: 13px;
}

.dash-portfolio-row:last-child {
  border-bottom: 0;
}

.dash-portfolio-label {
  font-weight: 500;
  color: var(--assetra-text-secondary);
}

.dash-portfolio-value {
  text-align: right;
  font-weight: 600;
}

.dash-portfolio-return {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

.dash-cash {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.dash-donut-wrap {
  width: 160px;
  height: 160px;
}

.dash-donut-wrap canvas {
  width: 100%;
  height: 100%;
}

.dash-cash-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.dash-cash-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
}

.dash-cash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dash-cash-name {
  color: var(--assetra-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-cash-amt {
  font-weight: 600;
}

.dash-cash-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--assetra-border);
  grid-template-columns: minmax(0, 1fr) auto;
}

.dash-cash-total .dash-cash-name {
  font-weight: 700;
  color: var(--assetra-text);
}

.dash-cash-total .dash-cash-amt {
  font-weight: 700;
}

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

  .dash-hero-head {
    flex-direction: column;
  }

  .dash-hero-meta {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .dash-meta-item {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  .dash-app {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    position: relative;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--assetra-border);
  }

  .dash-content,
  .dash-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dash-cash {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dash-mover {
    grid-template-columns: 100px minmax(0, 1fr) 56px;
  }
}

.dash-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--assetra-text);
}

.dash-account-email {
  margin-top: 2px;
  font-size: 12px;
  color: var(--assetra-text-muted);
}

.dash-account-signout {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--assetra-border-subtle);
  color: var(--assetra-text-link);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.dash-account-signout:hover {
  color: var(--assetra-accent-hover);
}

.dash-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 25, 41, 0.36);
  z-index: 40;
}

.dash-dialog[hidden] {
  display: none;
}

.dash-dialog-card {
  width: min(400px, calc(100vw - 32px));
  padding: 24px;
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-lg);
  box-shadow: var(--assetra-shadow-lg);
}

.dash-dialog-title {
  margin: 0 0 8px;
  color: var(--assetra-text);
  font-size: 16px;
  font-weight: 600;
}

.dash-dialog-text {
  margin: 0 0 20px;
  color: var(--assetra-text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.dash-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dash-dialog-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: var(--assetra-radius);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.dash-dialog-btn-secondary {
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  color: var(--assetra-text);
}

.dash-dialog-btn-secondary:hover {
  background: var(--assetra-row-hover);
}

.dash-dialog-btn-primary {
  background: var(--assetra-accent);
  border: 1px solid transparent;
  color: var(--assetra-text-on-accent);
}

.dash-dialog-btn-primary:hover {
  background: var(--assetra-accent-hover);
}

.assetra-shell.auth-shell {
  --auth-motion-duration: 350ms;
  --auth-motion-ease: cubic-bezier(0.1, 0.9, 0.2, 1);
  --auth-motion-distance: 40px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--assetra-bg);
}

.assetra-shell.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    image-set(url("../static_images/hongkong-bg.webp") type("image/webp"),
      url("../static_images/hongkong-bg.jpg") type("image/jpeg")) center center / cover no-repeat;
  opacity: 0.68;
  pointer-events: none;
}

.assetra-shell.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 720px at 12% 18%, var(--assetra-ok-soft) 0%, transparent 52%),
    radial-gradient(980px 640px at 88% 12%, var(--assetra-accent-soft) 0%, transparent 58%),
    radial-gradient(860px 560px at 72% 92%, var(--assetra-warning-soft) 0%, transparent 50%),
    linear-gradient(180deg,
      rgba(244, 246, 249, 0.55) 0%,
      rgba(244, 246, 249, 0.42) 48%,
      rgba(244, 246, 249, 0.62) 100%);
  pointer-events: none;
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.auth-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 338px;
  padding: 44px;
  background: var(--assetra-panel);
  border: 0;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(15, 25, 41, 0.16), 0 0 0 1px rgba(15, 25, 41, 0.04);
  animation: auth-card-in 420ms var(--auth-motion-ease) both;
}

.auth-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 3px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms linear;
}

.auth-card.is-loading .auth-progress {
  opacity: 1;
}

.auth-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 38%;
  background: var(--assetra-accent);
  transform: translateX(-100%);
}

.auth-card.is-loading .auth-progress-bar {
  animation: auth-progress-slide 1.55s infinite var(--auth-motion-ease);
}

.auth-card.is-loading .auth-progress-bar.is-delayed {
  width: 22%;
  opacity: 0.45;
  animation-duration: 1.9s;
  animation-delay: 0.4s;
}

@keyframes auth-progress-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(380%);
  }
}

.auth-brand {
  margin: 0;
  padding: 0;
  gap: 8px;
}

.auth-brand .dash-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--assetra-text-muted);
}

.auth-form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.auth-viewport {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  transition: height var(--auth-motion-duration) var(--auth-motion-ease);
}

.auth-step {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 250px;
}

.auth-step[hidden] {
  display: none !important;
}

.auth-step.is-layered {
  position: absolute;
  inset: 0;
  flex: none;
  min-height: 0;
}

.auth-step.is-measuring {
  visibility: hidden;
  pointer-events: none;
}

.auth-step.is-leave-forward,
.auth-step.is-leave-back {
  pointer-events: none;
}

.auth-step.is-enter-forward {
  animation: auth-enter-forward var(--auth-motion-duration) var(--auth-motion-ease) both;
}

.auth-step.is-leave-forward {
  animation: auth-leave-forward var(--auth-motion-duration) var(--auth-motion-ease) both;
}

.auth-step.is-enter-back {
  animation: auth-enter-back var(--auth-motion-duration) var(--auth-motion-ease) both;
}

.auth-step.is-leave-back {
  animation: auth-leave-back var(--auth-motion-duration) var(--auth-motion-ease) both;
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes auth-enter-forward {
  from {
    opacity: 0;
    transform: translate3d(var(--auth-motion-distance), 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes auth-leave-forward {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(calc(var(--auth-motion-distance) * -1), 0, 0);
  }
}

@keyframes auth-enter-back {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--auth-motion-distance) * -1), 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes auth-leave-back {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(var(--auth-motion-distance), 0, 0);
  }
}

.auth-title {
  margin: 16px 0 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--assetra-text);
}

.auth-account-list {
  margin-top: 16px;
}

.auth-account-row {
  display: flex;
  align-items: center;
}

.auth-account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  color: var(--assetra-text);
  text-align: left;
  font-size: 14px;
}

.auth-account:hover,
.auth-account-remove:hover {
  background: var(--assetra-row-hover);
}

.auth-account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--assetra-bg);
  color: var(--assetra-text-secondary);
  font-size: 20px;
}

.auth-account-email {
  overflow-wrap: anywhere;
}

.auth-account-remove {
  flex: 0 0 44px;
  height: 44px;
  color: var(--assetra-text-muted);
}

.auth-account:focus-visible,
.auth-account-remove:focus-visible {
  outline: 2px solid var(--assetra-accent);
  outline-offset: 2px;
}

.auth-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  max-width: 100%;
  color: var(--assetra-text-secondary);
  text-align: left;
}

.auth-identity:hover .auth-back {
  background: var(--assetra-row-hover);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-full);
  color: var(--assetra-text-muted);
}

.auth-identity-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.auth-error {
  margin: 12px 0 0;
  padding: 0;
  background: none;
  color: var(--assetra-danger);
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
}

.auth-notice {
  margin: 12px 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--assetra-radius-md);
  border: 1px solid var(--assetra-border);
  background: var(--assetra-bg);
  color: var(--assetra-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
}

.auth-input {
  width: 100%;
  height: 36px;
  margin: 16px 0 0;
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 1px solid var(--assetra-text-muted);
  border-radius: 0;
  background: transparent;
  color: var(--assetra-text);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 180ms var(--auth-motion-ease),
    box-shadow 180ms var(--auth-motion-ease),
    padding-bottom 180ms var(--auth-motion-ease);
}

.auth-input::placeholder {
  color: var(--assetra-text-dim);
}

.auth-input:focus {
  outline: none;
  border-bottom-width: 2px;
  border-bottom-color: var(--assetra-accent);
  padding-bottom: 7px;
}

.auth-step.is-invalid .auth-input,
.auth-step.is-invalid .auth-input:focus {
  border-bottom-color: var(--assetra-danger);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--assetra-text-secondary);
  font-size: 13px;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 48px;
}

.auth-actions-split {
  justify-content: space-between;
  align-items: center;
}

.auth-submit {
  min-width: 108px;
  height: 32px;
  padding: 0 20px;
  border-radius: 0;
  background: var(--assetra-accent);
  color: var(--assetra-text-on-accent);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 120ms var(--auth-motion-ease);
}

.auth-submit:hover {
  background: var(--assetra-accent-hover);
}

.auth-submit:disabled {
  opacity: 0.72;
  cursor: default;
}

.auth-submit:focus-visible,
.auth-identity:focus-visible {
  outline: 2px solid var(--assetra-focus-ring);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 28px;
  }
}

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

  .auth-card,
  .auth-step.is-enter-forward,
  .auth-step.is-leave-forward,
  .auth-step.is-enter-back,
  .auth-step.is-leave-back {
    animation: none !important;
  }

  .auth-viewport,
  .auth-input,
  .auth-submit,
  .auth-progress {
    transition: none !important;
  }

  .auth-card.is-loading .auth-progress-bar {
    animation: none;
    width: 100%;
    transform: none;
    opacity: 1;
  }
}

/* ---- Settings slide-out panel ---- */

.settings-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}

.settings-panel.is-open,
.settings-panel.is-closing {
  pointer-events: auto;
  visibility: visible;
}

.settings-panel-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 25, 41, 0.28);
  cursor: pointer;
  opacity: 0;
  transition: opacity 240ms ease;
}

.settings-panel.is-open .settings-panel-backdrop {
  opacity: 1;
}

.settings-panel-drawer {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(280px, 88vw);
  height: 100%;
  background: var(--assetra-panel);
  border-right: 1px solid var(--assetra-border);
  box-shadow: var(--assetra-shadow-lg);
  transform: translateX(-100%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  outline: none;
}

.settings-panel.is-open .settings-panel-drawer {
  transform: translateX(0);
}

.settings-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--assetra-border-subtle);
}

.settings-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--assetra-text);
}

.settings-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--assetra-radius-md);
  background: transparent;
  color: var(--assetra-text-muted);
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}

.settings-panel-close:hover {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.settings-panel-nav {
  padding: 12px 10px 20px;
}

.settings-panel-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-panel-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--assetra-radius-md);
  color: var(--assetra-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}

.settings-panel-link i {
  width: 18px;
  text-align: center;
  color: var(--assetra-text-muted);
  font-size: 14px;
}

.settings-panel-link:hover {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.settings-panel-link.is-active {
  background: var(--assetra-accent-soft);
  color: var(--assetra-accent);
  font-weight: 600;
}

.settings-panel-link.is-active i {
  color: var(--assetra-accent);
}

body.settings-panel-open {
  overflow: hidden;
}

/* ---- Setup pages ---- */

.setup-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: none;
}

.setup-flash {
  padding: 12px 14px;
  border-radius: var(--assetra-radius-md);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

.setup-flash--ok {
  background: var(--assetra-ok-soft);
  color: var(--assetra-ok);
  border: 1px solid #a6f4c5;
}

.setup-flash--error {
  background: var(--assetra-danger-soft);
  color: var(--assetra-danger);
  border: 1px solid #fecdca;
}

.setup-flash-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 650;
  color: inherit;
}

.setup-flash-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  list-style: disc;
}

.setup-flash-list li {
  margin: 0;
  padding: 1px 0;
  font-weight: 500;
  color: inherit;
}

.setup-flash-list li + li {
  margin-top: 2px;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.setup-grid > .setup-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.setup-grid > .setup-card > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.setup-card {
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-lg);
  box-shadow: var(--assetra-shadow-sm);
  padding: 20px;
}

.setup-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.setup-card-header .setup-actions {
  flex-shrink: 0;
  margin-top: 0;
}

.setup-card-header .setup-card-desc {
  margin-bottom: 0;
}

.setup-card-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--assetra-text);
}

.setup-card-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--assetra-text-muted);
}

.dash-dialog-card--form {
  width: min(440px, calc(100vw - 32px));
}

.setup-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.setup-dialog-header .dash-dialog-title {
  margin-bottom: 4px;
}

.setup-dialog-desc {
  margin: 0;
  font-size: 13px;
  color: var(--assetra-text-muted);
  line-height: 1.45;
}

.setup-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -4px -4px 0 0;
  border: none;
  border-radius: var(--assetra-radius);
  background: transparent;
  color: var(--assetra-text-muted);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.setup-dialog-close:hover {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.setup-actions--end {
  justify-content: flex-end;
}

.setup-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 12px;
}

.setup-search-input {
  flex: 1 1 220px;
  max-width: 360px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: #fff;
  color: var(--assetra-text);
  font: inherit;
  font-size: 13.5px;
}

.setup-search-input:focus {
  outline: 2px solid var(--assetra-focus-ring);
  outline-offset: 1px;
  border-color: var(--assetra-accent);
}

.setup-search-count {
  font-size: 12px;
  color: var(--assetra-text-muted);
  white-space: nowrap;
}

.setup-staff-banned-toggle {
  margin-left: auto;
}

.setup-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.setup-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.setup-table-wrap {
  overflow: auto;
}

.setup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.setup-table th,
.setup-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--assetra-border-subtle);
  vertical-align: middle;
}

.setup-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--assetra-text-muted);
  background: var(--assetra-table-header);
}

.setup-table tbody tr:hover {
  background: var(--assetra-row-hover);
}

.setup-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--assetra-text-muted);
  font-size: 13.5px;
}

.setup-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--assetra-radius-full);
  font-size: 11px;
  font-weight: 600;
}

.setup-pill--admin {
  background: var(--assetra-accent-soft);
  color: var(--assetra-accent);
}

.setup-pill--staff {
  background: var(--assetra-sidebar-muted);
  color: var(--assetra-text-secondary);
  border: 1px solid var(--assetra-border);
}

.setup-pill--muted {
  background: var(--assetra-row-alt);
  color: var(--assetra-text-muted);
}

.setup-pill--danger {
  background: var(--assetra-danger-soft);
  color: var(--assetra-danger);
}

.setup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setup-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--assetra-text-secondary);
}

.setup-field input,
.setup-field select,
.setup-field textarea {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: #fff;
  color: var(--assetra-text);
  font: inherit;
  font-size: 13.5px;
}

.setup-field textarea {
  min-height: 72px;
  resize: vertical;
}

.setup-field input:focus,
.setup-field select:focus,
.setup-field textarea:focus {
  outline: 2px solid var(--assetra-focus-ring);
  outline-offset: 1px;
  border-color: var(--assetra-accent);
}

.setup-field-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--assetra-text-muted);
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.setup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--assetra-radius);
  border: 1px solid transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.setup-btn--primary {
  background: var(--assetra-accent);
  color: var(--assetra-text-on-accent);
}

.setup-btn--primary:hover {
  background: var(--assetra-accent-hover);
}

.setup-btn--ghost {
  background: transparent;
  border-color: var(--assetra-border);
  color: var(--assetra-text-secondary);
}

.setup-btn--ghost:hover {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.setup-btn--danger {
  background: transparent;
  border-color: #fecdca;
  color: var(--assetra-danger);
}

.setup-btn--danger:hover {
  background: var(--assetra-danger-soft);
}

.setup-btn--sm {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.setup-role-edit {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--assetra-border-subtle);
}

.setup-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
}

.setup-placeholder-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--assetra-text-dim);
}

.setup-placeholder-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--assetra-text);
}

.setup-placeholder-copy {
  margin: 0;
  max-width: 42ch;
  font-size: 14px;
  color: var(--assetra-text-muted);
}

.setup-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.setup-input,
.setup-select {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: #fff;
  color: var(--assetra-text);
  font: inherit;
  font-size: 13px;
}

.setup-map-select + .select2-container {
  width: 100% !important;
  min-width: 240px;
  max-width: 420px;
  font-size: 13px;
}

.setup-map-select + .select2-container .select2-selection--multiple {
  min-height: 34px;
  padding: 3px 6px;
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: #fff;
}

.setup-map-select + .select2-container.select2-container--focus .select2-selection--multiple,
.setup-map-select + .select2-container.select2-container--open .select2-selection--multiple {
  border-color: var(--assetra-accent);
  outline: 2px solid var(--assetra-focus-ring);
  outline-offset: 1px;
}

.setup-map-select + .select2-container .select2-selection--multiple .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
}

.setup-map-select + .select2-container .select2-selection--multiple .select2-selection__choice {
  margin: 0;
  padding: 1px 6px;
  border: 0;
  border-radius: var(--assetra-radius-sm);
  background: var(--assetra-accent-soft);
  color: var(--assetra-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.setup-map-select + .select2-container .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 4px;
  color: var(--assetra-text-muted);
  font-weight: 700;
}

.setup-map-select + .select2-container .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: var(--assetra-danger);
}

.setup-map-select + .select2-container .select2-search--inline .select2-search__field {
  margin-top: 0;
  height: 22px;
  font: inherit;
  font-size: 13px;
  color: var(--assetra-text);
}

.setup-map-select + .select2-container .select2-search--inline .select2-search__field::placeholder {
  color: var(--assetra-text-dim);
}

.setup-map-row:has(.setup-map-select option:checked) .setup-map-name {
  color: var(--assetra-ok);
}

.setup-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--assetra-text-secondary);
}

.setup-plain-list {
  margin: 0;
  padding: 0 20px 16px;
  list-style: disc;
  color: var(--assetra-text);
}

.setup-plain-list li {
  margin: 0 0 8px;
}

.setup-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

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

@media (prefers-reduced-motion: reduce) {
  .settings-panel-backdrop,
  .settings-panel-drawer {
    transition: none !important;
  }

  .settings-panel-drawer {
    will-change: auto;
  }
}

/* —— Setup Settings (config) —— */

.settings-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-nav {
  background: var(--assetra-panel);
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius-lg);
  box-shadow: var(--assetra-shadow-sm);
  padding: 14px 12px;
}

.settings-nav-group {
  margin: 12px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--assetra-text-dim);
}

.settings-nav-group:first-child {
  margin-top: 0;
}

.settings-nav-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.settings-nav-link {
  display: block;
  padding: 9px 10px;
  border-radius: var(--assetra-radius-md);
  color: var(--assetra-text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.settings-nav-link:hover {
  background: var(--assetra-row-hover);
  color: var(--assetra-text);
}

.settings-nav-link.is-active {
  background: var(--assetra-row-selected);
  color: var(--assetra-accent);
}

.settings-panel-main .setup-card-desc code,
.settings-field-hint code,
.settings-kv code {
  font-size: 12px;
  color: var(--assetra-text-muted);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--assetra-text-secondary);
}

.settings-field-hint {
  font-size: 12px;
  color: var(--assetra-text-dim);
  line-height: 1.45;
  word-break: break-all;
}

.settings-field-hint--error {
  color: var(--assetra-danger, #dc2626);
}

.setup-input--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.settings-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.settings-status-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.settings-kv {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}

.settings-kv > div {
  display: contents;
}

.settings-kv dt {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--assetra-text-muted);
}

.settings-inline-hint {
  display: inline;
  margin: 0 0 0 8px;
}

.settings-kv dd {
  margin: 0;
  font-size: 13px;
  color: var(--assetra-text);
  word-break: break-all;
}

.settings-subhead {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--assetra-text-secondary);
}

.settings-perm-table th:nth-child(3),
.settings-perm-table th:nth-child(4),
.settings-perm-table th:nth-child(5),
.settings-perm-table td:nth-child(3),
.settings-perm-table td:nth-child(4),
.settings-perm-table td:nth-child(5) {
  text-align: center;
  width: 3.5rem;
}

.settings-perm {
  font-size: 12px;
  font-weight: 600;
}

.settings-perm--yes {
  color: var(--assetra-success, #16a34a);
}

.settings-perm--no {
  color: var(--assetra-text-dim);
}

.settings-perm-table code {
  font-size: 12px;
}

/* Setup → Access rights */
.access-rights-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.access-rights-kpi {
  padding: 12px 14px;
  border: 1px solid var(--assetra-border-subtle);
  border-radius: var(--assetra-radius);
  background: var(--assetra-row-alt);
}

.access-rights-kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--assetra-text);
  line-height: 1.2;
}

.access-rights-kpi-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--assetra-text-muted);
}

.access-rights-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.access-rights-toolbar .setup-search-input {
  flex: 1 1 220px;
  min-width: 180px;
}

.access-rights-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.access-rights-filter {
  appearance: none;
  border: 1px solid var(--assetra-border);
  background: #fff;
  color: var(--assetra-text-secondary);
  border-radius: var(--assetra-radius-full);
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.access-rights-filter:hover {
  background: var(--assetra-row-hover);
}

.access-rights-filter.is-active {
  background: var(--assetra-accent-soft);
  border-color: transparent;
  color: var(--assetra-accent);
}

.access-rights-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  min-height: 420px;
}

.access-rights-list-wrap {
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: #fff;
  overflow: auto;
  max-height: 70vh;
}

.access-rights-list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.access-rights-person {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: var(--assetra-radius);
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.access-rights-person:hover {
  background: var(--assetra-row-hover);
}

.access-rights-person.is-selected {
  background: var(--assetra-row-selected);
}

.access-rights-person-name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--assetra-text);
}

.access-rights-person-email {
  font-size: 12px;
  color: var(--assetra-text-muted);
  word-break: break-all;
}

.access-rights-person-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
  align-items: center;
}

.access-rights-person-count {
  font-size: 11px;
  color: var(--assetra-text-dim);
}

.access-rights-detail {
  border: 1px solid var(--assetra-border);
  border-radius: var(--assetra-radius);
  background: #fff;
  padding: 16px;
  overflow: auto;
  max-height: 70vh;
}

.access-rights-detail-empty {
  color: var(--assetra-text-muted);
  font-size: 13.5px;
  padding: 24px 8px;
  text-align: center;
}

.access-rights-detail-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--assetra-border-subtle);
}

.access-rights-detail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--assetra-text);
}

.access-rights-detail-email {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--assetra-text-muted);
}

.access-rights-module {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--assetra-border-subtle);
  border-radius: var(--assetra-radius);
  background: var(--assetra-row-alt);
}

.access-rights-module-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.access-rights-module-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--assetra-text);
}

.access-rights-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.access-rights-subhead {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  color: var(--assetra-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.access-rights-count {
  font-size: 11px;
  color: var(--assetra-text-muted);
  font-weight: 600;
}

.access-rights-full-note,
.access-rights-empty-dim,
.access-rights-chip-hint {
  margin: 0;
  font-size: 13px;
  color: var(--assetra-text-muted);
}

.access-rights-chip-hint {
  margin-top: 12px;
}

.access-rights-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 2px;
}

.access-rights-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--assetra-radius-sm, 6px);
  background: #fff;
  border: 1px solid var(--assetra-border);
  color: var(--assetra-text-secondary);
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.access-rights-chip.is-match {
  background: var(--assetra-accent-soft);
  border-color: transparent;
  color: var(--assetra-accent);
}

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .access-rights-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-rights-layout,
  .access-rights-module-grid {
    grid-template-columns: 1fr;
  }

  .access-rights-list-wrap,
  .access-rights-detail {
    max-height: none;
  }
}
