@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Roboto:wght@400;500&display=swap');

:root {
  --bg-gradient: radial-gradient(circle at 10% 10%, rgba(237, 233, 254, 0.65) 0%, rgba(248, 247, 253, 0.95) 100%);
  --color-primary: #6d28d9;
  --color-primary-hover: #5b21b6;
  --color-active-bg: #ede9fe;
  --color-border: #ede9fe;
  --color-border-subtle: #f3f0ff;
  --card-shadow: 0 10px 30px -5px rgba(109, 40, 217, 0.05), 0 0 1px 1px rgba(109, 40, 217, 0.08);
  --terminal-shadow: 0 20px 40px -10px rgba(15, 12, 35, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--bg-gradient);
  color: #1e1b4b;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.font-serif-fly {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.font-mono-code {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.card-shadow {
  box-shadow: var(--card-shadow);
}

.terminal-shadow {
  box-shadow: var(--terminal-shadow);
}

.sidebar-active {
  background-color: var(--color-active-bg) !important;
  color: var(--color-primary) !important;
  font-weight: 600 !important;
}

/* CUSTOMER DASHBOARD (body.mh) */
body.mh {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-gradient);
  color: #1e1b4b;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.mh .font-serif-fly {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* SIDEBAR */
body.mh .mh-frame {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
}

body.mh .mh-side {
  width: 260px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(221, 214, 254, 0.7);
  color: #4b5563;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow: auto;
  z-index: 20;
  padding-top: 16px;
}

body.mh .mh-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  height: 36px;
}

body.mh .mh-brand a {
  display: flex;
  align-items: center;
  width: auto;
  height: 36px;
}

body.mh .mh-brand img {
  display: block;
  width: auto;
  height: 36px;
  max-width: none;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

body.mh .mh-brand img.brand-logo-dark { display: none; }

body.mh .mh-create {
  padding-top: 10.5px;
  padding-bottom: 10.5px;
}

body.mh .mh-side-search {
  margin: 14px 14px 8px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  color: #1e1b4b;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: 0 1px 3px rgba(109, 40, 217, 0.04);
  transition: all 0.15s ease;
}

body.mh .mh-side-search:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

body.mh .mh-side-search::placeholder {
  color: #9ca3af;
}

body.mh .mh-group {
  margin: 16px 18px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(109, 40, 217, 0.6);
}

body.mh .mh-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 16px);
  margin: 2px 8px;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  border-radius: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}

body.mh .mh-item:hover {
  background: rgba(237, 233, 254, 0.5);
  color: #5b21b6;
}

body.mh .mh-item.sidebar-active {
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 600;
}

body.mh .mh-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* TOP NAVBAR — one bar across the full width */
body.mh .mh-top {
  height: 64px;
  width: 100%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(221, 214, 254, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px 0 20px;
  position: sticky;
  top: 0;
  z-index: 40;
}

body.mh .mh-top-end {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin-left: auto;
}

body.mh .mh-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.2;
}

body.mh .mh-account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #4b5563;
}

body.mh .mh-account b {
  color: #6d28d9;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 700;
}

body.mh .mh-account button {
  color: #6d28d9;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  background: #ede9fe;
  border: 1px solid #ddd6fe;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.mh .mh-account button:hover {
  background: #ddd6fe;
  color: #4c1d95;
}

body.mh #theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
}

body.mh #theme-toggle .theme-icon {
  width: 18px;
  height: 18px;
  display: block;
}

body.mh #theme-toggle .theme-icon-moon { display: none; }

/* MAIN BODY */
body.mh .mh-main {
  flex: 1;
  padding: 30px;
  max-width: 1580px;
  width: 100%;
  margin: 0;
}

body.mh .mh-home-grid {
  display: block;
}

body.mh .mh-favs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

body.mh .mh-fav {
  display: flex;
  gap: 14px;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(221, 214, 254, 0.7);
  border-radius: 20px;
  padding: 18px;
  min-height: 90px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 4px 16px -2px rgba(109, 40, 217, 0.04);
}

body.mh .mh-fav:hover {
  border-color: #a78bfa;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(109, 40, 217, 0.1);
  background: #fcfaff;
}

body.mh .mh-fav b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
}

body.mh .mh-fav small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

body.mh .mh-fav svg {
  color: #7c3aed;
  flex-shrink: 0;
  margin-top: 2px;
}

/* STATS WIDGET */
body.mh .mh-stats {
  background: #ffffff;
  border: 1px solid rgba(221, 214, 254, 0.8);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--card-shadow);
}

body.mh .mh-stats h2 {
  font-size: 14px;
  font-weight: 700;
  color: #1e1b4b;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.mh .mh-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #f3f0ff;
  font-size: 13px;
  color: #64748b;
}

body.mh .mh-stat b {
  color: #1e1b4b;
  font-size: 14px;
}

@media (max-width: 980px) {
  body.mh .mh-home-grid, body.mh .mh-favs { grid-template-columns: 1fr; }
  body.mh .mh-side { width: 220px; }
}

/* CARDS */
body.mh .mh-card {
  background: #ffffff;
  border: 1px solid rgba(221, 214, 254, 0.8);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

body.mh .mh-list-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e1b4b;
  letter-spacing: 0;
}

body.mh .mh-note {
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

body.mh .mh-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 26px;
  font-weight: 700;
  font-size: 16px;
  color: #1e1b4b;
  border-bottom: 1px solid #f3f0ff;
}

body.mh .mh-create {
  background: #6d28d9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  padding: 10.5px 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
  transition: all 0.15s ease;
}

body.mh .mh-create:hover {
  background: #5b21b6;
  transform: translateY(-1px);
}

/* TABLES */
body.mh .mh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.mh .mh-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b5cf6;
  padding: 14px 24px;
  background: #faf8ff;
  border-bottom: 1px solid #f3f0ff;
}

body.mh .mh-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #f8f6ff;
  vertical-align: middle;
  color: #334155;
}

body.mh .mh-table tbody tr {
  transition: background 0.12s ease;
}

body.mh .mh-table tbody tr:hover {
  background: #fbf9ff;
}

body.mh .mh-host {
  display: inline-block;
  color: #6d28d9;
  font-size: 13px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  text-decoration: none;
}

body.mh .mh-host:hover {
  text-decoration: underline;
}

