/* ==========================================================================
   AWS Control Panel — interface styles
   ========================================================================== */

:root {
  --bg: #060a12;
  --bg-soft: #0a111e;
  --panel: rgba(17, 26, 44, 0.72);
  --panel-solid: #0e1729;
  --panel-deep: #0a1220;
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #e9eff9;
  --muted: #92a3bc;
  --muted-2: #64748b;
  --accent: #ff9f1a;
  --accent-2: #ffc266;
  --accent-soft: rgba(255, 159, 26, 0.12);
  --teal: #2dd4bf;
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.12);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid rgba(255, 159, 26, 0.6);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::selection {
  background: rgba(255, 159, 26, 0.32);
}

h1, h2, h3, p {
  margin: 0;
}

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

button {
  cursor: pointer;
}

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

code, .mono {
  font-family: var(--mono);
  font-size: 0.84em;
  direction: ltr;
  unicode-bidi: embed;
}

.hidden {
  display: none !important;
}

.icon {
  width: 19px;
  height: 19px;
  flex: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 85% -10%, rgba(255, 159, 26, 0.1), transparent 60%),
    radial-gradient(1000px 700px at 0% 100%, rgba(45, 212, 191, 0.07), transparent 55%),
    linear-gradient(180deg, #060a12 0%, #08101d 55%, #060a12 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.orb-a {
  width: 520px;
  height: 520px;
  top: -220px;
  inset-inline-start: 12%;
  background: rgba(255, 159, 26, 0.16);
}

.orb-b {
  width: 460px;
  height: 460px;
  bottom: -180px;
  inset-inline-end: 6%;
  background: rgba(45, 212, 191, 0.12);
}

.orb-c {
  width: 320px;
  height: 320px;
  top: 42%;
  inset-inline-start: 45%;
  background: rgba(96, 165, 250, 0.07);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.brand-text {
  white-space: nowrap;
}

.brand-text strong {
  color: var(--accent);
  font-weight: 700;
}

.logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #11151f;
  background: linear-gradient(140deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 24px rgba(255, 159, 26, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.logo .icon {
  width: 23px;
  height: 23px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-primary {
  color: #17130a;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 28px rgba(255, 159, 26, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
}

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

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.11);
  border-color: rgba(148, 163, 184, 0.38);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.25);
}

.btn-danger:hover {
  filter: brightness(1.08);
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.11);
  border-color: var(--line-strong);
}

.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pulse-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.5);
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.mobile-only {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 44px 24px;
}

.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.login-aside {
  padding: 10px 0;
}

.brand-lg {
  font-size: 19px;
  margin-bottom: 46px;
}

.brand-lg .logo {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.login-aside h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.grad {
  background: linear-gradient(100deg, #ffd08a 0%, var(--accent) 45%, #ff7a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-lead {
  margin-top: 22px;
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.login-points {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  display: grid;
  gap: 16px;
  max-width: 440px;
}

.login-points li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #c8d4e6;
  font-size: 14.5px;
}

.point-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.18);
}

.point-icon .icon {
  width: 17px;
  height: 17px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 40px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.07);
  color: #a7f3d0;
  font-size: 12.5px;
}

.login-card {
  padding: 36px 34px 30px;
  position: relative;
  box-shadow: var(--shadow);
  border-color: rgba(148, 163, 184, 0.18);
}

.lock-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 159, 26, 0.22);
}

.lock-badge .icon {
  width: 26px;
  height: 26px;
}

.login-card h2 {
  font-size: 24px;
  font-weight: 700;
}

.login-card-sub {
  margin-top: 6px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13.5px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: #b9c7da;
  font-size: 13px;
  font-weight: 500;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  padding-inline-end: 74px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 22, 0.65);
  color: var(--text);
  font-size: 15px;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.password-wrap input::placeholder {
  color: var(--muted-2);
  letter-spacing: 2px;
}

.password-wrap input:focus {
  border-color: rgba(255, 159, 26, 0.65);
  background: rgba(6, 12, 22, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 159, 26, 0.1);
}

.password-toggle {
  position: absolute;
  inset-inline-end: 7px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.password-toggle:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.09);
}

