﻿@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07111f;
  --bg-elevated: rgba(17, 27, 48, 0.88);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --bg-softer: rgba(255, 255, 255, 0.02);
  --surface: rgba(9, 17, 31, 0.72);
  --surface-strong: rgba(13, 24, 43, 0.92);
  --surface-card: linear-gradient(180deg, rgba(19, 30, 54, 0.92), rgba(10, 18, 33, 0.92));
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --text: #edf3ff;
  --muted: rgba(237, 243, 255, 0.72);
  --muted-soft: rgba(237, 243, 255, 0.56);
  --accent: #4ecdc4;
  --accent-strong: #0ea5e9;
  --accent-warm: #f59e0b;
  --success: #22c55e;
  --danger: #ef4444;
  --shadow-xl: 0 28px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.22);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-width: 320px;
  --topbar-height: 86px;
  --content-padding: 32px;
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --font-xs: 12px;
  --font-sm: 13px;
  --font-md: 15px;
  --font-lg: 18px;
  --font-xl: 24px;
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-bg-hover: rgba(255, 255, 255, 0.07);
  --field-bg-focus: rgba(78, 205, 196, 0.08);
  --field-error: #fca5a5;
}

@media (max-width: 1440px) {
  :root {
    --sidebar-width: 280px;
    --content-padding: 24px;
  }

  .workspace-sidebar {
    padding: 22px 16px;
  }

  .workspace-nav-item {
    padding: 14px;
  }

  .workspace-nav-copy span,
  .workspace-sidebar-head p {
    font-size: 12px;
  }
}

html.theme-light {
  --bg: #eef4ff;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-soft: rgba(11, 18, 33, 0.05);
  --bg-softer: rgba(11, 18, 33, 0.03);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --surface-card: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  --stroke: rgba(15, 23, 42, 0.1);
  --stroke-strong: rgba(15, 23, 42, 0.18);
  --text: #101828;
  --muted: rgba(16, 24, 40, 0.72);
  --muted-soft: rgba(16, 24, 40, 0.56);
  --shadow-xl: 0 28px 80px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.08);
  --field-bg: rgba(15, 23, 42, 0.04);
  --field-bg-hover: rgba(15, 23, 42, 0.07);
  --field-bg-focus: rgba(14, 165, 233, 0.08);
  --field-error: #b91c1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  font-family: var(--font);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at left 10%, rgba(78, 205, 196, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.11), transparent 24%),
    linear-gradient(180deg, #06101b 0%, var(--bg) 42%, #040914 100%);
  direction: rtl;
  overflow-x: hidden;
  overflow-y: auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html.theme-light body {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%),
    radial-gradient(circle at left 10%, rgba(78, 205, 196, 0.1), transparent 36%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 48%, #ecf3ff 100%);
}

html.theme-light .workspace-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(235, 245, 255, 0.9));
  border-inline-start-color: rgba(15, 23, 42, 0.06);
  border-inline-end-color: rgba(15, 23, 42, 0.12);
  box-shadow: 18px 0 50px rgba(15, 23, 42, 0.08);
}

html.theme-light .workspace-topbar,
html.theme-light .minimal-topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 246, 255, 0.68));
}

html.theme-light .workspace-nav-item {
  background: rgba(255, 255, 255, 0.58);
}

html.theme-light .workspace-nav-item:hover,
html.theme-light .workspace-nav-item.active {
  background: rgba(78, 205, 196, 0.16);
}

html.theme-light .workspace-nav-icon,
html.theme-light .user-chip,
html.theme-light .icon-btn {
  background: rgba(15, 23, 42, 0.04);
}

html.theme-light .auth-showcase {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.9));
  color: var(--text);
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  background: rgba(4, 9, 20, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.app-loading-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.app-loading-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--stroke-strong);
  box-shadow: var(--shadow-xl);
}

.app-loading-mark::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(78, 205, 196, 0.22);
  border-top-color: var(--accent);
  border-inline-end-color: var(--accent-strong);
  animation: app-loading-spin 760ms linear infinite;
}

.app-loading-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: app-loading-pulse 900ms ease-in-out infinite;
}

.app-loading-mark span:nth-child(1) {
  transform: translate(-18px, 18px);
}

.app-loading-mark span:nth-child(2) {
  animation-delay: 140ms;
}

.app-loading-mark span:nth-child(3) {
  transform: translate(18px, -18px);
  animation-delay: 280ms;
}

html.theme-light .app-loading-overlay {
  background: rgba(238, 244, 255, 0.48);
}

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

@keyframes app-loading-pulse {
  0%,
  100% {
    opacity: 0.35;
    scale: 0.72;
  }

  50% {
    opacity: 1;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-loading-overlay {
    transition: none;
  }

  .app-loading-mark::before,
  .app-loading-mark span {
    animation-duration: 1.8s;
  }
}

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

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

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

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

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

*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

html.theme-light *::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.14);
}

.hidden,
.visually-hidden-block {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.w100 {
  width: 100%;
}

.mt16 {
  margin-top: 16px;
}

.text-ltr {
  direction: ltr;
  unicode-bidi: plaintext;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.backdrop-glow {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.6;
}

.glow-a {
  inset: 6% auto auto 8%;
  width: 340px;
  height: 340px;
  background: rgba(14, 165, 233, 0.16);
}

.glow-b {
  inset: auto 10% 12% auto;
  width: 360px;
  height: 360px;
  background: rgba(78, 205, 196, 0.12);
}

.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 80%);
}

.workspace-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--topbar-height) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar content";
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

.workspace-sidebar {
  grid-area: sidebar;
  position: sticky;
  inset-inline-start: auto;
  inset-inline-end: 0;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(6, 14, 25, 0.92), rgba(8, 14, 25, 0.76));
  border-inline-start: 1px solid rgba(255, 255, 255, 0.04);
  border-inline-end: 1px solid var(--stroke);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 20;
}

.workspace-topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  min-width: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px var(--content-padding);
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.88), rgba(7, 15, 28, 0.48));
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
}

.workspace-content {
  grid-area: content;
  min-width: 0;
  padding: calc(var(--content-padding) - 4px) var(--content-padding) 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.minimal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 28px;
  background: linear-gradient(180deg, rgba(7, 15, 28, 0.9), rgba(7, 15, 28, 0.58));
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(18px);
}

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

.minimal-content {
  padding: 32px;
}

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

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.28), rgba(14, 165, 233, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 18px 34px rgba(0, 0, 0, 0.2);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.app-security-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.app-security-mark .app-icon {
  width: 28px;
  height: 28px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

.workspace-sidebar-head {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace-sidebar-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

.sidebar-kicker,
.topbar-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(78, 205, 196, 0.22);
  background: rgba(78, 205, 196, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

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

.workspace-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.workspace-nav-item:hover,
.workspace-nav-item.active {
  transform: translateY(-1px);
  border-color: rgba(78, 205, 196, 0.22);
  background: rgba(78, 205, 196, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
}

.workspace-nav-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  font-size: 13px;
  font-weight: 700;
}

.workspace-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workspace-nav-copy strong {
  font-size: 15px;
}

.workspace-nav-copy span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.workspace-sidebar-foot {
  margin-top: auto;
}

.status-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(78, 205, 196, 0.08));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-card strong {
  font-size: 22px;
}

.status-card span:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.status-label {
  color: var(--muted-soft);
  font-size: 12px;
}

.workspace-topbar-main,
.workspace-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.workspace-topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workspace-topbar-copy strong {
  font-size: 22px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}

.user-chip-mark {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(14, 165, 233, 0.22));
  font-weight: 700;
}

.user-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-chip-copy strong {
  font-size: 14px;
}

.user-chip-copy span {
  font-size: 12px;
  color: var(--muted);
}

.icon-btn,
.btn,
.category-pill,
.workspace-nav-item,
.project-command-card,
.inventory-card,
.checkbox-tile {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon-btn,
.btn {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.action-icon-btn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 14px;
}

.icon-btn:hover,
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn:disabled,
.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(78, 205, 196, 0.2));
  border-color: rgba(78, 205, 196, 0.34);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.18);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.btn.ghost {
  background: transparent;
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(185, 28, 28, 0.18));
  border-color: rgba(239, 68, 68, 0.28);
}

.icon-btn.danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.14));
  border-color: rgba(239, 68, 68, 0.28);
}

.icon-btn.copied {
  border-color: rgba(34, 197, 94, 0.38);
  background: rgba(34, 197, 94, 0.14);
}

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

