:root {
  --bg: #f5f7fb;
  --bg-soft: #f8fafc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.92);

  --text: #0f172a;
  --text-soft: #475569;
  --text-muted: #64748b;

  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);

  --primary: #0f172a;
  --primary-2: #1e293b;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.10);

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.10);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 28px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;

  --sidebar-width: 280px;
  --topbar-height: 76px;

  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 320ms ease;

  --blur: blur(14px);

  --atlas-text-muted: var(--text-muted);
  --atlas-text-soft: var(--text-soft);
  --atlas-line: var(--line);
  --atlas-line-strong: var(--line-strong);
  --atlas-text: var(--text);
  --atlas-base: var(--transition-base);
  --atlas-fast: var(--transition-fast);
  --atlas-shadow-sm: var(--shadow-sm);
  --atlas-primary: var(--accent);
  --atlas-shadow-md: var(--shadow-md);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.05), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.05), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.atlas-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.atlas-brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.atlas-brand__text strong {
  display: block;
  line-height: 1.1;
  font-size: 1rem;
}

.atlas-brand__text span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.shell {
  grid-template-columns: var(--sidebar-width) 1fr;
}

.atlas-sidebar {
  padding: 24px 18px;
  background:
    linear-gradient(180deg, #0b1736 0%, #0f2047 100%);
  color: #dbe8ff;
  border-right: 1px solid rgba(148, 163, 184, 0.2);
}

.atlas-sidebar__top {
  margin-bottom: 22px;
}

.atlas-sidebar .atlas-brand {
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.atlas-sidebar .atlas-brand__logo {
  width: 56px;
  height: 56px;
}

.atlas-sidebar .atlas-brand__text strong {
  color: #f8fafc;
}

.atlas-sidebar .atlas-brand__text span {
  color: rgba(219, 234, 254, 0.8);
}

.atlas-sidebar__account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color var(--atlas-base), background var(--atlas-base), transform var(--atlas-fast);
}

.atlas-sidebar__account:hover {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.atlas-sidebar__account-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
}

.atlas-sidebar__account-meta strong {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
  color: #f8fafc;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-sidebar__account-meta span {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(219, 234, 254, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.atlas-sidebar__account form {
  margin: 0;
  display: flex;
}

.atlas-sidebar__account .atlas-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.atlas-sidebar__account .atlas-btn.atlas-btn--primary {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(191, 219, 254, 0.4);
  color: #ffffff;
  box-shadow: none;
}

.atlas-sidebar__account .atlas-btn.atlas-btn--primary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(191, 219, 254, 0.58);
  box-shadow: none;
}

.atlas-nav {
  display: grid;
  gap: 8px;
}

.atlas-nav__group {
  display: grid;
  gap: 6px;
}

.atlas-nav__group + .atlas-nav__group {
  margin-top: 10px;
}

.atlas-nav__group-title {
  margin: 0;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(191, 219, 254, 0.62);
}

.atlas-nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.atlas-nav__item:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.atlas-nav__item.is-active {
  background: rgba(37, 99, 235, 0.28);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow-xs);
}

.atlas-nav__item.is-active .atlas-nav__icon {
  filter: saturate(1.2);
}

.atlas-nav__item:focus-visible {
  outline: 0;
  box-shadow:
    inset 0 0 0 1px rgba(191, 219, 254, 0.24),
    0 0 0 2px rgba(148, 197, 255, 0.32);
}

.atlas-nav__icon {
  width: 1.2rem;
  text-align: center;
  line-height: 1;
}

.atlas-topbar {
  min-height: var(--topbar-height);
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.atlas-topbar__left {
  min-width: 0;
}

.atlas-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.atlas-page-title {
  margin: 6px 0 0;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--primary);
}

.atlas-topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atlas-topbar__meta {
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft, rgba(255, 255, 255, 0.6));
  border: 1px solid var(--line);
}

.atlas-topbar__meta strong {
  font-size: 0.88rem;
  line-height: 1.15;
}

.atlas-topbar__meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.atlas-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-height: 42px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.atlas-btn:hover {
  transform: translateY(-1px);
}

.atlas-btn:active {
  transform: translateY(0);
}

.atlas-btn:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.86),
    0 0 0 5px rgba(37, 99, 235, 0.32);
}

.atlas-btn[disabled],
.atlas-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.08);
}

.atlas-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  border: 1px solid var(--line-strong);
}

.atlas-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(37, 99, 235, 0.26);
}

.atlas-btn--primary {
  background: linear-gradient(180deg, #1f4fd8 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.26);
}

.atlas-btn--primary:hover {
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.atlas-btn--danger {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.22);
}

.atlas-btn--danger:hover {
  box-shadow: 0 12px 20px rgba(220, 38, 38, 0.28);
}

.atlas-btn--sm {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.atlas-btn--loading {
  pointer-events: none;
}

.atlas-btn--loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  opacity: 0.9;
  animation: atlasSpin 0.7s linear infinite;
}

.atlas-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.atlas-metric-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.84) 100%);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.atlas-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
}

.atlas-metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.atlas-metric-card__label {
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.atlas-metric-card__value {
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.atlas-metric-card__meta {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.atlas-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform var(--atlas-fast),
    box-shadow var(--atlas-base),
    background-color var(--atlas-base),
    border-color var(--atlas-base),
    color var(--atlas-base);
}

.atlas-chip:hover {
  transform: translateY(-1px);
}

.atlas-chip--cyan {
  border-color: rgba(6, 182, 212, 0.32);
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
}

.atlas-chip--success {
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.atlas-chip--warning {
  border-color: rgba(217, 119, 6, 0.36);
  background: rgba(217, 119, 6, 0.13);
  color: #9a3412;
}

.atlas-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.atlas-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 100%);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.atlas-panel__header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.atlas-panel__header h2 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--primary);
}

.atlas-panel__header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.atlas-panel__body {
  padding: 16px 18px;
}

.atlas-panel__body--compact-bottom {
  padding-bottom: 0;
}

.atlas-panel__body > :first-child {
  margin-top: 0;
}

.atlas-panel__body > :last-child {
  margin-bottom: 0;
}

.atlas-panel__actions {
  margin-top: 12px;
}

.atlas-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content .panel:not(.atlas-panel) {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.84) 100%);
  box-shadow: var(--shadow-sm);
}