.form-error {
  min-height: 22px;
  margin: 9px 0 4px;
  color: #fda4af;
  font-size: 12.5px;
}

.login-card .btn-primary {
  height: 50px;
  margin-top: 8px;
  font-size: 15px;
}

.login-foot {
  margin-top: 20px;
  text-align: center;
  color: var(--muted-2);
  font-size: 11.5px;
}

.shake {
  animation: shake 0.4s ease;
}

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 272px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 22px 24px;
  border-inline-end: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 17, 30, 0.92), rgba(7, 12, 21, 0.88));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sidebar .brand {
  padding-inline: 6px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: start;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}

.nav-item.active {
  color: #fff3e0;
  background: linear-gradient(90deg, rgba(255, 159, 26, 0.16), rgba(255, 159, 26, 0.04));
  border-color: rgba(255, 159, 26, 0.18);
}

.nav-item.active .icon {
  color: var(--accent);
}

.nav-count {
  margin-inline-start: auto;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 159, 26, 0.16);
  color: var(--accent-2);
  font-size: 11.5px;
  font-weight: 600;
}

.sidebar-spacer {
  flex: 1;
}

.account-card {
  padding: 16px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(45, 212, 191, 0.08), transparent 55%),
    rgba(148, 163, 184, 0.04);
}

.account-label {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.account-id {
  margin: 4px 0 9px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 1px;
  color: #dbe7f6;
  direction: ltr;
  text-align: end;
}

.account-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.logout {
  border-color: transparent;
  color: var(--muted);
}

.logout:hover {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.08);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 3.4vw, 46px) 18px;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.94) 55%, rgba(6, 10, 18, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.title-block h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.title-block p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.mobile-brand {
  display: none;
  align-items: center;
  gap: 9px;
  font-size: 15px;
}

.mobile-brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.mobile-brand .logo .icon {
  width: 20px;
  height: 20px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(148, 163, 184, 0.09);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch input:checked + .switch-track {
  background: rgba(255, 159, 26, 0.22);
  border-color: rgba(255, 159, 26, 0.5);
}

.switch input:checked + .switch-track::after {
  transform: translateX(-16px);
  background: var(--accent);
}

html[dir="rtl"] .switch input:checked + .switch-track::after {
  transform: translateX(-16px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid rgba(255, 159, 26, 0.5);
  outline-offset: 2px;
}

.content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px clamp(20px, 3.4vw, 46px) 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

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

.stat-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 45%);
  pointer-events: none;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  border: 1px solid transparent;
}

.stat-icon .icon {
  width: 21px;
  height: 21px;
}

.stat-total {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 159, 26, 0.18);
}

.stat-running {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(52, 211, 153, 0.18);
}

.stat-stopped {
  color: var(--red);
  background: var(--red-soft);
  border-color: rgba(251, 113, 133, 0.16);
}

.stat-regions {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: rgba(96, 165, 250, 0.16);
}

.stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 12.5px;
}

.stat-value {
  margin: 3px 0 1px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}

.stat-hint {
  color: var(--muted-2);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.toolbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  min-width: 210px;
  padding: 0 42px 0 38px;
  padding-inline: 38px 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 22, 0.55);
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.select-wrap select:hover {
  border-color: rgba(148, 163, 184, 0.4);
}

.select-wrap select:focus-visible {
  border-color: rgba(255, 159, 26, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 159, 26, 0.1);
}

.select-wrap select option {
  background: #0e1729;
  color: var(--text);
}

.select-icon {
  position: absolute;
  inset-inline-start: 13px;
  color: var(--muted);
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.chevron {
  position: absolute;
  inset-inline-end: 12px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 420px;
  min-width: 0;
}

.search-wrap .icon {
  position: absolute;
  inset-inline-start: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 42px;
  padding-inline: 42px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 22, 0.55);
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.search-wrap input::placeholder {
  color: var(--muted-2);
}

.search-wrap input:focus {
  border-color: rgba(255, 159, 26, 0.55);
  background: rgba(6, 12, 22, 0.8);
  box-shadow: 0 0 0 3px rgba(255, 159, 26, 0.08);
}

.search-wrap input::-webkit-search-cancel-button {
  filter: invert(0.7);
}

.chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.chip:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}