.btn-fit {
  width: fit-content;
  align-self: flex-start;
}

.nav-toggle-btn {
  display: none;
}

.hero-panel,
.card,
.toolbar-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
}

.hero-panel {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(78, 205, 196, 0.18), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.16), transparent 32%);
  pointer-events: none;
}

.hero-panel-tight {
  padding: 26px 28px;
}

.workspace-content > .hero-panel.hero-panel-tight:first-child {
  display: none;
}

.page-command-bar {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-command-bar h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.danger-hero::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(239, 68, 68, 0.18), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.14), transparent 32%);
}

.hero-copy,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.35;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.metric-grid,
.dashboard-grid,
.mini-metric-grid,
.project-command-grid,
.checkbox-grid,
.form-grid,
.inventory-grid {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 22px;
  background: linear-gradient(180deg, rgba(15, 25, 46, 0.86), rgba(8, 16, 29, 0.92));
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.theme-light .metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.94));
}

.metric-card span {
  color: var(--muted);
}

.metric-card strong {
  font-size: 34px;
}

.metric-card small {
  color: var(--muted-soft);
}

.metric-grid-compact {
  gap: 14px;
}

.projects-overview-bar,
.settings-tab-head {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(12, 22, 40, 0.74);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

.projects-overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.projects-overview-bar h1,
.settings-tab-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.projects-overview-bar p,
.settings-tab-head p {
  margin: 6px 0 0;
  line-height: 1.8;
}

.projects-overview-stats {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}


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

.dashboard-page {
  text-align: center;
}

.dashboard-page .metric-card,
.dashboard-page .mini-metric {
  align-items: center;
  text-align: center;
}

.dashboard-page .card {
  text-align: initial;
}

.dashboard-page .section-mini-head {
  justify-content: space-between;
  text-align: initial;
}

.dashboard-page .metric-card {
  justify-content: center;
}

.dashboard-page .mini-metric {
  justify-content: center;
}

.dashboard-page .dashboard-grid-wide .section-mini-head,
.dashboard-page .dashboard-grid-wide .chip-row {
  justify-content: center;
}

.dashboard-page .dashboard-grid-wide .section-mini-head {
  text-align: center;
}

.dashboard-page .dashboard-grid-wide .card {
  text-align: center;
}

.dashboard-page .dashboard-grid-three .section-mini-head {
  margin-bottom: 12px;
}

.dashboard-page .dashboard-grid-three .card {
  text-align: start;
}

.dashboard-page .dashboard-grid-three .stack-list-row,
.dashboard-page .dashboard-grid-three .activity-row {
  text-align: start;
}

.dashboard-page .session-row {
  align-items: center;
}

.dashboard-page .session-row-meta {
  align-items: flex-start;
}

.dashboard-grid-wide {
  grid-template-columns: 1.3fr 1fr;
}

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

.dashboard-fit-grid {
  gap: 14px;
}

.dashboard-compact-card {
  padding: 18px;
}

.dashboard-compact-card .section-mini-head {
  margin-bottom: 2px;
}

.dashboard-compact-card .mini-metric-grid {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-compact-card .mini-metric {
  padding: 12px;
  border-radius: 16px;
  gap: 4px;
}

.dashboard-compact-card .mini-metric strong {
  font-size: 22px;
}

.dashboard-alert-card {
  border-color: rgba(245, 158, 11, 0.24);
}

.compact-stack {
  gap: 8px;
}

.compact-stack .stack-list-row,
.compact-stack .activity-row {
  padding: 10px 12px;
  border-radius: 16px;
}

.session-row {
  gap: 12px;
}

.session-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.session-ip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.session-ip span {
  color: var(--muted-soft);
  font-weight: 700;
}

.session-ip strong {
  color: var(--text);
  font-weight: 700;
}

.dashboard-v2 {
  text-align: initial;
}

.dashboard-v2 .dashboard-grid-wide .section-mini-head {
  justify-content: space-between;
  text-align: initial;
}

.dashboard-v2 .dashboard-grid-wide .card {
  text-align: initial;
}

.dashboard-ops-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.14), transparent 34%),
    linear-gradient(225deg, rgba(96, 165, 250, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(15, 25, 46, 0.92), rgba(8, 16, 29, 0.9));
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

html.theme-light .dashboard-ops-card,
html.theme-light .dashboard-kpi-card,
html.theme-light .infra-node,
html.theme-light .infra-action-card,
html.theme-light .mix-bar-row,
html.theme-light .attention-row,
html.theme-light .presence-row,
html.theme-light .timeline-item {
  background-color: rgba(255, 255, 255, 0.72);
}

.ops-copy {
  display: grid;
  gap: 10px;
}

.ops-copy h2 {
  margin: 0;
  font-size: 24px;
}

.ops-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.ops-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-chip {
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.ops-chip.ok {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.ops-chip.warn {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.ops-chip.danger {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.health-score-card {
  position: relative;
  display: grid;
  place-items: center;
  outline: none;
}

.health-ring {
  --score: 0;
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(7, 17, 31, 0.94) 0 57%, transparent 58%),
    conic-gradient(#4ecdc4 calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 0 24px rgba(78, 205, 196, 0.12), 0 16px 40px rgba(0, 0, 0, 0.22);
}

.health-ring.warn {
  background:
    radial-gradient(circle at center, rgba(7, 17, 31, 0.94) 0 57%, transparent 58%),
    conic-gradient(#f59e0b calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0);
}

.health-ring.danger {
  background:
    radial-gradient(circle at center, rgba(7, 17, 31, 0.94) 0 57%, transparent 58%),
    conic-gradient(#ef4444 calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0);
}

.health-ring strong {
  font-size: 28px;
}

.health-ring span {
  margin-top: 42px;
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-tooltip {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 12px);
  z-index: 20;
  width: min(360px, calc(100vw - 48px));
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke-strong);
  background: rgba(8, 16, 29, 0.98);
  box-shadow: var(--shadow-xl);
  color: var(--text);
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.health-score-card:hover .health-tooltip,
.health-score-card:focus-visible .health-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.health-tooltip strong {
  font-size: 13px;
}

.health-tooltip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.dashboard-kpi-grid {
  margin-top: 16px;
}

.dashboard-kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border-radius: 18px;
}

.dashboard-kpi-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 18px;
  width: 3px;
  border-radius: 999px;
  background: var(--kpi, #4ecdc4);
  box-shadow: 0 0 24px color-mix(in srgb, var(--kpi, #4ecdc4) 55%, transparent);
}

.dashboard-kpi-card.teal { --kpi: #4ecdc4; }
.dashboard-kpi-card.blue { --kpi: #38bdf8; }
.dashboard-kpi-card.amber { --kpi: #f59e0b; }
.dashboard-kpi-card.green { --kpi: #22c55e; }

.dashboard-kpi-card small.trend.up {
  color: #86efac;
}

.dashboard-kpi-card small.trend.down {
  color: #fca5a5;
}

.dashboard-kpi-card small.trend.flat {
  color: var(--muted-soft);
}

.infra-map-card {
  display: grid;
  gap: 16px;
}

.infra-flow {
  min-height: 136px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.infra-live-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.infra-flow > i {
  display: none;
}

.infra-node {
  min-height: 104px;
  border: 1px solid color-mix(in srgb, var(--node, #4ecdc4) 35%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--node, #4ecdc4) 15%, transparent), rgba(8, 16, 29, 0.66));
  display: grid;
  place-items: center;
  gap: 2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.infra-node:hover,
.infra-node:focus-visible {
  border-color: color-mix(in srgb, var(--node, #4ecdc4) 70%, transparent);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), 0 0 0 3px color-mix(in srgb, var(--node, #4ecdc4) 12%, transparent);
  transform: translateY(-2px);
  outline: none;
}

.infra-node.host { --node: #4ecdc4; }
.infra-node.vm { --node: #38bdf8; }
.infra-node.ip { --node: #60a5fa; }
.infra-node.backup { --node: #f59e0b; }

.infra-node span,
.infra-node small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.infra-node strong {
  font-size: 30px;
}

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

.infra-action-card {
  --action: #64748b;
  min-height: 110px;
  border: 1px solid color-mix(in srgb, var(--action) 24%, var(--stroke));
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--action) 10%, transparent), rgba(255, 255, 255, 0.035));
  color: var(--text);
  text-decoration: none;
  display: grid;
  align-content: center;
  gap: 6px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.infra-action-card:hover,
.infra-action-card:focus-visible {
  border-color: color-mix(in srgb, var(--action) 58%, var(--stroke));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--action) 16%, transparent), rgba(255, 255, 255, 0.045));
  transform: translateY(-2px);
  outline: none;
}

.infra-action-card.warn { --action: #f59e0b; }
.infra-action-card.info { --action: #38bdf8; }
.infra-action-card.danger { --action: #fb7185; }
.infra-action-card.quiet {
  --action: #4ecdc4;
  opacity: 0.78;
}

.infra-action-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.infra-action-card strong {
  font-size: 26px;
  line-height: 1;
}

.infra-action-card small {
  color: var(--muted-soft);
  font-size: 12px;
  font-weight: 800;
}

.mix-bar-list,
.attention-list,
.presence-list,
.dashboard-timeline {
  display: grid;
  gap: 10px;
}

.mix-bar-row {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.mix-bar-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mix-bar-row span {
  color: var(--muted);
  font-size: 13px;
}

.mix-bar-row strong {
  font-size: 16px;
}

.mix-bar-row bdi {
  direction: ltr;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.mix-bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
}

.mix-bar i {
  display: block;
  height: 100%;
  width: calc(var(--mix, 0) * 1%);
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent, #4ecdc4), color-mix(in srgb, var(--accent, #4ecdc4) 55%, white));
}

.attention-card {
  border-color: rgba(245, 158, 11, 0.24);
}

.attention-row,
.presence-row,
.timeline-item {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.attention-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.attention-row > strong {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.attention-row.danger > strong {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.attention-row.warn > strong {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.attention-row.ok > strong {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.attention-row span,
.presence-row strong,
.timeline-item strong {
  font-weight: 900;
}

.attention-row small,
.timeline-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.7;
}

.presence-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.presence-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: #bfdbfe;
  font-weight: 900;
}

.presence-row.active .presence-avatar {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
  color: #86efac;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.timeline-item > span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent, #4ecdc4);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent, #4ecdc4) 14%, transparent);
}

.timeline-item time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.audit-toggle-row {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.card {
  padding: 24px;
}

.soft-card,
.inline-card,
.danger-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.danger-card {
  border-color: rgba(239, 68, 68, 0.26);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-mini-head h2,
.section-mini-head h3,
.section-mini-head h4 {
  margin: 0;
  font-size: 18px;
}

.mini-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-metric {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-metric span {
  color: var(--muted);
  font-size: 13px;
}

.mini-metric strong {
  font-size: 24px;
}

.dashboard-cta-row,
.inline-actions,
.chip-row,
.toolbar-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-card {
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.toolbar-group.grow {
  flex: 1 1 280px;
}

.toolbar-group-actions {
  justify-content: flex-end;
}

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

.form {
  gap: 16px;
}

[hidden] {
  display: none !important;
}

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

.field label,
.field-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: var(--field-bg);
  color: var(--text);
  min-height: 48px;
  padding: 12px 14px;
  outline: none;
  caret-color: var(--accent);
  color-scheme: dark;
}

html.theme-light input,
html.theme-light textarea,
html.theme-light select {
  color-scheme: light;
}

select {
  appearance: auto;
}

select option,
select optgroup {
  background: #0d182b;
  color: #edf3ff;
}

select option:hover,
select option:checked {
  background: #153452;
  color: #ffffff;
}

html.theme-light select option,
html.theme-light select optgroup {
  background: #ffffff;
  color: #101828;
}

input:hover,
textarea:hover,
select:hover {
  background: var(--field-bg-hover);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(78, 205, 196, 0.5);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.12);
  background: var(--field-bg-focus);
}

input.password-strength-weak,
input.password-strength-weak:focus {
  border-color: rgba(239, 68, 68, 0.78);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

input.password-strength-medium,
input.password-strength-medium:focus {
  border-color: rgba(245, 158, 11, 0.82);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

input.password-strength-strong,
input.password-strength-strong:focus {
  border-color: rgba(34, 197, 94, 0.78);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.segmented-ip-input {
  width: min(360px, 100%);
  min-height: 48px;
  border: 1px solid rgba(239, 68, 68, 0.72);
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.075);
  color: var(--text);
  display: grid;
  grid-template-columns: 64px auto 64px auto 64px auto 64px;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  align-self: flex-start;
  direction: ltr;
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.segmented-ip-input:focus-within {
  border-color: rgba(239, 68, 68, 0.86);
  box-shadow: none;
}

.segmented-ip-input.is-valid {
  border-color: rgba(34, 197, 94, 0.78);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: none;
}

.segmented-ip-input.is-valid:focus-within {
  border-color: rgba(34, 197, 94, 0.86);
  box-shadow: none;
}

.segmented-ip-input input {
  min-height: 46px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: center;
  direction: ltr;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.segmented-ip-input input:hover,
.segmented-ip-input input:focus {
  background: transparent;
  box-shadow: none;
  border: 0;
  outline: none;
}

.segmented-ip-input input.is-valid {
  color: #86efac;
}

.segmented-ip-input input.is-invalid {
  color: #fca5a5;
}

.ip-separator {
  color: var(--muted);
  font-weight: 900;
  padding-inline: 6px;
  transform: translateY(-1px);
}

.segmented-ip-error {
  margin-top: 2px;
}

input[readonly] {
  opacity: 0.8;
}

.error {
  color: var(--field-error);
  font-size: 12px;
}

.info-chip,
.pill,
.version-pill,
.page-badge {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  gap: 6px;
}

.pill.ok {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
}

.pill.warn {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
}

.pill.danger {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.12);
}

.pill.neutral {
  border-color: rgba(255, 255, 255, 0.14);
}

.category-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-pills-wrap {
  align-items: center;
}

.category-pills-wrap .category-pill {
  flex: 0 1 auto;
}

.category-pill {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
}

.category-pill span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-pill.active,
.category-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(78, 205, 196, 0.32);
  background: rgba(78, 205, 196, 0.12);
}

.category-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  font-size: 11px;
  font-weight: 700;
}

.project-command-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-command-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(78, 205, 196, 0.16);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.11), transparent 36%),
    linear-gradient(180deg, rgba(18, 29, 50, 0.92), rgba(8, 15, 27, 0.94));
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  direction: rtl;
  text-align: right;
}

.project-command-card-polished {
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-command-card-polished:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 205, 196, 0.42);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(22, 36, 61, 0.94), rgba(10, 19, 33, 0.96));
}

html.theme-light .project-command-card,
html.theme-light .inventory-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
}

.project-command-card-large {
  min-height: 100%;
}

.project-command-link {
  color: inherit;
  cursor: pointer;
  min-height: 228px;
}

.project-command-link:focus-visible {
  outline: 2px solid rgba(78, 205, 196, 0.72);
  outline-offset: 3px;
}

.project-command-link .project-command-head,
.project-command-link .project-command-stats,
.project-command-link .muted {
  position: relative;
  z-index: 1;
}

.project-command-head,
.inventory-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-command-head-rich {
  justify-content: space-between;
  align-items: center;
  direction: rtl;
}

.project-command-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(78, 205, 196, 0.32);
  background: linear-gradient(180deg, rgba(78, 205, 196, 0.2), rgba(14, 165, 233, 0.08));
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.project-command-title {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  text-align: right;
  direction: rtl;
}

.project-command-title strong {
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.project-command-kicker {
  width: fit-content;
  color: rgba(148, 163, 184, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.project-command-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  justify-content: flex-start;
}

.project-command-stats span {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.035);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-command-meta span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.project-command-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  justify-content: flex-start;
}

.project-command-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  direction: rtl;
}

.project-command-actions .inline-form {
  flex: 1 1 230px;
  justify-content: flex-start;
}

.stack-list,
.stack-section,
.dynamic-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.stack-list-row-start {
  align-items: flex-start;
}

.activity-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}

.empty-state {
  min-height: 180px;
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 30px 24px;
  text-align: center;
}

.empty-state.subtle {
  min-height: 120px;
}

.empty-state strong {
  font-size: 18px;
}

.table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--stroke);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px;
  border-bottom: 1px solid var(--stroke);
  text-align: right;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
}

.alert {
  margin: 0 0 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert.info {
  background: rgba(14, 165, 233, 0.12);
}

.alert-title {
  font-size: 14px;
}

.alert.success {
  background: rgba(34, 197, 94, 0.12);
}

.alert.warn {
  background: rgba(245, 158, 11, 0.12);
}

.alert.danger {
  background: rgba(239, 68, 68, 0.12);
}

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

.page-title {
  margin: 0;
  font-size: 30px;
}

.page-header-copy {
  display: flex;
  flex-direction: column;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.ops-layout-clean {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
}

.ops-main,
.ops-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.infra-toolbar-polished {
  align-items: end;
  gap: 14px;
}

.infra-toolbar-polished .toolbar-group.grow {
  min-width: min(520px, 100%);
}

.infra-toolbar-polished input,
.infra-toolbar-polished select {
  min-height: 48px;
}

.inventory-shell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inventory-shell .empty-state-compact {
  border-style: solid;
  background: rgba(255, 255, 255, 0.025);
}

.inventory-shell-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.inventory-shell-head > div:first-child {
  min-width: 0;
}

.inventory-shell-head h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.inventory-shell-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  max-width: 100%;
  min-width: min(420px, 100%);
}

.inventory-actions .btn,
.inventory-actions .info-chip {
  flex: 0 0 auto;
  white-space: nowrap;
}

.inventory-actions .info-chip {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.inventory-grid.host-list-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.host-browser-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.host-browser-layout.host-browser-active {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.62fr);
}

.host-browser-layout.host-browser-active .inventory-grid.host-list-grid {
  min-width: 0;
}

.host-vm-panel {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  min-width: 0;
  max-height: calc(100vh - var(--topbar-height) - 56px);
  overflow: auto;
  border: 1px solid rgba(78, 205, 196, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 28, 48, 0.94), rgba(7, 17, 31, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.host-vm-panel-head {
  padding-bottom: 12px;
}

.host-vm-panel-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.host-vm-list {
  margin-top: 12px;
}

.host-vm-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  min-height: 48px;
  cursor: default;
}

.host-vm-row[draggable="true"] {
  cursor: grab;
}

.host-vm-main {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

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

.host-tree-popover {
  display: none;
  position: relative;
  width: min(430px, 100%);
  margin-top: 12px;
  margin-inline-start: auto;
  border: 1px solid rgba(78, 205, 196, 0.38);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(14, 28, 48, 0.98), rgba(7, 17, 31, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
  padding: 14px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.host-tree-popover.visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.host-tree-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.host-tree-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(78, 205, 196, 0.34);
  background: rgba(78, 205, 196, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  font-size: 12px;
  font-weight: 900;
}

.host-tree-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.host-tree-head strong,
.host-tree-vm strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-tree-head bdi,
.host-tree-vm bdi {
  color: var(--muted);
  font-weight: 800;
}

.host-tree-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.host-tree-vm {
  position: relative;
  display: grid;
  grid-template-columns: 12px 8px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid rgba(78, 205, 196, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: right;
  cursor: pointer;
  animation: host-tree-in 260ms ease both;
  animation-delay: var(--tree-delay, 0ms);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.host-tree-vm[draggable="true"] {
  cursor: grab;
}

.host-tree-vm.dragging {
  opacity: 0.55;
  cursor: grabbing;
  border-color: rgba(78, 205, 196, 0.58);
  background: rgba(78, 205, 196, 0.14);
}

.host-tree-vm:hover,
.host-tree-vm:focus-visible {
  border-color: rgba(78, 205, 196, 0.48);
  background: rgba(78, 205, 196, 0.11);
  transform: translateY(-1px);
  outline: none;
}

.host-tree-line {
  width: 12px;
  height: 1px;
  background: rgba(78, 205, 196, 0.42);
}

.host-tree-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.host-tree-vm-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(90px, 1.1fr) minmax(110px, 1.3fr) auto minmax(84px, 0.9fr);
  gap: 8px;
  align-items: center;
}

.host-tree-vm strong {
  font-size: 12px;
}

.host-tree-vm span,
.host-tree-vm em,
.host-tree-vm bdi {
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-tree-vm em {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-style: normal;
  font-weight: 900;
}

.host-tree-vm.is-inactive em {
  background: rgba(248, 113, 113, 0.13);
  color: #fca5a5;
}

.host-tree-vm.is-inactive .host-tree-dot {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.host-tree-empty {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

@keyframes host-tree-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.host-manage-card {
  cursor: default;
}

.host-manage-card.expanded {
  border-color: rgba(78, 205, 196, 0.42);
  background: linear-gradient(180deg, rgba(18, 34, 58, 0.94), rgba(9, 17, 31, 0.96));
}

.host-vm-manage-panel {
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(78, 205, 196, 0.22);
  border-radius: 18px;
  background: rgba(4, 12, 24, 0.42);
  animation: host-vm-panel-in 180ms ease both;
}

.host-vm-manage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.host-vm-manage-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.host-vm-manage-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.host-vm-manage-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 205, 196, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
  animation: host-tree-in 220ms ease both;
  animation-delay: var(--tree-delay, 0ms);
}

.host-vm-manage-row[draggable="true"] {
  cursor: grab;
}

.host-vm-manage-row.dragging {
  opacity: 0.55;
  border-color: rgba(78, 205, 196, 0.58);
  background: rgba(78, 205, 196, 0.12);
}

.host-vm-manage-row.is-inactive .host-tree-dot {
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.host-vm-main {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(140px, 1.2fr) auto minmax(96px, 0.8fr);
  gap: 10px;
  align-items: center;
  text-align: right;
}

.host-vm-main span,
.host-vm-main em,
.host-vm-main bdi {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.host-vm-name {
  font-weight: 900;
}

.host-vm-main em {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-style: normal;
  font-weight: 900;
}

.host-vm-manage-row.is-inactive .host-vm-main em {
  background: rgba(248, 113, 113, 0.13);
  color: #fca5a5;
}

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

.host-vm-empty-row {
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
}

.host-inline-expand {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 12px;
  border-color: rgba(78, 205, 196, 0.32);
  color: #bffefa;
  direction: ltr;
  font-weight: 900;
}

.host-inline-expand.active {
  background: rgba(78, 205, 196, 0.15);
  border-color: rgba(78, 205, 196, 0.56);
}

.host-tree-dialog {
  width: min(1860px, calc(100vw - 22px));
  max-width: calc(100vw - 22px);
  height: min(940px, calc(100vh - 22px));
  max-height: calc(100vh - 22px);
}

.host-tree-dialog::backdrop {
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
}

.host-tree-shell {
  width: 100%;
  height: 100%;
  max-height: none;
}

.host-tree-dialog-head {
  border-bottom-color: rgba(78, 205, 196, 0.18);
  min-height: 72px;
  padding-block: 14px;
}

.host-tree-dialog-body {
  padding: 0;
  min-height: 0;
  flex: 1;
}

.tree-map-stage {
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 22px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(78, 205, 196, 0.2), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.16), transparent 34%),
    radial-gradient(circle at 54% 82%, rgba(34, 197, 94, 0.1), transparent 30%),
    rgba(3, 9, 19, 0.78);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
}

.tree-fit-mode .tree-map-stage {
  max-height: none;
}

.tree-map-canvas {
  width: 100%;
  min-height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  align-content: start;
}

.tree-fit-mode .tree-map-canvas {
  width: 100%;
}

.tree-network-cluster {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--host-accent, #4ecdc4) 24%, transparent);
  border-radius: 14px;
  background:
    linear-gradient(135deg, hsla(var(--host-hue, 174), 60%, 18%, 0.24), rgba(4, 12, 24, 0.78)),
    linear-gradient(90deg, var(--host-soft, rgba(78, 205, 196, 0.12)), transparent 55%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: minmax(220px, 0.24fr) minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  overflow: hidden;
  animation: tree-cluster-in 360ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--cluster-delay, 0ms);
}

.tree-network-cluster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 34%);
}

.network-host-core {
  position: relative;
  box-sizing: border-box;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  align-self: stretch;
  min-width: 0;
  padding: 7px 9px 7px 70px;
  appearance: none;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--host-accent, #4ecdc4) 42%, transparent);
  background:
    linear-gradient(135deg, hsla(var(--host-hue, 174), 66%, 24%, 0.34), rgba(6, 18, 32, 0.68));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--host-accent, #4ecdc4) 10%, transparent);
  text-align: right;
}

.network-host-core:hover,
.network-host-core:focus-visible {
  border-color: color-mix(in srgb, var(--host-accent, #4ecdc4) 68%, transparent);
  background:
    linear-gradient(135deg, hsla(var(--host-hue, 174), 66%, 27%, 0.42), rgba(6, 18, 32, 0.76));
  outline: none;
}

.network-host-orbit {
  display: none;
}

.network-host-kind {
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--host-accent, #4ecdc4) 20%, transparent);
  color: color-mix(in srgb, var(--host-accent, #4ecdc4) 82%, white);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.network-host-type {
  position: absolute;
  left: 9px;
  top: 9px;
  max-width: 58px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  background: rgba(148, 163, 184, 0.13);
  border: 1px solid color-mix(in srgb, var(--host-accent, #4ecdc4) 26%, rgba(148, 163, 184, 0.34));
  color: #d9fbff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-host-type.is-empty {
  display: none;
}

.network-host-core strong,
.network-host-core bdi,
.network-vm-node strong,
.network-vm-node span,
.network-vm-node bdi {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.network-host-core strong {
  font-size: 14px;
  line-height: 1.2;
}

.network-host-core bdi {
  color: #d8f7ff;
  font-size: 12px;
  font-weight: 900;
  grid-column: 1 / -1;
  text-align: left;
  justify-self: start;
}

.network-vm-cloud {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(246px, 1fr));
  gap: 5px;
  align-content: start;
  align-items: stretch;
}

.network-vm-cloud::before {
  display: none;
}

.network-vm-header {
  display: none;
}

.network-vm-node {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--host-accent, #4ecdc4) 24%, transparent);
  border-radius: 8px;
  padding: 4px 27px 4px 8px;
  background: color-mix(in srgb, var(--host-accent, #4ecdc4) 8%, rgba(6, 18, 32, 0.8));
  color: var(--text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: center;
  gap: 6px;
  text-align: right;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: tree-node-in 280ms ease both;
  animation-delay: var(--node-delay, 0ms);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.network-vm-node::before {
  display: none;
}

.network-vm-node:hover,
.network-vm-node:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--host-accent, #4ecdc4) 64%, transparent);
  background: color-mix(in srgb, var(--host-accent, #4ecdc4) 14%, rgba(10, 32, 50, 0.88));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18), 0 0 0 3px color-mix(in srgb, var(--host-accent, #4ecdc4) 10%, transparent);
  outline: none;
}

.network-node-light {
  position: absolute;
  inset-inline-start: 10px;
  top: 50%;
  display: block;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #86efac;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12), 0 0 16px rgba(34, 197, 94, 0.42);
}

.network-vm-node strong {
  font-size: 11px;
  line-height: 1.25;
  overflow: visible;
  text-overflow: clip;
}

.network-vm-node span,
.network-vm-node bdi {
  color: var(--muted);
  font-size: 10px;
}

.network-vm-node span {
  display: none;
}

.network-vm-node .network-node-light {
  display: block;
}

.network-vm-node bdi {
  color: #dbeafe;
  font-weight: 800;
  text-align: left;
}

.network-vm-node.is-inactive .network-node-light {
  background: #f87171;
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.12), 0 0 16px rgba(248, 113, 113, 0.35);
}

.network-empty-node,
.network-more-node {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.category-network-cluster,
.ip-network-cluster {
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 1fr);
  min-height: 120px;
}

.category-network-list,
.ip-network-list {
  grid-template-columns: 1fr;
  gap: 7px;
}

.category-network-node,
.ip-network-node {
  min-height: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.32fr);
  border-radius: 10px;
  padding-block: 7px;
}

.category-network-node strong,
.ip-network-node strong {
  font-size: 12px;
}

.category-network-node bdi,
.ip-network-node bdi {
  font-size: 12px;
}

@media (max-width: 860px) {
  .host-tree-dialog {
    width: calc(100vw - 10px);
    height: calc(100vh - 10px);
  }

  .tree-map-stage {
    padding: 14px;
  }

  .tree-map-canvas {
    grid-template-columns: 1fr;
  }

  .tree-network-cluster {
    grid-template-columns: 1fr;
  }

  .tree-network-cluster::before,
  .network-vm-cloud::before,
  .network-vm-node::before {
    display: none;
  }

  .network-host-core {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .network-vm-node {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 6px;
  }
}

@keyframes host-vm-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tree-cluster-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tree-node-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tree-orbit {
  to {
    transform: rotate(360deg);
  }
}

.inventory-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(17, 27, 49, 0.88), rgba(9, 16, 28, 0.92));
  box-shadow: var(--shadow-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inventory-card[draggable="true"] {
  cursor: grab;
}

.inventory-card[data-id] {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.inventory-card[data-id]:hover {
  border-color: rgba(78, 205, 196, 0.46);
  background: linear-gradient(180deg, rgba(23, 39, 67, 0.94), rgba(12, 23, 39, 0.96));
  box-shadow: 0 18px 40px rgba(4, 10, 20, 0.34);
  transform: translateY(-1px);
}

.inventory-card[data-id]:focus-within {
  border-color: rgba(78, 205, 196, 0.52);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.08), var(--shadow-md);
}

.inventory-card.dragging {
  opacity: 0.55;
  cursor: grabbing;
  border-color: rgba(78, 205, 196, 0.42);
}

.inventory-card-kicker {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inventory-card h3 {
  margin: 0;
  font-size: 22px;
}

.host-compact-card {
  padding: 14px 16px;
  gap: 12px;
}

.host-compact-card.selected {
  border-color: rgba(78, 205, 196, 0.54);
  background: rgba(78, 205, 196, 0.075);
  box-shadow: inset 3px 0 0 rgba(78, 205, 196, 0.72);
}

.host-compact-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.host-compact-title {
  min-width: 0;
}

.host-identity-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 18px;
  min-width: 0;
}

.host-compact-title h3 {
  font-size: 18px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-identity-line .text-ltr {
  flex: 0 0 auto;
  font-weight: 700;
}

.host-compact-meta,
.host-compact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.generic-compact-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.generic-compact-card .host-identity-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 190px);
  justify-content: start;
  align-items: baseline;
  gap: 18px;
  text-align: right;
}

.generic-compact-main {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: right;
  padding: 0;
  cursor: pointer;
}

.generic-compact-meta {
  justify-content: flex-end;
  max-width: 360px;
}

.auth-panel-compact {
  max-width: 480px;
  margin-inline: auto;
}

.generic-compact-card .host-identity-line h3 {
  width: 100%;
}

.generic-compact-card .host-identity-line .text-ltr {
  text-align: right;
  justify-self: stretch;
}

.ip-address-sheet-card {
  padding: 14px;
  gap: 10px;
  cursor: default;
}

.ip-address-sheet-card[data-id],
.ip-address-sheet-card[data-id]:hover {
  cursor: default;
  transform: none;
}

.ip-address-sheet-head {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 0.9fr) minmax(180px, 1fr) 92px;
  gap: 10px;
  align-items: center;
  padding: 0 28px 8px 88px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ip-address-sheet-list {
  display: grid;
  gap: 8px;
}

.ip-address-sheet-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid rgba(78, 205, 196, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
  animation: host-tree-in 220ms ease both;
  animation-delay: var(--tree-delay, 0ms);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.ip-address-sheet-row[draggable="true"] {
  cursor: grab;
}

.ip-address-sheet-row.dragging {
  opacity: 0.55;
  border-color: rgba(78, 205, 196, 0.58);
  background: rgba(78, 205, 196, 0.12);
}

.ip-address-sheet-row:hover,
.ip-address-sheet-row:focus-within {
  border-color: rgba(78, 205, 196, 0.42);
  background: rgba(78, 205, 196, 0.08);
  transform: translateY(-1px);
}

.ip-address-sheet-main {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 0.9fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
  text-align: right;
  cursor: pointer;
}

.ip-address-sheet-main strong,
.ip-address-sheet-main span,
.ip-address-sheet-main bdi {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.ip-address-sheet-main strong {
  font-size: 13px;
  font-weight: 900;
}

.ip-address-sheet-main bdi {
  font-weight: 900;
  color: #d8f7ff;
}

.ip-address-sheet-main span {
  color: var(--muted);
}

.inventory-meta,
.inventory-card-actions,
.dynamic-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.inventory-meta {
  color: var(--muted);
  font-size: 13px;
}

.inventory-card-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vm-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vm-chip {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 10px 12px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  color: var(--text);
}

.vm-chip small {
  color: var(--muted);
}

.app-dialog {
  width: min(920px, calc(100vw - 24px));
  max-width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.asset-dialog {
  width: min(1040px, calc(100vw - 24px));
}

.app-dialog::backdrop {
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(10px);
}

.dialog-shell {
  border-radius: 28px;
  border: 1px solid var(--stroke);
  background: var(--surface-card);
  color: var(--text);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.dialog-head,
.dialog-foot {
  padding: 20px 24px;
  border-bottom: 1px solid var(--stroke);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dialog-head h3 {
  margin: 8px 0 0;
  font-size: 26px;
  color: var(--text);
}

.dialog-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.dialog-body {
  padding: 22px 24px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dialog-foot {
  border-top: 1px solid var(--stroke);
  border-bottom: none;
  justify-content: flex-end;
  align-items: center;
}

.dialog-section {
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text);
}

.dialog-section h4,
.dynamic-card h4,
.dynamic-card strong {
  color: var(--text);
}

.dynamic-card {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.asset-collapsible-section > summary {
  cursor: pointer;
  list-style: none;
}

.asset-collapsible-section > summary::-webkit-details-marker {
  display: none;
}

.asset-collapsible-section > summary::before {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: var(--muted);
}

.asset-collapsible-section[open] > summary::before {
  content: "-";
}

.section-mini-head-action {
  justify-content: flex-start;
  margin-top: 14px;
  margin-bottom: 14px;
  gap: 10px;
}

.asset-main-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.credential-form-card {
  gap: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.credential-draft-summary {
  display: none;
  min-height: 102px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(78, 205, 196, 0.07);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-direction: row-reverse;
}

.credential-draft-summary > div {
  min-height: 76px;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  direction: rtl;
  text-align: right;
}

.credential-draft-summary > .btn,
.credential-draft-summary > .pill {
  flex: 0 0 auto;
}

.credential-row-collapsed .credential-draft-summary {
  display: flex;
}

.domain-credential-preview .credential-draft-summary {
  display: flex;
}

.credential-row-collapsed .credential-edit-body {
  display: none;
}

.credential-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.credential-user-field {
  grid-column: 1;
  min-width: 0;
}

.copy-field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.copy-field-wrap input {
  min-width: 0;
}

.copy-field-wrap .icon-btn {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
}

.credential-view-card .stack-list-row .inline-actions {
  width: auto;
  justify-content: flex-end;
}

.credential-row-actions {
  justify-content: flex-start;
}

.domain-credential-preview {
  border-color: rgba(78, 205, 196, 0.24);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.026);
}

.access-dialog .dialog-shell {
  max-width: min(1040px, calc(100vw - 28px));
}

.access-dialog-body {
  display: grid;
  gap: 16px;
  max-height: min(64vh, 760px);
  overflow: auto;
}

.access-dialog .dialog-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: rgba(8, 16, 29, 0.96);
  border-top: 1px solid var(--stroke);
}

.access-project-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.access-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.access-level-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.access-level-toggle label {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  color: var(--muted);
}

.access-level-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.access-level-toggle label:has(input:checked) {
  color: var(--text);
  border-color: rgba(14, 165, 233, 0.72);
  background: rgba(14, 165, 233, 0.14);
}

.access-toggle {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
}

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

.access-toggle:has(input:checked) {
  border-color: rgba(14, 165, 233, 0.72);
  background: rgba(14, 165, 233, 0.14);
}

.access-toggle span {
  color: var(--text);
  font-weight: 800;
}

.access-toggle small {
  color: var(--muted);
}

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

.checkbox-tile,
.checkbox-inline {
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-tile:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
}

.checkbox-tile input,
.checkbox-inline input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--accent-strong);
}

.checkbox-inline-warn {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}

.admin-details {
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.admin-details summary {
  padding: 16px 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-details summary::after,
.settings-collapsible > .section-mini-head::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: 0 0 auto;
}

.admin-details[open] summary::after,
.settings-collapsible.open > .section-mini-head::after {
  content: "-";
}

.admin-details summary::-webkit-details-marker {
  display: none;
}

.admin-details-body {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: start;
}

.admin-details-body > .dashboard-grid {
  display: contents;
}

.admin-details-body .inline-card {
  padding: 14px;
  gap: 12px;
  border-radius: 18px;
}

.admin-details-body .inline-card .section-mini-head {
  margin: 0;
}

.admin-details-body .inline-card .section-mini-head h3 {
  font-size: 16px;
}

.admin-details-body .inline-card .btn {
  width: auto;
  min-height: 42px;
  justify-content: center;
}

.settings-close-action {
  grid-column: 1 / -1;
  justify-self: start;
}

.settings-collapsible {
  transition: border-color 180ms ease, background 180ms ease;
}

.settings-collapsible > .section-mini-head {
  cursor: pointer;
  margin: -4px;
  padding: 8px;
  border-radius: 18px;
  user-select: none;
}

.settings-collapsible > .section-mini-head:hover {
  background: rgba(255, 255, 255, 0.04);
}

.settings-collapsible:not(.open) > :not(.section-mini-head) {
  display: none !important;
}

.settings-collapsible.open {
  border-color: var(--stroke-strong);
}

.settings-hidden-field {
  display: none !important;
}

.settings-hero {
  margin-bottom: 16px;
}

.settings-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.settings-metric-card {
  min-height: 122px;
  background: rgba(12, 22, 40, 0.72);
  box-shadow: none;
}

.settings-metric-card.ok {
  border-color: rgba(34, 197, 94, 0.22);
}

.settings-metric-card.warning {
  border-color: rgba(245, 158, 11, 0.32);
}

.settings-console {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-console-nav {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(10, 18, 33, 0.78);
  box-shadow: var(--shadow-md);
  padding: 14px;
}

.settings-nav-title {
  padding: 8px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--stroke);
  margin-bottom: 10px;
}

.settings-nav-title span {
  color: var(--muted);
  font-size: var(--font-xs);
}

.settings-nav-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.settings-nav-list .category-pill {
  min-height: 58px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  border-radius: 16px;
  padding: 10px 12px;
  gap: 4px;
  background: transparent;
  box-shadow: none;
}

.settings-nav-list .category-pill span {
  color: var(--muted);
  font-size: var(--font-xs);
  font-weight: 400;
}

.settings-nav-list .category-pill.active {
  background: rgba(78, 205, 196, 0.12);
  border-color: rgba(78, 205, 196, 0.34);
}

.settings-console-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.settings-tab-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  box-shadow: none;
}

.settings-tab-head > div {
  min-width: 0;
}

.settings-tab-head .info-chip {
  flex: 0 0 auto;
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  grid-auto-rows: auto;
}

.settings-action-grid-single {
  grid-template-columns: 1fr;
}

.settings-panel,
.settings-info-panel,
.settings-row-card,
.settings-operation-card {
  border: 1px solid var(--stroke);
  background: rgba(12, 22, 40, 0.72);
  box-shadow: none;
}

.settings-panel,
.settings-info-panel,
.settings-row-card {
  border-radius: var(--radius-lg);
}

.settings-action-grid > .settings-panel,
.settings-action-grid > .settings-info-panel {
  height: auto;
  min-height: 0;
}

.settings-panel {
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.settings-panel summary {
  min-height: 56px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease;
}

.settings-panel summary:hover {
  background: rgba(255, 255, 255, 0.035);
}

.settings-action-grid > .settings-panel > summary {
  min-height: 56px;
}

.settings-panel summary::-webkit-details-marker {
  display: none;
}

.settings-panel summary::after {
  content: "+";
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: 0 0 auto;
}

.settings-panel[open] > summary::after {
  content: "-";
}

.settings-panel summary span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-panel summary small,
.settings-info-panel span,
.settings-row-head span {
  color: var(--muted);
  line-height: 1.7;
}

.settings-panel-body {
  padding: 0 18px 18px;
}

.settings-info-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.settings-list {
  display: grid;
  gap: 14px;
}

.settings-row-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.settings-row-card:hover {
  border-color: rgba(78, 205, 196, 0.22);
  background: rgba(12, 22, 40, 0.84);
}

.settings-row-card.compact {
  padding: 14px;
}

.settings-panel-open {
  padding-top: 0;
}

.settings-panel-open > .settings-panel-body {
  padding-top: 18px;
}

.settings-panel-body > .section-mini-head {
  margin-bottom: 14px;
}

.mail-settings-grid {
  align-items: start;
}

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

.mail-settings-toggles .checkbox-inline {
  min-height: 54px;
}

.settings-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-row-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.domain-profile-card {
  padding: 0;
  overflow: hidden;
}

.domain-profile-card > summary {
  list-style: none;
}

.domain-profile-card > summary::-webkit-details-marker {
  display: none;
}

.domain-profile-summary {
  min-height: 64px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.domain-profile-summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.domain-profile-card[open] > .domain-profile-summary::after {
  content: "-";
}

.domain-profile-card > form,
.domain-profile-card > .dashboard-cta-row {
  margin: 0 16px 16px;
}

.domain-profile-card > form {
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.domain-profile-card .domain-active-tile,
.settings-panel-body .domain-active-tile {
  min-height: var(--ds-control-height, 46px);
  justify-content: flex-start;
  align-self: end;
}

.settings-panel-nested {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  border-radius: 18px;
}

.settings-operation-grid {
  padding: 0 16px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  align-items: start;
}

.super-admin-account-panel {
  margin-top: 4px;
}

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

.settings-operation-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.settings-operation-card h3 {
  margin: 0;
  font-size: 16px;
}

.settings-operation-card .password-field-wrap {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.settings-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.settings-health-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-health-card span {
  color: var(--muted);
  line-height: 1.7;
}

.settings-health-card.ok {
  border-color: rgba(34, 197, 94, 0.35);
}

.settings-health-card.warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.settings-health-card.error {
  border-color: rgba(239, 68, 68, 0.55);
}

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

.inline-form input[type="password"] {
  max-width: 180px;
}

.settings-operation-card .password-field-wrap .password-generate-btn {
  grid-column: 1 / -1;
  width: auto;
  min-width: 88px;
  max-width: 128px;
  justify-self: start;
}

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

.admin-confirm-dialog {
  width: min(520px, calc(100vw - 24px));
}

.confirm-dialog {
  width: min(540px, calc(100vw - 24px));
}

.confirm-dialog-head {
  align-items: center;
}

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

.confirm-dialog-icon {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(78, 205, 196, 0.34);
  background: rgba(78, 205, 196, 0.12);
  color: #bffefa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog-icon.danger {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.confirm-dialog-body strong {
  font-size: 17px;
  line-height: 1.9;
}

.confirm-dialog-body p {
  margin: 0;
  line-height: 1.9;
}

.sms-auth-dialog {
  width: min(560px, calc(100vw - 24px));
}

.sms-auth-body {
  display: grid;
  gap: 14px;
}

.sms-auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: end;
}

.sms-auth-send-inline {
  justify-self: start;
  width: 128px;
  min-width: 128px;
}

.sms-auth-mobile {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.sms-auth-timer {
  min-height: 48px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(78, 205, 196, 0.08);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.password-generator-dialog {
  width: min(620px, calc(100vw - 24px));
}

.admin-confirm-dialog .dialog-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.password-generator-dialog .pw-tool-panel {
  margin: 0;
  width: 100%;
}

.user-admin-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-stage {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.2fr minmax(360px, 520px);
  gap: 24px;
  align-items: center;
  padding: 40px min(5vw, 48px);
}

.auth-stage-single {
  grid-template-columns: minmax(360px, 520px);
  justify-content: center;
}

.auth-showcase {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(17, 27, 49, 0.82), rgba(9, 16, 28, 0.88));
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-showcase h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.35;
}

.auth-showcase p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-feature-item span {
  color: var(--muted);
  font-size: 14px;
}

.auth-stage-clean {
  grid-template-columns: minmax(300px, 0.86fr) minmax(360px, 480px);
}

.auth-showcase-compact {
  min-height: 260px;
  justify-content: center;
}

.auth-showcase-compact h1 {
  font-size: clamp(28px, 3vw, 38px);
}

.auth-card {
  padding: 28px;
  border-color: rgba(78, 205, 196, 0.16);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-panel .inline-actions {
  justify-content: space-between;
}

.auth-panel .btn.w100 + .btn.w100 {
  margin-top: 4px;
}

@media (min-width: 560px) {
  .auth-panel #Input_Username {
    width: calc(100% - 54px);
    margin-inline-end: auto;
  }
}

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

.app-mark {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(78, 205, 196, 0.22));
  border: 1px solid var(--stroke);
  font-weight: 700;
}

.notification-center {
  position: fixed;
  inset: auto 24px 24px auto;
  z-index: 120;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification-center-modal {
  z-index: 20;
}

.toast {
  width: 100%;
  min-width: 240px;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(17, 27, 48, 0.92);
  color: #edf3ff;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
}

.toast > span {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 4px;
  background: var(--accent);
}

html.theme-light .toast {
  background: rgba(255, 255, 255, 0.94);
  color: #101827;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.28);
}

.toast-success::before {
  background: var(--success);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.28);
}

.toast-error::before {
  background: var(--danger);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.28);
}

.toast-warning::before {
  background: var(--accent-warm);
}

.toast-close {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.toast-close .app-icon {
  width: 16px;
  height: 16px;
}

input.confirmation-invalid {
  border-color: rgba(239, 68, 68, 0.78);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

input.confirmation-valid {
  border-color: rgba(34, 197, 94, 0.78);
  background: rgba(34, 197, 94, 0.1);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.dashboard-hero-compact .hero-copy {
  max-width: 560px;
}

.dashboard-hero-compact .hero-copy h1 {
  font-size: clamp(26px, 2.4vw, 34px);
}

.dashboard-hero-compact .hero-copy p,
.hero-panel-tight .hero-copy p,
.inventory-shell-head p,
.dialog-head p {
  line-height: 1.75;
}

.password-field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(112px, auto);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.password-field-wrap-tight {
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
}

.password-field-wrap input {
  min-width: 0;
}

.password-field-wrap .password-generate-btn {
  width: auto;
  min-width: 112px;
  min-height: 46px;
  padding-inline: 12px;
  white-space: nowrap;
  justify-content: center;
}

.password-field-wrap .icon-btn {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
}

.password-field-wrap .icon-btn.active {
  border-color: rgba(78, 205, 196, 0.4);
  background: rgba(78, 205, 196, 0.14);
}

.mail-password-wrap {
  grid-template-columns: minmax(0, 1fr) 46px;
}

.access-requirement-card {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.access-requirement-card input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 22px;
  min-height: 22px;
  max-height: 22px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  justify-self: center;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.access-requirement-card input::before {
  content: "";
  width: 6px;
  height: 10px;
  border-right: 2px solid #06101b;
  border-bottom: 2px solid #06101b;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 140ms ease;
}

.access-requirement-card input:checked {
  border-color: rgba(78, 205, 196, 0.78);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.12);
}

.access-requirement-card input:checked::before {
  transform: rotate(45deg) scale(1);
}

.access-requirement-card input:focus-visible {
  outline: none;
  border-color: rgba(78, 205, 196, 0.9);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.14);
}

.access-requirement-card span {
  display: grid;
}

.access-requirement-card strong {
  font-size: 14px;
}

.access-requirement-card:has(input:checked) {
  border-color: rgba(78, 205, 196, 0.34);
  background: rgba(78, 205, 196, 0.08);
}

.app-icon,
.icon-eye {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-eye-slash {
  stroke-width: 2.3;
}

.pw-tool-panel {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(5, 12, 24, 0.74);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-block-start: 2px;
  box-sizing: border-box;
}

.form-grid > .pw-tool-panel,
.dialog-body > .pw-tool-panel,
.dynamic-card > .pw-tool-panel,
.settings-panel-body > .pw-tool-panel {
  grid-column: 1 / -1;
}

html.theme-light .pw-tool-panel {
  background: rgba(255, 255, 255, 0.86);
}

/* Light theme readability pass */
html.theme-light .workspace-sidebar {
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(235, 244, 252, 0.94));
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.07);
}

html.theme-light .workspace-nav-item {
  color: #111827;
  background: rgba(255, 255, 255, 0.5);
}

html.theme-light .workspace-nav-item.active {
  background: transparent;
}

html.theme-light .workspace-nav-icon,
html.theme-light .user-chip-mark,
html.theme-light .brand-mark {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2), rgba(14, 165, 233, 0.12));
  border-color: rgba(14, 165, 233, 0.16);
  color: #0f172a;
}

html.theme-light .dashboard-ops-card {
  border-color: rgba(14, 165, 233, 0.14);
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.16), transparent 36%),
    linear-gradient(225deg, rgba(14, 165, 233, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.94));
  color: #111827;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

html.theme-light .dashboard-ops-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.11), transparent 42%);
  pointer-events: none;
}

html.theme-light .dashboard-ops-card > * {
  position: relative;
  z-index: 1;
}

html.theme-light .ops-copy h2,
html.theme-light .dashboard-compact-card h2,
html.theme-light .dashboard-compact-card h3,
html.theme-light .metric-card strong,
html.theme-light .infra-node strong,
html.theme-light .infra-action-card strong {
  color: #111827;
}

html.theme-light .ops-copy p,
html.theme-light .ops-chip,
html.theme-light .infra-node span,
html.theme-light .infra-node small,
html.theme-light .infra-action-card span,
html.theme-light .infra-action-card small,
html.theme-light .mix-bar-row span,
html.theme-light .mix-bar-row bdi {
  color: rgba(17, 24, 39, 0.68);
}

html.theme-light .ops-chip {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 23, 42, 0.08);
}

html.theme-light .ops-chip.ok {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.22);
  background: rgba(16, 185, 129, 0.1);
}

html.theme-light .ops-chip.warn {
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.11);
}

html.theme-light .ops-chip.danger {
  color: #be123c;
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.1);
}

html.theme-light .health-ring {
  background:
    radial-gradient(circle at center, rgba(248, 252, 255, 0.98) 0 57%, transparent 58%),
    conic-gradient(#14b8a6 calc(var(--score) * 1%), rgba(148, 163, 184, 0.2) 0);
  border-color: rgba(20, 184, 166, 0.18);
  box-shadow: inset 0 0 22px rgba(20, 184, 166, 0.1), 0 16px 34px rgba(15, 23, 42, 0.08);
}

html.theme-light .health-ring.warn {
  background:
    radial-gradient(circle at center, rgba(248, 252, 255, 0.98) 0 57%, transparent 58%),
    conic-gradient(#f59e0b calc(var(--score) * 1%), rgba(148, 163, 184, 0.2) 0);
}

html.theme-light .health-ring.danger {
  background:
    radial-gradient(circle at center, rgba(248, 252, 255, 0.98) 0 57%, transparent 58%),
    conic-gradient(#ef4444 calc(var(--score) * 1%), rgba(148, 163, 184, 0.2) 0);
}

html.theme-light .dashboard-kpi-card,
html.theme-light .dashboard-compact-card,
html.theme-light .inventory-shell,
html.theme-light .inventory-card {
  border-color: rgba(15, 23, 42, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

html.theme-light .infra-flow {
  border-color: rgba(14, 165, 233, 0.12);
  background: rgba(248, 252, 255, 0.82);
}

html.theme-light .infra-node {
  color: #111827;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--node, #4ecdc4) 16%, transparent), rgba(255, 255, 255, 0.74));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

html.theme-light .infra-action-card {
  color: #111827;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--action) 12%, transparent), rgba(255, 255, 255, 0.76));
}

html.theme-light .mix-bar-row,
html.theme-light .attention-row,
html.theme-light .presence-row,
html.theme-light .timeline-item {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

html.theme-light .mix-bar {
  background: rgba(148, 163, 184, 0.18);
}

.pw-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.pw-tool-grid .pw-keyword-field {
  grid-column: 1 / -1;
}

.pw-tool-grid label,
.pw-toggle-row label {
  color: var(--muted);
  font-size: var(--font-xs);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pw-tool-grid input,
.pw-tool-grid select {
  width: 100%;
  min-width: 0;
}

.pw-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pw-toggle-row label {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  flex-direction: row;
  align-items: center;
}

.pw-toggle-row input {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.pw-panel-actions {
  display: flex;
  justify-content: flex-start;
}

.pw-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pw-suggestion {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  min-width: 0;
  direction: rtl;
}

.pw-suggestion code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  direction: ltr;
  text-align: left;
  min-width: 0;
  justify-self: stretch;
  padding-inline: 4px;
}

.pw-suggestion .btn {
  min-height: 42px;
  justify-content: center;
}

.pw-copy-btn {
  min-width: 48px;
}

.pw-apply-btn {
  min-width: 66px;
}

.pw-strength {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-size: var(--font-xs);
  border: 1px solid var(--stroke);
  white-space: nowrap;
}

.pw-strength.weak {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.pw-strength.medium {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}

.pw-strength.strong,
.pw-strength.very-strong {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
}

.password-requirements {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.password-requirements .ok {
  color: #86efac;
  font-weight: 700;
}

@media (max-width: 1240px) {
  .metric-grid,
  .mini-metric-grid,
  .project-command-grid,
  .inventory-grid,
  .dashboard-grid,
  .dashboard-grid-three,
  .dashboard-grid-wide,
  .ops-layout,
  .auth-stage {
    grid-template-columns: 1fr;
  }

  .dashboard-ops-card,
  .infra-flow,
  .infra-live-grid,
  .infra-action-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .projects-overview-bar,
  .settings-tab-head {
    align-items: stretch;
    flex-direction: column;
  }

  .generic-compact-card,
  .host-compact-main,
  .host-browser-layout.host-browser-active {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .host-vm-panel {
    position: static;
    max-height: none;
  }

  .host-compact-actions,
  .generic-compact-meta {
    justify-content: flex-start;
  }
}

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

  .settings-console-nav {
    position: static;
  }

  .settings-nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .workspace-shell {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-height) 1fr;
    grid-template-areas:
      "topbar"
      "content";
  }

  .workspace-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(92vw, 340px);
    transform: translateX(100%);
    transition: transform 220ms ease;
    height: 100vh;
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.28);
  }

  body.sidebar-open .workspace-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 19;
    background: rgba(2, 8, 18, 0.48);
    backdrop-filter: blur(3px);
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  .workspace-content {
    padding: 24px;
  }

  .workspace-topbar {
    padding: 16px 24px;
  }
}

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

  .settings-nav-list {
    grid-template-columns: 1fr;
  }

  .settings-action-grid,
  .settings-operation-grid {
    grid-template-columns: 1fr;
  }

  .settings-row-head {
    flex-direction: column;
  }

  .hero-panel,
  .toolbar-card,
  .workspace-topbar,
  .minimal-topbar,
  .card,
  .inventory-shell {
    padding: 20px;
  }

  .checkbox-grid,
  .form-grid,
  .pw-tool-grid,
  .pw-suggestion,
  .mix-bar-row,
  .presence-row,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .dashboard-ops-card {
    padding: 18px;
  }

  .health-score-card {
    justify-items: start;
  }

  .health-tooltip {
    inset-inline: 0 auto;
    width: min(100%, 360px);
  }

  .mix-bar-row bdi,
  .timeline-item time {
    text-align: right;
  }

  .password-field-wrap,
  .password-field-wrap-tight {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .password-field-wrap-tight:has(.password-generate-btn) {
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  }

  .password-field-wrap .password-generate-btn {
    grid-column: 1 / -1;
    width: auto;
    min-width: 88px;
    max-width: 128px;
    justify-self: start;
  }

  .password-field-wrap-tight .password-generate-btn {
    grid-column: auto;
  }

  .pw-tool-grid .pw-keyword-field {
    grid-column: auto;
  }

  .pw-suggestion code {
    white-space: normal;
    overflow-wrap: anywhere;
    min-height: 34px;
  }

  .hero-actions,
  .dashboard-cta-row,
  .inline-actions {
    width: 100%;
    justify-content: stretch;
  }

  .hero-actions .btn,
  .dashboard-cta-row .btn,
  .inline-actions .btn {
    flex: 1 1 auto;
  }

  .dialog-head,
  .dialog-body,
  .dialog-foot {
    padding: 18px;
  }

  .inventory-shell-head {
    grid-template-columns: 1fr;
  }

  .inventory-actions {
    justify-self: stretch;
    min-width: 0;
    width: 100%;
  }

  .inventory-actions .btn {
    flex: 1 1 auto;
  }

  .host-compact-main,
  .generic-compact-card {
    grid-template-columns: 1fr;
  }

  .generic-compact-card .host-identity-line {
    grid-template-columns: 1fr;
  }

  .ip-address-sheet-head {
    display: none;
  }

  .ip-address-sheet-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .ip-address-sheet-main {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .ip-address-sheet-row .host-vm-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .host-compact-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .host-vm-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .host-vm-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .host-tree-vm-copy {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .workspace-topbar-actions {
    gap: 8px;
  }

  .user-chip {
    padding: 8px 10px;
  }

  .user-chip-copy span {
    display: none;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .ops-copy h2 {
    font-size: 20px;
  }

  .health-ring {
    width: 112px;
  }

  .hero-copy h1,
  .dialog-head h3 {
    font-size: 24px;
  }
}

