@charset "UTF-8";
:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #182235;
  background: #f4f6fa;
  font-synthesis: none;
  font-size: 14px;
  --blue: #315efb;
  --muted: #778397;
  --line: #e5e9f0;
  --navy: #111b30;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8fa9ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
}
small {
  font-size: 12px;
}
label {
  display: block;
  font-weight: 550;
  font-size: 13px;
  margin-bottom: 16px;
}
input,
select,
textarea {
  border: 1px solid #dbe1eb;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: inherit;
  width: 100%;
  margin-top: 7px;
}
textarea {
  resize: vertical;
  min-height: 150px;
  font-family: Consolas, monospace;
  font-size: 12px;
}
input::placeholder {
  color: #96a0b2;
}
input[type="checkbox"] {
  width: auto;
}
.primary,
.button {
  border-radius: 8px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 550;
  line-height: 20px;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: white;
  box-shadow: 0 2px 3px #1c3a9c12;
}
.primary:hover {
  background: #244ee6;
}
.button {
  color: #36445c;
  border: 1px solid #dce2eb;
  background: white;
}
.button:hover {
  background: #f8faff;
  border-color: #bac7e2;
}
.button.danger {
  color: #ba3548;
}
.small {
  padding: 7px 11px;
  font-size: 12px;
}
.icon-button {
  border: 0;
  background: transparent;
  border-radius: 6px;
  color: inherit;
  padding: 7px 9px;
  font-size: 21px;
  line-height: 20px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
}
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 20% 10%, #e7edff 0, transparent 50%), #f4f6fa;
}
.login-card {
  max-width: 470px;
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px;
  box-shadow: 0 18px 70px #233b6710;
}
.login-card .brand-mark {
  margin-bottom: 27px;
  width: 45px;
  height: 45px;
  font-size: 29px;
}
.login-card h1 {
  font-size: 30px;
}
.login-card > p.muted {
  line-height: 1.7;
  margin-bottom: 26px;
}
.login-card .primary {
  width: 100%;
  justify-content: space-between;
}
.login-foot {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 25px 0 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  border-radius: 10px;
  color: white;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -6px;
  padding-right: 4px;
  flex-shrink: 0;
}
.brand-mark span {
  font-size: 16px;
  margin-left: 2px;
  margin-top: -9px;
  letter-spacing: 0;
}
.sidebar {
  width: 246px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #b4bfd2;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 0;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f8faff;
  font-size: 17px;
  font-weight: 650;
  padding: 0 8px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #7d8ba4;
  margin-top: 7px;
  font-weight: 500;
}
.workspace-label {
  margin: 35px 13px 16px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #697b9a;
}
.sidebar nav > a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  margin-bottom: 5px;
  border-radius: 8px;
  font-size: 13px;
  color: #aebbd2;
}
.sidebar nav > a > span {
  font-size: 19px;
  width: 20px;
  text-align: center;
  color: #7b90b5;
}
.sidebar nav > a:hover {
  background: #1b2943;
}
.sidebar nav > a.active {
  background: #263a64;
  color: white;
}
.sidebar nav > a.active > span {
  color: #85a7ff;
}
.sidebar nav b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  background: #ffffff0b;
  padding: 3px 6px;
  border-radius: 4px;
  color: #9eafc9;
}
.nav-group {
  margin: 31px 13px 12px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #697b9a;
}
.sidebar-bottom {
  margin-top: auto;
}
.connection-light {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 22px 12px;
  color: #8396b5;
}
.connection-light i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54bfa5;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #27334b;
  padding: 21px 6px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #2b3a58;
  color: #b6caff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user strong {
  display: block;
  font-size: 12px;
  color: #e3e9f5;
}
.user small {
  color: #6f839f;
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.user .icon-button {
  margin-left: auto;
  color: #7d8da6;
}
.main-shell {
  margin-left: 246px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 15px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 13px;
  color: #bdc6d4;
}
.breadcrumb strong {
  font-weight: 500;
  color: #34405a;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar-right .muted {
  font-size: 11px;
}
main {
  padding: 34px;
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
footer {
  margin: 14px 34px 25px;
  color: #99a3b3;
  font-size: 10px;
}
footer span {
  margin: 0 5px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}
.page-head h1 {
  font-size: 27px;
}
.live-pill {
  padding: 7px 10px;
  border: 1px solid #dde8e2;
  border-radius: 6px;
  background: #f0f8f4;
  color: #288568;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  gap: 7px;
  align-items: center;
}
.live-pill:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #42a98a;
  border-radius: 50%;
}
.notice {
  border: 1px solid #eadbb6;
  background: #fffbf1;
  color: #8b6a2f;
  line-height: 1.6;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 12px;
  margin-bottom: 20px;
}
.notice.blue {
  background: #edf2ff;
  border-color: #dce5ff;
  color: #48649d;
}
#vm-estimate, #reinstall-estimate { white-space: pre-line; }
.data-disk-list { display: grid; gap: 14px; margin: 18px 0; }
.data-disk-list .panel { padding: 16px; margin: 0; }
.data-disk-list .panel p { margin: 8px 0 14px; }
.data-disk-list .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice.danger {
  border-color: #efc3c8;
  background: #fff0f0;
  color: #a73645;
}
.notice strong {
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 22px 23px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #75839b;
  font-size: 12px;
}
.stat-icon {
  color: #8297c8;
  background: #f1f5ff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 17px;
}
.stat-value {
  font-size: 33px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 13px 0 10px;
  line-height: 1;
}
.stat-value span {
  font-size: 15px;
  color: #a0aabc;
  font-weight: 400;
  letter-spacing: 0;
}
.stat-foot {
  font-size: 11px;
  color: #8792a4;
  line-height: 1.5;
}
.green {
  color: #2d9678;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 22px;
  border-bottom: 1px solid #edf0f5;
  gap: 12px;
}
.backup-panel-content {
  padding: 16px 22px 20px;
}
.backup-panel-content p {
  margin: 0 0 12px;
}
.backup-panel-content p:last-child {
  margin-bottom: 0;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
}
.panel-head p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.panel-head a {
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.4px;
  color: #8190a7;
  background: #fafbfd;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 22px;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  color: #495771;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr.clickable:hover {
  background: #f9fbff;
  cursor: pointer;
}
.cell-name {
  font-weight: 600;
  color: #263650;
  display: flex;
  align-items: center;
  gap: 12px;
}
.node-icon {
  width: 34px;
  height: 34px;
  background: #f2f5fb;
  border: 1px solid #e8edf5;
  color: #7a91bc;
  border-radius: 8px;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cell-sub {
  display: block;
  font-size: 10px;
  color: #929db0;
  font-weight: 400;
  margin-top: 5px;
}
.mono {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f1f3f7;
  color: #7b879b;
  font-size: 10px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
}
.badge.good {
  color: #278469;
  background: #edf8f3;
}
.badge.good:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #40a789;
}
.badge.warn {
  background: #fff5df;
  color: #a67e26;
}
.badge.bad {
  background: #fff0f0;
  color: #bd4a56;
}
.badge.blue {
  background: #edf2ff;
  color: #5274c4;
}
.meter {
  width: 115px;
  max-width: 100%;
}
.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #596983;
  margin-bottom: 6px;
}
.meter-label span:last-child {
  color: #98a5b9;
}
.meter-track {
  height: 4px;
  border-radius: 4px;
  background: #edf1f8;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 4px;
  background: #7a9bf8;
}
.meter-fill.warn {
  background: #deb363;
}
.dual {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.activity {
  padding: 7px 22px;
}
.activity-row {
  padding: 16px 0;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.activity-row:last-child {
  border: 0;
}
.activity-dot {
  width: 7px;
  height: 7px;
  background: #86a0df;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.activity-row strong {
  font-weight: 550;
  font-size: 12px;
  display: block;
}
.activity-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.activity-row time {
  margin-left: auto;
  white-space: nowrap;
  color: #98a3b5;
  font-size: 10px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
}
.empty strong {
  display: block;
  color: #455572;
  font-size: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search input {
  margin: 0;
  padding-left: 34px;
  font-size: 12px;
  background: #fafbfd;
}
.search:before {
  content: "⌕";
  position: absolute;
  left: 11px;
  top: 8px;
  color: #8e9eb7;
  font-size: 20px;
}
.toolbar select {
  margin: 0;
  width: auto;
  max-width: 190px;
  font-size: 12px;
  padding: 10px 32px 10px 12px;
}
.table-footer {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #8e9bae;
  gap: 15px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag {
  padding: 4px 7px;
  background: #f2f5fa;
  border: 1px solid #e4e9f1;
  color: #72809b;
  font-size: 9px;
  border-radius: 4px;
  margin-right: 4px;
}
.endpoint {
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 280px;
}
.connection-card {
  padding: 24px;
}
.connection-card .title-row {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.connection-card h2 {
  margin: 0 0 7px;
}
.connection-card .actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-grid small {
  display: block;
  color: #8b97ab;
  font-size: 11px;
  margin-bottom: 8px;
}
.info-grid strong {
  font-size: 12px;
  font-weight: 500;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 25px;
}
.step-number {
  width: 26px;
  height: 26px;
  background: #edf2ff;
  color: #5479d3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 12px;
}
.steps p {
  color: #7d8da4;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 0;
}
.steps h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 9px;
  background: #1a2942;
  color: white;
  box-shadow: 0 8px 30px #14243b30;
  z-index: 110;
  max-width: 650px;
  line-height: 1.6;
  font-size: 12px;
}
#drawer-shade {
  position: fixed;
  inset: 0;
  background: #121e3533;
  backdrop-filter: blur(1px);
  z-index: 40;
}
#drawer {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 530px;
  max-width: 100%;
  background: white;
  box-shadow: -12px 0 50px #19223e15;
  z-index: 50;
  overflow-y: auto;
}
.drawer-head {
  padding: 29px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.drawer-head h2 {
  font-size: 23px;
  margin: 10px 0;
}
.drawer-head p {
  color: #8795aa;
  overflow-wrap: anywhere;
}
.drawer-body {
  padding: 27px 29px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 18px;
  margin: 25px 0;
}
.detail-grid dt {
  color: #8795aa;
  font-size: 11px;
  margin-bottom: 8px;
}
.detail-grid dd {
  margin: 0;
  color: #30405b;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-grid .wide {
  grid-column: 1/-1;
}
.resource-strip {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.resource-strip small {
  display: block;
  color: #8795aa;
  font-size: 10px;
  margin-bottom: 8px;
}
.resource-strip strong {
  font-size: 17px;
}
.drawer-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.drawer-actions .button {
  font-size: 12px;
}
.error {
  color: #bf4052;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 570px;
  width: calc(100% - 30px);
  padding: 0;
  box-shadow: 0 20px 90px #102c5526;
}
dialog::backdrop {
  background: #101e3866;
  backdrop-filter: blur(2px);
}
.dialog-form {
  padding: 26px;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.dialog-top h2 {
  margin: 0;
  font-size: 19px;
}
.dialog-form p {
  font-size: 13px;
  line-height: 1.7;
  color: #71809a;
}
.dialog-form .error {
  color: #bf4052;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.mobile-toggle {
  display: none;
}
.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  font-size: 12px;
}
.page-description {
  max-width: 800px;
  line-height: 1.8;
  color: #7b899e;
  font-size: 12px;
}
.long-cell {
  white-space: normal;
  max-width: 400px;
  overflow-wrap: anywhere;
}
.loading {
  padding: 70px;
  text-align: center;
  color: #8a98af;
}
.console-body {
  background: #111b30;
  color: white;
  overflow: hidden;
}
.console-toolbar {
  height: 60px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #293752;
}
.console-toolbar h1 {
  font-size: 15px;
  margin: 0;
}
.console-toolbar small {
  color: #9aabc6;
}
.console-toolbar .button {
  margin-left: auto;
}
#console-screen {
  height: calc(100vh - 60px);
}
@media (min-width: 1650px) {
  main {
    padding: 42px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .stat {
    padding: 25px 27px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
  }
  .main-shell {
    margin-left: 215px;
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .dual {
    grid-template-columns: 1fr;
  }
  .topbar-right .muted {
    display: none;
  }
  td,
  th {
    padding-left: 17px;
    padding-right: 17px;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: none;
    box-shadow: 10px 0 50px #10284c66;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .topbar {
    height: 64px;
    padding: 0 15px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .topbar .button {
    font-size: 0;
    gap: 0;
    padding: 6px 10px;
  }
  .topbar .button span {
    font-size: 20px;
  }
  main {
    padding: 23px 15px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    display: none;
  }
  .stat-foot {
    font-size: 10px;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 11px;
  }
  .live-pill {
    font-size: 9px;
  }
  .dual {
    gap: 0;
  }
  .toolbar {
    padding: 14px;
    gap: 8px;
  }
  .search {
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    max-width: none;
    min-width: 0;
    font-size: 11px;
  }
  .panel-head {
    padding: 18px 16px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 20px;
  }
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .connection-card {
    padding: 20px;
  }
  .connection-card h2 {
    font-size: 17px;
  }
  .connection-card .actions {
    flex-wrap: wrap;
  }
  .table-footer {
    padding: 12px;
    font-size: 10px;
  }
  .page-head .primary {
    font-size: 11px;
    padding: 8px 11px;
  }
  .login-card {
    margin: 15px;
    padding: 30px;
  }
  footer {
    margin: 5px 17px 20px;
    font-size: 9px;
  }
  #toast {
    left: 50%;
    width: calc(100% - 30px);
  }
  .drawer-body,
  .drawer-head {
    padding: 23px;
  }
  .detail-grid {
    gap: 20px 14px;
  }
}

.meter-progress {
  display: block;
  width: 100%;
  height: 4px;
  appearance: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #edf1f8;
}
.meter-progress::-webkit-progress-bar {
  background: #edf1f8;
}
.meter-progress::-webkit-progress-value {
  background: #7a9bf8;
  border-radius: 4px;
}
.meter-progress.warn::-webkit-progress-value {
  background: #deb363;
}
.meter-progress::-moz-progress-bar {
  background: #7a9bf8;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 400;
  line-height: 1.6;
}
.check-label input {
  margin: 0;
  width: auto;
  flex-shrink: 0;
}
.short-area {
  min-height: 76px;
}
.ip-check-list {
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.ip-check-list label {
  margin-bottom: 9px;
}
.report-item {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.report-item small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.sidebar nav {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
details {
  margin: 16px 0;
}
summary {
  cursor: pointer;
  color: #60779e;
  font-size: 12px;
  margin-bottom: 16px;
}
.page-head > div + button + button {
  margin-left: -10px;
}
.load-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 108px;
}
.load-cell > span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}
.load-cell strong {
  color: #233552;
  font-weight: 600;
}

.node-utilization {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 130px;
}
.node-utilization > span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.node-utilization strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-top: 3px;
}
.live-meter {
  min-width: 95px;
}
.live-meter > strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 7px;
}
.live-meter .meter-progress {
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 6px;
}
.meter-progress.danger::-webkit-progress-value {
  background: #d64d5e;
}
.meter-progress.danger::-moz-progress-bar {
  background: #d64d5e;
}
.telemetry-panel {
  margin: 0 0 24px;
}
.metric-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
}
.metric-heading h3 {
  margin: 0;
  font-size: 17px;
}
.metric-heading > span {
  font-size: 11px;
  white-space: nowrap;
}
.metric-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.metric-cards article {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 13px;
  min-width: 0;
}
.metric-cards article > small {
  display: block;
  color: var(--muted);
  margin-bottom: 13px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.metric-cards .live-meter {
  min-width: 0;
}
.metric-cards .live-meter > strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}
.metric-cards p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 10px 0 0;
  overflow-wrap: anywhere;
}
.metric-spark {
  width: 100%;
  height: 35px;
  margin-top: 5px;
}
.metric-spark polyline {
  fill: none;
  stroke: #5379dd;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.metric-spark circle {
  fill: #5379dd;
}
.node-alerts {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
}
.node-alerts.compact {
  padding: 4px 0;
}
.node-alerts li {
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.node-alerts li + li {
  border-top: 1px solid var(--line);
}
.node-alerts small {
  color: var(--muted);
}
.metric-trends {
  display: grid;
  gap: 12px;
}
.metric-trends article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric-trends .metric-spark {
  height: 62px;
}
.metric-trends small {
  color: var(--muted);
}
[data-trend-hours][aria-pressed="true"],
[data-job-scope][aria-pressed="true"] {
  border-color: #5379dd;
  font-weight: 700;
}
.agent-line {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 10px;
}
.agent-line strong {
  font-size: 13px;
}
.agent-line small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.metric-note,
.metric-empty {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
.telemetry-panel details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.telemetry-panel summary {
  font-size: 13px;
  color: #344663;
}
.filesystem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 14px;
}
.filesystem > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.filesystem > div:first-child span {
  color: var(--muted);
  font-size: 11px;
}
.filesystem .live-meter {
  flex: 0 0 52%;
}
.io-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f6;
  font-size: 12px;
}
.io-row strong {
  min-width: 75px;
}
.io-row small {
  color: var(--muted);
}
.host-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #58657a;
  font-size: 11px;
  line-height: 1.6;
  margin: 16px 0;
}
.sensor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 15px;
}
.acceptance-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 18px 0;
  font-size: 12px;
}
.acceptance-checks span {
  color: #288562;
  margin-right: 9px;
}
#drawer {
  width: min(660px, 100vw);
}
@media (max-width: 420px) {
  .metric-cards {
    gap: 6px;
  }
  .metric-cards article {
    padding: 12px 8px;
  }
  .metric-cards .live-meter > strong {
    font-size: 23px;
  }
  .metric-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
@media (max-width: 760px) {
  .resource-table,
  .resource-table tbody {
    display: block;
    width: 100%;
  }
  .resource-table thead {
    display: none;
  }
  .resource-table tr.clickable {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 20px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .resource-table tr.clickable:last-child {
    border-bottom: 0;
  }
  .resource-table td {
    display: block;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .resource-table td:last-child {
    display: none;
  }
  .node-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .node-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .node-table td:nth-child(3) {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .node-table td:nth-child(3) .cell-sub {
    margin-top: 0;
  }
  .node-table td:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
  }
  .node-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
  }
  .node-table td:nth-child(4)::before {
    content: "ВЫДАНО";
  }
  .node-table td:nth-child(5)::before {
    content: "ФАКТ";
  }
  .node-table td:nth-child(4)::before,
  .node-table td:nth-child(5)::before {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-bottom: 6px;
  }
  .node-table td:nth-child(6) {
    grid-column: 1;
    grid-row: 4;
    color: var(--muted);
    font-size: 11px;
  }
  .node-table td:nth-child(7) {
    grid-column: 2;
    grid-row: 4;
    color: var(--muted);
    font-size: 11px;
  }
  .node-table td:nth-child(7)::before {
    display: block;
    content: "СИНХРОНИЗАЦИЯ";
  }
  .vm-table td:nth-child(1) {
    grid-column: 1/-1;
    grid-row: 1;
  }
  .vm-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .vm-table td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }
  .vm-table td:nth-child(4)::before {
    content: "GA ";
    font-size: 10px;
    color: var(--muted);
    margin-right: 6px;
  }
  .vm-table td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .vm-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }
  .vm-table td:nth-child(6) {
    grid-column: 1/-1;
    grid-row: 4;
    color: var(--muted);
    font-size: 11px;
  }
  .vm-table td:nth-child(6)::before {
    content: "Узел: ";
  }
  .vm-table .load-cell {
    max-width: 150px;
  }
}
@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .snapshot-table, .snapshot-table tbody {
    display: block;
    width: 100%;
  }
  .snapshot-table thead { display: none; }
  .snapshot-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 18px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
  }
  .snapshot-table tr:last-child { border-bottom: 0; }
  .snapshot-table td {
    display: block;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .snapshot-table td:first-child, .snapshot-table td:last-child { grid-column: 1/-1; }
  .snapshot-table td:nth-child(3) { text-align: right; }
  .snapshot-table td:nth-child(4) { grid-column: 1/-1; color: var(--muted); }
  .snapshot-table td:nth-child(4)::before { content: "Создан "; }
  .snapshot-table .actions { display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) { .saved-disk-table td:nth-child(4)::before { content: "Облако "; } }

.image-profile-table td { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .image-profile-table, .image-profile-table tbody { display: block; min-width: 0; width: 100%; }
  .image-profile-table thead { display: none; }
  .image-profile-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
  .image-profile-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .image-profile-table td:first-child, .image-profile-table td:last-child { grid-column: 1/-1; }
  .image-profile-table td:nth-child(2)::before { content: "Площадки"; display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
  .image-profile-table td:nth-child(3) { text-align: right; }
  .image-profile-table td:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
}
.ports-dialog { width: min(920px, calc(100vw - 32px)); max-width: 920px; max-height: 90vh; overflow: auto; }
.ports-dialog-body { padding: 20px; }
.ports-dialog .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ports-dialog h2 { margin: 0; }
.ports-dialog h3 { margin: 12px 0; }
.ports-dialog p { margin: 10px 0; }
.ports-dialog section { margin: 12px 0; }
.port-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.port-result-item { border: 1px solid #e3e8f0; border-radius: 10px; padding: 8px; }
.port-result-item strong { display: block; margin-bottom: 6px; }
.account-security-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; }
.account-security-dialog textarea { width: 100%; font-size: 13px; white-space: pre; }
.account-security-dialog .dialog-actions { flex-wrap: wrap; }
.user > div:not(.avatar) { min-width: 0; flex: 1; }
.user strong { overflow: hidden; text-overflow: ellipsis; }
.user .avatar, .user .icon-button { flex-shrink: 0; }
.user .icon-button { margin-left: 0; }