.content .toolbar {
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.content .toolbar h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.content .toolbar .muted {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.content .field > label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.content input:not([type="checkbox"]):not([type="radio"]),
.content select,
.content textarea {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.content textarea {
  min-height: 120px;
}

.content .actions {
  align-items: center;
  gap: 10px;
}

.content .actions form {
  margin: 0;
}

.atlas-table-wrap {
  width: 100%;
  overflow-x: auto;
  padding: 0 22px 22px;
}

.atlas-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.atlas-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--atlas-text-muted);
  border-bottom: 1px solid var(--atlas-line);
  background: rgba(255, 255, 255, 0.55);
}

.atlas-table tbody td {
  padding: 16px;
  font-size: 14px;
  color: var(--atlas-text);
  border-bottom: 1px solid var(--atlas-line);
  background: transparent;
  vertical-align: middle;
}

.atlas-table tbody tr {
  transition: background var(--atlas-base);
}

.atlas-table tbody tr:hover td {
  background: rgba(34, 211, 238, 0.04);
}

.atlas-table tbody tr:last-child td {
  border-bottom: 0;
}

.atlas-toolbar {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.atlas-toolbar__search,
.atlas-toolbar__filters,
.atlas-toolbar__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.atlas-toolbar__search .atlas-input,
.atlas-toolbar__filters .atlas-select {
  width: 100%;
}

.atlas-toolbar__filters {
  min-width: 0;
}

.atlas-toolbar__filters .atlas-select {
  min-width: 0;
}

.atlas-toolbar__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .atlas-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .atlas-toolbar__search,
  .atlas-toolbar__filters,
  .atlas-toolbar__actions {
    width: 100%;
  }

  .atlas-toolbar__filters {
    flex-direction: column;
  }

  .atlas-toolbar__actions {
    justify-content: stretch;
  }

  .atlas-toolbar__actions .atlas-btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .atlas-toolbar__actions {
    flex-direction: column;
  }

  .atlas-toolbar__actions .atlas-btn {
    width: 100%;
  }
}

.atlas-active-filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px 18px;
}

.atlas-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.atlas-active-filters__actions {
  flex: 0 0 auto;
}

.atlas-filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 88, 214, 0.08);
  color: var(--atlas-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid rgba(21, 88, 214, 0.10);
}

@media (max-width: 640px) {
  .atlas-active-filters {
    padding: 0 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .atlas-active-filters__actions .atlas-btn {
    width: 100%;
  }
}

.atlas-bulkbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 22px 18px;
  border: 1px solid rgba(21, 88, 214, 0.12);
  border-radius: 18px;
  background: rgba(21, 88, 214, 0.05);
}

.atlas-bulkbar__info {
  font-size: 14px;
  color: var(--atlas-text);
}

.atlas-bulkbar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.atlas-check {
  width: 18px;
  height: 18px;
  accent-color: var(--atlas-primary);
  cursor: pointer;
}

.atlas-table__actions {
  white-space: nowrap;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.atlas-table__actions form {
  margin: 0;
}

.atlas-table__actions > form + form,
.atlas-table__actions > a + form,
.atlas-table__actions > form + a {
  margin-left: 8px;
}

.atlas-table__actions .atlas-btn {
  margin-left: 8px;
}

.atlas-table__actions .atlas-btn:first-child {
  margin-left: 0;
}

.atlas-reject-inline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: 8px;
}

.atlas-reject-inline > summary {
  list-style: none;
}

.atlas-reject-inline > summary::-webkit-details-marker {
  display: none;
}

.atlas-reject-inline > summary.atlas-btn {
  margin-left: 0;
}

.atlas-reject-inline[open] > summary {
  margin-bottom: 8px;
}

.atlas-reject-inline__form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 80vw);
  padding: 10px;
  border: 1px solid var(--atlas-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--atlas-shadow-sm);
}

.atlas-reject-inline__input {
  min-height: 38px;
}

.atlas-reject-inline__form .atlas-btn {
  flex: 0 0 auto;
  margin-left: 0;
}

.atlas-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--atlas-fast), filter var(--atlas-base), box-shadow var(--atlas-base);
}

.atlas-badge:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.atlas-badge--success {
  background: rgba(22, 163, 74, 0.10);
  color: var(--atlas-success);
}

.atlas-badge--warning {
  background: rgba(217, 119, 6, 0.10);
  color: var(--atlas-warning);
}

.atlas-badge--danger {
  background: rgba(220, 38, 38, 0.10);
  color: var(--atlas-danger);
}

.atlas-badge--info {
  background: rgba(21, 88, 214, 0.10);
  color: var(--atlas-primary);
}

.atlas-table tbody tr.is-selected td {
  background: rgba(21, 88, 214, 0.05);
}

@media (max-width: 640px) {
  .atlas-bulkbar {
    margin: 0 16px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .atlas-bulkbar__actions {
    flex-direction: column;
  }

  .atlas-bulkbar__actions .atlas-btn {
    width: 100%;
  }
}

.atlas-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-list-footer__meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-list-footer__meta strong {
  color: var(--atlas-text);
}

.atlas-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.atlas-pagination__item {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--atlas-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--atlas-text-soft);
  font-size: 13px;
  font-weight: 600;
  transition:
    background var(--atlas-base),
    border-color var(--atlas-base),
    color var(--atlas-base),
    transform var(--atlas-fast),
    box-shadow var(--atlas-base);
}

.atlas-pagination__item:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(21, 88, 214, 0.14);
  color: var(--atlas-text);
  transform: translateY(-1px);
}

.atlas-pagination__item.is-active {
  background: linear-gradient(180deg, var(--atlas-primary-2) 0%, var(--atlas-primary) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(21, 88, 214, 0.20);
}

.atlas-pagination__item.is-disabled,
.atlas-pagination__item[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 640px) {
  .atlas-list-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .atlas-pagination {
    width: 100%;
  }

  .atlas-pagination__item {
    flex: 1 1 auto;
  }
}

.atlas-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.atlas-detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--atlas-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.atlas-detail-item__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--atlas-text-muted);
}

.atlas-detail-item__value {
  font-size: 15px;
  line-height: 1.5;
  color: var(--atlas-text);
  font-weight: 700;
  word-break: break-word;
}

.atlas-detail-hero {
  align-items: flex-start;
}

.atlas-detail-hero__main {
  min-width: 0;
}

.atlas-detail-hero__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--atlas-text);
}

.atlas-detail-hero__text {
  max-width: 720px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--atlas-text-muted);
}

.atlas-detail-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.atlas-detail-hero__actions form {
  margin: 0;
}

