#bm-vm-root {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 100%;
  padding: 20px 24px 32px;
  color: var(--isp-text-main, #20364a);
  font: inherit;
  background: var(--isp-background-additional, #fff);
}

#bm-vm-root *,
#bm-vm-root *::before,
#bm-vm-root *::after { box-sizing: border-box; }
#bm-vm-root button,
#bm-vm-root input,
#bm-vm-root select { font: inherit; }
#bm-vm-root button { cursor: pointer; }
#bm-vm-root button:focus-visible,
#bm-vm-root a:focus-visible,
#bm-vm-root input:focus-visible,
#bm-vm-root select:focus-visible { outline: 2px solid #1672e8; outline-offset: 2px; }

.bm-vm-page { width: 100%; min-height: 100%; margin: 0 auto; }
.bm-vm-page-heading { padding-bottom: 14px; }
.bm-vm-back { display: block; margin: 0 0 8px; padding: 0; border: 0; background: transparent; color: #0875e1; text-align: left; }
.bm-vm-back:hover,
.bm-vm-text-button:hover { text-decoration: underline; }
.bm-vm-title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bm-vm-title-line h1,
.bm-vm-page-heading h1 { margin: 0; color: var(--isp-text-main, #20364a); font-size: 30px; line-height: 1.25; font-weight: 600; }
.bm-vm-status { display: inline-flex; align-items: center; gap: 7px; color: #18864b; font-size: 15px; font-weight: 600; }
.bm-vm-dot { width: 8px; height: 8px; border-radius: 50%; background: #2ba45c; }
.bm-vm-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; color: var(--isp-text-additional, #6f7882); font-size: 14px; }
.bm-vm-meta > span + span::before { content: "·"; margin-right: 18px; color: #9ba4ac; }

.bm-vm-toolbar { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; min-height: 58px; margin: 2px 0 18px; border-top: 1px solid var(--isp-border-default, #e2e5e9); border-bottom: 1px solid var(--isp-border-default, #e2e5e9); }
.bm-vm-toolbar-button { display: inline-flex; min-width: 88px; min-height: 56px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 5px 14px; border: 0; background: transparent; color: var(--isp-text-main, #233b52); text-align: center; }
.bm-vm-toolbar-button:hover { background: #f4f8fd; color: #096fe0; }
.bm-vm-icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.bm-vm-toolbar-button .bm-vm-icon { color: #0875ed; }
.bm-vm-toolbar-button span { font-size: 13px; line-height: 1.2; }
.bm-vm-menu { position: relative; }
.bm-vm-menu > summary { list-style: none; }
.bm-vm-menu > summary::-webkit-details-marker { display: none; }
.bm-vm-menu > summary::marker { content: ""; }
.bm-vm-menu[open] .bm-vm-menu-list { display: grid; }
.bm-vm-menu-list { position: absolute; z-index: 25; top: calc(100% + 2px); left: 0; display: none; width: max-content; min-width: 220px; padding: 5px; border: 1px solid #d8dde3; background: #fff; box-shadow: 0 4px 14px #14283b26; }
.bm-vm-menu-list button { border: 0; background: transparent; padding: 9px 12px; color: var(--isp-text-main, #233b52); text-align: left; }
.bm-vm-menu-list button:hover { background: #f2f6fb; color: #096fe0; }

.bm-vm-tabs { display: flex; min-height: 48px; gap: 30px; overflow-x: auto; border-bottom: 1px solid var(--isp-border-default, #d8dde3); }
.bm-vm-tabs [role="tab"] { position: relative; flex: none; padding: 10px 2px 12px; border: 0; background: transparent; color: var(--isp-text-additional, #697581); white-space: nowrap; }
.bm-vm-tabs [role="tab"]:hover { color: #096fe0; }
.bm-vm-tabs [role="tab"][aria-selected="true"] { color: #086bd2; }
.bm-vm-tabs [role="tab"][aria-selected="true"]::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: #1674e8; content: ""; }
.bm-vm-content { min-width: 0; padding-top: 18px; }
.bm-vm-section { margin: 0 0 24px; }
.bm-vm-section h2 { margin: 0 0 12px; color: var(--isp-text-main, #20364a); font-size: 18px; line-height: 1.35; font-weight: 600; }
.bm-vm-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bm-vm-text-button { padding: 0; border: 0; background: transparent; color: #0875e1; }

.bm-vm-resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--isp-border-default, #e2e5e9); border-bottom: 1px solid var(--isp-border-default, #e2e5e9); }
.bm-vm-resources > div { min-width: 0; padding: 13px 16px; }
.bm-vm-resources > div + div { border-left: 1px solid var(--isp-border-default, #e2e5e9); }
.bm-vm-resources dt,
.bm-vm-properties dt { color: var(--isp-text-additional, #78838e); font-size: 13px; }
.bm-vm-resources dd { margin: 5px 0 0; color: var(--isp-text-main, #20364a); font-size: 18px; font-weight: 600; }
.bm-vm-properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.bm-vm-properties > div { min-width: 0; padding: 11px 0; border-bottom: 1px solid #e7eaee; }
.bm-vm-properties dd { margin: 4px 0 0; color: var(--isp-text-main, #243c53); font-weight: 500; overflow-wrap: anywhere; }

.bm-vm-table-wrap { overflow-x: auto; }
.bm-vm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bm-vm-table th { padding: 10px 12px; border-bottom: 1px solid #d9dde2; color: var(--isp-text-additional, #6e7a86); font-weight: 500; text-align: left; white-space: nowrap; }
.bm-vm-table td { padding: 10px 12px; border-bottom: 1px solid #e8eaed; vertical-align: top; }
.bm-vm-table tbody tr:nth-child(even) { background: #f6f6f6; }
.bm-vm-table code { overflow-wrap: anywhere; }
.bm-vm-empty { padding: 24px 12px; color: var(--isp-text-additional, #76818c); }
.bm-vm-note { margin: 10px 0 0; color: var(--isp-text-additional, #6e7a86); }
.bm-vm-legend { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 8px; color: var(--isp-text-additional, #637184); font-size: 12px; }
.bm-vm-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #1968d3; }
.bm-vm-chart { display: block; width: 100%; height: 210px; }
.bm-vm-log { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(150px, 220px); gap: 12px; padding: 11px 12px; border-bottom: 1px solid #e8eaed; }
.bm-vm-log:nth-child(odd) { background: #f6f6f6; }
.bm-vm-log-title { color: var(--isp-text-main, #263e55); font-weight: 500; }
.bm-vm-log-meta { color: var(--isp-text-additional, #778594); }
.bm-vm-loading { display: flex; align-items: center; gap: 10px; min-height: 120px; color: var(--isp-text-additional, #76818c); }
.bm-vm-spinner { width: 18px; height: 18px; flex: none; border: 2px solid #d3deea; border-top-color: #1464d2; border-radius: 50%; animation: bm-vm-spin .7s linear infinite; }
@keyframes bm-vm-spin { to { transform: rotate(360deg); } }

.bm-vm-modal-backdrop { position: fixed; z-index: 2001; inset: 0; display: grid; place-items: center; padding: 18px; background: #15283d66; }
.bm-vm-modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; border: 1px solid #cfd5db; background: #fff; padding: 22px; box-shadow: 0 8px 28px #0b203833; }
.bm-vm-modal h2 { margin: 0 0 7px; color: #1c344b; font-size: 19px; }
.bm-vm-modal p { margin: 0 0 18px; color: #66768a; }
.bm-vm-form-row { display: grid; gap: 6px; margin: 12px 0; }
.bm-vm-form-row label { color: #607083; font-size: 13px; font-weight: 500; }
.bm-vm-form-row input,
.bm-vm-form-row select { width: 100%; min-height: 38px; border: 1px solid #cfd5db; background: #fff; padding: 8px 10px; color: #233b54; }
.bm-vm-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.bm-vm-quiet,
.bm-vm-primary { min-height: 36px; border: 1px solid #cbd2d9; background: #fff; padding: 7px 12px; color: #31465b; }
.bm-vm-primary { border-color: #086bd2; background: #086bd2; color: #fff; }
.bm-vm-primary:disabled { opacity: .55; cursor: wait; }
.bm-vm-toast { position: fixed; z-index: 2100; top: 14px; right: 14px; max-width: min(440px, calc(100% - 28px)); border: 1px solid #cad3dd; background: #fff; padding: 10px 14px; color: #203950; box-shadow: 0 3px 12px #0b203822; }
.bm-vm-toast.bm-vm-error { border-color: #e7aeb4; color: #a52634; }

@media (max-width: 850px) {
  #bm-vm-root { padding: 16px 14px 24px; }
  .bm-vm-title-line h1,
  .bm-vm-page-heading h1 { font-size: 24px; }
  .bm-vm-toolbar-button { min-width: 72px; padding-right: 9px; padding-left: 9px; }
  .bm-vm-tabs { gap: 20px; }
  .bm-vm-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-vm-resources > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--isp-border-default, #e2e5e9); }
  .bm-vm-resources > div:nth-child(4) { border-top: 1px solid var(--isp-border-default, #e2e5e9); }
}
@media (max-width: 560px) {
  .bm-vm-meta { gap: 7px 12px; font-size: 12px; }
  .bm-vm-meta > span + span::before { margin-right: 12px; }
  .bm-vm-toolbar { overflow-x: auto; flex-wrap: nowrap; }
  .bm-vm-properties { grid-template-columns: 1fr; }
  .bm-vm-resources > div { padding: 11px; }
  .bm-vm-log { grid-template-columns: 1fr; gap: 3px; }
  .bm-vm-hide-mobile { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bm-vm-spinner { animation: none; } }
