/* Shared foundation and administrator styles; customer components are defined once below. */
.nm-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  min-width: 1em;
  max-width: none;
  flex: 0 0 auto;
  vertical-align: middle;
  pointer-events: none;
  overflow: visible;
}

.nm-icon-spin {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: nm-icon-spin .9s linear infinite;
}

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

.nm-dialog-head h2,
.nm-app .nm-button {
  font-weight: 600;
}

.nm-app {
  --nm-blue: #087cff;
  --nm-soft: #eef6ff;
  --nm-text: #18324e;
  --nm-muted: #526b83;
  --nm-border: #dce6f1;
  --nm-surface: #fff;
  --nm-radius: 12px;
  color: var(--nm-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.nm-app * {
  box-sizing: border-box;
}

.nm-app *::before {
  box-sizing: border-box;
}

.nm-app *::after {
  box-sizing: border-box;
}

.nm-app p {
  margin: 0;
}

.nm-app dl {
  margin: 0;
}

.nm-app figure {
  margin: 0;
}

.nm-app h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.4;
}

.nm-app h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.nm-app h3 {
  margin: 0;
  font-size: 16px;
}

.nm-app#nm-owned { font-size: 14px; }
.nm-owned-view .nm-stats strong { font-size: 20px; }

.nm-app input {
  font: inherit;
  color: inherit;
}

.nm-app select {
  font: inherit;
  color: inherit;
}

.nm-app button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.nm-app :focus-visible {
  outline: 3px solid #80b4eb;
  outline-offset: 3px;
}

.bv-nm-trigger:focus-visible {
  outline: 3px solid #80b4eb;
  outline-offset: 3px;
}

.nm-app a {
  color: var(--nm-blue);
}

.nm-app [hidden] {
  display: none!important;
}

.nm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 16px;
  background: var(--nm-blue);
  color: white!important;
  border: 1px solid var(--nm-blue);
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none!important;
  white-space: nowrap;
  transition: background .15s,box-shadow .15s;
  flex-shrink: 0;
  max-width: 100%;
}

.nm-button:hover:not(:disabled) {
  background: #0069db;
  box-shadow: 0 3px 10px #087cff22;
}

.nm-secondary {
  color: var(--nm-blue)!important;
  background: var(--nm-surface);
}

.nm-secondary:hover:not(:disabled) {
  background: var(--nm-soft);
}

.bv-nm-trigger:hover {
  background: var(--nm-soft);
}

.nm-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.bv-nm-trigger {
  --nm-blue: #087cff;
  --nm-soft: #eef6ff;
  --nm-text: #18324e;
  --nm-muted: #526b83;
  --nm-border: #dce6f1;
  --nm-surface: #fff;
  --nm-radius: 12px;
  color: var(--nm-blue)!important;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  background: var(--nm-surface);
  border: 1px solid var(--nm-blue);
  border-radius: 7px;
  font-weight: 600;
  text-decoration: none!important;
  white-space: nowrap;
  transition: background .15s,box-shadow .15s;
  flex-shrink: 0;
  max-width: 100%;
  margin-right: 8px;
  vertical-align: middle;
}

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

.nm-subtitle {
  color: var(--nm-muted);
  margin: 8px 0 24px!important;
}

.nm-source {
  color: var(--nm-muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 14px!important;
}

.nm-note {
  padding: 12px 14px;
  background: var(--nm-soft);
  border: 1px solid var(--nm-border);
  border-radius: 8px;
  color: #345c83;
  font-size: 13px;
  margin: 12px 0!important;
}

.nm-panel {
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: var(--nm-surface);
  padding: 22px;
  min-width: 0;
}

.nm-details {
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: var(--nm-surface);
  padding: 22px;
  min-width: 0;
}

.nm-summary {
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: var(--nm-surface);
  padding: 22px;
  min-width: 0;
  margin: 16px 0;
}

.nm-summary>.nm-muted {
  margin: 8px 0!important;
}

.nm-state {
  font-size: 17px;
}

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

.nm-stats>div {
  border-left: 1px solid var(--nm-border);
  padding-left: 16px;
  min-width: 0;
}

.nm-stats>div:first-child {
  border: 0;
  padding-left: 0;
}

.nm-stats strong {
  display: block;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.nm-stats span {
  font-size: 12px;
  color: var(--nm-muted);
}

.nm-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}

.nm-owned-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}

.nm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-weight: 400;
  margin: 0;
}

.nm-field>span {
  font-size: 13px;
  color: var(--nm-muted);
}

.nm-field input {
  min-width: 0;
  max-width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #bacbde;
  background: white;
  border-radius: 6px;
  line-height: 1.5;
}

.nm-field select {
  min-width: 0;
  max-width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #bacbde;
  background: white;
  border-radius: 6px;
  line-height: 1.5;
}

.nm-controls .nm-field {
  flex: 1 1 125px;
}

.nm-owned-picker>.nm-field {
  flex: 1 1 260px;
  max-width: 650px;
}

.nm-live:empty {
  display: none;
}

.nm-live {
  color: #995300;
  background: #fff7e8;
  border: 1px solid #f2d6a7;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0!important;
}

.nm-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--nm-border);
  padding-bottom: 12px;
  overflow: hidden;
}

.nm-tabs .nm-button {
  flex: 1;
  padding: 10px 5px;
  font-size: 14px;
  min-width: 0;
}

.nm-tabs [aria-selected=true] {
  background: var(--nm-blue);
  color: white!important;
}

.nm-tab-panel {
  padding-top: 20px;
  min-width: 0;
}

.nm-purity-report {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(0, 3fr);
  gap: 16px;
  margin: 14px 0;
}
.nm-purity-score {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 18px;
  background: var(--nm-soft);
  border-radius: 6px;
}
.nm-purity-score[data-marked=true] { background: #fff5df; color: #81500d; }
.nm-purity-score strong { font-size: 26px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.nm-purity-verdict { font-size: 12px; }
.nm-app .nm-purity-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-content: start;
  border-top: 1px solid var(--nm-border);
  gap: 0 20px;
  margin: 0;
}
.nm-purity-fields>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--nm-border);
}
.nm-purity-fields dt { color: var(--nm-muted); }
.nm-purity-fields dd { margin: 0; font-weight: 600; }
.nm-purity-fields [data-signal=true] dd { color: #925900; }
.nm-purity-fields [data-signal=unknown] dd { color: var(--nm-muted); }
.nm-purity-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0; }
.nm-purity-footer .nm-source { margin: 0; }
.nm-quick .nm-purity-report { grid-template-columns: minmax(115px,1fr) minmax(0,2fr); }
.nm-quick .nm-purity-fields { grid-template-columns: 1fr; }
@media(max-width:600px) {
  .nm-purity-report, .nm-quick .nm-purity-report { grid-template-columns: minmax(0,1fr); gap: 8px; }
}
.nm-purity .nm-live[data-state=available] {
  color: var(--nm-text);
  border-color: var(--nm-border);
  background: var(--nm-soft);
}
@media(max-width:600px) {
  .nm-app .nm-purity-fields { grid-template-columns: 1fr; }
  .nm-app .nm-tabs.nm-has-purity .nm-button {
    flex-direction: column;
    gap: 5px;
    min-height: 58px;
    padding: 0 0 10px;
    white-space: nowrap;
  }
}