@media (max-width: 768px) {
  .atlas-detail-hero__title {
    font-size: 24px;
  }

  .atlas-detail-hero__actions {
    width: 100%;
    justify-content: stretch;
  }

  .atlas-detail-hero__actions .atlas-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .atlas-detail-hero__actions {
    flex-direction: column;
  }

  .atlas-detail-hero__actions .atlas-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .atlas-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atlas-detail-item {
    padding: 16px;
    border-radius: 16px;
  }
}

.atlas-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.atlas-form.is-submitting {
  opacity: 0.94;
}

.atlas-form.is-submitting .atlas-btn--loading {
  opacity: 1;
}

.atlas-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.atlas-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.atlas-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--atlas-text-soft);
}

.atlas-label__required {
  margin-left: 2px;
  color: var(--atlas-danger);
  font-weight: 800;
}

.atlas-input,
.atlas-select,
.atlas-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--atlas-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--atlas-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition:
    border-color var(--atlas-base),
    box-shadow var(--atlas-base),
    background var(--atlas-base);
}

.atlas-textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.atlas-input:focus,
.atlas-select:focus,
.atlas-textarea:focus {
  outline: none;
  border-color: rgba(21, 88, 214, 0.28);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10);
  background: #ffffff;
}

.atlas-input--error,
.atlas-select--error,
.atlas-textarea--error {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.03);
}

.atlas-input--error:focus,
.atlas-select--error:focus,
.atlas-textarea--error:focus {
  border-color: rgba(220, 38, 38, 0.34);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.atlas-field__hint {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-field__error {
  margin: -2px 0 0;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--atlas-danger);
}

.atlas-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.atlas-form-section {
  border: 1px solid var(--atlas-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.atlas-form-section + .atlas-form-section {
  margin-top: 20px;
}

.atlas-form-section__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--atlas-line);
  background: rgba(15, 23, 42, 0.02);
}

.atlas-form-section__header h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-form-section__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-form-section__body {
  padding: 20px;
}

.atlas-form-section__meta {
  margin: 0 0 14px;
}

.atlas-form-section__meta--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.atlas-form--spaced-sm {
  margin-top: 14px;
}

.atlas-form--inline {
  display: inline;
  margin: 0;
}

.atlas-form-section--spaced-sm {
  margin-top: 14px;
}

.atlas-form-section--spaced-md {
  margin-top: 18px;
}

.atlas-alert--spaced-sm {
  margin-top: 14px;
}

.atlas-alert--spaced-md {
  margin-bottom: 16px;
}

.atlas-form-actions__note {
  margin: 0 auto 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--atlas-text-muted);
}

.atlas-request-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.atlas-request-ops-main {
  min-width: 0;
}

.atlas-request-ops-side {
  min-width: 0;
}

.atlas-request-kv-list {
  display: grid;
  gap: 10px;
}

.atlas-request-kv {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--atlas-line);
}

.atlas-request-kv:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.atlas-request-kv span {
  font-size: 12px;
  color: var(--atlas-text-muted);
}

.atlas-request-kv strong {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--atlas-text);
  text-align: right;
}

.atlas-request-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atlas-text);
  white-space: pre-line;
}

.atlas-empty--spaced-sm,
.atlas-table-wrap--spaced-sm {
  margin-top: 14px;
}

.atlas-empty--spaced-md {
  margin-bottom: 18px;
}

.atlas-table-wrap--flush {
  padding-left: 0;
  padding-right: 0;
}

.atlas-table-wrap--flush-bottom-sm {
  margin-bottom: 12px;
}

.atlas-eyebrow--spaced-xs {
  margin: 0 0 8px;
}

.atlas-eyebrow--spaced-sm {
  margin: 0 0 10px;
}

.atlas-eyebrow--spaced-md {
  margin: 18px 0 10px;
}

.atlas-muted--spaced-sm {
  margin-top: 12px;
}

.atlas-text-preline {
  white-space: pre-line;
}

.atlas-permissions-wrap {
  display: grid;
  gap: 14px;
}

.atlas-permission-group {
  border: 1px solid var(--atlas-line);
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.atlas-permission-group__header h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-permission-group__title {
  display: block;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-permission-group__grid,
.atlas-permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.atlas-permission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 600;
  color: var(--atlas-text-soft);
}

.atlas-permission-item:hover {
  background: rgba(21, 88, 214, 0.06);
}

.atlas-permission-item input {
  accent-color: var(--atlas-primary);
}

.atlas-permission-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

.atlas-permission-accordion {
  border: 1px solid var(--atlas-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.atlas-permission-accordion + .atlas-permission-accordion {
  margin-top: 14px;
}

.atlas-permission-accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 0;
  background: rgba(15, 23, 42, 0.02);
  color: var(--atlas-text);
  cursor: pointer;
  text-align: left;
  transition: background var(--atlas-base);
}

.atlas-permission-accordion__toggle:hover {
  background: rgba(21, 88, 214, 0.04);
}

.atlas-permission-accordion__title {
  font-size: 14px;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-permission-accordion__meta {
  font-size: 12px;
  font-weight: 700;
  color: var(--atlas-text-muted);
}

.atlas-permission-accordion__content {
  display: none;
  padding: 18px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-permission-accordion__content.is-open {
  display: block;
}

@media (max-width: 640px) {
  .atlas-quick-actions {
    flex-direction: column;
  }

  .atlas-quick-actions .atlas-btn {
    width: 100%;
  }

  .atlas-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atlas-form-actions {
    flex-direction: column-reverse;
  }

  .atlas-form-actions__note {
    margin: 0;
    order: 10;
  }

  .atlas-form-actions .atlas-btn {
    width: 100%;
  }

  .atlas-form-section {
    border-radius: 18px;
  }

  .atlas-form-section__header,
  .atlas-form-section__body {
    padding: 16px;
  }

  .atlas-permission-accordion {
    border-radius: 16px;
  }

  .atlas-permission-accordion__toggle,
  .atlas-permission-accordion__content {
    padding: 14px 16px;
  }

  .atlas-permission-group__grid,
  .atlas-permission-grid {
    grid-template-columns: 1fr;
  }

  .atlas-request-ops-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atlas-request-kv {
    flex-direction: column;
    gap: 4px;
  }

  .atlas-request-kv strong {
    text-align: left;
  }
}

.atlas-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed rgba(21, 88, 214, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.64));
  transition:
    border-color var(--atlas-base),
    background var(--atlas-base),
    transform var(--atlas-fast);
}

.atlas-empty:hover {
  border-color: rgba(21, 88, 214, 0.22);
  transform: translateY(-1px);
}

.atlas-empty__icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 18px;
  background: rgba(34, 211, 238, 0.10);
  font-size: 28px;
}

.atlas-empty__title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--atlas-text);
}

