/* Notification commune, dérivée du modèle du scanner de chargement. */
.ports-notices {
    position: fixed; inset: 20px 20px auto auto; z-index: 10000; margin: 0; padding: 0;
    width: min(325px, calc(100vw - 28px)); max-height: calc(100vh - 40px);
    overflow: auto; background: transparent; border: 0; color: #29492e;
    font: 14px/1.4 system-ui, sans-serif; pointer-events: none;
}
.ports-notices[hidden], .ports-notice [hidden], [data-ports-flash][hidden] { display: none !important; }
.ports-notice {
    --notice-edge: #bfd6ad; --notice-bg: #f2f8e9; --notice-ink: #29492e; --notice-icon: #dbecc8; --notice-line: #80a461;
    box-sizing: border-box; display: grid; grid-template-columns: 26px minmax(0,1fr) 24px;
    gap: 8px; align-items: start; margin: 0 0 5px; padding: 13px 15px 11px;
    border: 1px solid var(--notice-edge); border-radius: 12px; background: var(--notice-bg);
    color: var(--notice-ink); box-shadow: inset 0 -2px 5px #172c2308; pointer-events: auto;
}
.ports-notice[data-type="error"] { --notice-edge:#e2c1b7; --notice-bg:#fff4ef; --notice-ink:#7c3727; --notice-icon:#f5d8cd; --notice-line:#be7c65; }
.ports-notice svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ports-notice-icon,.ports-notice button { display:grid; place-items:center; }
.ports-notice-icon { width:26px; height:26px; border-radius:50%; background:var(--notice-icon); }
.ports-notice-message { overflow-wrap:anywhere; }
.ports-notice strong { font-size:14px; }
.ports-notice p { margin:3px 0 0; color:inherit; font-size:12px; }
.ports-notice button { width:24px; height:24px; margin:0; padding:0; background:transparent; color:inherit; border:0; border-radius:6px; cursor:pointer; }
.ports-notice button:hover { background:var(--notice-icon); }
.ports-notice button:focus-visible { outline:2px solid currentColor; }
.ports-notice-timer { grid-column:1/-1; height:3px; border-radius:3px; background:var(--notice-line); transform-origin:left; animation:ports-notice-drain var(--notice-duration, 5s) linear forwards; }
.ports-notice:hover .ports-notice-timer,.ports-notice:focus-within .ports-notice-timer { animation-play-state:paused; }
@keyframes ports-notice-drain { to { transform:scaleX(0); } }
@media(max-width:600px) { .ports-notices { inset:10px 10px auto auto; } }
@media(prefers-reduced-motion:reduce) { .ports-notice-timer { animation:none; } }
@media print { .ports-notices { display:none !important; } }