.nm-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}

.nm-table td {
  padding: 14px 8px;
  border-bottom: 1px solid var(--nm-border);
  white-space: pre-line;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.nm-asn-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.nm-asn-card {
  border: 1px solid var(--nm-border);
  border-radius: 9px;
  padding: 16px;
  min-width: 0;
}

.nm-asn-card p {
  margin-top: 7px!important;
}

.nm-map {
  position: relative;
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  overflow: hidden;
  background: #edf5ff;
}

.nm-map>svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.8;
  min-height: 330px;
  max-height: 440px;
}

.nm-map>.nm-street-map {
  position: absolute;
  inset: 0 0 32px;
  visibility: hidden;
}

.nm-map-attribution {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px 8px;
  background: #fff;
  font-size: 10px;
  white-space: nowrap;
}

.nm-street-ready .nm-map-attribution {
  display: flex;
}

.nm-street-ready .nm-street-map {
  visibility: visible;
}

.nm-street-ready>svg {
  visibility: hidden;
}

.nm-map .nm-map-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--nm-border);
  border-radius: 7px;
  background: #fffffff0;
  color: var(--nm-muted);
  font-size: 11px;
  pointer-events: none;
}

.nm-map-caption>.nm-icon {
  font-size: 14px;
}

.nm-map-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 11px;
  background: #fffffff0;
  color: var(--nm-muted);
}

.nm-geo-node {
  cursor: pointer;
}

.nm-geo-node:focus {
  outline: 2px solid var(--nm-blue);
}

.nm-map .nm-map-marker {
  padding: 0;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--nm-blue);
  box-shadow: none;
  cursor: pointer;
}

.nm-map-marker-name {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 150px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fffffff0;
  color: var(--nm-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nm-marker-label-left .nm-map-marker-name {
  top: 8px;
  left: auto;
  right: calc(100% + 6px);
  transform: none;
}

.nm-marker-label-right .nm-map-marker-name {
  top: 8px;
  left: calc(100% + 6px);
  transform: none;
}

.nm-map figcaption {
  padding: 8px 12px;
  margin: 0!important;
}

.nm-quick {
  position: fixed;
  inset: var(--nm-drawer-top,16px) var(--nm-drawer-right,16px) var(--nm-drawer-bottom,16px) auto;
  margin: 0;
  width: var(--nm-drawer-width,520px);
  height: var(--nm-drawer-height,calc(100dvh - 32px));
  max-width: 100%;
  max-height: none;
  border: 1px solid #cbdced;
  border-radius: 12px;
  padding: 0;
  background: white;
  box-shadow: 0 12px 50px #19344e33;
  overflow: hidden;
  z-index: 1050;
  animation: nm-enter .15s ease-out;
}

.nm-quick[open] {
  display: flex;
  flex-direction: column;
}

.nm-quick::backdrop {
  background: #15324a55;
  backdrop-filter: none;
}

.nm-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--nm-border);
  flex: none;
  background: var(--nm-surface);
}

.nm-dialog-head .nm-button {
  padding: 7px 10px;
  min-height: 36px;
}

.nm-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: #b8c9da transparent;
}

.nm-drawer-body::-webkit-scrollbar {
  width: 6px;
}

.nm-drawer-body::-webkit-scrollbar-thumb {
  background: #b8c9da;
  border-radius: 6px;
}

.nm-target-label {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px!important;
}

.nm-dialog-head .nm-icon-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d7997!important;
  box-shadow: none;
}

.nm-dialog-head .nm-icon-close .nm-icon {
  font-size: 24px;
}

.nm-dialog-head .nm-icon-close:hover:not(:disabled) {
  background: var(--nm-soft);
  box-shadow: none;
}

.nm-purchase .nm-controls>.nm-button>.nm-icon {
  font-size: 18px;
}

.nm-quick .nm-summary {
  padding: 14px;
}

.nm-quick .nm-stats {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nm-quick .nm-stats>div:nth-child(odd) {
  border: 0;
  padding-left: 0;
}

.nm-quick .nm-stats strong {
  font-size: 22px;
}

.nm-quick .nm-details {
  margin-top: 16px;
  padding: 12px;
}

.nm-quick .nm-table thead {
  display: none;
}

.nm-quick .nm-table {
  display: block;
  width: 100%;
}

.nm-quick .nm-table tbody {
  display: block;
  width: 100%;
}

.nm-quick .nm-table tr {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--nm-border);
}

.nm-quick .nm-table td {
  display: grid;
  width: 100%;
  grid-template-columns: 110px minmax(0,1fr);
  padding: 4px 0;
  border: 0;
}

.nm-quick .nm-table td::before {
  content: attr(data-label);
  color: var(--nm-muted);
}

.nm-quick .nm-asn-list {
  grid-template-columns: 1fr;
}

.nm-quick .nm-tabs {
  gap: 4px;
}

.nm-quick .nm-tabs .nm-button {
  font-size: 12px;
  padding: 9px 3px;
}

.nm-admin-section {
  border: 1px solid var(--nm-border);
  background: white;
  padding: 24px;
  border-radius: 12px;
  margin: 20px 0;
}

.nm-admin-fields {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.nm-check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-weight: 400;
}

.nm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--nm-blue);
  flex: none;
}