.atlas-empty__text {
  max-width: 520px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--atlas-text-muted);
}

.atlas-empty__actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .atlas-empty {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .atlas-empty__actions {
    width: 100%;
    flex-direction: column;
  }

  .atlas-empty__actions .atlas-btn {
    width: 100%;
  }
}

.atlas-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(6px);
}

.atlas-modal-backdrop[hidden] {
  display: none !important;
}

.atlas-modal {
  width: 100%;
  max-width: 640px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.18);
  overflow: hidden;
}

.atlas-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 0;
}

.atlas-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--atlas-text);
}

.atlas-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--atlas-text-soft);
  cursor: pointer;
  transition: background var(--atlas-base), transform var(--atlas-fast);
}

.atlas-modal__close:hover {
  background: rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.atlas-modal__body {
  padding: 22px;
}

.atlas-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 22px 22px;
}

.atlas-modal--danger {
  border-color: rgba(220, 38, 38, 0.10);
}

.atlas-modal--danger .atlas-modal__title {
  color: var(--atlas-danger);
}

@media (max-width: 640px) {
  .atlas-modal-backdrop {
    padding: 14px;
    align-items: flex-end;
  }

  .atlas-modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }

  .atlas-modal__footer {
    flex-direction: column-reverse;
  }

.atlas-modal__footer .atlas-btn {
    width: 100%;
  }
}

.atlas-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  box-shadow: var(--atlas-shadow-sm);
  background: rgba(255, 255, 255, 0.9);
}

.atlas-alert--success {
  border-color: rgba(22, 163, 74, 0.14);
  background: rgba(22, 163, 74, 0.06);
}

.atlas-alert--error {
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(220, 38, 38, 0.06);
}

.atlas-alert--warning {
  border-color: rgba(217, 119, 6, 0.14);
  background: rgba(217, 119, 6, 0.06);
}

.atlas-modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 119, 6, 0.14);
  border-radius: 18px;
  background: rgba(217, 119, 6, 0.06);
  box-shadow: var(--atlas-shadow-sm);
}

.atlas-alert--info {
  border-color: rgba(21, 88, 214, 0.14);
  background: rgba(21, 88, 214, 0.06);
}

.atlas-alert__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 800;
}

.atlas-alert__content {
  flex: 1;
  min-width: 0;
}

.atlas-alert__title {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--atlas-text);
}

.atlas-alert__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--atlas-text-soft);
}

.atlas-alert__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--atlas-text-soft);
  cursor: pointer;
  transition: background var(--atlas-base), transform var(--atlas-fast);
}

.atlas-alert__close:hover {
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

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

.atlas-inline-form .atlas-select,
.atlas-inline-form .atlas-input {
  min-width: 160px;
}

.atlas-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atlas-skeleton__line,
.atlas-skeleton__row {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.16);
}

.atlas-skeleton__line::after,
.atlas-skeleton__row::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  animation: atlasSkeletonShimmer 1.4s infinite;
}

.atlas-skeleton__line {
  height: 14px;
}

.atlas-skeleton__line--title {
  width: 180px;
  height: 18px;
}

.atlas-skeleton__line--kpi {
  width: 120px;
  height: 40px;
}

.atlas-skeleton__line--md {
  width: 70%;
}

.atlas-skeleton__line--sm {
  width: 42%;
}

.atlas-skeleton--table {
  gap: 10px;
}

.atlas-skeleton__row {
  height: 52px;
  border-radius: 14px;
}

@keyframes atlasSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.atlas-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
}

.atlas-auth__brand {
  max-width: 640px;
  padding: 12px 6px;
}

.atlas-auth__logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.atlas-auth__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--atlas-primary);
}

.atlas-auth__title {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--atlas-text);
}

.atlas-auth__text {
  max-width: 560px;
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--atlas-text-soft);
}

.atlas-auth__card {
  width: 100%;
  max-width: 520px;
  justify-self: stretch;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--atlas-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 40px 100px rgba(2, 8, 23, 0.18);
  backdrop-filter: blur(14px);
}

.atlas-auth__card .atlas-form {
  gap: 18px;
}

.atlas-auth__card .atlas-form-actions {
  justify-content: stretch;
  padding-top: 8px;
}

.atlas-auth__card .atlas-form-actions .atlas-btn {
  width: 100%;
}

.atlas-auth__card .atlas-btn--primary {
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .atlas-auth {
    grid-template-columns: 1fr;
    max-width: 560px;
    gap: 18px;
    align-content: center;
    padding: 24px 16px 28px;
  }

  .atlas-auth__brand {
    padding: 0;
  }

  .atlas-auth__logo {
    width: 180px;
    margin-bottom: 20px;
  }

  .atlas-auth__card {
    max-width: 100%;
    justify-self: stretch;
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .atlas-auth {
    padding: 20px;
  }

  .atlas-auth__card {
    padding: 20px;
    border-radius: 20px;
  }
}

.atlas-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.atlas-auth-brand__logo {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 640px) {
  .atlas-auth-brand__logo {
    width: 180px;
  }
}

@media (max-width: 960px) {
  .atlas-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .atlas-topbar__meta {
    width: 100%;
  }

  .atlas-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    transform: translateX(-105%);
    transition: transform var(--transition-base);
    z-index: 40;
    padding-bottom: 10px;
  }

  .atlas-sidebar.is-open {
    transform: translateX(0);
  }
}

.atlas-fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: atlasFadeUp 420ms ease forwards;
}

.atlas-fade-up--delay-1 {
  animation-delay: 60ms;
}

.atlas-fade-up--delay-2 {
  animation-delay: 120ms;
}

.atlas-fade-up--delay-3 {
  animation-delay: 180ms;
}

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

@keyframes atlasSpin {
  to {
    transform: rotate(360deg);
  }
}

.atlas-hover-lift {
  transition: transform var(--atlas-base), box-shadow var(--atlas-base);
}

.atlas-hover-lift:hover {
  transform: translateY(-2px);
}

.atlas-soft-link {
  position: relative;
  transition: color var(--atlas-base);
}

.atlas-soft-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--atlas-base);
}

