/* One quiet, fixed notification surface across scorer, master and viewing ends. */
.event-notices-host{position:fixed;inset:0;margin:0!important;padding:0!important;border:0!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;background:transparent!important;z-index:2147482000;pointer-events:none;font-family:"MiSans VF",sans-serif;font-synthesis:none;color:#f0f1ef;font-size:14px;line-height:1.55;--notice-edge:16px;--notice-surface:#252726;--notice-muted:#b0b8b4;--notice-error:#ff6878;--notice-accent:#80dfc6}
.event-notices-host [hidden],.event-notices-trigger[hidden]{display:none!important}
.event-notices-trigger{position:fixed;right:56px;top:12px;z-index:2147482002;pointer-events:auto;display:inline-flex;justify-content:center;align-items:center;flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:4px!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:#ff6878!important;cursor:pointer;vertical-align:middle}
.event-notices-trigger.is-attached{position:relative;inset:auto;z-index:auto;margin:0 4px 0 0}
.event-notices-trigger>svg{width:24px;height:24px;display:block}
.event-notices-trigger .event-notices-count{position:absolute;top:-4px;right:-5px;min-width:16px;height:16px;box-sizing:border-box;border-radius:9px;padding:0 4px;background:#f45568;color:white;font-size:10px;line-height:16px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.event-notices-trigger:hover{color:#ff91a0!important}.event-notices-trigger:focus-visible{outline:2px solid #80dfc6;outline-offset:3px}
.event-notices-stack{position:absolute;top:12px;left:50%;transform:translateX(-50%);width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;pointer-events:none;display:flex;flex-direction:column;gap:10px;padding:0 4px 12px;box-sizing:border-box}
.event-notice-card{position:relative;display:flex;align-items:flex-start;gap:10px;width:100%;box-sizing:border-box;padding:12px 40px 12px 14px;border:1px solid #484d49;border-radius:14px;background:#252726;color:#f0f1ef;box-shadow:0 10px 34px #0005;pointer-events:auto;animation:event-notice-enter 210ms cubic-bezier(.2,.75,.3,1) both;text-align:left;font-size:14px;line-height:1.55}
.event-notice-symbol{flex:0 0 22px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;color:var(--notice-muted);margin-top:1px}
.event-notice-symbol svg{width:21px;height:21px}.event-notice-error .event-notice-symbol,.event-notice-warning .event-notice-symbol{color:var(--notice-error)}.event-notice-success .event-notice-symbol{color:var(--notice-accent)}
.event-notice-body{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:0 9px}.event-notice-body>.event-notice-message{grid-column:1;grid-row:1}.event-notice-body>.event-notice-code{display:none}.event-notice-body:not(:has(>.event-notice-details)){grid-template-columns:minmax(0,1fr) auto}.event-notice-body:not(:has(>.event-notice-details))>.event-notice-actions{grid-column:2}.event-notice-message{margin:0!important;padding:0!important;color:inherit!important;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:500;font-size:14px;line-height:1.6}.event-notice-code{margin:4px 0 0!important;padding:0!important;color:var(--notice-muted)!important;font-size:11px;font-weight:400;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.event-notice-actions{grid-column:3;grid-row:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;justify-self:end;gap:6px 12px;margin:0;max-width:260px}
.event-notices-host .event-notice-action,.event-notices-host .event-notice-collapse,.event-notices-host .event-notices-close{font:inherit!important;box-sizing:border-box!important;box-shadow:none!important;cursor:pointer!important;min-width:0!important;min-height:0!important;margin:0!important;letter-spacing:normal!important;line-height:1.35!important;transform:none!important;transition:color 120ms ease,background-color 120ms ease!important}
.event-notices-host .event-notice-action{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;padding:5px 0!important;background:transparent!important;border:0!important;border-radius:5px!important;color:#e1e8e4!important;font-size:13px!important;font-weight:500!important;height:auto!important;width:auto!important;white-space:nowrap}
.event-notices-host .event-notice-action.is-primary{padding:6px 11px!important;background:#80dfc6!important;color:#10382d!important;font-weight:700!important}.event-notices-host .event-notice-action.is-quiet{color:#b0b8b4!important}.event-notices-host .event-notice-action:not(.is-primary):hover{color:#80dfc6!important}.event-notices-host .event-notice-export{width:28px!important;height:28px!important;padding:4px!important}.event-notice-export svg{width:18px;height:18px}
.event-notices-host .event-notice-collapse,.event-notices-host .event-notices-close{display:flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;padding:4px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#acb4af!important}.event-notices-host .event-notice-collapse{position:absolute;right:9px;top:10px}.event-notice-collapse svg,.event-notices-close svg{width:19px;height:19px}.event-notices-host .event-notice-collapse:hover,.event-notices-host .event-notices-close:hover{color:#f0f1ef!important;background:transparent!important}
.event-notices-host button:focus-visible,.event-notices-host summary:focus-visible{outline:2px solid #80dfc6!important;outline-offset:3px!important}.event-notices-host button:disabled{cursor:wait!important;opacity:.5!important}
.event-notice-details{grid-column:2;grid-row:1;align-self:center;margin:0;color:var(--notice-muted);font-size:12px;line-height:1.5}.event-notice-details[open]{grid-column:1/-1;grid-row:2;margin-top:7px}.event-notice-details summary{display:inline-flex!important;align-items:center;justify-content:center;width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;padding:3px!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--notice-muted)!important;cursor:pointer;list-style:none!important;user-select:none;vertical-align:middle}.event-notice-details summary::-webkit-details-marker{display:none}.event-notice-details summary>svg{display:block;width:17px;height:17px}.event-notice-details summary:hover{color:var(--notice-accent)!important}.event-notice-details pre{max-height:160px;overflow:auto;margin:8px 0 0;padding:0;border:0;background:transparent;color:#b9c3bd;font-family:ui-monospace,monospace;font-size:11px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.event-notice-working{display:inline-flex;align-items:center;gap:7px;color:var(--notice-muted);font-size:12px}.event-notice-working:before{content:"";width:11px;height:11px;border:1.5px solid #6d7a72;border-top-color:#80dfc6;border-radius:50%;animation:event-notice-spin 700ms linear infinite}
.event-notices-panel{position:absolute;right:var(--notice-edge);top:56px;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 72px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #484d49;border-radius:15px;background:#202321;box-shadow:0 18px 64px #0008;pointer-events:auto;outline:none;animation:event-notice-enter 180ms cubic-bezier(.2,.75,.3,1) both}
.event-notices-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:14px 16px;border:0;border-bottom:1px solid #3a413c;background:transparent;color:#f0f1ef}.event-notices-head h2{display:flex;align-items:center;gap:9px;margin:0!important;padding:0!important;font-size:15px!important;line-height:1.5!important;font-weight:700!important;color:inherit!important}.event-notices-total{color:#b0b8b4;font-size:12px;font-weight:400;font-variant-numeric:tabular-nums}.event-notices-list{overflow:auto;overscroll-behavior:contain;padding:0 16px;scrollbar-width:thin}.event-notices-panel .event-notice-card{border:0;border-radius:0;border-bottom:1px solid #3a413c;padding:12px 0;background:transparent;box-shadow:none;animation:none}.event-notices-panel .event-notice-card:last-child{border-bottom:0}.event-notices-empty{margin:0;padding:24px 0;color:#b0b8b4;text-align:center;font-size:13px}
@keyframes event-notice-enter{from{opacity:0;translate:0 -18px}to{opacity:1;translate:0 0}}@keyframes event-notice-spin{to{rotate:1turn}}
@media(max-width:600px){.event-notices-host{--notice-edge:12px}.event-notices-stack{width:calc(100vw - 24px);top:8px}.event-notices-panel{top:50px;width:calc(100vw - 24px);max-height:calc(100dvh - 62px)}.event-notice-card{padding:11px 35px 11px 11px;gap:8px}.event-notice-body{column-gap:7px}.event-notice-message{font-size:13px}.event-notices-trigger{right:50px;top:9px}.event-notice-actions{gap:5px 9px;max-width:190px}.event-notices-panel .event-notice-card{padding:11px 0}}
@media(prefers-reduced-motion:reduce){.event-notices-host *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.event-notice-working:before{border-color:#80dfc6}}

.event-notices-host::backdrop{display:none;background:transparent;pointer-events:none}

/* Only acknowledged success is a floating surface; errors stay in the red center. */
.event-notices-stack .event-notice-success{border-color:#00d6b5;background:#00d6b5;color:#102620;padding-right:14px}
.event-notices-stack .event-notice-success .event-notice-symbol{color:#102620}
.event-notices-stack .event-notice-success .event-notice-message{font-weight:700}
.event-notices-stack .event-notice-success .event-notice-body{grid-template-columns:minmax(0,1fr) auto}
.event-notices-stack .event-notice-success .event-notice-actions{flex-wrap:nowrap;grid-column:2;max-width:none;gap:8px}
.event-notices-stack .event-notice-success .event-notice-action{color:#102620!important;font-weight:700!important}
.event-notices-stack .event-notice-success .event-notice-action:hover{color:#000!important}
.event-notices-host .event-notice-undo{width:28px!important;height:28px!important;padding:3px!important;flex:0 0 28px}
.event-notice-undo svg{width:21px;height:21px;display:block}
.event-notice-countdown{min-width:2.2ch;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.event-notices-stack .event-notice-success .event-notice-working{color:#183c32}
.event-notices-stack .event-notice-success .event-notice-working:before{border-color:#246c5b;border-top-color:#102620}
.event-notices-host .event-notice-undo:disabled{cursor:default!important;opacity:.38!important}
@media(max-width:420px){.event-notices-stack .event-notice-success .event-notice-body{grid-template-columns:minmax(0,1fr)}.event-notices-stack .event-notice-success .event-notice-actions{grid-column:1;grid-row:2;margin-top:4px}.event-notices-stack .event-notice-success .event-notice-message{grid-column:1}}

/* Master counter stays in the header flow immediately before terminal shortcuts. */
html body.event-console-page:has(#master-sidebar)>header>[data-notification-anchor]{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:32px!important;min-height:32px!important;position:relative;overflow:visible}
html body.event-console-page:has(#master-sidebar)>header>[data-notification-anchor]>.event-notices-trigger.is-attached{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;margin:0!important;transform:none!important;translate:none!important;z-index:auto!important}
html body.event-console-page:has(#master-sidebar)>header>#terminal-shortcuts{margin-inline-start:0!important}
