.network-quick-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
  min-height: 38px;
  padding: 4px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  border-top: 1px solid #d9e5ec;
  border-bottom: 1px solid #d9e5ec;
  background: linear-gradient(180deg, #f9fcfe, #f1f6f9);
  scrollbar-width: thin;
}

.network-quick-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 30px;
  height: 28px;
  padding: 0 5px;
  border: 1px solid #c4d4df;
  border-radius: 6px;
  background: #fff;
  color: #123e5b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 55, 82, .08);
}

.network-quick-tool:hover,
.network-quick-tool:focus-visible {
  border-color: #005ca9;
  background: #eaf5fd;
  color: #003f73;
  outline: none;
}

.network-quick-tool:active {
  transform: translateY(1px);
}

.quick-tool-separator {
  flex: 0 0 1px;
  width: 1px;
  height: 20px;
  margin: 0 2px;
  background: #c9d8e2;
}

.quick-properties-popover {
  position: fixed;
  z-index: 10020;
  width: min(340px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 24px));
  overflow: auto;
  border: 1px solid #a9c1d1;
  border-radius: 12px;
  background: #fff;
  color: #173247;
  box-shadow: 0 18px 42px rgba(13, 47, 70, .24), 0 2px 8px rgba(13, 47, 70, .12);
}

.quick-properties-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px 8px 12px;
  border-bottom: 1px solid #d9e5ec;
  background: #f4f8fb;
}

.quick-properties-header strong {
  color: #0d466d;
  font-size: .82rem;
}

.quick-properties-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #4c6576;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.quick-properties-close:hover,
.quick-properties-close:focus-visible {
  background: #e4edf3;
  color: #173247;
  outline: none;
}

.quick-properties-form {
  display: grid;
  gap: 9px;
  padding: 11px 12px 6px;
}

.quick-properties-form label {
  display: grid;
  gap: 4px;
  color: #496173;
  font-size: .68rem;
  font-weight: 800;
}

.quick-properties-form input,
.quick-properties-form select,
.quick-properties-form textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #c6d5df;
  border-radius: 7px;
  background: #fff;
  color: #173247;
  font: inherit;
}

.quick-properties-form textarea {
  min-height: 58px;
  resize: vertical;
}

.quick-properties-form .property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-properties-form button {
  min-height: 32px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: .67rem;
}

.quick-properties-note {
  margin: 0;
  padding: 4px 12px 10px;
  color: #718391;
  font-size: .61rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .network-quick-toolbar {
    min-height: 40px;
    padding-inline: 5px;
  }

  .network-quick-tool {
    min-width: 31px;
    height: 30px;
  }

  .quick-properties-popover.mobile-sheet {
    inset: auto 8px 8px 8px;
    width: auto;
    max-height: min(68vh, 560px);
    border-radius: 14px;
  }
}