.chip.active {
  color: #ffe9cc;
  border-color: rgba(255, 159, 26, 0.32);
  background: rgba(255, 159, 26, 0.1);
}

.chip > span:last-child {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}

.chip.active > span:last-child {
  background: rgba(255, 159, 26, 0.2);
  color: var(--accent-2);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-dot.running {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.chip-dot.stopped {
  background: var(--red);
}

.chip-dot.other {
  background: var(--amber);
}

/* --------------------------------------------------------------------------
   Table
   -------------------------------------------------------------------------- */

.table-card {
  overflow: hidden;
}

.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
}

.table-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.table-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.table-head-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.warn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 11px;
  cursor: help;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 99px;
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

thead th {
  padding: 11px 18px;
  text-align: start;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: rgba(6, 12, 22, 0.35);
  border-block: 1px solid var(--line);
  white-space: nowrap;
}

thead th:first-child {
  padding-inline-start: 22px;
}

thead th.th-actions {
  text-align: end;
  padding-inline-end: 22px;
}

tbody tr {
  border-bottom: 1px solid rgba(148, 163, 184, 0.07);
  cursor: pointer;
  transition: background 0.15s ease;
}

tbody tr:last-child {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(148, 163, 184, 0.045);
}

tbody tr:focus-visible {
  outline: 2px solid rgba(255, 159, 26, 0.55);
  outline-offset: -2px;
  background: rgba(148, 163, 184, 0.05);
}

tbody td {
  padding: 13px 18px;
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}

tbody td:first-child {
  padding-inline-start: 22px;
}

.cell-name {
  min-width: 240px;
}

.name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.server-avatar {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 11px;
  border: 1px solid rgba(255, 159, 26, 0.18);
  background: linear-gradient(140deg, rgba(255, 159, 26, 0.16), rgba(255, 159, 26, 0.04));
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.name-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.45;
}

.inst-name {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inst-id {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 10.5px;
  direction: ltr;
  text-align: start;
}

.state-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.state-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.state-running {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.09);
  border-color: rgba(52, 211, 153, 0.2);
}

.state-running .dot {
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
  animation: glow 2.4s ease-in-out infinite;
}

.state-stopped {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.18);
}

.state-pending,
.state-stopping {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.2);
}

.state-other {
  color: var(--muted);
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--line);
}

.type-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  color: #c0cde0;
  font-family: var(--mono);
  font-size: 11px;
  direction: ltr;
}

.region-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.region-cell strong {
  font-weight: 500;
  font-size: 12.5px;
  color: #cbd7e8;
}

.region-cell span {
  color: var(--muted-2);
  font-size: 10.5px;
  font-family: var(--mono);
  direction: ltr;
  text-align: start;
}

.ip-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ip-cell code {
  color: #b9c8dc;
  font-size: 11.5px;
}

.ip-empty {
  color: var(--muted-2);
}

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-2);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

tr:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.copy-btn:hover {
  color: var(--accent);
  background: rgba(255, 159, 26, 0.09);
}

.copy-btn .icon {
  width: 14px;
  height: 14px;
}

.uptime-cell {
  color: var(--muted);
  font-size: 12px;
}

.actions-cell {
  text-align: end;
  padding-inline-end: 22px !important;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.row-btn {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.row-btn .icon {
  width: 15px;
  height: 15px;
}

.row-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--line);
}

.row-btn.act-start:hover {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.2);
}

.row-btn.act-stop:hover {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.2);
}

.row-btn.act-reboot:hover {
  color: #93c5fd;
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.2);
}

.row-btn.act-terminate:hover {
  color: #fda4af;
  background: rgba(251, 113, 133, 0.1);
  border-color: rgba(251, 113, 133, 0.2);
}

.row-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.row-btn.spinning .icon {
  animation: spin 0.8s linear infinite;
}

.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}

#last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#last-updated::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.empty {
  padding: 56px 24px 64px;
  text-align: center;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
}

.empty-icon .icon {
  width: 28px;
  height: 28px;
}

.empty h3 {
  font-size: 16px;
  font-weight: 600;
}

.empty p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.skeleton-row td {
  padding-block: 18px;
}