.atlas-soft-link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .atlas-content {
    padding: 16px;
  }

  .atlas-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-panel__header .atlas-btn {
    width: 100%;
  }

  .atlas-metric-card__value {
    font-size: 30px;
  }

  .atlas-page-title {
    font-size: 22px;
    line-height: 1.08;
  }

  .atlas-table-wrap {
    padding: 0 16px 16px;
  }

  .atlas-alert {
    padding: 14px;
    border-radius: 16px;
  }
}

@media (max-width: 560px) {
  .atlas-topbar {
    padding: 14px 16px;
  }

  .atlas-topbar__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .atlas-topbar__actions .atlas-btn {
    width: 100%;
  }

  .atlas-panel__header,
  .atlas-panel__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .atlas-modal__header,
  .atlas-modal__body,
  .atlas-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .atlas-auth__title {
    font-size: 28px;
  }

  .atlas-empty__title {
    font-size: 18px;
  }

  .atlas-empty__text {
    font-size: 13px;
  }
}

.atlas-auth--split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(420px, 520px);
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at left center, rgba(21, 88, 214, 0.08), transparent 34%),
    linear-gradient(180deg, #f3f7fc 0%, #eef3f9 100%);
}

.atlas-auth-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}

.atlas-auth-showcase__inner {
  width: 100%;
  max-width: 620px;
}

.atlas-auth-showcase__logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.atlas-auth-showcase__title {
  margin: 0 0 16px;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--atlas-text);
  max-width: 560px;
}

.atlas-auth-showcase__text {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--atlas-text-soft);
}

.atlas-auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.atlas-auth-card--strong {
  width: 100%;
  max-width: 520px;
  padding: 34px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 40px 100px rgba(2, 8, 23, 0.16);
  backdrop-filter: blur(16px);
}

.atlas-auth-card--strong .atlas-form {
  gap: 18px;
}

.atlas-auth-card--strong .atlas-form-actions {
  justify-content: stretch;
  padding-top: 8px;
}

.atlas-auth-card--strong .atlas-form-actions .atlas-btn {
  width: 100%;
}

.atlas-auth-card--strong .atlas-btn--primary {
  min-height: 54px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 16px;
}

.atlas-auth-card--strong .atlas-input {
  min-height: 52px;
}

@media (max-width: 980px) {
  .atlas-auth--split {
    grid-template-columns: 1fr;
  }

  .atlas-auth-showcase {
    padding: 32px 20px 12px;
  }

  .atlas-auth-showcase__inner {
    max-width: none;
  }

  .atlas-auth-showcase__logo {
    width: 180px;
    margin-bottom: 20px;
  }

  .atlas-auth-showcase__title {
    font-size: 42px;
    max-width: 420px;
  }

  .atlas-auth-showcase__text {
    font-size: 16px;
    max-width: 460px;
  }

  .atlas-auth-form-side {
    padding: 12px 20px 28px;
  }

  .atlas-auth-card--strong {
    max-width: none;
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .atlas-auth-showcase {
    padding: 24px 16px 8px;
  }

  .atlas-auth-showcase__logo {
    width: 150px;
  }

  .atlas-auth-showcase__title {
    font-size: 34px;
    line-height: 1.02;
  }

  .atlas-auth-showcase__text {
    font-size: 15px;
    line-height: 1.6;
  }

  .atlas-auth-form-side {
    padding: 8px 16px 24px;
  }

  .atlas-auth-card--strong {
    padding: 18px;
    border-radius: 20px;
  }
}

.atlas-permissions-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.atlas-permission-module {
  border: 1px solid var(--atlas-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.atlas-permission-module__header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--atlas-line);
  background: rgba(15, 23, 42, 0.02);
}

.atlas-permission-module__header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-permission-module__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-permission-module__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 18px;
}

.atlas-permission-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  transition:
    border-color var(--atlas-base),
    background var(--atlas-base),
    transform var(--atlas-fast),
    box-shadow var(--atlas-base);
}

.atlas-permission-tile:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(21, 88, 214, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(21, 88, 214, 0.06);
}

.atlas-permission-tile__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--atlas-text-soft);
}

.atlas-permission-tile input {
  width: 18px;
  height: 18px;
  accent-color: var(--atlas-primary);
  flex: 0 0 18px;
}

@media (max-width: 640px) {
  .atlas-permission-module {
    border-radius: 18px;
  }

  .atlas-permission-module__header,
  .atlas-permission-module__grid {
    padding: 16px;
  }

  .atlas-permission-module__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.atlas-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(420px, 540px);
  background:
    radial-gradient(circle at left center, rgba(21, 88, 214, 0.10), transparent 34%),
    linear-gradient(180deg, #f3f7fc 0%, #eef3f9 100%);
}

.atlas-login__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 56px;
}

.atlas-login__hero-inner {
  width: 100%;
  max-width: 620px;
}

.atlas-login__logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.atlas-login__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--atlas-primary);
}

.atlas-login__title {
  margin: 0 0 18px;
  font-size: clamp(50px, 5vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: var(--atlas-text);
  max-width: 560px;
}

.atlas-login__text {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--atlas-text-soft);
}

.atlas-login__access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.atlas-login__card {
  width: 100%;
  max-width: 500px;
  padding: 36px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 40px 100px rgba(2, 8, 23, 0.16);
  backdrop-filter: blur(16px);
}

.atlas-login__card .atlas-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.atlas-login__card .atlas-input {
  min-height: 54px;
  border-radius: 16px;
}

.atlas-login__card .atlas-btn--primary {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .atlas-login {
    grid-template-columns: 1fr;
  }

  .atlas-login__hero {
    padding: 32px 20px 12px;
    justify-content: flex-start;
  }

  .atlas-login__hero-inner {
    max-width: 520px;
  }

  .atlas-login__logo {
    width: 180px;
    margin-bottom: 20px;
  }

  .atlas-login__title {
    font-size: 42px;
    line-height: 1;
    max-width: 420px;
  }

  .atlas-login__text {
    font-size: 16px;
    max-width: 420px;
  }

  .atlas-login__access {
    padding: 8px 20px 28px;
  }

  .atlas-login__card {
    max-width: none;
    padding: 24px;
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .atlas-login__hero {
    padding: 24px 16px 8px;
  }

  .atlas-login__logo {
    width: 148px;
  }

  .atlas-login__title {
    font-size: 34px;
  }

  .atlas-login__text {
    font-size: 15px;
    line-height: 1.6;
  }

  .atlas-login__access {
    padding: 8px 16px 24px;
  }

  .atlas-login__card {
    padding: 18px;
    border-radius: 20px;
  }
}

.atlas-access-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.atlas-access-module {
  border: 1px solid var(--atlas-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.atlas-access-module__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--atlas-line);
  background: linear-gradient(180deg, rgba(15,23,42,0.02), rgba(15,23,42,0.01));
}

.atlas-access-module__header h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-access-module__header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-access-module__count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(21, 88, 214, 0.08);
  color: var(--atlas-primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.atlas-access-module__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 20px 22px 22px;
}

.atlas-access-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(248,250,252,0.96));
  cursor: pointer;
  transition:
    border-color var(--atlas-base),
    transform var(--atlas-fast),
    box-shadow var(--atlas-base),
    background var(--atlas-base);
}