.nm-binding {
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.nm-binding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.nm-binding .nm-admin-fields {
  margin-top: 16px;
}

.nm-picker {
  border: 1px solid var(--nm-border);
  border-radius: 6px;
  margin-top: 16px;
  overflow: hidden;
}

#nm-admin { font-size: 13px; }
#nm-admin h1 { font-size: 22px; }
#nm-admin h2 { font-size: 16px; }
#nm-admin h3 { font-size: 14px; }
#nm-admin .nm-button { font-size: 13px; font-weight: 500; }

.nm-picker>h3 { padding: 12px; }
.nm-picker-bar { padding: 10px 12px; background: #fafbfc; border-block: 1px solid var(--nm-border); }
.nm-picker .nm-admin-search {
  display: flex;
  gap: 8px;
  align-items: end;
}
.nm-picker .nm-admin-search>.nm-field { flex: 1; min-width: 0; }
.nm-picker .nm-admin-search input { width: 100%; }
.nm-picker-count { display: block; margin-top: 6px; color: var(--nm-muted); }
.nm-picker-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.nm-picker-actions .nm-button { min-height: 32px; padding: 6px 10px; border-color: var(--nm-border); }
.nm-picker-only { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 400; cursor: pointer; }
.nm-picker input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--nm-blue); flex: none; margin: 0; }
.nm-picker .nm-admin-results { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.nm-picker-group { border-bottom: 1px solid var(--nm-border); }
.nm-picker-group:last-child { border: 0; }
.nm-picker-group-head { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: #f6f8fa; }
.nm-picker-toggle { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 9px 0; background: transparent; border: 0; text-align: left; font-weight: 600!important; }
.nm-picker-caret { font-size: 18px; flex: none; transition: transform .15s; }
.nm-picker-toggle[aria-expanded=true] .nm-picker-caret { transform: rotate(90deg); }
.nm-picker-group-count { margin-left: auto; white-space: nowrap; color: var(--nm-muted); font-size: 12px; font-weight: 400; }
.nm-picker-items { padding: 8px 12px; }
.nm-picker .nm-admin-product {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  margin: 0 0 7px;
  border: 1px solid var(--nm-border);
  border-radius: 4px;
  line-height: 20px;
  cursor: pointer;
  font-weight: 400;
}
.nm-picker .nm-admin-product:last-child { margin-bottom: 0; }
.nm-picker .nm-admin-product:hover, .nm-picker .nm-admin-product.is-on { border-color: var(--nm-blue); background: #ecf5ff; }
.nm-picker .nm-admin-product.is-bound { background: #f7f8fa; color: var(--nm-muted); cursor: default; }
.nm-picker-name { flex: 1; min-width: 0; }
.nm-picker-id, .nm-picker-bound { white-space: nowrap; font-size: 12px; color: var(--nm-muted); }
.nm-picker-empty { padding: 22px 12px; text-align: center; color: var(--nm-muted); }
.nm-picker-notice { padding: 8px 12px; color: var(--nm-muted); font-size: 12px; }
.nm-picker>.nm-button { margin: 0 12px 8px; }
.nm-picker-apply { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 12px; border-top: 1px solid var(--nm-border); }
.nm-picker-apply>.nm-field { flex: 1 1 240px; min-width: 0; }
.nm-picker>.nm-muted { padding: 0 12px 12px; font-size: 12px; }

.nm-form-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.nm-invalid {
  border-color: #b64422!important;
}

.nm-error {
  color: #9b381e;
  font-size: 13px;
  margin-top: 6px!important;
}

.nm-admin-section h2 {
  margin-bottom: 12px;
}

.nm-admin-section .nm-muted {
  margin-top: 8px!important;
}

.nm-admin-limits {
  margin-top: 20px;
}

.nm-tabs [aria-selected=true]:hover:not(:disabled) {
  background: var(--nm-blue);
  color: white!important;
}

.bv-nm-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
}

.bv-nm-actions>.bv-nm-trigger {
  height: var(--nm-buy-height,34px);
  min-height: 24px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  flex: none;
}

.bvp-foot.bv-nm-has-test {
  flex-wrap: wrap;
  gap: 8px;
}

.bvp-foot.bv-nm-has-test .bvp-price {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  flex: 0 0 auto;
}

.cartpage .bv-view-list .card-item-wrap>.bv-nm-actions {
  order: 4;
  flex: 0 1 auto;
}

.bv-nm-actions .gm {
  margin-top: 0!important;
}

.nm-owned-content {
  min-width: 0;
}

.nm-owned-controls .nm-field {
  min-width: 0;
}

.nm-owned-controls .nm-field>span {
  color: var(--nm-text);
  font-weight: 600;
  font-size: 13px;
}

.nm-owned-controls .nm-field select {
  width: 100%;
  border-color: var(--nm-border);
  height: var(--nm-owned-control-height,42px);
}

.nm-owned-controls .nm-owned-picker {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.nm-owned-controls .nm-owned-picker>.nm-button {
  min-height: 24px;
  padding: 2px 6px;
  font-size: 12px;
  align-self: flex-start;
}

.nm-control-hint {
  grid-column: 1/-1;
  color: var(--nm-muted);
  font-size: 12px;
}

.nm-summary-status {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nm-summary-status .nm-muted {
  font-size: 12px;
  margin-top: 3px!important;
}

.nm-summary-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.nm-summary-time span {
  font-size: 12px;
  color: var(--nm-muted);
}

.nm-summary-full>.nm-icon {
  font-size: 24px;
  color: var(--nm-blue);
  flex: none;
}

.nm-summary-full .nm-stats {
  flex: 1;
  min-width: 0;
  margin: 0;
  gap: 12px;
}

.nm-summary-full .nm-stats strong {
  font-size: 22px;
}

.nm-summary-full .nm-stats>div:first-child {
  border-left: 1px solid var(--nm-border);
  padding-left: 16px;
}

.nm-summary-full .nm-summary-time {
  flex: 0 1 168px;
  border-left: 1px solid var(--nm-border);
  padding-left: 20px;
}

.nm-result-success {
  background: #f4fbf7;
  border-color: #dceee5;
}

.nm-result-success .nm-summary-status {
  color: #118952;
}

.nm-result-warning .nm-summary-status {
  color: #956000;
}

.nm-owned-view .nm-details {
  padding: 20px 24px;
}

.nm-owned-view .nm-tabs {
  padding: 0;
  gap: 14px;
}

.nm-owned-view .nm-tabs .nm-button {
  flex: 0 1 auto;
  gap: 8px;
  padding: 0 12px 15px;
  min-height: 42px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: var(--nm-muted)!important;
  font-weight: 600;
}

.nm-owned-view .nm-tabs .nm-icon {
  font-size: 20px;
}

.nm-owned-view .nm-tabs [aria-selected=true] {
  color: var(--nm-blue)!important;
  background: transparent;
  border-bottom-color: var(--nm-blue);
  box-shadow: none;
}

.nm-owned-view .nm-tabs [aria-selected=true]:hover:not(:disabled) {
  color: var(--nm-blue)!important;
  background: transparent;
  border-bottom-color: var(--nm-blue);
  box-shadow: none;
}

.nm-map-layout {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr);
  gap: 18px;
  align-items: stretch;
}

.nm-location-info {
  padding: 16px;
  border: 1px solid var(--nm-border);
  border-radius: 10px;
  min-width: 0;
}

.nm-app .nm-location-info>h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--nm-text);
}

.nm-location-info>.nm-muted {
  margin-top: 5px!important;
  font-size: 12px;
}

.nm-location-fields {
  margin-top: 14px!important;
}

.nm-location-fields>div {
  display: grid;
  grid-template-columns: 90px minmax(0,1fr);
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #e6edf5;
  font-size: 13px;
  line-height: 1.6;
}

.nm-location-fields>div:last-child {
  border-bottom: 0;
}

.nm-location-fields dt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--nm-muted);
  white-space: nowrap;
  font-weight: 400;
}

