/* OME MIRON Streams — concept v2 layout and performance corrections.
   Visual-only overrides. */

/* Keep sidebar width aligned with the application layout column. */
.sidebar {
  width: 292px;
  min-width: 292px;
  max-width: 292px;
  box-shadow: 14px 0 34px rgba(0, 0, 0, 0.28);
}

/* Slightly compact branding so it does not crowd the navigation. */
.brand-block {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 78px;
  gap: 12px;
  padding: 6px 6px 16px;
}

.brand-block::before {
  width: 62px;
  height: 62px;
  filter: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background-size: 42px 42px, auto;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.3);
}

.brand {
  font-size: 15px;
  white-space: nowrap;
}

.brand-caption {
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* Ensure the workspace never slides underneath the sidebar. */
.main-content {
  min-width: 0;
  overflow-x: hidden;
  padding: 26px 28px 38px;
}

.page-heading {
  min-width: 0;
}

/* Remove the most expensive GPU effects that caused scroll/input stutter. */
.app-shell::before {
  display: none;
}

.metric-card,
.info-panel,
.glass-panel,
.activity-panel,
.toolbar,
.stream-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 10px 26px rgba(0, 0, 0, 0.18);
}

.empty-state {
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.02),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.metric-card::after {
  opacity: 0.55;
}

.nav-button,
.nav-button::before,
.nav-icon {
  transition-duration: 120ms;
}

@media (max-width: 1250px) {
  .sidebar {
    width: 264px;
    min-width: 264px;
    max-width: 264px;
  }

  .brand-block {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    background-size: 36px 36px, auto;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .main-content {
    padding: 20px 14px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