.sk {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.07) 25%, rgba(148, 163, 184, 0.16) 50%, rgba(148, 163, 184, 0.07) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

.sk.w40 { width: 40%; }
.sk.w60 { width: 60%; }
.sk.w25 { width: 25%; }
.sk.w80 { width: 80%; }

/* --------------------------------------------------------------------------
   Activity
   -------------------------------------------------------------------------- */

.activity-card .table-head {
  padding-bottom: 12px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  padding: 0 10px 10px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 11px;
  transition: background 0.15s ease;
}

.activity-row:hover {
  background: rgba(148, 163, 184, 0.04);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
}

.activity-icon .icon {
  width: 15px;
  height: 15px;
}

.act-start { color: #6ee7b7; background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.16); }
.act-stop { color: #fcd34d; background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.16); }
.act-reboot { color: #93c5fd; background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.16); }
.act-terminate { color: #fda4af; background: rgba(251, 113, 133, 0.08); border-color: rgba(251, 113, 133, 0.16); }
.act-login { color: var(--accent-2); background: rgba(255, 159, 26, 0.08); border-color: rgba(255, 159, 26, 0.16); }

.activity-main {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: #c9d5e6;
}

.activity-main strong {
  font-weight: 600;
  color: var(--text);
}

.activity-main code {
  color: var(--muted);
  font-size: 10.5px;
}

.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  color: var(--muted-2);
  font-size: 10.5px;
}

.activity-fail {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
  font-size: 9.5px;
}

.activity-empty {
  padding: 34px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}

.activity-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 12px 22px;
}

.activity-skeleton span {
  display: block;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.05) 25%, rgba(148, 163, 184, 0.1) 50%, rgba(148, 163, 184, 0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}

.foot {
  padding: 6px 4px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Drawer
   -------------------------------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}

.drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(460px, 100%);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0d1627, #090f1b);
  border-inline-end: 1px solid var(--line-strong);
  box-shadow: 30px 0 80px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  font-size: 17px;
}

.drawer-head h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 290px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-head code {
  color: var(--muted-2);
  font-size: 10.5px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.25) transparent;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section:last-child {
  margin-bottom: 4px;
}

.drawer-section h3 {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.detail-item {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.035);
  min-width: 0;
}

.detail-item.wide {
  grid-column: 1 / -1;
}

.detail-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-size: 10px;
}

.detail-value {
  color: #dbe6f5;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-value.mono {
  font-size: 11px;
}

.drawer-state {
  margin-top: 4px;
}

.drawer-reason {
  display: block;
  margin-top: 8px;
  white-space: normal;
}

.activity-empty.compact {
  padding: 0;
  text-align: start;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
  font-size: 10.5px;
}

.tag b {
  color: #c8d6e8;
  font-weight: 500;
}

.sg-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sg-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.035);
  font-size: 11.5px;
}

.sg-item code {
  color: var(--muted-2);
  font-size: 10px;
}

.drawer-actions {
  display: flex;
  gap: 9px;
  padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(6, 12, 22, 0.4);
}

.drawer-actions .btn {
  flex: 1;
  min-height: 40px;
  padding-inline: 12px;
  font-size: 12.5px;
}

.drawer-actions .btn .icon {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 6, 12, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.modal-open,
body.drawer-open {
  overflow: hidden;
}

.modal-card {
  width: min(440px, 100%);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #101a2d, #0b1322);
  box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
}

.modal-icon.danger {
  border-color: rgba(251, 113, 133, 0.3);
  background: rgba(251, 113, 133, 0.1);
  color: var(--red);
}

.modal-icon .icon {
  width: 23px;
  height: 23px;
}

.modal-card h3 {
  font-size: 19px;
  font-weight: 600;
}

.modal-card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.modal-card > p strong {
  color: #e3ecf8;
  font-weight: 600;
}

.modal-extra {
  margin-top: 16px;
}

.modal-extra:empty {
  display: none;
}

.confirm-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.confirm-label code {
  color: var(--accent-2);
  font-size: 11px;
}

.confirm-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 12, 22, 0.65);
  font-family: var(--mono);
  font-size: 13px;
  direction: ltr;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.confirm-input:focus {
  border-color: rgba(251, 113, 133, 0.6);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.1);
}