.atlas-access-tile:hover {
  border-color: rgba(21, 88, 214, 0.16);
  box-shadow: 0 12px 24px rgba(21, 88, 214, 0.06);
  transform: translateY(-1px);
}

.atlas-access-tile__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.atlas-access-tile__content strong {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--atlas-text);
}

.atlas-access-tile__content span {
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-access-tile input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--atlas-primary);
}

@media (max-width: 768px) {
  .atlas-access-module__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-access-module__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .atlas-access-module {
    border-radius: 18px;
  }

  .atlas-access-module__header,
  .atlas-access-module__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .atlas-access-module__body {
    padding-bottom: 16px;
    gap: 10px;
  }

  .atlas-access-tile {
    min-height: 74px;
    padding: 14px 16px;
    border-radius: 16px;
  }
}

.atlas-login--oc {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #d9dee7;
}

.atlas-login__card--oc {
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.atlas-login__brand-logo {
  width: 188px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

.atlas-login__card-title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--atlas-text);
}

.atlas-login__card-text {
  margin: 0 0 22px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--atlas-text-soft);
}

.atlas-login__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.atlas-login__card--oc .atlas-input {
  min-height: 46px;
  border-radius: 12px;
}

.atlas-login__card--oc .atlas-form-actions {
  justify-content: stretch;
  padding-top: 2px;
}

.atlas-login__card--oc .atlas-form-actions .atlas-btn {
  width: 100%;
}