body.mh .mh-domain {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.mh .mh-domain-custom {
  color: #047857;
  font-size: 12px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-weight: 600;
  text-decoration: none;
}

body.mh .mh-domain-custom:hover { text-decoration: underline; }

body.mh .mh-domain-edit {
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

body.mh .mh-domain-edit:hover { background: #ede9fe; }

body.mh .list-domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.mh .list-domain input {
  width: 168px;
  min-height: 28px;
  padding: 4px 8px;
}

body.mh .picker-term { margin: 0; }
body.mh #picker.picker-term #picker-list.term-pick-body {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
body.mh .term-title { margin: 0 0 6px; }
body.mh .term-lead {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 14px;
}
body.mh .term-lead b { color: #1e1b4b; font-weight: 700; }
body.mh .term-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
body.mh .vm-filters {
  padding: 14px 26px 8px;
  margin: 0;
}
body.mh .term-filters > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b5cf6;
  margin-right: 4px;
}
body.mh .term-chip {
  border: 1px solid #e9e5ff;
  background: #ffffff;
  color: #57536b;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
body.mh .term-chip.is-on {
  border-color: #7c3aed;
  color: #5b21b6;
  background: #f5f3ff;
}
body.mh .term-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
body.mh .term-table .term-ip {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: #5b21b6;
  font-weight: 700;
  font-size: 13px;
}
body.mh .term-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b5cf6;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f3f0ff;
}
body.mh .term-table th:last-child, body.mh .term-table td:last-child { text-align: right; }
body.mh .term-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f4f1ff;
  vertical-align: middle;
}
body.mh .term-table tbody tr { cursor: pointer; }
body.mh .term-table tbody tr:hover { background: #fbf9ff; }
body.mh .term-table tbody tr:last-child td { border-bottom: 0; }
body.mh .term-host {
  color: #6d28d9;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
}
body.mh .term-score { display: inline-flex; align-items: center; gap: 8px; }
body.mh .term-bar {
  width: 3px;
  height: 14px;
  border-radius: 99px;
  background: #10b981;
}
body.mh .term-bar.sleep { background: #f59e0b; }
body.mh .term-bar.stop { background: #94a3b8; }
body.mh .term-bar.bad { background: #ef4444; }
body.mh .term-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  padding: 2px 8px;
  color: #57534e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
body.mh .term-spec { color: #64748b; font-size: 13px; }

.mh-res {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 118px;
}

.mh-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 36px;
}

.mh-gauge-ring {
  position: relative;
  width: 32px;
  height: 32px;
}

.mh-gauge svg {
  display: block;
  width: 32px;
  height: 32px;
  transform: rotate(-90deg);
}

.mh-gauge-track,
.mh-gauge-arc {
  fill: none;
  stroke-width: 2.6;
}

.mh-gauge-track { stroke: #e6edf5; }

.mh-gauge-arc { stroke-linecap: round; }

.mh-gauge b {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
  pointer-events: none;
}

.mh-gauge s {
  font-style: normal;
  text-decoration: none;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #64748b;
}

html.theme-dark body.mh .mh-gauge-track { stroke: #3a3454; }
html.theme-dark body.mh .mh-gauge b { color: #e7e5e4; }
html.theme-dark body.mh .mh-gauge s { color: #a8a29e; }
body.mh .term-empty { margin: 8px 0 18px; color: #64748b; font-size: 14px; }

body.mh .ai-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px 4px 9px;
  border-radius: 999px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

body.mh .ai-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #ef4444;
  flex: none;
}

body.mh .ai-status.is-on {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

body.mh .ai-status.is-on .ai-status-dot {
  background: #10b981;
}

body.mh .mh-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

body.mh .mh-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #10b981;
}

body.mh .mh-dot.sleep { background: #f59e0b; }
body.mh .mh-dot.stop, body.mh .mh-dot.err { background: #94a3b8; }
body.mh .mh-dot.bad { background: #ef4444; }

body.mh .mh-keep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

body.mh .mh-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.mh .mh-mini {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ddd6fe;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #5b21b6;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(109, 40, 217, 0.05);
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.mh .mh-mini:hover {
  background: #f5edff;
  border-color: #c4b5fd;
}

body.mh .mh-mini:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.mh .mh-mini-stop {
  color: #be123c;
  border-color: #fecdd3;
}

body.mh .mh-mini-stop:hover {
  background: #fff1f2;
  border-color: #fda4af;
  color: #9f1239;
}

body.mh .mh-mini-reboot {
  color: #1d4ed8;
  border-color: #bfdbfe;
}

body.mh .mh-mini-reboot:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

body.mh .mh-menu {
  position: relative;
}

body.mh .mh-menu summary {
  list-style: none;
  cursor: pointer;
}

body.mh .mh-menu summary::-webkit-details-marker {
  display: none;
}

body.mh .mh-menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 140px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 28px rgba(109, 40, 217, 0.12);
}

body.mh .mh-menu-pop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
}

body.mh .mh-menu-pop button:hover {
  background: #f3e8ff;
  color: #6d28d9;
}

body.mh .mh-menu-pop button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

body.mh .mh-foot {
  padding: 14px 26px;
  font-size: 14px;
  color: #64748b;
  border-top: 1px solid #f3f0ff;
  background: #faf8ff;
}

body.mh .mh-back {
  color: #6d28d9;
  font-size: 13px;
  font-weight: 700;
  background: #ede9fe;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
  cursor: pointer;
}

body.mh .mh-subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #1e1b4b;
  font-size: 16px;
}

body.mh .mh-subhead.hidden, body.mh #head-home.hidden {
  display: none;
}

body.mh .mh-subhead b {
  font-weight: 700;
}

/* PANELS & FORMS */
body.mh .mh-panel {
  background: #ffffff;
  border: 1px solid rgba(221, 214, 254, 0.8);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--card-shadow);
}

input,
select,
textarea,
input.font-mono,
input.font-bold,
input.font-mono-code,
select.font-mono,
select.font-mono-code,
textarea.font-mono,
textarea.font-mono-code,
.mh-input.font-mono,
.mh-input.font-bold,
.mh-input.font-mono-code {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 400 !important;
}

.fm-editor textarea,
body.mh .fm-editor textarea {
  font-family: "IBM Plex Mono", ui-monospace, monospace !important;
  font-weight: 400 !important;
}

body.mh .mh-input, body.mh select.mh-input, body.mh textarea.mh-input {
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  background: #ffffff;
  color: #1e1b4b;
  transition: all 0.15s ease;
}

body.mh .mh-input:focus, body.mh select.mh-input:focus, body.mh textarea.mh-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

body.mh #vrack-ping {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.mh #vrack-ping select {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 0 36px 0 14px;
  line-height: 40px;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

body.mh .ping-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 40px;
  flex: 0 0 28px;
  margin: 0;
  padding: 0;
  color: #6d28d9;
}

body.mh .ping-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

body.mh .mh-btn {
  background: #6d28d9;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.25);
  transition: all 0.15s ease;
}

body.mh .mh-btn:hover {
  background: #5b21b6;
}

body.mh .mh-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
  transition: all 0.15s ease;
}

body.mh .mh-btn-green:hover {
  background: #047857;
}

body.mh #ai-panel .mh-btn,
body.mh #ai-panel .mh-btn-dark,
body.mh #ai-panel .mh-btn-green {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

body.mh #ai-panel .mh-btn:hover,
body.mh #ai-panel .mh-btn-dark:hover,
body.mh #ai-panel .mh-btn-green:hover {
  background: #1d4ed8;
}

body.mh .mh-btn-dark {
  background: #1e1b4b;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.mh .mh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.mh .usage-filter {
  border: 1px solid #ede9fe;
  border-radius: 16px;
  background: #faf8ff;
  padding: 14px 16px;
}

body.mh .usage-filter-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b21b6;
  margin-bottom: 10px;
}

body.mh .usage-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.mh select.usage-span-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: auto;
  min-width: 9.75rem;
  height: 40px;
  margin: 0;
  padding: 0 38px 0 14px;
  line-height: 40px;
  text-align: left;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

body.mh .usage-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

body.mh .usage-filter .hidden {
  display: none !important;
}

body.mh .usage-day-input {
  width: auto;
  min-width: 10.5rem;
}

body.mh .usage-viewing {
  margin-left: auto;
}

body.mh .usage-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

body.mh .usage-pager-meta {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

body.mh .syslog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.mh .syslog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.mh .syslog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e4dff0;
  background: #ffffff;
  color: #4b4563;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

body.mh .syslog-chip b {
  font-weight: 600;
  color: #6d28d9;
}

body.mh .syslog-chip.is-on {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
}

body.mh .syslog-chip.is-on b {
  color: #ffffff;
}

body.mh .syslog-pager {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

body.mh .syslog-page-meta {
  font-size: 13px;
  color: #6b657c;
  margin-right: 6px;
}

body.mh .syslog-page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #e4dff0;
  background: #ffffff;
  color: #3f3a4d;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

body.mh .syslog-page.is-on {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
}

body.mh .syslog-page:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

body.mh .syslog-table-wrap {
  overflow-x: auto;
  border: 1px solid #ece7f4;
  border-radius: 16px;
  background: #ffffff;
}

body.mh .syslog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

body.mh .syslog-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a738c;
  background: #f7f5fb;
  padding: 12px 14px;
  border-bottom: 1px solid #ece7f4;
  white-space: nowrap;
}

body.mh .syslog-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1eef6;
  vertical-align: middle;
  color: #2c2640;
  white-space: nowrap;
}

body.mh .syslog-table tr:last-child td {
  border-bottom: none;
}

body.mh .syslog-when {
  display: inline;
  white-space: nowrap;
}

body.mh .syslog-when b {
  font-weight: 600;
  color: #1c1730;
}

body.mh .syslog-when span,
body.mh .syslog-detail {
  color: #6d657c;
}

body.mh .syslog-vm {
  font-weight: 600;
  color: #5b21b6;
}

body.mh .syslog-detail {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.mh .syslog-status {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

body.mh .syslog-status.is-ok {
  background: #dcfce7;
  color: #166534;
}

body.mh .syslog-status.is-fail {
  background: #ffe4e6;
  color: #be1239;
}

body.mh .syslog-empty {
  text-align: center;
  color: #6d657c;
  padding: 28px 14px !important;
}

body.mh .usage-pager .mh-btn-outline:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.mh .mh-btn-outline:hover {
  color: #475569;
  border-color: #94a3b8;
  background: #f8fafc;
}

body.mh .mh-btn-dark:hover {
  background: #0f172a;
}

body.mh .mh-pick {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #ede9fe;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(109, 40, 217, 0.03);
  transition: all 0.15s ease;
}

body.mh .mh-pick:hover {
  background: #faf8ff;
  border-color: #c4b5fd;
}

body.mh .mh-pick small {
  display: block;
  color: #64748b;
}

body.mh .mh-pick-go {
  margin-left: auto;
  color: #8b5cf6;
  font-size: 18px;
  font-weight: 700;
}

body.mh .mh-center {
  max-width: 640px;
  margin: 32px auto;
}

/* FULLSCREEN TERMINAL */
.term-board {
  display: none;
}
.term-board.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100vw;
  height: 100vh;
  background: #141221;
}

body.term-open {
  overflow: hidden;
}

.term-back {
  margin: 16px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #6d28d9;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
}

.term-back:hover {
  background: #5b21b6;
}

@media (min-width: 768px) {
  .term-board.is-open { flex-direction: row; }
}

.term-guide {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ddd6fe;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-guide:hover {
  background: rgba(255, 255, 255, 0.08);
}

.term-guide.open {
  background: #6d28d9;
  color: #ffffff;
}

.term-guide p {
  display: none;
  margin-top: 8px;
  color: #ede9fe;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

.term-guide.open p {
  display: block;
}

/* VRACK COMPATIBILITY */
.cp-card {
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.03);
}
.cp-input {
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 8px 12px;
  background: #ffffff;
  color: #1e1b4b;
}
.cp-btn {
  background: #6d28d9;
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

body.mh #workspace.fm-shell {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border-color: #e3e8ef;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.fm-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e6ebf2;
}

.fm-host {
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

body.mh #ws-git {
  border-bottom: 1px solid #e6ebf2;
}

.fm-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  background: #f7f9fc;
  border-bottom: 1px solid #e6ebf2;
}

.fm-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #3b6fd8;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.fm-tools button:hover { background: #e8f1fb; }

.fm-tools svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fm-body {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 520px;
  background: #fff;
}

.fm-tree {
  border-right: 1px solid #e6ebf2;
  padding: 6px 0;
  overflow: auto;
}

.fm-dir, .fm-name {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.fm-dir {
  padding: 7px 10px;
  border-radius: 0;
}

.fm-dir:hover, .fm-dir.is-on { background: #e7f1fb; }

.fm-dir span, .fm-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fm-folder-ico, .fm-file-ico {
  width: 16px;
  height: 16px;
  flex: none;
}

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

.fm-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 14px;
  border-bottom: 1px solid #eef2f6;
  color: #94a3b8;
  font-size: 13px;
}

.fm-crumb button {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.fm-crumb button:hover { color: #3b6fd8; }

.fm-home {
  display: inline-flex;
  color: #64748b;
}

.fm-home svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fm-table-wrap { overflow: auto; flex: 1; }

.fm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #334155;
}

.fm-table th {
  text-align: left;
  font-weight: 600;
  color: #64748b;
  background: #fbfcfe;
  border-bottom: 1px solid #e6ebf2;
  padding: 9px 12px;
  white-space: nowrap;
}

.fm-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.fm-table tr.is-on { background: #f3f8fd; }

.fm-table tbody tr:hover { background: #f8fafc; }

.fm-check { width: 36px; }

.fm-mode {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color: #64748b;
  font-size: 12px;
}

.fm-unzip {
  margin-left: 8px;
  border: 0;
  background: transparent;
  color: #3b6fd8;
  font-size: 12px;
  cursor: pointer;
}

.fm-empty {
  padding: 28px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

.fm-editor {
  border-top: 1px solid #e6ebf2;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fm-editor.hidden { display: none; }

.fm-editor-bar {
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.fm-editor-bar button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.fm-editor textarea {
  width: 100%;
  height: 280px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  padding: 12px;
}

@media (max-width: 800px) {
  .fm-body { grid-template-columns: 1fr; }
  .fm-tree { border-right: 0; border-bottom: 1px solid #e6ebf2; max-height: 180px; }
}

.acct-id {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #ede9fe;
  border-radius: 18px;
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 70%);
}

.acct-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #6d28d9;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  flex: none;
}

.acct-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e1b4b;
  line-height: 1.3;
}

.acct-mail {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
  word-break: break-all;
}

.acct-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.acct-badge.is-on {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.acct-col {
  display: grid;
  gap: 16px;
  align-content: start;
}

.acct-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ede9fe;
  border-radius: 18px;
  background: #ffffff;
}

.acct-fold {
  display: block;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.acct-fold-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.acct-fold-head:hover {
  background: #faf8ff;
}

.acct-fold.is-open .acct-fold-head {
  border-bottom: 1px solid #f3f0ff;
}

.acct-fold-head .acct-card-title {
  flex: 1;
  min-width: 0;
}

.acct-fold-icon {
  flex: none;
  color: #8b5cf6;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.15s ease;
}

.acct-fold.is-open .acct-fold-icon {
  transform: rotate(90deg);
}

.acct-fold-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  padding-top: 12px;
}

.acct-card-title b {
  display: block;
  color: #1e1b4b;
  font-size: 14px;
}

.acct-card-title span,
.acct-note {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.acct-card label {
  display: grid;
  gap: 6px;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acct-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.acct-phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.acct-phone-dial {
  flex: 0 0 auto;
  width: min(15rem, 48%);
  max-width: 100%;
}

.acct-suggest {
  position: relative;
  text-transform: none;
  font-weight: 400;
}

.acct-suggest-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(76, 29, 149, 0.14);
  padding: 4px;
}

.acct-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #1e1b4b;
  cursor: pointer;
}

.acct-suggest-item:hover,
.acct-suggest-item.is-active {
  background: #f5f3ff;
}

.acct-phone-local {
  flex: 1 1 auto;
  min-width: 0;
}

.acct-msg {
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 10px;
}

.acct-msg.is-ok {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.acct-msg.is-bad {
  color: #be123c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.acct-setup:not(.hidden) { display: grid; gap: 12px; }

.acct-qr-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.acct-qr-row canvas {
  width: 168px;
  height: 168px;
  border-radius: 12px;
  border: 1px solid #ede9fe;
  background: #ffffff;
  flex: none;
}

.acct-qr-row p {
  font-size: 12px;
  color: #475569;
}

.acct-qr-row code {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.4;
  color: #5b21b6;
  word-break: break-all;
}

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

.acct-link {
  border: 0;
  background: transparent;
  color: #6d28d9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.acct-danger {
  justify-self: start;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #be123c;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.acct-card .mh-input:disabled {
  background: #f8fafc;
  color: #64748b;
}

@media (max-width: 900px) {
  .acct-grid, .acct-split { grid-template-columns: 1fr; }
  .acct-id { align-items: flex-start; }
  .acct-badge { margin-left: 0; }
  .acct-qr-row { flex-direction: column; align-items: flex-start; }
}

body.mh .vm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 13, 25, 0.46);
  backdrop-filter: blur(4px);
}

body.mh .vm-modal.hidden { display: none; }

body.mh .vrack-add-card {
  max-width: 440px;
}

body.mh .vrack-add-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
}

body.mh .vrack-add-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e7e3ef;
  background: #ffffff;
  cursor: pointer;
}

body.mh .vrack-add-item:hover {
  border-color: #c4b5fd;
  background: #f6f3fb;
}

body.mh .vrack-add-host {
  font-size: 14px;
  font-weight: 600;
  color: #5b21b6;
}

body.mh .vrack-add-meta {
  font-size: 12px;
  color: #6d657c;
}

body.mh .vrack-add-empty {
  margin: 12px 0 0;
  font-size: 13px;
  color: #6d657c;
}

body.mh .vm-modal-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(76, 29, 149, 0.18);
}

body.mh .vm-modal-card.vrack-add-card {
  max-width: 440px;
}

body.mh .vm-modal-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

body.mh .vm-modal-hd h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
}

body.mh .vm-modal-x {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

body.mh .vm-modal-x:disabled {
  opacity: 0.35;
  cursor: default;
}

body.mh .vm-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.mh .vm-modal-body.hidden { display: none; }

body.mh .vm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

body.mh .plan-pick { display: flex; flex-direction: column; gap: 8px; }
body.mh .plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
}
body.mh .plan-card.is-on {
  border-color: #6d28d9;
  background: #f5f3ff;
  box-shadow: inset 0 0 0 1px #6d28d9;
}
body.mh .plan-card b { display: block; font-size: 13px; }
body.mh .plan-card span span { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #64748b; }
body.mh .plan-card strong { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: #6d28d9; white-space: nowrap; }

body.mh .vm-hint {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

body.mh .vm-hint code {
  color: #6d28d9;
  font-weight: 700;
}

body.mh .vm-req { color: #e11d48; }

body.mh .vm-domain {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e4def8;
  border-radius: 12px;
  background: #fff;
}

body.mh .vm-domain svg { color: #94a3b8; flex-shrink: 0; }

body.mh .vm-domain input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 10px 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: #1e1b4b;
}

body.mh .vm-domain:focus-within { border-color: #7c3aed; }

body.mh .vm-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

body.mh .vm-progress.hidden { display: none; }

body.mh .vm-progress-host {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #5b21b6;
}

body.mh .mh-boot {
  min-width: 190px;
}

body.mh .mh-boot-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
}

body.mh .mh-boot-label span:last-child {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

body.mh tr.is-booting {
  cursor: default;
}

body.mh .vm-bar {
  height: 8px;
  border-radius: 999px;
  background: #f3e8ff;
  overflow: hidden;
}

body.mh .vm-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  transition: width 0.45s ease;
}

body.mh .vm-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #5b21b6;
}

body.mh .vm-progress-row span:last-child {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

body.mh .vm-rebuild-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

body.mh .vm-rebuild-copy b {
  color: #5b21b6;
  font-weight: 700;
}

body.mh .vm-rebuild-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body.mh #remove-go {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

body.mh #remove-go:hover { background: #be123c; }

body.mh #remove-go.is-muted {
  opacity: 0.45;
}
body.mh #remove-go:disabled {
  opacity: 0.4;
  cursor: default;
}

body.mh #remove-bar {
  background: linear-gradient(90deg, #fb7185, #e11d48);
}

body.mh .pwr-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #ddd6fe;
  z-index: 0;
  pointer-events: none;
}

body.mh .mh-mini-stop .pwr-track { background: #fecdd3; }
body.mh .mh-mini-reboot .pwr-track { background: #bfdbfe; }

body.mh .pwr-name,
body.mh .pwr-caption {
  position: relative;
  z-index: 1;
}

body.mh .pwr-caption { display: none; }

body.mh .pwr.is-busy .pwr-name { display: none; }

body.mh .pwr.is-busy .pwr-caption { display: inline; }

body.mh .pwr.is-busy .mh-mini { cursor: progress; }

/* USER DASHBOARD DARK THEME — appearance only */
html.theme-dark body.mh {
  background: #100e18;
  color: #ece9f8;
  color-scheme: dark;
}

html.theme-dark body.mh .mh-side,
html.theme-dark body.mh .mh-top {
  background: rgba(22, 18, 36, 0.92);
  border-color: #322b4e;
  color: #d6d3e8;
}

html.theme-dark body.mh .mh-brand img.brand-logo-light { display: none; }

html.theme-dark body.mh .mh-brand img.brand-logo-dark {
  display: block;
  width: auto;
  height: 36px;
  max-width: none;
  background: transparent;
  padding: 0;
}

html.theme-dark body.mh .mh-card-hd {
  border-bottom: none;
}

html.theme-dark body.mh .syslog-chip,
html.theme-dark body.mh .syslog-page,
html.theme-dark body.mh .syslog-table-wrap {
  background: #1b1730;
  border-color: #3b3260;
  color: #ffffff;
}

html.theme-dark body.mh .syslog-chip b,
html.theme-dark body.mh .syslog-page-meta,
html.theme-dark body.mh .syslog-when span,
html.theme-dark body.mh .syslog-detail,
html.theme-dark body.mh .syslog-table th {
  color: #c4bddb;
}

html.theme-dark body.mh .syslog-table th {
  background: #221c38;
  border-color: #3b3260;
}

html.theme-dark body.mh .syslog-table td {
  border-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark body.mh .syslog-chip.is-on,
html.theme-dark body.mh .syslog-page.is-on {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
}

html.theme-dark body.mh .syslog-status.is-ok {
  background: #166534;
  color: #ffffff !important;
}

html.theme-dark body.mh .syslog-status.is-fail {
  background: #9f1239;
  color: #ffffff !important;
}

html.theme-dark body.mh .mh-group { color: #b8a8e8; }

html.theme-dark body.mh .mh-item { color: #d6d3e8; }
html.theme-dark body.mh .mh-item:hover { background: #2a2444; color: #f5f3ff; }
html.theme-dark body.mh .mh-item.sidebar-active,
html.theme-dark body.mh .sidebar-active {
  background: #3b2f66 !important;
  color: #f5f3ff !important;
}

html.theme-dark.route-sub #nav-apps.sidebar-active {
  background: transparent !important;
  color: #d6d3e8 !important;
  font-weight: 500 !important;
}

html.theme-dark body.mh .mh-account { color: #d6d3e8; }
html.theme-dark body.mh .mh-account b { color: #ddd6fe; }
html.theme-dark body.mh .mh-account button {
  background: #2a2444;
  color: #ede9fe;
  border-color: #4c3d78;
}
html.theme-dark body.mh .mh-account button:hover {
  background: #3b3260;
  color: #ffffff;
}

html.theme-dark body.mh #theme-toggle .theme-icon-sun { display: none; }
html.theme-dark body.mh #theme-toggle .theme-icon-moon { display: block; }

html.theme-dark body.mh .bg-white,
html.theme-dark body.mh .mh-fav,
html.theme-dark body.mh .mh-stats,
html.theme-dark body.mh .mh-panel,
html.theme-dark body.mh .mh-card,
html.theme-dark body.mh .acct-card,
html.theme-dark body.mh .vm-modal-card,
html.theme-dark body.mh .fm-table,
html.theme-dark body.mh .cp-card {
  background-color: #1b1730 !important;
  color: #ece9f8;
  border-color: #3b3260;
}

html.theme-dark body.mh #qr .bg-white {
  background: #ffffff !important;
  color: #1e1b4b !important;
}

html.theme-dark body.mh .bg-purple-50,
html.theme-dark body.mh .bg-purple-50\/80,
html.theme-dark body.mh .bg-purple-50\/40,
html.theme-dark body.mh .bg-purple-100,
html.theme-dark body.mh .bg-violet-50,
html.theme-dark body.mh .bg-slate-50 {
  background-color: #241f3d !important;
}

html.theme-dark body.mh .hover\:bg-purple-50:hover,
html.theme-dark body.mh .hover\:bg-purple-100:hover,
html.theme-dark body.mh .hover\:bg-purple-200:hover,
html.theme-dark body.mh .hover\:bg-slate-50:hover,
html.theme-dark body.mh .mh-fav:hover,
html.theme-dark body.mh .mh-table tbody tr:hover,
html.theme-dark body.mh .term-table tbody tr:hover,
html.theme-dark body.mh .fm-table tbody tr:hover,
html.theme-dark body.mh .fm-table tr.is-on {
  background-color: #2c2648 !important;
}

html.theme-dark body.mh .text-slate-900,
html.theme-dark body.mh .text-slate-800,
html.theme-dark body.mh .text-purple-900,
html.theme-dark body.mh .mh-fav b,
html.theme-dark body.mh .mh-stats h2,
html.theme-dark body.mh .vm-modal-hd h3,
html.theme-dark body.mh .term-lead b,
html.theme-dark body.mh #who {
  color: #f5f3ff !important;
}

html.theme-dark body.mh .text-slate-700,
html.theme-dark body.mh .text-slate-600,
html.theme-dark body.mh .text-violet-800,
html.theme-dark body.mh .text-violet-700,
html.theme-dark body.mh .text-violet-900,
html.theme-dark body.mh .mh-note,
html.theme-dark body.mh .mh-fav small,
html.theme-dark body.mh .term-spec,
html.theme-dark body.mh .term-empty,
html.theme-dark body.mh .vm-field,
html.theme-dark body.mh .vm-hint {
  color: #d6d3e8 !important;
}

html.theme-dark body.mh .vm-domain {
  background: #1b1730;
  border-color: #3b3260;
}

html.theme-dark body.mh .plan-card {
  background: #1b1730;
  border-color: #3b3260;
  color: #efeaff;
}
html.theme-dark body.mh .plan-card.is-on {
  background: #2a2150;
  border-color: #a78bfa;
}
html.theme-dark body.mh .plan-card span span { color: #c4b5fd; }
html.theme-dark body.mh .plan-card strong { color: #ddd6fe; }

html.theme-dark body.mh .vm-domain input { color: #efeaff; }

html.theme-dark body.mh .text-slate-500,
html.theme-dark body.mh .text-slate-400 {
  color: #a89fc4 !important;
}

html.theme-dark body.mh .border-purple-100,
html.theme-dark body.mh .border-purple-200,
html.theme-dark body.mh .border-purple-200\/60,
html.theme-dark body.mh .border-purple-200\/80,
html.theme-dark body.mh .border-purple-200\/90,
html.theme-dark body.mh .border-slate-200,
html.theme-dark body.mh .divide-purple-50 > :not([hidden]) ~ :not([hidden]) {
  border-color: #3b3260 !important;
}

html.theme-dark body.mh #usage-list .border-b {
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

html.theme-dark body.mh .ping-arrow {
  color: #ffffff;
}

html.theme-dark body.mh input,
html.theme-dark body.mh select,
html.theme-dark body.mh textarea,
html.theme-dark body.mh .mh-input,
html.theme-dark body.mh .mh-side-search {
  background: #141022 !important;
  color: #f4f1ff !important;
  border-color: #4c3d78 !important;
}

html.theme-dark body.mh select.usage-span-input,
html.theme-dark body.mh #vrack-ping select {
  background-color: #141022 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 16px 16px !important;
  color: #ffffff !important;
}

html.theme-dark body.mh input::placeholder,
html.theme-dark body.mh textarea::placeholder {
  color: #8b84a8;
}

html.theme-dark body.mh .fm-editor textarea {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: #1e293b !important;
}

html.theme-dark body.mh .acct-suggest-list {
  background: #1b1730;
  border-color: #4c3d78;
}

html.theme-dark body.mh .acct-suggest-item { color: #f4f1ff; }
html.theme-dark body.mh .acct-suggest-item:hover,
html.theme-dark body.mh .acct-suggest-item.is-active { background: #2c2648; }

html.theme-dark body.mh .vrack-add-item {
  background: #1b1730;
  border-color: #3b3260;
}

html.theme-dark body.mh .vrack-add-item:hover {
  background: #241c3d;
  border-color: #6d28d9;
}

html.theme-dark body.mh .vrack-add-host,
html.theme-dark body.mh .vrack-add-meta {
  color: #ffffff;
}
html.theme-dark body.mh .vm-modal { background: rgba(8, 6, 16, 0.72); }
html.theme-dark body.mh .vm-modal-x { background: #2a2444; color: #ede9fe; }

html.theme-dark body.mh .bg-emerald-100 { background: #064e3b !important; }
html.theme-dark body.mh .text-emerald-800,
html.theme-dark body.mh .text-emerald-700 { color: #6ee7b7 !important; }
html.theme-dark body.mh .bg-rose-50,
html.theme-dark body.mh .bg-rose-100 { background: #3f1220 !important; }
html.theme-dark body.mh .text-rose-700,
html.theme-dark body.mh .text-rose-800 { color: #fda4af !important; }
html.theme-dark body.mh .bg-amber-50,
html.theme-dark body.mh .bg-amber-100 { background: #3b2a10 !important; }
html.theme-dark body.mh .text-amber-700,
html.theme-dark body.mh .text-amber-800 { color: #fcd34d !important; }

html.theme-dark body.mh .mh-table th,
html.theme-dark body.mh .term-table th,
html.theme-dark body.mh .fm-table th {
  background: #221c38 !important;
  color: #ddd6fe !important;
  border-color: #3b3260 !important;
}

html.theme-dark body.mh .mh-table td,
html.theme-dark body.mh .term-table td,
html.theme-dark body.mh .fm-table td {
  background: transparent;
  color: #f4f1ff !important;
  border-color: #2a2444 !important;
}

html.theme-dark body.mh .mh-host,
html.theme-dark body.mh .term-host,
html.theme-dark body.mh .term-ip {
  color: #efeaff;
}

html.theme-dark body.mh .mh-domain-custom { color: #6ee7b7; }

html.theme-dark body.mh .mh-domain-edit {
  background: #2a2444;
  color: #efeaff;
  border-color: #5b4b8a;
}

html.theme-dark body.mh .text-purple-900\/40,
html.theme-dark body.mh .text-purple-900\/50,
html.theme-dark body.mh .text-purple-900\/60,
html.theme-dark body.mh .text-purple-900\/70,
html.theme-dark body.mh .mh-note,
html.theme-dark body.mh .term-lead,
html.theme-dark body.mh .term-filters > span {
  color: #d4cee8 !important;
}

html.theme-dark body.mh .mh-mini {
  background: #2a2444;
  color: #f4f1ff;
  border-color: #5b4b8a;
}

html.theme-dark body.mh .mh-mini:hover {
  background: #3b3260;
  border-color: #8b7cc4;
  color: #ffffff;
}

html.theme-dark body.mh .mh-mini-stop {
  color: #fecdd3;
  border-color: #9f1239;
  background: #3a1522;
}

html.theme-dark body.mh .mh-mini-stop:hover {
  background: #4c1d2c;
  color: #ffe4e6;
}

html.theme-dark body.mh .mh-mini-reboot {
  color: #dbeafe;
  border-color: #1d4ed8;
  background: #172554;
}

html.theme-dark body.mh .mh-mini-reboot:hover {
  background: #1e3a8a;
  color: #ffffff;
}

html.theme-dark body.mh .bg-purple-100.text-purple-900,
html.theme-dark body.mh .bg-purple-50.text-purple-900 {
  background: #3b2f66 !important;
  color: #ffffff !important;
  border-color: #6d5cae !important;
}

html.theme-dark body.mh,
html.theme-dark body.mh * {
  color: #ffffff !important;
}

html.theme-dark body.mh input::placeholder,
html.theme-dark body.mh textarea::placeholder {
  color: #ffffff !important;
}

html.theme-dark body.mh .mh-foot {
  background: #221c38 !important;
  border-top-color: #3b3260 !important;
  color: #ffffff !important;
}

html.theme-dark body.mh .term-chip,
html.theme-dark body.mh .term-pill,
html.theme-dark body.mh .mh-back,
html.theme-dark body.mh .mh-btn-outline,
html.theme-dark body.mh .mh-pick,
html.theme-dark body.mh .mh-menu-pop,
html.theme-dark body.mh .usage-filter,
html.theme-dark body.mh .acct-badge,
html.theme-dark body.mh .acct-card .mh-input:disabled {
  background: #2a2444 !important;
  border-color: #5b4b8a !important;
  color: #ffffff !important;
}

html.theme-dark body.mh .acct-id {
  background: #1b1730 !important;
  border-color: #3b3260 !important;
}

html.theme-dark body.mh .acct-fold.is-open .acct-fold-head {
  border-bottom-color: #3b3260;
}

html.theme-dark body.mh .term-chip.is-on,
html.theme-dark body.mh .term-chip.is-on:hover {
  background: #5b3fd4 !important;
  border-color: #c4b5fd !important;
  color: #ffffff !important;
}

html.theme-dark body.mh .mh-btn-outline:hover,
html.theme-dark body.mh .mh-pick:hover,
html.theme-dark body.mh .mh-menu-pop button:hover,
html.theme-dark body.mh .acct-fold-head:hover,
html.theme-dark body.mh .term-chip:hover {
  background: #3b3260 !important;
  color: #ffffff !important;
}

html.theme-dark body.mh .ai-status,
html.theme-dark body.mh .acct-msg.is-bad,
html.theme-dark body.mh .acct-danger {
  background: #3a1522 !important;
  border-color: #9f1239 !important;
  color: #ffffff !important;
}

html.theme-dark body.mh .ai-status.is-on,
html.theme-dark body.mh .acct-badge.is-on,
html.theme-dark body.mh .acct-msg.is-ok,
html.theme-dark body.mh .bg-emerald-50 {
  background: #064e3b !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}

html.theme-dark body.mh .bg-purple-50\/30,
html.theme-dark body.mh .bg-purple-50\/50 {
  background-color: #241f3d !important;
}

html.theme-dark body.mh .border-rose-200,
html.theme-dark body.mh .border-emerald-200 {
  border-color: #3b3260 !important;
}

html.theme-dark body.mh .vm-bar {
  background: #2a2444 !important;
}

html.theme-dark body.mh .mh-boot-label {
  color: #ddd6fe;
}

/* ADMIN CONSOLE — layout under the header only */
body.ad {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f4f2f8;
  color: #1c1730;
}

body.ad,
body.ad * {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body.ad .ad-shell {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 64px);
  background: #f4f2f8;
}

body.ad .ad-side {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
  border-right: 1px solid #e7e3ef;
  padding: 18px 14px 16px;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: auto;
}

body.ad .ad-side > div:first-child {
  background: #f7f5fb !important;
  border: 1px solid #ece7f4 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  padding: 12px 14px !important;
}

body.ad .ad-side > div:first-child .uppercase {
  font-size: 11px !important;
  letter-spacing: 0.06em !important;
  color: #8a829c !important;
  font-weight: 500 !important;
}

body.ad .ad-main {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 48px;
}

body.ad .ad-side nav > div > div:first-child {
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  color: #8b849c !important;
  font-weight: 500 !important;
  padding-left: 12px !important;
  margin-bottom: 8px !important;
}

body.ad .ad-side nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #3f3a4d !important;
  padding: 9px 12px !important;
  background: transparent;
  text-align: left;
}

body.ad .ad-side nav button svg {
  width: 16px;
  height: 16px;
  color: #8a7aa3;
  flex-shrink: 0;
}

body.ad .ad-side nav button:hover {
  background: #f6f3fb !important;
  color: #2a2438 !important;
}

body.ad .ad-side nav button.sidebar-active {
  background: #efe9fb !important;
  color: #5b21b6 !important;
  font-weight: 600 !important;
}

body.ad .ad-side nav button.sidebar-active svg {
  color: #6d28d9;
}

body.ad .ad-side > a {
  margin-top: auto;
  border-radius: 10px !important;
  background: #1c1730 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

body.ad .ad-main h1 {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  color: #1c1730 !important;
}

body.ad .ad-nodes {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #1e293b;
}

body.ad .ad-nodes th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  padding: 14px 16px;
  border-bottom: 1px solid #e8e6ef;
}

body.ad .ad-nodes td {
  padding: 16px;
  border-bottom: 1px solid #f1f0f5;
}

body.ad .ad-nodes tbody tr:nth-child(even) {
  background: #f7f8fb;
}

body.ad .ad-nodes .ad-node-name {
  font-weight: 700;
  color: #0f172a;
}

body.ad .ad-node-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

body.ad .ad-node-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

body.ad .ad-node-status.is-on {
  color: #047857;
}

body.ad .ad-node-status.is-on i {
  background: #10b981;
}

body.ad .ad-node-status.is-off {
  color: #be123c;
}

body.ad .ad-node-status.is-off i {
  background: #e11d48;
}

body.ad .ad-nodes .ad-node-actions {
  text-align: right;
  white-space: nowrap;
}

body.ad .ad-nodes .ad-node-actions a,
body.ad .ad-nodes .ad-node-actions button {
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 14px;
  cursor: pointer;
}

body.ad .ad-nodes .ad-node-actions button {
  color: #be123c;
}

body.ad .ad-node-actions .ad-node-remove {
  display: inline-flex;
  margin-left: 14px;
  vertical-align: middle;
}

body.ad .ad-node-actions .ad-pwr-btn.is-node-remove {
  margin: 0;
  padding: 4px 10px;
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

body.ad .ad-node-actions .ad-pwr-btn.is-node-remove .ad-pwr-track {
  background: rgba(225, 29, 72, 0.34);
}

body.ad .ad-nodes .ad-node-empty {
  color: #64748b;
  text-align: center;
}

body.ad .ad-fleet-search {
  width: min(320px, 100%);
  height: 40px;
  margin: 0;
  border: 1px solid #e4dff0;
  border-radius: 10px;
  background: #ffffff;
  color: #1c1730;
  font-size: 13px;
  padding: 0 12px;
  outline: none;
}

body.ad .ad-fleet-search:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

body.ad .ad-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #eeeaf4;
  background: #faf9fc;
}

body.ad .ad-pager:empty { display: none; }

body.ad .ad-page-meta {
  font-size: 13px;
  font-weight: 500;
  color: #6d657c;
  white-space: nowrap;
}

body.ad .ad-page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

body.ad .ad-page {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid #e4dff0;
  background: #ffffff;
  color: #3f3a4d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

body.ad .ad-page:hover:not(:disabled):not(.is-on) {
  background: #f6f3fb;
  border-color: #d9d0e8;
}

body.ad .ad-page.is-on {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
}

body.ad .ad-page:disabled {
  opacity: 0.35;
  cursor: default;
}

body.ad .ad-main h2 {
  font-size: 16px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: #1c1730 !important;
}

body.ad .admin-view:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.ad .admin-view > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.ad .ad-main p:not(#notice):not(#google-notice),
body.ad #ssl-note,
body.ad #google-secret-note {
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #6d657c;
}

body.ad .ad-main label {
  text-transform: none !important;
  letter-spacing: 0 !important;
}

body.ad .ad-refresh {
  background: #ffffff;
  color: #3f3a4d;
  border: 1px solid #e0dbea;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  box-shadow: none;
}

body.ad .ad-refresh:hover {
  background: #f6f3fb;
  border-color: #d4cce4;
}

body.ad #notice:not(.hidden) {
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  margin-bottom: 4px !important;
}

body.ad .ad-main .bg-white,
body.ad #dc-list article {
  background: #ffffff !important;
  border-color: #e7e3ef !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(28, 23, 48, 0.04) !important;
}

body.ad #stats {
  gap: 12px !important;
}

body.ad #stats > div {
  border-radius: 14px !important;
  border: 1px solid #e7e3ef !important;
  box-shadow: none !important;
  padding: 16px 18px !important;
  background: #ffffff !important;
}

body.ad #stats > div > div:first-child {
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #7a738c !important;
}

body.ad #stats > div > div:last-child {
  font-size: 26px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em !important;
  margin-top: 6px !important;
  color: #1c1730 !important;
}

body.ad .ad-main table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px !important;
}

body.ad .ad-main thead th {
  background: #faf9fc !important;
  color: #6f677f !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #eeeaf3 !important;
}

body.ad .ad-main tbody td {
  padding: 12px 14px !important;
  font-size: 13px !important;
  vertical-align: middle;
  color: #2c2640;
  border-color: #f1eef5 !important;
}

body.ad #fleet thead th:first-child,
body.ad #fleet tbody td:first-child {
  padding-left: 24px !important;
}

body.ad .ad-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 10, 30, 0.45);
}

body.ad .ad-modal.hidden { display: none; }

body.ad .ad-modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #ddd6fe;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(76, 29, 149, 0.18);
}

body.ad .ad-modal-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e1b4b;
}

body.ad .ad-modal-card p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

body.ad .ad-modal-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

body.ad .ad-modal-card input {
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
}

body.ad .ad-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

body.ad #admin-remove-go:disabled {
  opacity: 0.4;
  cursor: default;
}

body.ad #admin-remove-ask.hidden { display: none; }

body.ad .ad-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

body.ad .ad-progress.hidden { display: none; }

body.ad .ad-progress-host {
  font-size: 13px;
  font-weight: 700;
  color: #9f1239;
}

body.ad .ad-bar {
  height: 8px;
  border-radius: 999px;
  background: #ffe4e6;
  overflow: hidden;
}

body.ad .ad-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fb7185, #e11d48);
  transition: width 0.45s ease;
}

body.ad .ad-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #9f1239;
}

body.ad .ad-fleet-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.ad .ad-pwr-btn {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

body.ad .ad-pwr-btn.is-start {
  background: #6d28d9;
  color: #ffffff;
  padding-left: 12.5px;
  padding-right: 12.5px;
}

body.ad .ad-pwr-btn.is-stop {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  padding-left: 12.5px;
  padding-right: 12.5px;
}

body.ad .ad-pwr-btn.is-reboot {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

body.ad .ad-pwr-btn.is-remove {
  background: #e11d48;
  color: #ffffff;
}

body.ad .ad-pwr-btn:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

body.ad .ad-pwr-track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.55);
}

body.ad .ad-pwr-btn.is-stop .ad-pwr-track,
body.ad .ad-pwr-btn.is-reboot .ad-pwr-track {
  background: rgba(15, 23, 42, 0.12);
}

body.ad .ad-pwr-name {
  position: relative;
  z-index: 1;
}

body.ad .ad-pwr.is-busy .ad-pwr-btn {
  cursor: progress;
}

body.ad #rows button,
body.ad #ssl-rows button,
body.ad #dc-list button,
body.ad #node-list button {
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
}

body.ad #rows button {
  padding: 5px 10px !important;
}

body.ad #rows .ad-pwr-btn.is-start,
body.ad #rows .ad-pwr-btn.is-stop {
  padding: 5px 12.5px !important;
}

body.ad .ad-main fieldset {
  background: #faf9fc !important;
  border: 1px solid #ece7f4 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  margin: 0;
}

body.ad .ad-main legend {
  font-size: 13px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600 !important;
  color: #3f3a4d !important;
  padding: 0 6px !important;
}

body.ad .ad-main label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #3f3a4d;
}

body.ad .ad-main input,
body.ad .ad-main select,
body.ad .ad-main textarea {
  border-radius: 10px !important;
  border: 1px solid #e0dbe8 !important;
  min-height: 40px;
  font-size: 14px !important;
  background: #ffffff !important;
  color: #1c1730 !important;
  box-shadow: none;
}

body.ad .ad-main input:focus,
body.ad .ad-main select:focus,
body.ad .ad-main textarea:focus {
  outline: none;
  border-color: #7c3aed !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

body.ad .ad-main button.bg-violet-700,
body.ad .ad-main button.bg-slate-900 {
  border-radius: 10px !important;
  font-weight: 500 !important;
  min-height: 40px;
  font-size: 13px !important;
  box-shadow: none !important;
}

body.ad #pricing .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
}

body.ad #google-form {
  max-width: 640px;
}

body.ad #login {
  background: #f4f2f8;
}

body.ad #login h1 {
  font-size: 28px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

@media (max-width: 1100px) {
  body.ad #pricing .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  body.ad .ad-shell {
    flex-direction: column;
  }

  body.ad .ad-side {
    width: 100%;
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid #e7e3ef;
  }

  body.ad .ad-side nav .space-y-1 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  body.ad .ad-side nav button {
    width: auto !important;
  }

  body.ad .ad-main {
    padding: 20px 16px 40px;
  }
}

body.ad .ad-node-add:not(.hidden) {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.ad .ad-node-add-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.ad .ad-node-add-head h2 {
  margin: 0;
}

body.ad .ad-node-add-head button {
  border: 0;
  background: transparent;
  color: #6d657c;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  min-height: 0;
  cursor: pointer;
}

body.ad .ad-node-add-head button:hover {
  color: #1c1730;
}

body.ad .ad-node-cmd {
  background: #f7f5fb;
  border: 1px solid #ece7f4;
  border-radius: 12px;
  padding: 10px 12px 12px;
}

body.ad .ad-node-cmd-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #6d657c;
}

body.ad .ad-node-cmd-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e7e3ef;
  border-radius: 10px;
  padding: 4px 4px 4px 12px;
}

body.ad .ad-node-cmd pre {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  color: #1c1730;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: nowrap;
  overflow-x: auto;
}

body.ad .ad-node-cmd-line button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 30px;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  background: #f5f3ff;
  color: #6d28d9;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

body.ad .ad-node-cmd-line button svg {
  width: 14px;
  height: 14px;
}

body.ad .ad-node-cmd-line button:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
}

body.ad .ad-node-cmd-line button.is-copied {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

body.ad .ad-node-hint {
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  color: #8a829c !important;
}

body.ad .ad-node-fields {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
}

body.ad .ad-node-fields label:nth-child(1) { width: 256px; }
body.ad .ad-node-fields label:nth-child(2) { width: 84px; }
body.ad .ad-node-fields label:nth-child(3) { width: 132px; }
body.ad .ad-node-fields label:nth-child(4) { width: 150px; }
body.ad .ad-node-fields label:nth-child(5) { width: 248px; }

body.ad .ad-node-fields label {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #3f3a4d;
}

body.ad .ad-node-fields input,
body.ad .ad-node-fields select {
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #e4dff0;
  border-radius: 10px;
  background: #ffffff;
  color: #1c1730;
  font-size: 13px;
  padding: 0 12px;
  outline: none;
}

body.ad .ad-node-fields select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 34px 0 12px !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25 L6 8 L9.75 4.25' stroke='%236d657c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
}

body.ad .ad-node-fields input:focus,
body.ad .ad-node-fields select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

body.ad .ad-pool-add {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body.ad .ad-pool-add label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 240px;
  font-size: 12px;
  font-weight: 600;
  color: #3f3a4d;
}

body.ad .ad-pool-add input,
body.ad .ad-pool-add select {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #e4dff0;
  border-radius: 10px;
  background: #ffffff;
  color: #1c1730;
  font-size: 13px;
  line-height: 40px;
  padding: 0 12px;
  outline: none;
}

body.ad .ad-pool-add select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 36px 0 12px !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.25 4.25 L6 8 L9.75 4.25' stroke='%236d657c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
}

body.ad .ad-pool-add input:focus,
body.ad .ad-pool-add select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

body.ad .ad-pool-add #pool-add-close {
  height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.ad .ad-node-submit {
  position: relative;
  overflow: hidden;
  height: 40px;
  min-height: 40px;
  width: auto;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

body.ad .ad-node-submit .ad-pwr-track {
  background: rgba(255, 255, 255, 0.28);
}

body.ad .ad-node-status.is-setup {
  color: #b45309;
}

body.ad .ad-node-status.is-setup i {
  background: #f59e0b;
}

body.ad .ad-node-setup {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 108px;
}

body.ad .ad-node-setup-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: #fde68a;
  overflow: hidden;
}

body.ad .ad-node-setup-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: #d97706;
  animation: ad-node-setup 1.1s ease-in-out infinite;
}

