/*!*************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-sans-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b1220;
  --bg-elevated: #111a2e;
  --surface: rgba(15, 23, 42, 0.88);
  --surface2: rgba(22, 32, 56, 0.92);
  --surface3: rgba(32, 45, 77, 0.94);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --accent: #206bc4;
  --accent-hover: #1a5aa6;
  --accent-soft: rgba(32, 107, 196, 0.16);
  --green: #2fb344;
  --green-soft: rgba(47, 179, 68, 0.16);
  --red: #d63939;
  --red-soft: rgba(214, 57, 57, 0.16);
  --yellow: #f59f00;
  --yellow-soft: rgba(245, 159, 0, 0.16);
  --blue-soft: rgba(32, 107, 196, 0.18);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --radius-lg: 24px;
  --transition: 0.18s ease;
  --sidebar-width: 296px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(32, 107, 196, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(47, 179, 68, 0.08), transparent 22%),
    linear-gradient(180deg, #09111f 0%, #0b1220 42%, #0b1220 100%);
}

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

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

button {
  cursor: pointer;
}

code,
pre {
  font-family: 'Geist Mono', 'Fira Code', Consolas, monospace;
}

code {
  padding: 0.18rem 0.4rem;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-soft);
  font-size: 0.92em;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.18);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.3);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.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;
}

.dm-shell {
  display: flex;
  min-height: 100vh;
}

.dm-shell__sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(17, 26, 46, 0.96) 0%, rgba(9, 15, 28, 0.98) 100%);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  z-index: 40;
}

.dm-shell__main {
  flex: 1 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
}

.dm-topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.76);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}

.dm-topbar > * {
  min-width: 0;
}

.dm-topbar__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dm-topbar__eyebrow {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dm-topbar__title {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.dm-sidebar__header,
.dm-sidebar__footer {
  padding: 20px;
}

.dm-sidebar__header {
  border-bottom: 1px solid var(--border);
}

.dm-sidebar__search {
  margin-top: 18px;
}

.dm-sidebar__search-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.56);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.dm-sidebar__search-input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.dm-sidebar__search-input:focus {
  outline: none;
  border-color: rgba(32, 107, 196, 0.36);
  background: rgba(19, 31, 55, 0.72);
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.14);
}

.dm-sidebar__footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.dm-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dm-brand__badge,
.dm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 18px;
}

.dm-brand__badge {
  width: 48px;
  height: 48px;
  color: #eff6ff;
  background:
    linear-gradient(135deg, rgba(32, 107, 196, 1), rgba(86, 110, 255, 0.92));
  box-shadow: 0 18px 40px rgba(32, 107, 196, 0.26);
}

.dm-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(32, 107, 196, 0.3), rgba(32, 107, 196, 0.08));
  color: #e2e8f0;
  font-weight: 700;
}

.dm-brand__content {
  min-width: 0;
}

.dm-brand__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.dm-brand__subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.dm-sidebar__sections {
  flex: 1 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.dm-sidebar__section + .dm-sidebar__section {
  margin-top: 18px;
}

.dm-sidebar__section-title {
  margin: 0 10px 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dm-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dm-nav__link,
.dm-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--text-muted);
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.dm-nav__link {
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.dm-nav__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dm-nav__meta {
  margin-top: 4px;
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.86);
  font-weight: 600;
}

.dm-nav__link:hover,
.dm-topbar-btn:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.08);
  transform: translateY(-1px);
}

.dm-nav__link--active {
  color: var(--text);
  border-color: rgba(32, 107, 196, 0.3);
  background:
    linear-gradient(135deg, rgba(32, 107, 196, 0.2), rgba(32, 107, 196, 0.08));
  box-shadow: inset 0 0 0 1px rgba(32, 107, 196, 0.12);
}

.dm-nav__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: inherit;
  background: rgba(148, 163, 184, 0.08);
}

.dm-nav__link--active .dm-nav__icon {
  background: rgba(32, 107, 196, 0.22);
  color: #dbeafe;
}

.dm-nav__link--disabled {
  cursor: not-allowed;
  opacity: 0.72;
  border-color: rgba(148, 163, 184, 0.08);
  background: rgba(148, 163, 184, 0.03);
}

.dm-nav__link--disabled:hover {
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.08);
  background: rgba(148, 163, 184, 0.03);
  transform: none;
}

.dm-sidebar__empty {
  padding: 14px 16px;
  border: 1px dashed rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  color: var(--text-muted);
  font-size: 0.86rem;
  text-align: center;
  background: rgba(148, 163, 184, 0.04);
}

.dm-topbar-btn {
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.42);
}

.dm-topbar-btn--danger {
  color: #fecaca;
}

.dm-topbar-btn--danger:hover {
  background: rgba(214, 57, 57, 0.12);
  border-color: rgba(214, 57, 57, 0.24);
  color: #fee2e2;
}

.dm-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.56);
}

.dm-sidebar-backdrop {
  display: none;
}

.dm-page {
  width: 100%;
  padding: 32px;
  flex: 1 1;
  min-width: 0;
}

.dm-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dm-page-header__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-page-pretitle {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dm-page-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
}

.dm-page-description {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1rem;
}

.dm-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 27, 46, 0.9) 0%, rgba(12, 19, 35, 0.96) 100%);
  box-shadow: var(--shadow);
}

.dm-card__body {
  padding: 22px;
}

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

.dm-card__title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.dm-card__subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dm-card--soft {
  background:
    linear-gradient(160deg, rgba(20, 30, 54, 0.88), rgba(14, 22, 38, 0.94));
}

.dm-kpi-grid,
.dm-grid {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.dm-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dm-grid--servers {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.dm-grid--actions {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dm-kpi-card {
  padding: 22px;
}

.dm-kpi-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dm-kpi-card__label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.dm-kpi-card__value {
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.dm-kpi-card__value--accent {
  color: #bfdbfe;
}

.dm-kpi-card__value--green {
  color: #bbf7d0;
}

.dm-kpi-card__value--yellow {
  color: #fde68a;
}

.dm-icon-badge {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-soft);
}

.dm-icon-badge--accent {
  background: rgba(32, 107, 196, 0.16);
  color: #dbeafe;
}

.dm-icon-badge--green {
  background: rgba(47, 179, 68, 0.15);
  color: #bbf7d0;
}

.dm-icon-badge--yellow {
  background: rgba(245, 159, 0, 0.16);
  color: #fde68a;
}

.dm-server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.dm-server-card:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 107, 196, 0.26);
  background: linear-gradient(180deg, rgba(21, 32, 57, 0.94), rgba(15, 24, 42, 0.98));
}

.dm-server-card__content {
  min-width: 0;
  flex: 1 1;
}

.dm-server-card__title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dm-server-card__meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.dm-chevron {
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
}

.dm-server-card:hover .dm-chevron {
  color: var(--text);
  transform: translateX(3px);
}

.dm-action-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  min-height: 118px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.dm-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 107, 196, 0.24);
  background: linear-gradient(180deg, rgba(20, 31, 55, 0.92), rgba(15, 24, 42, 0.98));
}

.dm-action-card--disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.dm-action-card--disabled:hover {
  transform: none;
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.9) 0%, rgba(12, 19, 35, 0.96) 100%);
}

.dm-action-card__content {
  min-width: 0;
}

.dm-action-card__title {
  color: var(--text);
  font-weight: 700;
}

.dm-action-card__desc {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.dm-action-card__status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dm-empty {
  padding: 48px 28px;
  text-align: center;
  color: var(--text-muted);
}

.dm-loading-state {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.dm-loading-state__hero,
.dm-loading-state__card {
  padding: 22px;
}

.dm-loading-state__hero {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.dm-loading-state__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 18px;
  gap: 18px;
}

.dm-loading-state__card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.dm-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
}

.dm-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: dm-skeleton-shimmer 1.4s ease-in-out infinite;
}

.dm-skeleton--eyebrow {
  width: 120px;
  height: 14px;
}

.dm-skeleton--title {
  width: min(420px, 78%);
  height: 34px;
}

.dm-skeleton--text {
  width: 100%;
  height: 14px;
}

.dm-skeleton--text-short {
  width: 68%;
}

.dm-skeleton--chip {
  width: 88px;
  height: 24px;
  border-radius: 999px;
}

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

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    opacity var(--transition);
}

.dm-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.dm-btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.dm-btn--primary {
  color: #eff6ff;
  background: linear-gradient(135deg, var(--accent), #508ee3);
  box-shadow: 0 16px 36px rgba(32, 107, 196, 0.24);
}

.dm-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover), #3b82f6);
}

.dm-btn--danger {
  color: #fee2e2;
  background: rgba(214, 57, 57, 0.1);
  border-color: rgba(214, 57, 57, 0.18);
}

.dm-btn--danger:hover:not(:disabled) {
  background: rgba(214, 57, 57, 0.16);
  border-color: rgba(214, 57, 57, 0.3);
}

.dm-btn--ghost {
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--border);
}

.dm-btn--ghost:hover:not(:disabled) {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--border-strong);
}

.dm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dm-badge--green {
  color: #bbf7d0;
  background: var(--green-soft);
  border-color: rgba(47, 179, 68, 0.24);
}

.dm-badge--red {
  color: #fecaca;
  background: var(--red-soft);
  border-color: rgba(214, 57, 57, 0.24);
}

.dm-badge--yellow {
  color: #fde68a;
  background: var(--yellow-soft);
  border-color: rgba(245, 159, 0, 0.24);
}

.dm-badge--blue {
  color: #bfdbfe;
  background: var(--blue-soft);
  border-color: rgba(32, 107, 196, 0.24);
}

.dm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.dm-toggle--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dm-toggle__track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: background var(--transition), border-color var(--transition);
}

.dm-toggle__track--checked {
  background: rgba(47, 179, 68, 0.22);
  border-color: rgba(47, 179, 68, 0.28);
}

.dm-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eff6ff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.24);
  transition: transform var(--transition);
}

.dm-toggle__track--checked .dm-toggle__thumb {
  transform: translateX(20px);
}

.dm-toggle__label {
  color: var(--text);
  font-size: 0.92rem;
}

.dm-input,
.dm-select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.dm-input:focus,
.dm-select:focus,
textarea:focus {
  border-color: rgba(32, 107, 196, 0.48);
  box-shadow: 0 0 0 4px rgba(32, 107, 196, 0.12);
  background: rgba(15, 23, 42, 0.92);
}

.dm-select {
  cursor: pointer;
}

.dm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.dm-modal__dialog {
  position: relative;
  width: min(94vw, 1100px);
  max-height: min(92vh, 1000px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(16, 24, 43, 0.98), rgba(12, 19, 35, 0.98));
  box-shadow: 0 36px 90px rgba(2, 6, 23, 0.54);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.dm-modal__title {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.dm-modal__close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  background: transparent;
}

.dm-modal__close:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--border);
}

.dm-modal__body {
  padding: 28px;
  overflow: auto;
  flex: 1 1;
  min-height: 0;
}

.dm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.dm-modal__footer > * {
  flex-shrink: 0;
}

.dm-auth {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.dm-auth__layout {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(320px, 1fr);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 21, 37, 0.98), rgba(10, 16, 28, 0.98));
  box-shadow: 0 40px 100px rgba(2, 6, 23, 0.48);
}

.dm-auth__layout--single {
  width: min(520px, 100%);
  grid-template-columns: minmax(0, 1fr);
}

.dm-auth__panel,
.dm-auth__hero {
  padding: 42px;
}

.dm-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.dm-auth__panel--single {
  min-height: 420px;
}

.dm-auth__hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.28), transparent 34%),
    radial-gradient(circle at bottom left, rgba(129, 140, 248, 0.2), transparent 28%),
    linear-gradient(165deg, rgba(20, 31, 55, 1), rgba(10, 17, 30, 1));
}

.dm-auth__hero::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  pointer-events: none;
}

.dm-auth__eyebrow,
.dm-link-back {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dm-auth__title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.dm-auth__description,
.dm-auth__helper {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.dm-auth__alert {
  padding: 14px 16px;
  border: 1px solid rgba(214, 57, 57, 0.24);
  border-radius: 14px;
  color: #fee2e2;
  background: rgba(214, 57, 57, 0.12);
}

.dm-auth__feature-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.dm-auth__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
}

.dm-auth__feature-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
}

.dm-standalone {
  min-height: 100vh;
  padding: 36px 24px 56px;
}

.dm-standalone__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.dm-hero-card {
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
}

.dm-hero-card::before {
  content: '';
  position: absolute;
  inset: auto -10% -35% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 107, 196, 0.2), transparent 68%);
  pointer-events: none;
}

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

.dm-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dm-notice {
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.92rem;
}

.dm-notice--error {
  color: #fecaca;
  background: rgba(214, 57, 57, 0.12);
  border-color: rgba(214, 57, 57, 0.28);
}

.dm-notice--success {
  color: #bbf7d0;
  background: rgba(47, 179, 68, 0.12);
  border-color: rgba(47, 179, 68, 0.24);
}

.dm-notice--info {
  color: #bfdbfe;
  background: rgba(32, 107, 196, 0.14);
  border-color: rgba(32, 107, 196, 0.24);
}

.dm-tabbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dm-tabbar__button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.06);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.dm-tabbar__button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--border-strong);
}

.dm-tabbar__button--active {
  color: #dbeafe;
  border-color: rgba(32, 107, 196, 0.32);
  background: rgba(32, 107, 196, 0.16);
}

.dm-table-card {
  overflow: hidden;
}

.dm-link-inline {
  color: #93c5fd;
}

.dm-divider {
  height: 1px;
  background: var(--border);
}

.dm-link-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

  .dm-auth__hero {
    min-height: 320px;
  }
}

@media (max-width: 960px) {
  .dm-mobile-toggle,
  .dm-sidebar-backdrop {
    display: block;
  }

  .dm-shell__sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
    width: min(86vw, 320px);
  }

  .dm-shell[data-sidebar-open='true'] .dm-shell__sidebar {
    transform: translateX(0);
  }

  .dm-shell[data-sidebar-open='true'] .dm-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
    z-index: 30;
  }

  .dm-shell__main {
    margin-left: 0;
  }
}

.dm-grid-aside {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}

.dm-grid-aside--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .dm-grid-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dm-topbar,
  .dm-page,
  .dm-auth__panel,
  .dm-auth__hero,
  .dm-sidebar__header,
  .dm-sidebar__footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .dm-page {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .dm-page-header {
    margin-bottom: 20px;
  }

  .dm-page-title {
    font-size: 1.9rem;
  }

  .dm-modal__footer {
    justify-content: stretch;
  }

  .dm-modal__footer > .dm-btn {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 10px);
  }

  .dm-kpi-grid,
  .dm-grid--servers,
  .dm-grid--actions {
    grid-template-columns: 1fr;
  }
}

/* ---- Toasts ---- */
.dm-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.dm-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  animation: dm-toast-slide-in 0.25s ease-out;
  min-width: 280px;
  max-width: 420px;
}

.dm-toast--success { border-color: var(--green); }
.dm-toast--success .dm-toast__icon { color: var(--green); }
.dm-toast--error { border-color: var(--red); }
.dm-toast--error .dm-toast__icon { color: var(--red); }
.dm-toast--warning { border-color: var(--yellow); }
.dm-toast--warning .dm-toast__icon { color: var(--yellow); }
.dm-toast--info { border-color: var(--accent); }
.dm-toast--info .dm-toast__icon { color: var(--accent); }

.dm-toast__icon {
  font-size: 1rem;
  flex-shrink: 0;
  font-weight: 700;
}

.dm-toast__message {
  flex: 1 1;
}

.dm-toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.dm-toast__close:hover {
  color: var(--text);
}

@keyframes dm-toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

