/* ==========================================================================
   notify.css — top-centre calendar reminders (notify.js)
   cream note card, matcha / pink like the rest of the bar
   ========================================================================== */
#pomo-notify {
    position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
    z-index: 120; width: min(390px, calc(100vw - 24px));
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.pn {
    --c: #BDD373;
    position: relative; pointer-events: auto;
    display: flex; align-items: stretch;
    padding: 12px 10px 12px 12px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, .9), transparent 55%),
        #FFFCF4;
    border: 1.5px solid #F4A3B4;
    box-shadow: 0 14px 34px rgba(62, 39, 39, .18), 0 2px 6px rgba(62, 39, 39, .08);
    color: #3E2727;
    animation: pn-drop .55s cubic-bezier(.2, 1.35, .35, 1) backwards;
    transition: transform .3s ease, opacity .3s ease;
    overflow: visible;
}
.pn.out { opacity: 0; transform: translateY(-24px) scale(.96); }
@keyframes pn-drop {
    0%   { opacity: 0; transform: translateY(-46px) rotate(-2deg) scale(.94); }
    60%  { opacity: 1; transform: translateY(4px) rotate(.6deg); }
    100% { opacity: 1; transform: none; }
}

.pn-main {
    flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px;
    border: none; background: none; padding: 0; margin: 0; text-align: left; cursor: pointer;
    font: inherit; color: inherit;
}
.pn-icon {
    flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
    background: color-mix(in srgb, var(--c) 30%, #fff);
    color: color-mix(in srgb, var(--c) 55%, #3E2727);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, #fff);
}
.pn-now .pn-icon { animation: pn-wiggle 1.2s ease-in-out .5s 2; }
@keyframes pn-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.pn-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
.pn-label { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #B03F64; }
.pn-now .pn-label { color: #5E7D1F; }
.pn-title {
    font-family: 'Fraunces', Georgia, serif; font-size: 16.5px; font-weight: 600; line-height: 1.25;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.pn-sub { font-size: 12.5px; color: #7A6262; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-items { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.pn-items span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #5c4646; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-items i { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--d); box-shadow: inset 0 0 0 1px rgba(62, 39, 39, .12); }

.pn-side { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-left: 4px; }
.pn-x, .pn-bell {
    display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: none; border-radius: 10px;
    background: rgba(62, 39, 39, .05); color: #7A6262; cursor: pointer;
}
.pn-x:hover, .pn-bell:hover { background: #FFE6EA; color: #B03F64; }
.pn-heart { position: absolute; right: 12px; bottom: 9px; color: #B03F64; opacity: .55; pointer-events: none; }
.pn-heart svg { fill: #FFBCC5; }
.pn:hover { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
    .pn, .pn-now .pn-icon { animation: none; }
}
html.phone #pomo-notify { top: calc(10px + var(--safe-t, 0px)); }
