.resnode-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 0;
}

.resnode-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.resnode-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: 0 0 auto;
}

.resnode-title-stack {
  min-width: 0;
}

.resnode-page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
}

.resnode-page-subtitle {
  margin-top: 3px;
  color: var(--muted, #666257);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.resnode-menu {
  position: relative;
  flex: 0 0 auto;
}

.resnode-menu > summary {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid var(--line, rgba(24, 24, 20, 0.12));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.resnode-menu > summary::-webkit-details-marker {
  display: none;
}

.resnode-menu-bars,
.resnode-menu-bars::before,
.resnode-menu-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text, #171714);
}

.resnode-menu-bars {
  position: relative;
}

.resnode-menu-bars::before,
.resnode-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.resnode-menu-bars::before {
  top: -6px;
}

.resnode-menu-bars::after {
  top: 6px;
}

.resnode-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  width: 210px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line, rgba(24, 24, 20, 0.12));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow, 0 20px 70px rgba(20, 18, 14, 0.08));
}

.resnode-menu-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text, #171714);
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
}

.resnode-menu-list a:hover,
.resnode-menu-list a[aria-current="page"] {
  background: var(--surface-muted, #f5f3ee);
}

.resnode-menu-list img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.resnode-window-shell {
  width: min(1420px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 12px 0 24px;
}

.resnode-topbar.resnode-window-shell {
  padding: 12px 0 10px;
}

@media (max-width: 760px) {
  .resnode-topbar {
    align-items: flex-start;
  }

  .resnode-menu-list {
    width: min(220px, calc(100vw - 32px));
  }
}
