.ombox-notification-host {
    position: fixed;
    top: 24px;
    right: auto;
    left: 50%;
    /* Body-level feedback stays above the shared Modal layer (2100). */
    z-index: 2200;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: min(420px, calc(100vw - 32px));
    transform: translateX(-50%);
    pointer-events: none;
}

.ombox-notification-frame {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-gray-50);
}

.ombox-notification-inline {
    position: absolute;
}

.ombox-notification-top-left {
    top: 24px;
    right: auto;
    left: 24px;
    transform: none;
}

.ombox-notification-top-right {
    top: 24px;
    right: 24px;
    left: auto;
    transform: none;
}

.ombox-notification-bottom-left {
    top: auto;
    right: auto;
    bottom: 24px;
    left: 24px;
    transform: none;
}

.ombox-notification-bottom-right {
    top: auto;
    right: 24px;
    bottom: 24px;
    left: auto;
    transform: none;
}

.ombox-notification-top-center {
    top: 24px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.ombox-notification-center {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.ombox-notification-center .ombox-feedback-text {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.ombox-notification-center .ombox-feedback-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ombox-notification {
    min-width: 220px;
    max-width: 100%;
    padding: var(--space-3) calc(var(--space-4) + 22px) var(--space-3) var(--space-4);
    background: var(--color-text-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-8px);
    transition: var(--transition-fast);
    pointer-events: auto;
    position: relative;
    cursor: copy;
}

.ombox-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ombox-notification-success {
    background: var(--color-success);
}

.ombox-notification-warning {
    background: var(--color-warning);
}

.ombox-notification-danger,
.ombox-notification-error {
    background: var(--color-danger);
}

.ombox-message-host {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 2200;
    display: grid;
    gap: var(--space-2);
    transform: translateX(-50%);
    pointer-events: none;
}

.ombox-message-frame {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: var(--border-width-thin) solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-gray-50);
}

.ombox-message-inline {
    position: absolute;
}

.ombox-message-host:not(.ombox-message-inline) {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
}

.ombox-message {
    min-width: 160px;
    max-width: min(420px, calc(100vw - 32px));
    padding: var(--space-2) calc(var(--space-4) + 22px) var(--space-2) var(--space-4);
    background: var(--color-gray-900);
    color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    text-align: center;
    transform: translateY(-8px);
    transition: var(--transition-fast);
    pointer-events: auto;
    position: relative;
    cursor: copy;
}

.ombox-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ombox-message-success {
    background: var(--color-success);
}

.ombox-message-warning {
    background: var(--color-warning);
}

.ombox-message-danger,
.ombox-message-error {
    background: var(--color-danger);
}

.ombox-feedback-close {
    position: absolute;
    top: 50%;
    right: var(--space-2);
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: inherit;
    font-size: 16px;
    line-height: 20px;
    transform: translateY(-50%);
    cursor: pointer;
}

.ombox-feedback-close:hover,
.ombox-feedback-close:focus {
    background: rgba(255, 255, 255, .3);
    outline: none;
}

.ombox-message.is-copied,
.ombox-notification.is-copied,
.ombox-floating-alert.is-copied {
    outline: 2px solid rgba(255, 255, 255, .7);
    outline-offset: 2px;
}

.ombox-floating-alert {
    cursor: copy;
    pointer-events: auto;
}

body.eye-protection .ombox-message {
    background: #faf8f3;
    border-color: #d9cbb8;
}

body.eye-protection .ombox-notification-frame {
    background: #faf8f3;
    border-color: #d9cbb8;
}

body.eye-protection .ombox-message-frame {
    background: #faf8f3;
    border-color: #d9cbb8;
}