.confirm-input.invalid {
  border-color: var(--red);
  animation: shake 0.35s ease;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 24px;
}

.modal-actions .btn {
  min-width: 116px;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 22, 39, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.toast.leaving {
  animation: toast-out 0.22s ease forwards;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
}

.toast-icon .icon {
  width: 15px;
  height: 15px;
}

.toast-success .toast-icon { color: #6ee7b7; background: rgba(52, 211, 153, 0.1); }
.toast-error .toast-icon { color: #fda4af; background: rgba(251, 113, 133, 0.1); }
.toast-warn .toast-icon { color: #fcd34d; background: rgba(251, 191, 36, 0.1); }
.toast-info .toast-icon { color: #93c5fd; background: rgba(96, 165, 250, 0.1); }

.toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #d5e0ef;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes ping {
  0% { transform: scale(0.8); opacity: 0.8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1); }
  50% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(6px); }
  50% { transform: translateX(-5px); }
  75% { transform: translateX(4px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(8px); }
}

.spinning .icon {
  animation: spin 0.8s linear infinite;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

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

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .chips {
    justify-content: flex-start;
  }
}

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

  .mobile-brand {
    display: flex;
  }

  .mobile-only {
    display: inline-grid !important;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 14px;
  }

  .title-block {
    order: 3;
    width: 100%;
  }

  .topbar-actions {
    margin-inline-start: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 30px;
  }

  .login-aside {
    text-align: center;
  }

  .brand-lg {
    justify-content: center;
    margin-bottom: 24px;
  }

  .login-aside h1 {
    font-size: 32px;
  }

  .login-lead,
  .login-points {
    margin-inline: auto;
  }

  .login-points {
    display: none;
  }

  .login-badge {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .content {
    padding-inline: 14px;
    gap: 14px;
  }

  .topbar {
    padding: 18px 14px 12px;
  }

  .title-block h1 {
    font-size: 21px;
  }

  .stats {
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
    gap: 11px;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .stat-icon .icon {
    width: 18px;
    height: 18px;
  }

  .stat-value {
    font-size: 23px;
  }

  .stat-hint {
    display: none;
  }

  .switch-label {
    display: none;
  }

  .topbar-actions .btn .btn-label {
    display: none;
  }

  .topbar-actions .btn-ghost {
    width: 40px;
    padding: 0;
  }

  .toolbar {
    padding: 12px;
  }

  .toolbar-main {
    flex-direction: column;
    align-items: stretch;
  }

  .select-wrap select {
    width: 100%;
    min-width: 0;
  }

  .search-wrap {
    max-width: none;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
    padding: 0 9px;
  }

  .table-head {
    padding: 16px 16px 14px;
  }

  table {
    min-width: 0;
  }

  thead th:nth-child(3),
  tbody td:nth-child(3),
  thead th:nth-child(4),
  tbody td:nth-child(4),
  thead th:nth-child(5),
  tbody td:nth-child(5),
  thead th:nth-child(6),
  tbody td:nth-child(6) {
    display: none;
  }

  thead th {
    padding-inline: 10px;
  }

  thead th:first-child {
    padding-inline-start: 14px;
  }

  tbody td {
    padding-inline: 10px;
  }

  tbody td:first-child {
    padding-inline-start: 14px;
  }

  .cell-name {
    min-width: 0;
  }

  .name-wrap {
    gap: 9px;
  }

  .server-avatar {
    width: 33px;
    height: 33px;
    font-size: 13px;
    border-radius: 9px;
  }

  .inst-name {
    max-width: 94px;
  }

  .inst-id {
    display: block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .actions-cell {
    padding-inline-end: 10px !important;
  }

  .row-actions {
    gap: 0;
  }

  .row-btn {
    width: 28px;
    height: 28px;
  }

  .table-foot {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .login {
    padding: 24px 14px;
  }

  .login-card {
    padding: 26px 20px 22px;
  }

  .login-aside h1 {
    font-size: 27px;
  }

  .drawer-panel {
    width: 100%;
  }

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

  .modal-card {
    padding: 22px;
  }

  .toasts {
    left: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
