.oml-badge { align-items: center; background: var(--oml-color-success-soft); border-radius: var(--oml-radius-pill); color: var(--oml-color-primary-dark); display: inline-flex; font-size: 12px; font-weight: 800; min-height: 28px; padding: 4px 11px; }
.oml-status-pill { align-items: center; background: var(--oml-color-success-soft); border-radius: var(--oml-radius-pill); color: var(--oml-color-primary-dark); display: inline-flex; font-size: 12px; font-weight: 800; gap: 4px; min-height: 28px; padding: 4px 11px; }
.oml-status-pill--warning { background: var(--oml-color-warning-soft); color: #784200; }
.oml-status-pill--danger { background: var(--oml-color-danger-soft); color: var(--oml-color-danger); }
.oml-status-pill--muted { background: var(--oml-color-app-bg); color: var(--oml-color-muted); }
.oml-badge--warning { background: var(--oml-color-warning-soft); color: #784200; }
.oml-badge--danger { background: var(--oml-color-danger-soft); color: var(--oml-color-danger); }
.oml-alert { background: var(--oml-color-success-soft); border-left: 5px solid var(--oml-color-primary); border-radius: var(--oml-radius-small); margin-bottom: var(--oml-space-4); padding: var(--oml-space-4); }
.oml-alert--warning { background: var(--oml-color-warning-soft); border-left-color: var(--oml-color-secondary); }
.oml-alert p { margin: 0; }
.oml-alert p + p { margin-top: var(--oml-space-2); }
.oml-alert .oml-alert__action { align-items: center; border-top: 1px solid var(--oml-color-line); display: flex; flex-wrap: wrap; gap: var(--oml-space-2) var(--oml-space-3); margin-top: var(--oml-space-3); padding-top: var(--oml-space-3); }
.oml-alert__action span { color: var(--oml-color-muted); }
.oml-alert__action a { background: var(--oml-color-white); border-radius: var(--oml-radius-pill); box-shadow: var(--oml-shadow-small); color: var(--oml-color-primary-dark); display: inline-flex; align-items: center; font-weight: 800; min-height: 40px; padding: 0 18px; }
.oml-network-status { background: var(--oml-color-charcoal); bottom: calc(16px + var(--oml-safe-bottom)); color: var(--oml-color-white); font-weight: 800; left: 50%; max-width: calc(100% - 32px); padding: 10px 16px; position: fixed; transform: translateX(-50%); z-index: 900; }
.oml-toast-region { bottom: calc(20px + var(--oml-safe-bottom)); display: grid; gap: 8px; max-width: min(420px, calc(100% - 32px)); position: fixed; right: 16px; z-index: 950; }
@media (max-width: 560px) {
	.oml-network-status, .oml-toast-region { bottom: calc(150px + var(--oml-safe-bottom)); }
	.oml-toast-region { left: 16px; max-width: none; }
}
.oml-is-mobile .oml-network-status, .oml-is-mobile .oml-toast-region { bottom: calc(150px + var(--oml-safe-bottom)); }
.oml-is-mobile .oml-toast-region { left: 16px; max-width: none; }
.oml-toast { align-items: center; animation: oml-toast-in 200ms ease-out both; background: var(--oml-color-charcoal); border-radius: 999px; box-shadow: 0 10px 28px rgba(43, 36, 56, 0.28); color: var(--oml-color-white); cursor: pointer; display: flex; font-size: 14px; font-weight: 600; gap: 10px; justify-self: center; line-height: 1.3; padding: 10px 18px 10px 10px; width: fit-content; }
.oml-toast__mark { align-items: center; background: var(--oml-color-lime); border-radius: 50%; color: #1f3004; display: inline-flex; flex-shrink: 0; height: 24px; justify-content: center; width: 24px; }
.oml-toast--leaving { animation: oml-toast-out 200ms ease-in both; }
@keyframes oml-toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes oml-toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .oml-toast, .oml-toast--leaving { animation: none; } }
.oml-install-banner { align-items: center; background: var(--oml-color-primary); box-shadow: var(--oml-shadow-small); color: var(--oml-color-white); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; left: 0; padding: 12px 44px; position: fixed; right: 0; top: 0; z-index: 970; }
/* The desktop-only "install on your phone" hint sits at the bottom instead of the top, and is a bit larger, so it reads as a calmer footer-style notice rather than a blocking top banner. */
.oml-install-banner--hint { background: var(--oml-color-charcoal); bottom: 0; padding: 20px 56px; top: auto; }
.oml-install-banner--hint .oml-install-banner__text { font-size: 16px; }
/* The hint banner is pinned to the bottom of the viewport with nothing reserving
   space for it, so whatever page content scrolls underneath gets covered - most
   noticeably the stacked action buttons on long pages like admin review. */
body.oml-has-install-hint { padding-bottom: 76px; }
.oml-install-banner__text { font-size: 14px; font-weight: 700; }
.oml-install-banner__text strong { font-weight: 800; }
.oml-install-banner__text span { font-weight: 500; opacity: 0.95; }
.oml-install-banner__icon { flex-shrink: 0; }
/* The "app is installed" note is a calm, lighter strip: nothing to press, only to read or dismiss. */
.oml-install-banner--open { background: var(--oml-color-primary-dark); }
.oml-install-banner .oml-install-banner__button { flex-shrink: 0; min-height: 36px; padding: 0 18px; width: auto; }
.oml-install-banner__close { background: transparent; border: 0; color: var(--oml-color-white); cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.oml-install-banner { flex-wrap: nowrap; gap: 10px; justify-content: flex-start; padding: 10px 40px 10px 14px; }
	.oml-install-banner__text { flex: 1; font-size: 13px; line-height: 1.3; min-width: 0; }
	.oml-install-banner__text span { display: block; font-size: 12px; }
	.oml-install-banner .oml-install-banner__button { flex: 0 0 auto; min-height: 34px; padding: 0 16px; white-space: nowrap; width: auto; }
	.oml-install-banner--hint { padding: 14px 40px 14px 16px; }
}
.oml-demo-banner { background: var(--oml-color-warning-soft); border-bottom: 2px solid var(--oml-color-secondary-dark); color: var(--oml-color-charcoal); font-size: 13px; font-weight: 800; left: 0; padding: 8px 16px; position: fixed; right: 0; text-align: center; top: 0; z-index: 980; }
[hidden] { display: none !important; }
.oml-session-expired { align-items: center; background: var(--oml-color-charcoal); border-radius: var(--oml-radius-medium); bottom: calc(96px + var(--oml-safe-bottom)); box-shadow: var(--oml-shadow-large); color: var(--oml-color-white); display: grid; gap: 12px; left: 12px; padding: 16px; position: fixed; right: 12px; z-index: 1200; }
.oml-session-expired p { margin: 0; font-weight: 600; }
@media (min-width: 640px) { .oml-session-expired { grid-template-columns: 1fr auto; left: 50%; max-width: 560px; right: auto; transform: translateX(-50%); } }
.oml-status-pill:empty { display: none; }

.oml-alert--pending { align-items: baseline; background: var(--oml-color-warning-soft); border-left-color: var(--oml-color-orange); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.oml-alert--pending[hidden] { display: none; }