@keyframes ad-node-setup {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

body.ad .ad-dc-fields,
body.ad .ad-dc-edit:not(.hidden) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

body.ad .ad-dc-edit {
  padding: 0 18px 16px;
}

body.ad .ad-dc-fields label,
body.ad .ad-dc-edit label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #3f3a4d;
}

body.ad .ad-dc-fields label:nth-child(1) { width: 120px; }
body.ad .ad-dc-fields label:nth-child(2) { width: 200px; }
body.ad .ad-dc-fields label:nth-child(3) { width: 220px; }
body.ad .ad-dc-fields label:nth-child(4),
body.ad .ad-dc-fields label:nth-child(5) { width: 280px; }
body.ad .ad-dc-edit label:nth-child(1) { width: 220px; }
body.ad .ad-dc-edit label:nth-child(2) { width: 240px; }
body.ad .ad-dc-edit label:nth-child(3),
body.ad .ad-dc-edit label:nth-child(4) { width: 280px; }

body.ad .ad-dc-route {
  flex: 1 0 100%;
  margin: 0 18px 8px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  color: #6d657c;
}

body.ad .ad-gw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 12px;
  padding: 0 18px 14px;
}

body.ad .ad-gw-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e7e3ef;
  border-radius: 12px;
  background: #fff;
}

