/* raised-bed runtime styles: toasts and inline field errors. Uses the theme's tokens. */
#rb-toasts {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(24rem, calc(100vw - 2rem));
}
.rb-toast {
  padding: 0.75rem 1rem;
  border-radius: var(--app-radius, 0.25rem);
  background: var(--app-surface, #fff);
  color: var(--app-text, #222);
  border-left: 4px solid var(--color-info, #3b82f6);
  box-shadow: var(--app-shadow, 0 2px 8px rgba(0, 0, 0, 0.15));
  cursor: pointer;
  animation: rb-in 0.15s ease-out;
}
.rb-toast-success { border-left-color: var(--color-success, #28bd14); }
.rb-toast-error { border-left-color: var(--color-error, #d43939); }
.rb-toast-warning { border-left-color: var(--color-warning, #f59e0b); }
.rb-error { display: block; margin-top: -0.5rem; margin-bottom: 0.75rem; color: var(--app-danger, #d43939); }
@keyframes rb-in { from { opacity: 0; transform: translateY(0.5rem); } }

/* For keyboard and screen reader users (rb.js): text only a screen reader
   gets; the "Skip to content" link, seen when the Tab key reaches it; the
   page's content takes the focus after a page change without showing a ring. */
.rb-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rb-skip {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3000;
  padding: 0.5rem 0.9rem;
  border-radius: var(--app-radius, 0.4rem);
  background: var(--app-surface, #fff);
  color: var(--app-text, #222);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-200%);
}
.rb-skip:focus {
  transform: none;
  outline: 2px solid var(--app-accent-tone, #4e5fc2);
  outline-offset: 2px;
}
[data-slot="app"][tabindex="-1"]:focus {
  outline: none;
}

/* The runtime did not load (or scripts are off): said at the top of the page. */
.rb-notice {
  position: fixed;
  top: 0.5rem;
  left: 50%;
  z-index: 3000;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 1rem);
  margin: 0;
  padding: 0.6rem 1rem;
  border-radius: var(--app-radius, 0.4rem);
  border-left: 4px solid var(--app-warning, #916313);
  background: var(--app-surface, #fff);
  color: var(--app-text, #222);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.rb-notice[hidden] { display: none; }