.atlas-login__card--oc .atlas-btn--primary {
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .atlas-login--oc {
    padding: 20px 16px;
    align-items: center;
  }

  .atlas-login__card--oc {
    padding: 22px 18px;
  }

  .atlas-login__brand-logo {
    width: 172px;
    margin-bottom: 16px;
  }

  .atlas-login__card-title {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .atlas-login--oc {
    padding: 16px;
    align-items: center;
  }

  .atlas-login__card--oc {
    width: 100%;
    padding: 18px 16px;
    border-radius: 16px;
  }

  .atlas-login__brand-logo {
    width: 160px;
    margin-bottom: 14px;
  }

  .atlas-login__card-title {
    font-size: 30px;
  }

  .atlas-login__card-text {
    margin-bottom: 18px;
    font-size: 14px;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.content.atlas-content {
  min-width: 0;
  transition: opacity 180ms ease, transform 220ms ease;
}

.content.atlas-content.is-navigating {
  opacity: 0.45;
  transform: translateY(4px);
}

.content.atlas-content.is-entering {
  animation: atlasContentEnter 220ms ease both;
}

@keyframes atlasContentEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@media (min-width: 961px) {
  .shell {
    display: block;
    min-height: 100vh;
  }

  .atlas-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .content.atlas-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    padding: 22px 24px;
  }
}

@media (max-width: 960px) {
  .shell {
    display: block;
    width: 100%;
    min-height: 100vh;
  }

  .atlas-sidebar {
    width: min(86vw, 320px);
    max-width: 320px;
  }

  .content.atlas-content {
    margin-left: 0;
    width: 100%;
    min-height: 100vh;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .content.atlas-content {
    padding: 14px;
  }

  .atlas-topbar {
    margin-bottom: 16px;
  }

  .atlas-topbar__actions form {
    width: 100%;
  }

  .atlas-topbar__actions form .atlas-btn {
    width: 100%;
  }

  .atlas-panel,
  .atlas-form-section,
  .atlas-access-module,
  .atlas-permission-module {
    border-radius: 16px;
  }

  .atlas-table {
    min-width: 640px;
  }

  .atlas-table__actions {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    gap: 8px;
  }

  .atlas-table__actions .atlas-btn {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .content.atlas-content {
    padding: 12px;
  }

  .atlas-panel__header {
    padding: 14px 14px 12px;
  }

  .atlas-panel__body {
    padding: 14px;
  }

  .atlas-table-wrap {
    padding: 0 12px 12px;
  }

  .atlas-active-filters {
    padding: 0 12px 12px;
  }

  .atlas-bulkbar {
    margin: 0 12px 12px;
  }
}

main.content.atlas-content {
  overflow-x: clip;
}

@media (max-width: 960px) {
  .shell {
    position: relative;
  }

  .atlas-sidebar {
    z-index: 90;
    height: 100dvh;
  }

  .atlas-sidebar__account {
    gap: 10px;
    padding: 10px;
  }

  .atlas-topbar {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 14px;
  }

  .atlas-topbar__left,
  .atlas-topbar__actions,
  .atlas-topbar__meta {
    width: 100%;
  }

  .atlas-topbar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .atlas-topbar__actions > .atlas-btn,
  .atlas-topbar__actions form,
  .atlas-topbar__actions form .atlas-btn {
    width: 100%;
    margin: 0;
  }

  .atlas-content-grid {
    grid-template-columns: 1fr;
  }

  .atlas-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .atlas-metric-card {
    padding: 14px;
  }

  .atlas-metric-card__value {
    font-size: 30px;
  }

  .atlas-panel__header {
    padding: 14px 16px 12px;
    gap: 10px;
  }

  .atlas-panel__body {
    padding: 14px 16px;
  }

  .atlas-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atlas-form-section__header,
  .atlas-form-section__body {
    padding: 16px;
  }

  .atlas-toolbar {
    margin-top: 12px;
    gap: 10px;
  }

  .atlas-toolbar__filters {
    flex-direction: column;
  }

  .atlas-toolbar__actions {
    justify-content: stretch;
  }

  .atlas-toolbar__actions .atlas-btn {
    flex: 1 1 auto;
  }

  .atlas-active-filters {
    padding: 0 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .atlas-active-filters__actions .atlas-btn {
    width: 100%;
  }

  .atlas-bulkbar {
    margin: 0 16px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .atlas-bulkbar__actions {
    width: 100%;
  }

  .atlas-bulkbar__actions .atlas-btn {
    flex: 1 1 auto;
  }

  .atlas-table {
    min-width: 620px;
  }

  .atlas-table-wrap {
    padding: 0 16px 16px;
  }

  .atlas-table__actions {
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
    gap: 8px;
  }

  .atlas-table__actions .atlas-btn {
    margin-left: 0;
  }

  .atlas-list-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 16px;
  }

  .atlas-pagination {
    width: 100%;
  }

  .atlas-pagination__item {
    flex: 1 1 auto;
  }

  .atlas-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .atlas-detail-hero__actions {
    width: 100%;
    justify-content: stretch;
  }

  .atlas-detail-hero__actions .atlas-btn,
  .atlas-detail-hero__actions form,
  .atlas-detail-hero__actions .atlas-reject-inline {
    width: 100%;
  }

  .atlas-access-module__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-access-module__body {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .atlas-access-tile {
    min-height: 74px;
    align-items: flex-start;
  }

  .atlas-access-tile input {
    margin-top: 2px;
  }
}

@media (max-width: 640px) {
  .atlas-sidebar .atlas-brand__logo {
    width: 50px;
    height: 50px;
  }

  .atlas-stats-grid {
    grid-template-columns: 1fr;
  }

  .atlas-topbar__actions {
    grid-template-columns: 1fr;
  }

  .content.atlas-content {
    padding: 12px;
  }

  .atlas-sidebar__account {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .atlas-sidebar__account form .atlas-btn {
    width: 100%;
  }

  .atlas-panel__header,
  .atlas-panel__body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .atlas-table-wrap {
    padding: 0 12px 12px;
  }

  .atlas-active-filters {
    padding: 0 12px 12px;
  }

  .atlas-bulkbar {
    margin: 0 12px 12px;
  }

  .atlas-list-footer {
    padding: 12px;
  }

  .atlas-modal__header,
  .atlas-modal__body,
  .atlas-modal__footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .atlas-reject-inline {
    width: 100%;
    margin-left: 0;
    align-items: stretch;
  }

  .atlas-reject-inline__form {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .atlas-reject-inline__form .atlas-btn {
    width: 100%;
  }
}

.atlas-nav__counter {
  margin-left: auto;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.38);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.atlas-notification-summary {
  margin: 0;
  color: var(--atlas-text-muted);
  font-size: 13px;
}

.atlas-notification-summary strong {
  color: var(--atlas-text);
}

.atlas-notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 22px 22px;
}

.atlas-notification-list--compact {
  padding: 0;
}

.atlas-notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.atlas-notification-item.is-unread {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.05);
}

.atlas-notification-item__content {
  min-width: 0;
}

.atlas-notification-item__meta {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--atlas-text-muted);
  font-size: 12px;
}

.atlas-notification-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--atlas-text);
}

.atlas-notification-item p {
  margin: 0 0 8px;
  color: var(--atlas-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.atlas-notification-item__actions {
  flex: 0 0 auto;
}

.atlas-dashboard-activity-panel {
  grid-column: 1 / -1;
}

.atlas-dashboard-events-panel {
  grid-column: 1 / -1;
}

.atlas-dashboard-events-empty-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.atlas-dashboard-events-empty {
  height: 100%;
  padding: 22px 20px;
  border-radius: 18px;
}

.atlas-dashboard-events-empty .atlas-empty__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  font-size: 22px;
}

.atlas-dashboard-events-empty .atlas-empty__title {
  font-size: 18px;
  margin-bottom: 6px;
}

.atlas-dashboard-events-empty .atlas-empty__text {
  font-size: 13px;
  line-height: 1.5;
}

.atlas-dashboard-events-summary {
  display: grid;
  gap: 10px;
}

.atlas-dashboard-events-summary__item {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.atlas-dashboard-events-summary__label {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--atlas-text-muted);
}

.atlas-dashboard-events-summary__value {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--atlas-text);
}

.atlas-dashboard-quick-panel,
.atlas-dashboard-alerts-panel {
  margin-bottom: 10px;
}

.atlas-dashboard-quick-panel--top {
  border-color: rgba(37, 99, 235, 0.18);
}

.atlas-dashboard-quick-panel--top .atlas-panel__header {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
}

.atlas-dashboard-card-section + .atlas-dashboard-card-section {
  margin-top: 10px;
}

.atlas-dashboard-card-section .atlas-panel__header {
  padding: 12px 14px 10px;
}

.atlas-dashboard-card-section .atlas-panel__header p {
  margin-top: 2px;
  font-size: 12px;
}

.atlas-dashboard-card-section .atlas-panel__body {
  padding: 12px 14px;
}

.atlas-dashboard-card-grid {
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.atlas-dashboard-card-grid .atlas-metric-card {
  padding: 12px;
  border-radius: 14px;
}

.atlas-dashboard-card-grid .atlas-metric-card__label {
  font-size: 12px;
}

.atlas-dashboard-card-grid .atlas-metric-card__value {
  margin-top: 4px;
  font-size: 1.85rem;
}

.atlas-dashboard-card-grid .atlas-panel__actions {
  margin-top: 8px;
}

.atlas-dashboard-card-grid .atlas-btn--sm {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 10px;
}

.atlas-quick-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.atlas-quick-group {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.atlas-quick-group__header h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  color: var(--atlas-text);
}

.atlas-quick-group__header p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--atlas-text-muted);
}

.atlas-quick-group__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-quick-group__actions .atlas-btn {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 10px;
}

.atlas-dashboard-alerts-panel .atlas-panel__body {
  padding-top: 12px;
}

.atlas-dashboard-alerts-panel .atlas-alert {
  align-items: center;
}

.atlas-dashboard-alerts-panel .atlas-alert .atlas-btn {
  flex: 0 0 auto;
}

.atlas-dashboard-activity-panel__body {
  display: grid;
  gap: 14px;
  padding-bottom: 14px;
}

.atlas-dashboard-activity-section {
  display: grid;
  gap: 10px;
}

.atlas-dashboard-activity-section + .atlas-dashboard-activity-section {
  padding-top: 14px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-dashboard-activity-section__header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--atlas-text);
}

.atlas-dashboard-activity-panel .atlas-table-wrap {
  padding: 0 0 6px;
}

.atlas-dashboard-activity-panel .atlas-table {
  min-width: 640px;
}

.atlas-dashboard-notification-empty {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--atlas-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.atlas-dashboard-notification-empty .atlas-notification-summary {
  margin: 0;
}

.atlas-dashboard-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 640px) {
  .atlas-dashboard-events-empty-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .atlas-dashboard-events-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atlas-dashboard-events-summary__item {
    min-height: 74px;
    padding: 12px;
  }

  .atlas-dashboard-events-summary__value {
    font-size: 24px;
  }

  .atlas-dashboard-quick-panel,
  .atlas-dashboard-alerts-panel {
    margin-bottom: 10px;
  }

  .atlas-dashboard-card-section + .atlas-dashboard-card-section {
    margin-top: 10px;
  }

  .atlas-dashboard-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
  }

  .atlas-dashboard-card-grid .atlas-metric-card {
    padding: 10px;
  }

  .atlas-dashboard-card-grid .atlas-metric-card__value {
    font-size: 1.55rem;
  }

  .atlas-quick-group {
    padding: 9px 10px;
  }

  .atlas-quick-group__actions {
    gap: 6px;
  }

  .atlas-quick-group__actions .atlas-btn {
    min-height: 32px;
    padding: 6px 9px;
  }

  .atlas-dashboard-alerts-panel .atlas-alert {
    align-items: flex-start;
  }

  .atlas-dashboard-activity-panel__body {
    gap: 12px;
    padding-bottom: 12px;
  }

  .atlas-dashboard-activity-section + .atlas-dashboard-activity-section {
    padding-top: 12px;
  }

  .atlas-dashboard-activity-panel .atlas-table {
    min-width: 560px;
  }

  .atlas-dashboard-notification-empty {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-notification-list {
    padding: 0 16px 16px;
  }

  .atlas-notification-item {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
}

/* PASSO 31 — Polimento transversal das listagens operacionais */
.atlas-panel__body > .atlas-toolbar {
  margin-top: 0;
}

.atlas-toolbar__filters {
  flex-wrap: wrap;
  align-items: stretch;
}

.atlas-toolbar__filters .atlas-select,
.atlas-toolbar__filters .atlas-input {
  flex: 1 1 170px;
  min-width: 0;
}

.atlas-toolbar__actions .atlas-btn {
  white-space: nowrap;
}

.atlas-filter-chip--muted {
  background: rgba(15, 23, 42, 0.04);
  border-color: var(--atlas-line);
  color: var(--atlas-text-muted);
  font-weight: 600;
}

.atlas-table__actions {
  gap: 8px;
  row-gap: 8px;
}

.atlas-table tbody td .muted {
  display: inline-block;
  margin-top: 3px;
  line-height: 1.4;
}

.atlas-inline-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.atlas-inline-chips--spaced-sm {
  margin-top: 12px;
}

.atlas-request-queue-order {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-request-queue-alerts {
  border-top: 1px solid var(--atlas-line);
}

.atlas-request-queue-alerts .atlas-alert {
  align-items: center;
}

.atlas-request-queue-order__header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--atlas-text);
}

.atlas-request-queue-order__header p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-request-queue-order__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--atlas-text-soft);
  font-size: 13px;
}