body.ad .ad-gw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.ad .ad-gw-row b {
  display: block;
  font-size: 13px;
  color: #1c1730;
}

body.ad .ad-gw-row span,
body.ad .ad-gw-cmd p,
body.ad .ad-gw-check {
  font-size: 12px;
  color: #6d657c;
  font-weight: 500;
}

body.ad .ad-gw-item.is-span {
  grid-column: 1 / -1;
}

body.ad .ad-gw-row button,
body.ad .ad-gw-cmd button,
body.ad .ad-gw-add button[type="submit"] {
  height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: #1c1730;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.ad .ad-gw-cmd {
  background: #f7f5fb;
  border-radius: 12px;
  padding: 10px 12px;
}

body.ad .ad-gw-cmd pre {
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 12px;
  color: #1c1730;
}

body.ad .ad-gw-error {
  margin: 0;
  color: #be123c;
  font-size: 12px;
  font-weight: 600;
}

body.ad .ad-gw-add {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  background: #f7f5fb;
  border-radius: 12px;
}

body.ad .ad-gw-add.hidden { display: none; }

body.ad .ad-gw-add label.ad-gw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #3f3a4d;
}

body.ad .ad-gw-add label.ad-gw-field input {
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #e4dff0;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
}

body.ad .ad-gw-add label.ad-gw-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: auto;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #3f3a4d;
  white-space: normal;
}

