.network-riser.window-content {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  padding: 0;
}

.nr-app {
  --nr-ink: #203348;
  --nr-muted: #62758a;
  --nr-line: #d7e1eb;
  --nr-panel: #fff;
  --nr-canvas: #f3f7fb;
  --nr-blue: #28649a;
  --nr-green: #438a81;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  color: var(--nr-ink);
  background: #eaf0f6;
  font: 0.84rem/1.35 "Segoe UI", Arial, sans-serif;
}

.nr-toolbar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: end;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--nr-line);
  background: var(--nr-panel);
  overflow-x: auto;
}

.nr-toolbar-group {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 0.35rem;
  padding-right: 0.5rem;
  border-right: 1px solid var(--nr-line);
}

.nr-toolbar label,
.nr-field {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
  color: var(--nr-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.nr-toolbar input,
.nr-toolbar select,
.nr-field input,
.nr-field select,
.nr-field textarea {
  box-sizing: border-box;
  min-width: 0;
  min-height: 2rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--nr-line);
  border-radius: 0.35rem;
  color: var(--nr-ink);
  background: var(--nr-panel);
  font: inherit;
}

.nr-project-name {
  width: min(15rem, 35vw);
}

.nr-toolbar .nr-location-name {
  width: 10rem;
}

.nr-toolbar button,
.nr-property-actions button {
  min-height: 2rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--nr-line);
  border-radius: 0.35rem;
  color: var(--nr-ink);
  background: var(--nr-panel);
  font: inherit;
  cursor: pointer;
}

.nr-toolbar button:hover:not(:disabled),
.nr-property-actions button:hover:not(:disabled) {
  border-color: var(--nr-blue);
  background: #edf5fc;
}

.nr-toolbar button:disabled,
.nr-property-actions button:disabled {
  cursor: default;
  opacity: 0.55;
}

.nr-toolbar button.is-active {
  border-color: var(--nr-blue);
  color: #fff;
  background: var(--nr-blue);
}

.nr-grid-toggle {
  display: flex !important;
  align-items: center;
  gap: 0.4rem !important;
  min-height: 2rem;
  white-space: nowrap;
}

.nr-grid-toggle input {
  min-height: 0;
  margin: 0;
}

.nr-zoom-control {
  width: 6rem;
}

.nr-layout {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 17rem;
}

.nr-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--nr-canvas);
  cursor: grab;
  touch-action: none;
}

.nr-viewport.is-panning {
  cursor: grabbing;
}

.nr-stage-scaler {
  position: absolute;
  inset: 0;
}

.nr-stage {
  position: absolute;
  inset: 0;
}