.nm-location-fields dt>.nm-icon {
  font-size: 16px;
  margin-top: 2px;
}

.nm-location-fields dd {
  margin: 0;
  min-width: 0;
}

.nm-asn-path {
  padding: 16px 18px;
  margin-top: 16px;
  border: 1px solid var(--nm-border);
  border-radius: 10px;
}

.nm-asn-path h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--nm-muted);
}

.nm-asn-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: center;
}

.nm-asn-chips>span {
  padding: 7px 19px;
  border-radius: 20px;
  background: var(--nm-soft);
  color: var(--nm-blue);
  font-size: 14px;
  font-weight: 600;
}

.nm-asn-chips>.nm-icon {
  color: #6fa9f1;
  font-size: 18px;
}

.nm-quick .nm-map-layout {
  grid-template-columns: 1fr;
}

.nm-quick .nm-location-info {
  padding: 14px;
}

.nm-quick .nm-summary-empty {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.nm-quick .nm-summary-empty>.nm-icon {
  margin-top: 10px;
}

.nm-quick .nm-summary-empty>.nm-muted {
  margin: 0!important;
  min-width: 0;
}

.nm-purchase .nm-controls {
  margin: 12px 0;
  gap: 8px;
}

.nm-purchase .nm-controls .nm-field {
  flex: 1 1 90px;
}

.nm-purchase .nm-controls>.nm-button {
  flex: 1 1 100%;
  min-height: 44px;
  font-size: 14px;
}

.nm-purchase .nm-field select {
  min-height: 44px;
}

.nm-purchase .nm-stats {
  margin: 14px 0;
  grid-template-columns: 1fr 1fr;
}

.nm-purchase .nm-summary>.nm-muted {
  margin: 5px 0!important;
}

.nm-purchase .nm-note {
  margin: 10px 0!important;
}

.nm-owned-empty {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: white;
}

.nm-owned-empty .nm-field {
  flex: 1;
  max-width: 420px;
}

.nm-owned-empty[hidden] {
  display: none;
}

.nm-table th:first-child {
  width: 9%;
}

.nm-table th:nth-child(4) {
  width: 24%;
}

.nm-table th:nth-child(5) {
  width: 20%;
}

.nm-response-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nm-response-value>.nm-icon {
  font-size: 23px;
  color: #1c9d50;
  flex: none;
}

.nm-response-muted .nm-response-value>.nm-icon {
  color: #8293ab;
}

.nm-location-fields dt {
  font-weight: 400;
  color: var(--nm-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-location-fields dt>.nm-icon {
  font-size: 18px;
  flex: none;
}

.nm-note>.nm-icon {
  font-size: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

.nm-purchase .nm-summary .nm-stats>div {
  padding: 0;
  border-left: 1px solid var(--nm-border);
  text-align: center;
}

.nm-purchase .nm-summary .nm-stats>div:first-child {
  padding-left: 0;
  border: 0;
}

.cartpage .bv-nm-actions>.bv-nm-trigger {
  height: var(--nm-buy-height,34px);
  min-height: 24px;
  min-width: 0;
  width: auto;
  padding: 4px 6px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.bv-nm-product-footer {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: 12px;
  margin-top: 12px;
  min-width: 0;
}

.bv-nm-product-footer .bv-nm-price {
  margin: 0;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  flex: none;
  font-variant-numeric: tabular-nums;
  justify-self: start;
}

.bv-nm-product-footer .bv-nm-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 100%;
  margin-left: 0;
  gap: 8px;
}

.bv-nm-product-footer .bv-nm-actions>a:only-child {
  grid-column: 1 / -1;
}

.cartpage .bv-nm-product-footer .bv-nm-actions>.bv-nm-trigger,
.cartpage .bv-nm-product-footer .bv-nm-actions>a {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cartpage .bv-nm-product-footer .gm {
  font-size: 13px;
  padding-left: 8px;
  padding-right: 8px;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cartpage .bv-view-list .bv-nm-product-footer {
  order: 4;
  flex: 0 0 22%;
  min-width: min(100%,14em);
  margin-top: 0;
}

#nm-owned {
  --nm-owned-control-height: 42px;
}

.nm-owned-controls {
  display: block;
  padding: 10px 16px;
  margin: 0;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
  background: var(--nm-surface);
}

.nm-owned-selection-row {
  grid-template-columns: minmax(0,1fr) auto auto;
  justify-content: start;
  display: grid;
  gap: 8px 12px;
  align-items: center;
}

.nm-owned-selection-row>.nm-owned-picker {
  min-width: 0;
}

.nm-owned-selection-row>.nm-button {
  height: var(--nm-owned-control-height);
  min-height: var(--nm-owned-control-height);
  min-width: 8rem;
}

.nm-owned-selection-row>.nm-control-hint {
  grid-column: 2/-1;
  font-size: 12px;
  line-height: 1.6;
}

.nm-owned-controls .nm-owned-picker>.nm-field {
  flex: none;
  width: 100%;
  max-width: 100%;
}

.nm-owned-controls .nm-owned-picker>.nm-field>span {
  font-size: 14px;
  white-space: nowrap;
}

.nm-server-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  height: var(--nm-owned-control-height,42px);
  min-height: var(--nm-owned-control-height,42px);
  padding: 4px 12px;
  border: 1px solid var(--nm-border);
  border-radius: 7px;
  background: white;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

#nm-owned .nm-machine-chooser{position:relative;min-width:0;width:100%}
#nm-owned .nm-machine-menu{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;padding:8px;background:var(--nm-surface);border:1px solid var(--nm-border);border-radius:10px;box-shadow:0 12px 32px #18324e24;text-align:left}
#nm-owned .nm-machine-menu[data-side=top]{top:auto;bottom:calc(100% + 8px)}
#nm-owned .nm-machine-search-row{display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--nm-border);border-radius:6px;background:#f7faff;color:var(--nm-muted)}
#nm-owned .nm-machine-search-row:focus-within{border-color:var(--nm-blue);box-shadow:0 0 0 2px #087cff18}
#nm-owned .nm-machine-search-row>.nm-machine-search{width:100%;min-width:0;height:38px;padding:6px 0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;font-size:14px;line-height:1.5;color:var(--nm-text)}
#nm-owned .nm-machine-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 8px 6px;font-size:12px;color:var(--nm-muted)}
#nm-owned .nm-machine-menu-heading>strong{font-weight:500}
#nm-owned .nm-machine-count{font-variant-numeric:tabular-nums}
#nm-owned .nm-machine-options{max-height:288px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bdd0e6 transparent;scroll-padding:4px}
#nm-owned .nm-machine-option{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 8px;border:1px solid transparent;border-radius:7px;cursor:pointer}
#nm-owned .nm-machine-option+.nm-machine-option{margin-top:3px}
#nm-owned .nm-machine-option:hover,#nm-owned .nm-machine-option.is-active{background:#f2f7fd;border-color:#b8cfe8}
#nm-owned .nm-machine-option[aria-selected=true]{background:var(--nm-soft);border-color:#c2dcfc}
#nm-owned .nm-machine-option[aria-selected=true].is-active{border-color:var(--nm-blue)}
#nm-owned .nm-machine-option>.nm-node-icon{width:32px;height:32px;border-radius:6px}
#nm-owned .nm-machine-option>.nm-node-icon>.nm-icon{font-size:23px}
#nm-owned .nm-machine-option-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
#nm-owned .nm-machine-option-copy>strong{font-size:14px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
#nm-owned .nm-machine-option-copy>span{font-size:12px;line-height:1.4;color:var(--nm-muted);font-variant-numeric:tabular-nums}
#nm-owned .nm-machine-meta-parts{display:flex;flex-wrap:wrap;gap:2px 8px}
#nm-owned .nm-machine-meta-parts>span{white-space:nowrap}
#nm-owned .nm-machine-family{flex:none;padding:2px 5px;border-radius:4px;background:var(--nm-surface);border:1px solid var(--nm-border);color:var(--nm-muted);font-size:11px;line-height:1.4}
#nm-owned .nm-machine-option>.nm-icon,#nm-owned .nm-machine-check-space{width:16px;height:16px;min-width:16px;flex:none;color:var(--nm-blue)}
#nm-owned .nm-machine-menu-note{padding:8px 8px 2px;border-top:1px solid var(--nm-border);font-size:11px;line-height:1.5;color:var(--nm-muted)}
#nm-owned .nm-machine-empty{padding:22px 10px;font-size:13px;line-height:1.6;color:var(--nm-muted)}
#nm-owned .nm-server-select[aria-expanded=true]{border-color:var(--nm-blue)}
#nm-owned .nm-server-select:disabled{opacity:.55;cursor:not-allowed}
#nm-owned .nm-server-select[aria-expanded=true]>.nm-icon{transform:rotate(180deg)}
#nm-owned .nm-server-copy{flex:1}
@media(max-width:700px){#nm-owned .nm-machine-search-row>.nm-machine-search{font-size:16px}#nm-owned .nm-machine-option{gap:8px;padding:9px 6px}#nm-owned .nm-machine-option>.nm-node-icon{width:28px;height:28px}#nm-owned .nm-machine-menu-note{font-size:12px}}

.nm-server-select>.nm-node-icon {
  width: 32px;
  height: 32px;
}

.nm-server-select>.nm-node-icon>.nm-icon {
  font-size: 28px;
}

.nm-server-select:focus-within {
  outline: 3px solid #80b4eb;
  outline-offset: 2px;
}

.nm-server-select>select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%!important;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.nm-server-select>.nm-icon {
  margin-left: auto;
  font-size: 20px;
  color: #4a6d93;
}

.nm-server-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.nm-selected-name {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-selected-meta {
  font-size: 12px;
  line-height: 14px;
  color: var(--nm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nm-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: #eff7ff;
  color: #087cff;
}

.nm-node-icon>.nm-icon {
  font-size: 32px;
}

.nm-owned-protocols {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f8;
}

.nm-owned-controls .nm-owned-picker>.nm-field,
.nm-owned-protocols>.nm-field {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr);
  align-items: center;
  gap: 8px;
}

.nm-control-hint>.nm-icon {
  font-size: 17px;
  vertical-align: middle;
  margin-right: 6px;
}

.nm-direction-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 26px;
  margin: 16px 0;
  background: white;
  border: 1px solid var(--nm-border);
  border-radius: var(--nm-radius);
}

.nm-direction-node {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  min-height: 78px;
  padding: 12px 16px;
  border: 1px solid #e7eff8;
  border-radius: 9px;
}

.nm-node-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nm-node-copy>strong {
  font-size: 14px;
}

.nm-node-copy>span {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.nm-direction-arrow {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: none;
  color: #087cff;
}

.nm-direction-dots {
  width: clamp(32px,4vw,78px);
  height: 6px;
  background: radial-gradient(circle, currentColor 1.5px, transparent 2px) left center / 10px 6px repeat-x;
  opacity: .55;
}
@media (prefers-reduced-motion: no-preference) {
  [data-nm-state=running] .nm-direction-dots { animation: nm-route-flow .75s linear infinite; }
  .nm-purchase[data-nm-state=running] .nm-direction-arrow>.nm-icon { animation: nm-route-step 1s ease-in-out infinite; }
  @media (max-width:1150px) {
    [data-nm-state=running] .nm-direction-arrow>.nm-icon { animation: nm-route-step 1s ease-in-out infinite; }
  }
}
@keyframes nm-route-flow { to { background-position-x: 10px; } }
@keyframes nm-route-step { 50% { transform: translateX(3px); } }
.nm-direction-arrow>.nm-icon {
  font-size: 36px;
}

.nm-direction-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 165px;
  color: var(--nm-muted);
  font-size: 13px;
}

.nm-direction-caption>.nm-icon {
  font-size: 22px;
  flex: none;
}

#nm-owned .nm-server-select>.nm-node-icon,
#nm-owned .nm-direction-node>.nm-node-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
#nm-owned .nm-server-select>.nm-node-icon>.nm-icon,
#nm-owned .nm-direction-node>.nm-node-icon>.nm-icon { font-size: 22px; }
#nm-owned .nm-direction-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto;
  padding: 8px 16px;
  gap: 8px 12px;
}
#nm-owned .nm-direction-node {
  height: var(--nm-owned-control-height);
  min-height: var(--nm-owned-control-height);
  border-color: transparent;
  padding: 4px 10px;
  gap: 10px;
}
#nm-owned .nm-direction-node .nm-node-copy { flex: 1; gap: 0; }
#nm-owned .nm-direction-node .nm-node-copy>strong,
#nm-owned .nm-direction-node .nm-node-copy>span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#nm-owned .nm-direction-node .nm-node-copy>strong { font-size: 13px; line-height: 16px; }
#nm-owned .nm-direction-node .nm-node-copy>span { font-size: 12px; line-height: 14px; }
#nm-owned .nm-direction-arrow { justify-content: center; }
#nm-owned .nm-direction-arrow>.nm-icon { font-size: 24px; }

#nm-owned .nm-direction-caption { gap: 6px; font-size: 12px; line-height: 16px; white-space: nowrap; }
#nm-owned .nm-direction-caption>.nm-icon { font-size: 16px; }
@media(max-width:1150px) {
  #nm-owned .nm-direction-card { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); }
  #nm-owned .nm-direction-dots { display: none; }
  #nm-owned .nm-direction-caption { grid-column: 1/-1; }
}
@media(max-width:700px) {
  #nm-owned { --nm-owned-control-height: 44px; }
  #nm-owned .nm-owned-controls { padding: 10px 12px; }
  #nm-owned .nm-direction-card { padding: 8px 12px; gap: 6px; grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); }
  #nm-owned .nm-direction-node { padding: 4px 0; border: 0; gap: 6px; }
  #nm-owned .nm-direction-node>.nm-node-icon { width: 22px; height: 26px; }
  #nm-owned .nm-direction-node .nm-node-copy>strong { font-size: 12px; }
  #nm-owned .nm-direction-arrow>.nm-icon { font-size: 20px; }
}

.nm-summary-full {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  background: white;
  border-color: var(--nm-border);
}

.nm-summary-full.nm-result-success { background: #f3fbf6; border-color: #d4e9dd; }
.nm-summary-full:not(.nm-result-success):not(.nm-result-warning) .nm-summary-status { flex-basis: auto; }
.nm-status-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: #eef5fb;
  color: var(--nm-blue);
}

.nm-status-icon>.nm-icon {
  font-size: 30px;
}

.nm-result-success .nm-status-icon {
  background: #19a451;
  color: white;
  box-shadow: 0 0 0 10px #e1f3e8;
}

.nm-result-warning .nm-status-icon {
  background: #fff5df;
  color: #956000;
}

.nm-summary-full .nm-summary-status {
  flex: 0 1 240px;
  min-width: 160px;
  padding-left: 8px;
  flex-basis: 280px;
  gap: 28px;
}

.nm-summary-full .nm-state {
  font-size: 16px;
  font-weight: 600;
}

.nm-summary-full .nm-summary-status .nm-muted {
  font-size: 13px;
  color: var(--nm-muted);
}

.nm-details-title {
  margin: 0 0 16px!important;
  font-size: 16px!important;
  font-weight: 600;
}

.nm-table th {
  text-align: left;
  padding: 12px 8px;
  background: #f4f8fd;
  color: var(--nm-muted);
  font-weight: 600;
  font-size: 14px;
}

.nm-table th:nth-child(2) {
  width: 22%;
}

.nm-table th:nth-child(3) {
  width: 25%;
}

.nm-table small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  white-space: normal;
}

.nm-response-muted>.nm-icon {
  color: #8293ab;
}

.nm-response>span {
  vertical-align: middle;
}

.nm-access-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px!important;
  color: var(--nm-muted);
  font-size: 13px;
}

.nm-access-note>.nm-icon {
  font-size: 19px;
  flex: none;
}

.nm-overview h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.nm-overview-fields>div {
  display: grid;
  grid-template-columns: 20px 64px minmax(0,1fr);
  gap: 8px;
  padding: 4px 0;
  align-items: center;
  font-size: 13px;
}

.nm-overview-fields>.nm-icon {
  font-size: 18px;
  color: #476588;
}

.nm-overview-fields .nm-icon {
  font-size: 18px;
  color: #476588;
}

.nm-overview-fields dt {
  color: var(--nm-muted);
  font-weight: 400;
}

.nm-overview-fields dd {
  margin: 0;
}

.nm-login-gate {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px dashed var(--nm-border);
  margin-top: 12px;
}

.nm-login-gate>.nm-icon {
  font-size: 24px;
  color: #325373;
}

.nm-login-gate h3 {
  font-size: 14px;
  font-weight: 600;
}

.nm-login-gate .nm-muted {
  font-size: 12px;
  margin-top: 4px!important;
}

.nm-login-gate>.nm-button {
  padding: 8px 12px;
  font-size: 13px;
  min-height: 38px;
}

.nm-purchase .nm-summary {
  margin: 12px 0;
  padding: 16px 0;
  background: white;
  border: 0;
  border-top: 1px dashed var(--nm-border);
  border-radius: 0;
  margin-bottom: 0;
}

.nm-purchase .nm-summary-status {
  justify-content: center;
  gap: 10px;
}

.nm-purchase>div>.nm-button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.nm-purchase .nm-status-icon {
  width: 22px;
  height: 22px;
  box-shadow: none;
}

.nm-purchase .nm-status-icon>.nm-icon {
  font-size: 18px;
}

.nm-purchase .nm-state {
  font-size: 15px;
}

.nm-purchase .nm-summary .nm-stats {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 14px 0 6px;
}

.nm-purchase .nm-stats>div {
  padding-left: 12px;
  border-left: 1px solid var(--nm-border);
}

.nm-purchase .nm-stats>div:first-child {
  border: 0;
  padding-left: 0;
}

.nm-purchase .nm-stats strong {
  color: #087cff;
  font-size: 22px;
}

.nm-purchase .nm-summary-time {
  font-size: 12px;
}

.nm-purchase .nm-direction-card {
  padding: 10px 0;
  gap: 8px;
  border: 0;
  border-top: 1px solid var(--nm-border);
  border-radius: 0;
  margin: 8px 0;
}

.nm-purchase .nm-direction-node {
  padding: 0;
  border: 0;
  min-height: 42px;
  gap: 8px;
}

.nm-purchase .nm-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.nm-purchase .nm-node-icon>.nm-icon {
  font-size: 23px;
}

.nm-purchase .nm-node-copy>strong {
  font-size: 12px;
}

.nm-purchase .nm-node-copy>span {
  font-size: 11px;
}

.nm-purchase .nm-direction-arrow>.nm-icon {
  font-size: 22px;
}

.nm-purchase .nm-direction-dots {
  display: none;
}

.nm-purchase .nm-direction-caption {
  display: none;
}

.bv-nm-trigger>.nm-icon {
  font-size: 15px;
  flex: none;
}

.nm-quick .nm-target-label {
  font-size: 16px;
  margin-bottom: 12px!important;
}

.nm-quick .nm-overview-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}
.nm-quick .nm-overview-fields>div {
  grid-template-columns: 18px 70px minmax(0,1fr);
  padding: 7px 0;
}
.nm-quick .nm-overview-fields>div+div { border-top: 1px solid var(--nm-border); }
.nm-quick .nm-overview-fields dd { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.nm-quick .nm-purchase .nm-summary .nm-stats {
  padding: 12px 8px;
  background: #f5f8fc;
  border-radius: 6px;
}

.nm-quick .nm-purchase .nm-stats>div {
  text-align: center;
}

.nm-quick .nm-purchase .nm-stats>div:nth-child(odd):not(:first-child) {
  border-left: 1px solid var(--nm-border);
  padding-left: 12px;
}

.nm-quick .nm-details {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 12px;
}

.nm-quick .nm-details-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nm-quick .nm-tabs {
  gap: 0;
  padding: 0;
  overflow-x: auto;
}

.nm-quick .nm-tabs .nm-button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--nm-text)!important;
  box-shadow: none;
}