body.ad .ad-gw-add label.ad-gw-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
}

body.ad .ad-gw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body.ad .ad-gw-add button.ad-gw-close {
  height: 36px;
  border: 1px solid #e4dff0;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #3f3a4d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body.ad .ad-dc-fields .ad-dc-note {
  margin: 0;
}

body.ad .ad-dc-fields input,
body.ad .ad-dc-edit input {
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #e4dff0;
  border-radius: 10px;
  background: #ffffff;
  color: #1c1730;
  font-size: 13px;
  padding: 0 12px;
  outline: none;
}

body.ad .ad-dc-fields input:focus,
body.ad .ad-dc-edit input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

body.ad .ad-dc-card {
  background: #ffffff;
  border: 1px solid #e7e3ef;
  border-radius: 16px;
  overflow: hidden;
}

body.ad .ad-dc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
}

body.ad .ad-dc-head h2 {
  margin: 0;
  font-size: 16px !important;
  white-space: nowrap;
}

body.ad .ad-dc-head p {
  margin: 4px 0 0 !important;
  font-size: 13px !important;
  color: #6d657c !important;
}

body.ad .ad-dc-head .ad-node-actions {
  text-align: right;
  white-space: nowrap;
}

body.ad .ad-dc-head .ad-node-actions button {
  font-size: 13px;
  font-weight: 600;
  color: #be123c;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 14px;
  min-height: 0;
  cursor: pointer;
}

