.page-header-left .logo {
  padding-right: 0;
}

.toggle-sidebar,
.page-sidebar,
.page-sidebar-content-overlay,
.search-field-wrap,
.mobile-search-toggle {
  display: none !important;
}

body.visible-sidebar .page-main-wrap,
.visible-sidebar .page-main-wrap {
  padding-left: 0 !important;
}

.page-header-left .logo span > img {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.page-header-left .on-logo-right {
  padding-left: 10px;
}

.meshcore-header-brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  height: var(--header-height);
  color: #f3f7ff;
  line-height: 1.08;
}

.meshcore-header-brand strong,
.meshcore-header-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meshcore-header-brand strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.meshcore-header-brand small {
  margin-top: 4px;
  color: #aeb9ca;
  font-size: 0.78rem;
  font-weight: 500;
}

.nav-item-terms,
.nav-item-contact,
.nav-item-language {
  display: none !important;
}

.custom-page-wrapper.meshcore-about {
  max-width: 760px;
  margin: 0 auto;
  padding: 38px 24px;
}

.meshcore-about h1 {
  margin: 0 0 16px;
  color: var(--body-text-color);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.meshcore-about p {
  max-width: 66ch;
  color: var(--body-secondary-text-color, #aeb9ca);
  font-size: 1.05rem;
  line-height: 1.7;
}

.meshcore-about a {
  color: #7dd3fc;
  text-decoration: none;
}

.custom-page-wrapper.meshcore-terms {
  max-width: 820px;
  margin: 0 auto;
  padding: 38px 24px 92px;
}

.meshcore-terms h1,
.meshcore-terms h2 {
  color: var(--body-text-color);
  letter-spacing: 0;
}

.meshcore-terms h1 {
  margin: 0 0 18px;
  font-size: 2rem;
  font-weight: 800;
}

.meshcore-terms h2 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
  font-weight: 780;
}

.meshcore-terms p {
  max-width: 72ch;
  color: var(--body-secondary-text-color, #aeb9ca);
  font-size: 1.02rem;
  line-height: 1.7;
}

.media-uploader-wrap {
  max-width: 620px !important;
  margin: 28px auto 92px !important;
}

body.meshcore-upload-page .page-main-wrap {
  min-height: calc(100vh - var(--header-height, 58px)) !important;
}

body.meshcore-upload-page .page-main-inner {
  display: flex !important;
  min-height: calc(100vh - var(--header-height, 58px)) !important;
  margin: 0 !important;
  padding: 0 16px 112px !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

body.meshcore-upload-page .media-uploader-wrap {
  display: flex !important;
  width: 100% !important;
  max-width: 720px !important;
  min-height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

body.meshcore-upload-page .media-uploader {
  width: 100% !important;
  max-width: 620px !important;
}

body.meshcore-upload-page .media-uploader-top-wrap {
  display: none !important;
}

body.meshcore-upload-page .pre-upload-msg {
  max-width: 620px !important;
  margin: 22px 0 0 !important;
  text-align: center !important;
}

.media-uploader {
  width: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.media-uploader::after {
  display: none !important;
}

.media-uploader-top-wrap h1 {
  text-align: center;
}

.media-uploader-bottom-wrap {
  display: flex !important;
  justify-content: center;
  width: 100% !important;
}

.media-uploader-bottom-left-wrap {
  position: relative !important;
  width: 100% !important;
  min-height: 320px !important;
  padding-top: 0 !important;
}

.media-uploader-bottom-right-wrap {
  display: none !important;
}

.media-drag-drop-wrap {
  position: relative !important;
  width: 100% !important;
  min-height: 320px !important;
  padding: 0 !important;
}

.media-drag-drop-inner {
  display: flex !important;
  min-height: 320px !important;
  padding: 24px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  box-sizing: border-box !important;
  border-radius: 8px;
  background: var(--sidebar-bg-color);
  text-align: center !important;
}

.media-drag-drop-inner > * {
  margin-right: auto !important;
  margin-left: auto !important;
}

.media-drag-drop-inner .browse-files-btn-wrap {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 4px !important;
}

.browse-files-btn-wrap span {
  border-radius: 8px !important;
  padding: 0.95rem 1.35rem !important;
}

.meshcore-media-upload-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #3f9f3f;
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.meshcore-media-upload-cta button:hover {
  filter: brightness(1.06);
}

.meshcore-site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 10001;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 16px;
  color: var(--body-secondary-text-color, #aeb9ca);
  font-size: 0.88rem;
  text-align: center;
  pointer-events: none;
}

.meshcore-site-footer a {
  color: #7dd3fc;
  text-decoration: none;
  pointer-events: auto;
}

.meshcore-site-footer a:hover {
  color: var(--body-text-color, #ffffff);
}

.media-author-banner,
.media-author-actions,
.comments-list,
.comments-form,
.media-views,
.media-views-actions .media-views,
.item-author,
.item-views,
.item-date {
  display: none !important;
}

@media screen and (max-width: 520px) {
  .page-header-left .logo span > img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
  }

  .meshcore-header-brand strong {
    font-size: 0.88rem;
  }

  .meshcore-header-brand small {
    font-size: 0.68rem;
  }

  .meshcore-site-footer {
    bottom: 10px;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.8rem;
  }

  .media-uploader-wrap {
    margin-top: 14px !important;
  }
}