.nr-viewport[data-grid="true"] {
  background-image:
    linear-gradient(to right, #dce5ed 1px, transparent 1px),
    linear-gradient(to bottom, #dce5ed 1px, transparent 1px),
    linear-gradient(to right, #cdd8e3 1px, transparent 1px),
    linear-gradient(to bottom, #cdd8e3 1px, transparent 1px);
  background-size:
    var(--nr-grid-size) var(--nr-grid-size),
    var(--nr-grid-size) var(--nr-grid-size),
    var(--nr-major-grid-size) var(--nr-major-grid-size),
    var(--nr-major-grid-size) var(--nr-major-grid-size);
}

.nr-confirm-dialog {
  max-width: min(30rem, calc(100vw - 2rem));
  padding: 1.15rem;
  border: 1px solid var(--nr-line);
  border-radius: 0.65rem;
  color: var(--nr-ink);
  background: var(--nr-panel);
  box-shadow: 0 1rem 3rem #10243b55;
}

.nr-confirm-dialog::backdrop {
  background: #10243b80;
}

.nr-confirm-form {
  display: grid;
  gap: 0.85rem;
}

.nr-confirm-form h2,
.nr-confirm-form p {
  margin: 0;
}

.nr-confirm-form p {
  color: var(--nr-muted);
}

.nr-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.nr-confirm-actions button {
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--nr-line);
  border-radius: 0.4rem;
  color: var(--nr-ink);
  background: var(--nr-panel);
  font: inherit;
  cursor: pointer;
}

.nr-confirm-actions button[value="confirm"] {
  border-color: var(--nr-blue);
  color: #fff;
  background: var(--nr-blue);
}

.nr-links-svg {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.nr-link {
  fill: none;
  stroke: #4276a2;
  stroke-width: 3;
}

.nr-link-fiber {
  stroke: #9c62b3;
  stroke-dasharray: 8 4;
}

.nr-link-wireless {
  stroke: #dc9a45;
  stroke-dasharray: 3 6;
}

.nr-link-vpn {
  stroke: #438a81;
  stroke-dasharray: 10 5 2 5;
}

.nr-link-serial {
  stroke: #76899b;
  stroke-dasharray: 2 4;
}

.nr-link-label {
  fill: #455e75;
  font: 12px "Segoe UI", Arial, sans-serif;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.nr-location {
  position: absolute;
  right: 0;
  left: 0;
  border-bottom: 1px solid #d5e0e9;
  background: #f9fbfdcc;
}

.nr-location:nth-of-type(even) {
  background: #edf3f8bb;
}

.nr-location-heading {
  position: absolute;
  top: 0.55rem;
  left: 0.75rem;
  margin: 0;
  color: #49627a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nr-node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 11.25rem;
  min-height: 6.35rem;
  grid-template-columns: 2.45rem minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 0.2rem 0.5rem;
  padding: 0.55rem;
  border: 1px solid #bdcddd;
  border-left: 4px solid var(--nr-blue);
  border-radius: 0.55rem;
  color: var(--nr-ink);
  background: #fff;
  box-shadow: 0 3px 12px #20334816;
  text-align: left;
  cursor: grab;
  touch-action: none;
  transform-origin: top left;
}

.nr-node:active {
  cursor: grabbing;
}

.nr-node:focus-visible {
  outline: 3px solid #5a9bd0;
  outline-offset: 2px;
}

.nr-node.is-selected {
  border-color: var(--nr-blue);
  box-shadow: 0 0 0 2px #4e8cc455, 0 5px 16px #20334820;
}

.nr-node.is-connect-source {
  border-color: #39805f;
  box-shadow: 0 0 0 3px #4b9c6970;
}

.nr-node-badge {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  grid-row: span 2;
  align-content: center;
  gap: 0.05rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  background: var(--nr-blue);
  font-weight: 800;
  text-align: center;
}

.nr-node-symbol {
  font-size: 1.15rem;
  line-height: 1;
}

.nr-node-code {
  font-size: 0.48rem;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.nr-node[data-category="Wireless"] .nr-node-badge,
.nr-node[data-category="Infrastructure"] .nr-node-badge {
  background: var(--nr-green);
}

.nr-node[data-category="Security"] .nr-node-badge {
  background: #a64e58;
}

.nr-node-label {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nr-node-type,
.nr-node-address {
  overflow: hidden;
  color: var(--nr-muted);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nr-properties {
  min-width: 0;
  overflow: auto;
  padding: 0.8rem;
  border-left: 1px solid var(--nr-line);
  background: var(--nr-panel);
}

.nr-properties h2 {
  margin: 0 0 0.65rem;
  color: var(--nr-ink);
  font-size: 0.98rem;
}

.nr-property-form {
  display: grid;
  gap: 0.6rem;
}

.nr-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.nr-property-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nr-property-actions .nr-danger {
  border-color: #ddadb1;
  color: #a13e49;
}

.nr-connections {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
}

.nr-connection-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--nr-line);
  border-radius: 0.35rem;
  color: var(--nr-muted);
  font-size: 0.7rem;
}

.nr-connection-item button {
  border: 0;
  color: #a13e49;
  background: transparent;
  cursor: pointer;
}

.nr-status {
  flex: 0 0 auto;
  min-height: 1.65rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border-top: 1px solid var(--nr-line);
  color: var(--nr-muted);
  background: var(--nr-panel);
  font-size: 0.74rem;
}

.nr-status.is-error {
  color: #a13e49;
}

.desktop.dark-theme .nr-app {
  --nr-ink: #e4edf7;
  --nr-muted: #a7bad1;
  --nr-line: #344b67;
  --nr-panel: #172a41;
  --nr-canvas: #0e1a2b;
  --nr-blue: #4b85bb;
  --nr-green: #56a094;
  background: #101d2e;
}

.desktop.dark-theme .nr-viewport[data-grid="true"] {
  background-image:
    linear-gradient(to right, #2b3f55 1px, transparent 1px),
    linear-gradient(to bottom, #2b3f55 1px, transparent 1px),
    linear-gradient(to right, #3a526d 1px, transparent 1px),
    linear-gradient(to bottom, #3a526d 1px, transparent 1px);
}

.desktop.dark-theme .nr-location {
  border-color: #344b67;
  background: #172a41cc;
}

.desktop.dark-theme .nr-location:nth-of-type(even) {
  background: #1b314bbb;
}

.desktop.dark-theme .nr-location-heading,
.desktop.dark-theme .nr-link-label {
  fill: #c4d5e8;
  color: #c4d5e8;
}

.desktop.dark-theme .nr-node {
  border-color: #425b78;
  border-left-color: var(--nr-blue);
  color: var(--nr-ink);
  background: #1a304a;
}

.desktop.dark-theme .nr-node.is-selected {
  border-color: #71a9db;
}

.desktop.dark-theme .nr-link-label {
  stroke: #142238;
}

.desktop[data-desktop-theme] .nr-app {
  color: var(--app-text);
}

@media (max-width: 900px) {
  .nr-layout {
    grid-template-columns: minmax(0, 1fr) 15rem;
  }
}

@media (max-width: 700px) {
  .nr-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(12rem, 1fr) minmax(10rem, 34vh);
  }

  .nr-properties {
    border-top: 1px solid var(--nr-line);
    border-left: 0;
  }

  .nr-toolbar-group {
    border-right: 0;
    padding-right: 0;
  }

  .nr-project-name {
    width: min(12rem, 48vw);
  }
}