body.ad .ad-plans { display: flex; flex-direction: column; gap: 16px; }
body.ad .ad-plan-page h1 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}
body.ad .ad-plan-page p,
body.ad .ad-plan-hd p {
  margin-top: 4px;
  max-width: 680px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  color: #64748b;
}
body.ad .ad-plan-card {
  background: #fff;
  border: 1px solid #f3e8ff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(91, 33, 182, 0.04);
  padding: 18px 20px 16px;
}
body.ad .ad-plan-hd h2 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}
body.ad .ad-plan-form,
body.ad .ad-plan-rates {
  display: grid;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}
body.ad .ad-plan-form {
  grid-template-columns: minmax(140px, 1.5fr) repeat(4, minmax(88px, 1fr)) auto;
}
body.ad .ad-plan-rates {
  grid-template-columns: minmax(160px, 240px) auto;
  justify-content: start;
}
body.ad .ad-plan-form label,
body.ad .ad-plan-rates label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
body.ad .ad-plan-form input,
body.ad .ad-plan-rates input {
  width: 100%;
  height: 40px;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
}
body.ad .ad-plan-form input:focus,
body.ad .ad-plan-rates input:focus {
  outline: none;
  border-color: #7c3aed;
}
body.ad .ad-plan-actions { display: flex; gap: 8px; }
body.ad .ad-plan-actions button,
body.ad .ad-plan-rates > button {
  height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  background: #6d28d9;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
body.ad .ad-plan-rates > button { background: #0f172a; }
body.ad .ad-plan-actions button#plan-cancel {
  border: 1px solid #e9d5ff;
  background: #fff;
  color: #334155;
}
body.ad .ad-plan-actions button.hidden { display: none; }
body.ad .ad-plan-table { margin-top: 16px; overflow-x: auto; }
body.ad .ad-plan-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
body.ad .ad-plan-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #f3e8ff;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c6a9a;
}
body.ad .ad-plan-table td { padding: 12px; border-top: 1px solid #faf5ff; color: #334155; }
@media (max-width: 1100px) {
  body.ad .ad-plan-form,
  body.ad .ad-plan-rates { grid-template-columns: 1fr 1fr; }
  body.ad .ad-plan-actions,
  body.ad .ad-plan-rates > button { grid-column: 1 / -1; justify-self: start; }
}

body.ad .ad-dc-head .ad-node-actions button.is-edit {
  color: #6d28d9;
}

body.ad .ad-map { display: flex; flex-direction: column; gap: 16px; }
body.ad .ad-map-page { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
body.ad .ad-map-page h1 { font-size: 22px; line-height: 1.2; font-weight: 700; color: #0f172a; }
body.ad .ad-map-page p, body.ad .ad-map-hd p { margin-top: 4px; max-width: 640px; font-size: 12px; line-height: 1.5; color: #64748b; }
body.ad .ad-map-now { border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 700; padding: 6px 12px; }
body.ad .ad-map-card { background: #fff; border: 1px solid #f3e8ff; border-radius: 20px; box-shadow: 0 8px 24px rgba(91, 33, 182, 0.04); padding: 18px 20px; }
body.ad .ad-map-hd h2, body.ad .ad-path header b, body.ad .ad-links b { font-size: 15px; font-weight: 700; color: #0f172a; }
body.ad .ad-topo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
body.ad .ad-box {
  height: 132px;
  margin: 0;
  border: 1px solid #e7e3f0;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  overflow: hidden;
}
body.ad .ad-box b { display: block; font-size: 14px; line-height: 1.3; font-weight: 700; color: #0f172a; }
body.ad .ad-box span, body.ad .ad-box small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6px; font-size: 12px; line-height: 1.4; color: #64748b; }
body.ad .ad-box.is-user { background: #faf8ff; }
body.ad .ad-box.is-cf { background: #f8fbff; }
body.ad .ad-box.is-core { background: #f7f5ff; }
body.ad .ad-box.is-ssh { background: #f8fbff; }
body.ad .ad-box.is-branch { background: #f6fdfb; }
body.ad .ad-box.is-node { background: #faf8ff; }
body.ad .ad-box.is-vm { background: #fffaf5; }
body.ad .ad-paths, body.ad .ad-links { display: grid; gap: 12px; margin-top: 14px; }
body.ad .ad-paths { grid-template-columns: 1fr; }
body.ad .ad-path, body.ad .ad-links article { border: 1px solid #f1f5f9; border-radius: 16px; padding: 14px; background: #fff; }
body.ad .ad-path.is-live { border-color: #a7f3d0; background: #f0fdf4; }
body.ad .ad-path header { display: flex; align-items: center; gap: 8px; }
body.ad .ad-path header span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #6d28d9; color: #fff; font-size: 12px; font-weight: 700; }
body.ad .ad-path header em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #047857; background: #d1fae5; border-radius: 999px; padding: 3px 8px; }
body.ad .ad-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
body.ad .ad-flow i { font-style: normal; font-size: 12px; font-weight: 650; color: #312e81; background: #fff; border: 1px solid #ddd6fe; border-radius: 999px; padding: 6px 10px; }
body.ad .ad-flow s { width: 28px; height: 2px; border-radius: 99px; background: linear-gradient(90deg, #c4b5fd, #6d28d9); position: relative; overflow: hidden; text-decoration: none; }
body.ad .ad-flow s::after { content: ""; position: absolute; top: -2px; width: 8px; height: 6px; border-radius: 99px; background: #4c1d95; animation: ad-flow 1.4s linear infinite; }
body.ad .ad-path p, body.ad .ad-links span { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #475569; }
body.ad .ad-links { grid-template-columns: 1fr 1fr; }
@keyframes ad-flow { from { transform: translateX(-12px); } to { transform: translateX(32px); } }
@media (max-width: 1100px) {
  body.ad .ad-topo { grid-template-columns: 1fr 1fr; }
  body.ad .ad-box { height: auto; min-height: 120px; }
  body.ad .ad-links { grid-template-columns: 1fr; }
}
