/* Messages occupy a real header row. The content pane never shares that row. */
.underworld-shell .uw-header[data-uw-feedback] {
  flex-wrap: wrap;
  background: #0c0c10;
  row-gap: 10px;
}
.underworld-shell [data-uw-feedback-source] { display: none !important; }
.underworld-shell .uw-notification-rail {
  order: 10;
  flex: 1 0 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  max-height: min(200px, 25dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.underworld-shell .uw-notification-rail[hidden] { display: none; }
.underworld-shell .uw-notification-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid #4b603a;
  border-radius: 10px;
  background: #172011;
  color: #ecf4e1;
  padding: 4px 5px 4px 14px;
}
.underworld-shell .uw-notification-text {
  min-width: 0;
  margin: 0;
  padding-block: 11px;
  font: 400 14px/1.5 'Space Grotesk', 'DM Sans', Arial, sans-serif;
  overflow-wrap: anywhere;
}
.underworld-shell .uw-notification-dismiss {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  color: #c3ff5c;
  background: transparent;
  position: sticky;
  top: 0;
}
.underworld-shell .uw-notification-dismiss svg { width: 20px; height: 20px; }
.underworld-shell .uw-notification-dismiss:hover { background: #c3ff5c12; }
.underworld-shell .uw-notification-dismiss:focus-visible { outline: 2px solid #c3ff5c; outline-offset: -3px; }
@media (max-width: 999px) {
  .underworld-shell:has(.uw-header[data-uw-feedback]) { padding-top: var(--uw-feedback-header-height, 140px); }
  html:has(.underworld-shell .uw-header[data-uw-feedback]) { scroll-padding-top: calc(var(--uw-feedback-header-height, 140px) + 12px); }
  html.uw-installed .underworld-shell:has(.uw-header[data-uw-feedback]) { padding-top: 0; }
}
@media (max-width: 999px) and (display-mode: standalone), (max-width: 999px) and (display-mode: fullscreen) {
  .underworld-shell:has(.uw-header[data-uw-feedback]) { padding-top: 0; }
}
@media (max-height: 500px) {
  .underworld-shell .uw-header[data-uw-feedback] { row-gap: 6px; padding-block: 6px; }
  .underworld-shell .uw-notification-rail { max-height: 84px; }
  .underworld-shell .uw-notification-text { font-size: 14px; }
}
