/* One notification surface for server responses and client actions. */
.platform-flash {
  box-sizing: border-box;
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid var(--orange, #ff6200);
  border-radius: 14px;
  background: #fff;
  color: #172033;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.platform-flash small { color: inherit; }
.platform-flash:empty,
.platform-flash[hidden] { display: none; }

.platform-flash.platform-flash-toast {
  position: fixed;
  z-index: 6000;
  inset: 50% auto auto 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  max-width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0;
  text-align: left;
  box-shadow: 0 12px 36px rgb(23 32 51 / 14%);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate(-50%, -50%);
}

.platform-flash.platform-flash-toast[hidden] { display: none; }
.platform-flash-content { min-width: 0; flex: 1; }
.platform-flash[data-platform-flash-inline] {
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: start;
  column-gap: 10px;
}
.platform-flash-content > small { display: block; }
.platform-flash button.platform-flash-close {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.platform-flash button.platform-flash-close:focus-visible { outline: 2px solid var(--orange, #ff6200); outline-offset: 2px; }

/* Dashboard notices stay compact without changing the approved palette. */
body[data-dashboard-workspace] .platform-flash[data-platform-flash-inline] {
  max-width: 560px;
  margin-bottom: 12px;
  padding: 10px 12px;
  column-gap: 8px;
  border-radius: 12px;
  line-height: 1.5;
}
body[data-dashboard-workspace] .platform-flash.platform-flash-toast {
  max-width: min(420px, calc(100% - 32px));
  gap: 10px;
  padding: 10px 12px;
  line-height: 1.5;
}
