.digi-sonner-root {
    position: fixed;
    top: 64px;
    right: 12px;
    z-index: 9999;
}

.digi-sonner-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 100vh;
    overflow: visible;
    padding: 1rem;
    font-family: "Roboto", sans-serif;
}

.digi-sonner-container.hover-mode {
    overflow: auto;
    max-height: calc(100vh - 64px);
}

.digi-sonner-card {
    position: relative;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 1rem;
    width: 320px;
    word-wrap: break-word;
    cursor: default;
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.4;
}

.digi-sonner-card.clickable {
    cursor: pointer;
}

.digi-sonner-card-title {
    font-weight: 600;
    margin: 0 24px 6px 0;
}

.digi-sonner-card-text {
    margin: 0;
}

.digi-sonner-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #555;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}
.digi-sonner-close:hover { background: rgba(0,0,0,0.06); }

.digi-sonner-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #e02424;
    color: #fff;
    border-radius: 999px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

@keyframes slideInUp {
    from { transform: translateY(8px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}
@keyframes slideOutUp {
    from { transform: translateY(0);   opacity: 1; }
    to   { transform: translateY(-8px); opacity: 0; }
}

.digi-enter { animation: slideInUp 180ms ease-out; }
.digi-exit { animation: slideOutUp 200ms ease-in forwards; }

.digi-collapsing {
    overflow: hidden;
    max-height: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    transform: translateY(-12px);
    transition:
        max-height 400ms ease,
        margin 400ms ease,
        padding 400ms ease,
        opacity 360ms ease,
        transform 400ms ease;
}

.digi-collapsed {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(0);
    z-index: -1;
}
.digi-r { font-weight: normal; }
.digi-b { font-weight: bold; }
.digi-i { font-style: italic; }
.digi-u { text-decoration: underline; }
.digi-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    padding: 0 4px;
}
.digi-link { color: #0b69ff;}