.nm-quick .nm-tabs [aria-selected=true],
.nm-quick .nm-tabs [aria-selected=true]:hover:not(:disabled) {
  border-bottom-color: var(--nm-blue);
  color: var(--nm-blue)!important;
  background: transparent;
}

.nm-quick .nm-tab-panel {
  padding-top: 12px;
}

.nm-quick .nm-map>svg {
  aspect-ratio: 2.6;
  min-height: 220px;
  max-height: 280px;
}

.nm-quick .nm-purchase .nm-controls>.nm-button {
  flex: 1 1 105px;
}

.nm-quick .nm-purchase .nm-controls {
  position: sticky;
  bottom: -20px;
  z-index: 4;
  margin: 12px -22px -20px;
  padding: 12px 22px 20px;
  background: var(--nm-surface);
  border-top: 1px solid var(--nm-border);
}

@keyframes nm-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:1150px) {
  .nm-owned-protocols {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .nm-summary-full {
    flex-wrap: wrap;
  }
  
  .nm-summary-full .nm-stats {
    flex-basis: 60%;
  }
  
  .nm-map-layout {
    grid-template-columns: minmax(0,1fr) minmax(220px,.9fr);
  }
  
  .nm-direction-card {
    gap: 14px;
    flex-wrap: wrap;
  }
  
  .nm-direction-caption {
    flex-basis: 100%;
    justify-content: flex-end;
  }
  
  .nm-summary-full .nm-summary-status {
    flex-basis: 100%;
  }
  
  .nm-owned-selection-row {
    grid-template-columns: minmax(0,1fr) auto auto;
  }
  
}

@media(max-width:1050px) {
  .nm-admin-fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  
  .nm-asn-list {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  
  .nm-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  
  .nm-stats>div:nth-child(odd) {
    border: 0;
    padding-left: 0;
  }
}

@media(max-width:700px) {
  .nm-app {
    font-size: 16px;
  }
  
  .nm-app h1 {
    font-size: 22px;
  }
  
  .nm-app .nm-field input {
    font-size: 16px;
    min-height: 44px;
  }
  
  .nm-app .nm-field select {
    font-size: 16px;
    min-height: 44px;
  }
  
  .nm-app .nm-button {
    min-height: 44px;
  }
  
  .nm-panel {
    padding: 16px;
  }
  
  .nm-summary {
    padding: 16px;
  }
  
  .nm-details {
    padding: 16px;
  }
  
  .nm-controls {
    gap: 10px;
  }
  
  .nm-controls>.nm-button {
    flex: 1 1 140px;
  }
  
  .nm-controls>.nm-field {
    flex: 1 1 100px;
  }
  
  .nm-tabs {
    gap: 4px;
  }
  
  .nm-tabs .nm-button {
    font-size: 12px;
    padding: 10px 2px;
  }
  
  .nm-quick {
    border-radius: 12px;
    padding: 0;
  }
  
  .nm-dialog-head {
    padding: 14px 16px;
  }
  
  .nm-drawer-body {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  }
  
  .nm-dialog-head .nm-button {
    min-height: 44px;
  }
  
  .nm-quick .nm-controls .nm-field {
    flex-basis: 100px;
  }

  .nm-quick .nm-purchase .nm-controls>.nm-button {
    flex-basis: 100%;
  }

  .nm-quick .nm-purchase .nm-controls {
    bottom: calc(-16px - env(safe-area-inset-bottom));
    margin: 12px -16px calc(-16px - env(safe-area-inset-bottom));
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  }
  
  .nm-stats strong {
    font-size: 22px;
  }
  
  .nm-table thead {
    display: none;
  }
  
  .nm-table {
    display: block;
    width: 100%;
  }
  
  .nm-table tbody {
    display: block;
    width: 100%;
  }
  
  .nm-table tr {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--nm-border);
  }
  
  .nm-table td {
    display: grid;
    width: 100%;
    grid-template-columns: 116px minmax(0,1fr);
    gap: 8px;
    padding: 4px 0;
    border: 0;
  }
  
  .nm-table td::before {
    content: attr(data-label);
    color: var(--nm-muted);
  }
  
  .nm-asn-list {
    grid-template-columns: 1fr;
  }
  
  .nm-admin-fields {
    grid-template-columns: 1fr;
  }
  
  .nm-admin-section {
    padding: 16px;
  }
  
  .nm-binding {
    padding: 14px;
  }
  
  .nm-binding-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  
  .nm-owned-controls .nm-field>span {
    font-size: 12px;
  }
  
  .nm-owned-controls .nm-field select {
    padding: 8px;
    font-size: 14px;
  }
  
  .nm-owned-controls .nm-owned-picker .nm-field select {
    font-size: 14px;
  }
  
  .nm-control-hint {
    font-size: 12px;
  }
  
  .nm-summary-full .nm-stats {
    flex-basis: 100%;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px 14px;
  }
  
  .nm-summary-full .nm-stats>div:nth-child(odd) {
    border: 0;
    padding-left: 0;
  }
  
  .nm-summary-full .nm-summary-time {
    flex-basis: 100%;
    border: 0;
    padding: 0;
  }
  
  .nm-owned-view .nm-details {
    padding: 14px;
  }
  
  .nm-owned-view .nm-tabs {
    gap: 2px;
    justify-content: space-between;
  }
  
  .nm-owned-view .nm-tabs .nm-button {
    gap: 4px;
    padding: 0 2px 12px;
    font-size: 12px;
    flex: 1;
    min-width: 0;
  }
  
  .nm-owned-view .nm-tabs .nm-icon {
    font-size: 16px;
  }
  
  .nm-map-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .nm-location-info {
    padding: 14px 0 0;
    border: 0;
  }
  
  .nm-map>svg {
    min-height: 300px;
    height: auto;
    aspect-ratio: 1.15;
  }

  .nm-map .nm-map-caption {
    top: 8px;
    left: 8px;
    font-size: 10px;
    max-width: calc(100% - 16px);
    padding: 5px 6px;
  }

  .nm-map-marker-name {
    max-width: 120px;
    font-size: 11px;
  }
  
  .nm-location-fields>div {
    grid-template-columns: 92px minmax(0,1fr);
    padding: 8px 0;
  }

  .nm-asn-chips>span {
    font-size: 11px;
    padding: 6px 9px;
  }
  
  .nm-asn-path {
    padding: 14px;
  }
  
  .bv-nm-actions>.bv-nm-trigger {
    min-height: 24px;
    margin: 0;
  }
  
  .nm-owned-empty {
    flex-wrap: wrap;
  }
  
  .nm-owned-empty .nm-field {
    flex-basis: 100%;
  }
  
  .nm-owned-controls {
    padding: 16px;
  }
  
  .nm-owned-selection-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .nm-owned-controls .nm-owned-picker {
    flex-basis: 100%;
  }
  
  .nm-owned-controls .nm-owned-picker>.nm-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nm-owned-protocols>.nm-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  
  .nm-owned-controls .nm-owned-picker>.nm-field>span {
    font-size: 14px;
  }
  
  .nm-server-select {
    min-height: var(--nm-owned-control-height,42px);
    padding: 4px 12px;
    gap: 10px;
  }
  
  .nm-selected-name {
    font-size: 14px;
  }
  
  .nm-selected-meta {
    font-size: 12px;
  }
  
  .nm-server-select .nm-node-icon {
    width: 32px;
    height: 32px;
  }
  
  .nm-server-select .nm-node-icon>.nm-icon {
    font-size: 28px;
  }
  
  .nm-owned-selection-row>.nm-button {
    width: 100%;
  }
  
  .nm-owned-selection-row>.nm-control-hint {
    font-size: 12px;
  }
  
  .nm-owned-protocols {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  
  .nm-direction-card {
    padding: 14px;
    gap: 10px;
  }
  
  .nm-direction-node {
    padding: 0;
    border: 0;
    gap: 9px;
    min-height: 52px;
  }
  
  .nm-direction-node .nm-node-icon {
    width: 36px;
    height: 40px;
  }
  
  .nm-direction-node .nm-node-icon>.nm-icon {
    font-size: 25px;
  }
  
  .nm-node-copy>strong {
    font-size: 14px;
  }
  
  .nm-node-copy>span {
    font-size: 12px;
  }
  
  .nm-direction-arrow>.nm-icon {
    font-size: 26px;
  }
  
  .nm-direction-dots {
    display: none;
  }
  
  .nm-direction-caption {
    justify-content: flex-start;
    font-size: 12px;
  }
  
  .nm-direction-caption>.nm-icon {
    font-size: 17px;
  }
  
  .nm-summary-full {
    gap: 16px;
    padding: 20px;
  }
  
  .nm-summary-full .nm-summary-status {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nm-border);
    gap: 20px;
  }
  
  .nm-summary-full .nm-state {
    font-size: 16px;
  }
  
  .nm-summary-full .nm-status-icon {
    width: 42px;
    height: 42px;
    box-shadow: 0 0 0 7px #e1f3e8;
  }
  
  .nm-status-icon>.nm-icon {
    font-size: 28px;
  }
  
  .nm-details-title {
    font-size: 16px!important;
  }
  
  .nm-response>small {
    grid-column: 2;
  }
  
  .nm-login-gate {
    grid-template-columns: 24px minmax(0,1fr);
  }
  
  .nm-login-gate>.nm-button {
    grid-column: 2;
    justify-self: start;
  }
  
  .nm-purchase .nm-node-copy>strong {
    font-size: 12px;
  }
  
  .nm-purchase .nm-node-copy>span {
    font-size: 11px;
  }
  
  .nm-access-note {
    align-items: flex-start;
  }
}

.nm-external {
  min-width: 0;
}

.nm-external h3,.nm-external h4 {
  font-size: 14px;
  line-height: 1.6;
}

.nm-external .nm-location-fields {
  max-width: 740px;
}

.nm-external .nm-location-fields dd,.nm-external .nm-muted {
  overflow-wrap: anywhere;
  min-width: 0;
}

.nm-bgp-paths .nm-asn-path {
  margin-top: 12px;
  padding: 14px;
}

.nm-bgp-paths .nm-asn-chips {
  gap: 6px;
}

.nm-bgp-paths .nm-asn-chips>span {
  padding: 5px 10px;
  font-size: 12px;
}

.nm-provider {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--nm-border);
  color: var(--nm-muted);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.nm-provider>a:first-child {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.nm-provider img {
  object-fit: contain;
}

@media(prefers-reduced-motion:reduce) {
  .nm-app {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  
  .nm-app * {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  
  .bv-nm-trigger {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

/* Keep the live announcement available without a second completion banner. */
@media (min-width: 701px) {
  .nm-owned-view .nm-purity .nm-live[data-state=available] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
.nm-app :is([data-nm-state=complete], [data-nm-state=cancelled]) .nm-direction-arrow {
  position: relative;
  min-width: 20px;
}
.nm-app :is([data-nm-state=complete], [data-nm-state=cancelled]) .nm-direction-dots {
  height: 2px;
  background: currentColor;
}
.nm-app :is([data-nm-state=complete], [data-nm-state=cancelled]) .nm-direction-arrow::after {
  content: "\2013";
  position: absolute;
  left: 42%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font: bold 12px/1 sans-serif;
  background: #8a651e;
  color: white;
}
.nm-app [data-nm-state=complete][data-nm-reached=true] .nm-direction-arrow::after {
  content: "\2713";
  background: #118952;
}
.nm-app [data-nm-state=cancelled] .nm-direction-arrow { color: #798899; }
.nm-app [data-nm-state=cancelled] .nm-direction-arrow::after {
  content: "\00d7";
  background: #68788b;
}