.atlas-request-queue-groups {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--atlas-line);
}

.atlas-request-queue-group {
  display: grid;
  gap: 10px;
}

.atlas-request-queue-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.atlas-request-queue-group__header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--atlas-text);
}

.atlas-request-queue-group__header p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-request-queue-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.atlas-request-queue-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--atlas-shadow-xs);
}

.atlas-request-queue-card--critical {
  border-color: rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.88));
}

.atlas-request-queue-card--due-today {
  border-color: rgba(217, 119, 6, 0.26);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.88));
}

.atlas-request-queue-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.atlas-request-queue-card__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--atlas-text);
}

.atlas-request-queue-card__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-request-queue-card__details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.atlas-request-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.atlas-request-report-ranking {
  display: grid;
  gap: 10px;
}

.atlas-request-report-ranking__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--atlas-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--atlas-shadow-xs);
}

.atlas-request-report-ranking__item--warning {
  border-color: rgba(217, 119, 6, 0.24);
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.88));
}

.atlas-request-report-ranking__item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--atlas-text);
}

.atlas-request-report-ranking__item p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atlas-text-muted);
}

.atlas-request-report-ranking__item strong {
  font-size: 28px;
  line-height: 1;
  color: var(--atlas-text);
}

@media (max-width: 980px) {
  .atlas-request-report-grid {
    grid-template-columns: 1fr;
  }
}

.atlas-request-queue-card__details div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
}

.atlas-request-queue-card__details dt {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--atlas-text-muted);
}

.atlas-request-queue-card__details dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--atlas-text);
}

.atlas-request-queue-row--critical td:first-child {
  box-shadow: inset 4px 0 0 rgba(220, 38, 38, 0.55);
}

.atlas-request-queue-row--due-today td:first-child {
  box-shadow: inset 4px 0 0 rgba(217, 119, 6, 0.55);
}

@media (max-width: 980px) {
  .atlas-table thead th,
  .atlas-table tbody td {
    padding-left: 12px;
    padding-right: 12px;
  }

  .atlas-table__actions {
    justify-content: flex-start;
    white-space: normal;
  }

  .atlas-reject-inline {
    width: 100%;
    align-items: stretch;
    margin-left: 0;
  }

  .atlas-reject-inline__form {
    width: 100%;
  }

  .atlas-request-queue-group__header,
  .atlas-request-queue-card__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .atlas-request-queue-card__details {
    grid-template-columns: 1fr;
  }

  .atlas-request-queue-alerts .atlas-alert {
    align-items: flex-start;
  }
}

/* Ajuste transversal — simetria dos grupos de ações */
.atlas-table__actions {
  align-content: flex-start;
}

.atlas-table__actions > a,
.atlas-table__actions > form,
.atlas-table__actions > details {
  display: inline-flex;
  margin: 0 !important;
}

.atlas-table__actions .atlas-btn {
  margin-left: 0 !important;
}

.atlas-table__actions .atlas-btn.atlas-btn--sm {
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.atlas-detail-hero__actions {
  align-items: flex-start;
  align-content: flex-start;
}

.atlas-detail-hero__actions > a,
.atlas-detail-hero__actions > form,
.atlas-detail-hero__actions > details {
  margin: 0;
}

.atlas-detail-hero__actions .atlas-btn {
  min-width: 116px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .atlas-table__actions .atlas-btn.atlas-btn--sm {
    min-width: 96px;
  }
}

@media (max-width: 640px) {
  .atlas-table__actions .atlas-btn.atlas-btn--sm {
    min-width: 0;
    width: 100%;
  }
}
