/* One reserved, normal-flow row. Messages never enter the SVG, color dock,
   native viewport geometry, or pointer ownership layers. */
body .message-center-host { display: block; flex: 0 0 29px; width: 100%; height: 29px; min-height: 29px; max-height: 29px; margin: 0; padding: 0; box-sizing: border-box; }
body .studio-message-center,
body #design.studio > .canvas-panel > #bleed-warning.studio-message-center,
body .canvas-panel > #studio-message-center.studio-message-center {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: flex !important;
  visibility: visible !important;
  flex: 0 0 29px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  max-width: none !important;
  height: 29px;
  min-height: 29px;
  max-height: 29px;
  margin: 0;
  padding: 0 8px !important;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--option-divider,#ffffff14);
  border-radius: 0;
  box-sizing: border-box;
  color: var(--option-muted,#91939d);
  background: var(--ui-surface,#1a1c23);
  font: 400 11px/1.3 var(--ui-font,Arial,sans-serif) !important;
  pointer-events: auto;
  z-index: auto;
}
body .studio-message-center[data-kind="error"] { color: #ffc1b9 !important; background: #392428 !important; }
body .studio-message-center:is([data-kind="crop"],[data-kind="warning"]) { color: #e7c792 !important; background: #30291f !important; }
body .studio-message-center:is([data-kind="help"],[data-kind="success"]) { color: var(--option-selected,#96c7cf) !important; }
body.studio-light .studio-message-center[data-kind="error"] { color: #9c2c20 !important; background: #fff0ed !important; }
body.studio-light .studio-message-center:is([data-kind="crop"],[data-kind="warning"]) { color: #7b570f !important; background: #fff8e9 !important; }
body .studio-message-center > .message-center-kind,
body .studio-message-center > .message-center-crop { flex: 0 0 auto; font-size: 10px; font-weight: 500; white-space: nowrap; }
body .studio-message-center > .message-center-crop { padding: 2px 5px; color: #ffc1b9; background: #743b3f55; border-radius: 3px; }
body.studio-light .studio-message-center > .message-center-crop { color: #9c2c20; background: #b4231814; }
body .studio-message-center > button {
  flex: 0 0 auto;
  display: block;
  width: auto;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  margin: 0;
  padding: 0 5px;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  font: 400 11px/1.3 var(--ui-font,Arial,sans-serif);
  text-align: left;
  touch-action: manipulation;
}
body .studio-message-center > .message-center-summary { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
body .studio-message-center > .message-center-summary:disabled { opacity: 1; cursor: default; color: inherit; background: transparent; }
body .studio-message-center > .message-center-dismiss { flex-basis: 28px; width: 28px; min-width: 28px; padding: 0; font-size: 19px; text-align: center; }
body .studio-message-center > button:not(:disabled):hover { color: var(--ui-text,#edf0f7); background: var(--ui-hover,#2a303c); }
body .studio-message-center > button:focus-visible { outline: 2px solid var(--ui-focus,#55d2e0); outline-offset: -2px; }
body .studio-message-center [hidden],body .message-center-details[hidden] { display: none !important; }
.message-center-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* The host is an existing side/tool panel. This section has no fixed/absolute
   position and no backdrop, so it cannot become another floating toast. */
body .message-center-details { min-width: 0; padding: 4px 0 12px; color: var(--ui-text,#edf0f7); background: transparent; font-family: var(--ui-font,Arial,sans-serif); }
body .message-center-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
body .message-center-details h2 { margin: 0; color: var(--option-title,#d3d5dc); font-size: 14px; font-weight: 500; }
body .message-center-details button { min-height: 36px; margin: 0; padding: 5px 8px; border: 0; color: var(--option-selected,#96c7cf); background: transparent; font-size: 12px; font-weight: 400; }
body .message-center-details .message-center-item { margin: 0 0 12px; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--option-divider,#ffffff14); background: transparent; }
body .message-center-details h3 { margin: 0 0 6px; color: var(--option-title,#d3d5dc); font-size: 12px; font-weight: 500; }
body .message-center-details p { margin: 0; color: var(--ui-choice,#c4ccd9); font-size: 12px; font-weight: 400; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
body .message-center-details .message-center-item[data-kind="error"] h3 { color: #ffc1b9; }
body.studio-light .message-center-details .message-center-item[data-kind="error"] h3 { color: #9c2c20; }
body.message-details-open #design-inspector .mobile-sheet-content > :not(.message-center-details),
body.message-details-open #design-inspector #object-count { display: none !important; }
/* Native field validation and checkout status remain beside the affected input.
   The global feedback area itself has one normal-flow location per screen. */
body #review-message-slot { margin-bottom: 8px; }
body #review-message-details:empty { display: none; }
@media(max-width:700px), (max-height:500px) and (pointer:coarse) {
  body.mobile-split-open #design.studio > .canvas-panel { display: flex !important; flex-direction: column; }
  body.mobile-split-open #design.studio > .canvas-panel > .canvas-surround { position: relative; inset: auto; flex: 1 1 auto; height: auto; }
}
@media(max-width:700px), (max-height:500px) and (pointer:coarse) {
  body .studio-message-center > .message-center-kind { display: none; }
  body .message-center-details button { min-height: 44px; }
}
