#memoryLimitNotice { position: fixed; inset: 0; margin: auto; padding: 0; width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; border: 1px solid #774432; border-radius: 10px; background: #241e19; color: #e8e0d5; box-shadow: 0 24px 100px #000b; }
#memoryLimitNotice::backdrop { background: #000b; backdrop-filter: blur(4px); }
#memoryLimitNotice[open] { display: block; animation: memory-popup-in .16s ease-out; }
#memoryLimitNotice[hidden] { display: none !important; }
#memoryLimitNotice .memory-limit-card { position: relative; padding: 32px; }
#memoryLimitNotice .memory-limit-copy { min-width: 0; }
#memoryLimitNotice h2 { margin: 0 24px 14px 0; font-size: 23px; font-weight: 800; letter-spacing: -.5px; text-transform: none; }
#memoryLimitNotice p { margin: 0; font-size: 13px; line-height: 1.65; color: #cbbba9; }
#memoryLimitNotice .memory-limit-help { margin-top: 12px; color: #a99989; font-size: 12px; }
#memoryLimitNotice [data-memory-feedback]:not(:empty) { margin-top: 8px; color: #edb58c; }
#memoryLimitNotice .memory-limit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#memoryLimitNotice button { padding: 11px 15px; border: 1px solid transparent; background: #df472d; color: #fff6ed; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; transition: background .15s; }
#memoryLimitNotice button:hover:not(:disabled) { background: #f05236; }
#memoryLimitNotice button:focus-visible { outline: 2px solid #ebc794; outline-offset: 3px; }
#memoryLimitNotice button:disabled { opacity: .55; cursor: default; }
#memoryLimitNotice button[data-memory-close] { background: transparent; color: #cbbba9; border-color: #594637; }
#memoryLimitNotice .memory-limit-x { position: absolute; right: 12px; top: 10px; padding: 6px 10px; border: 0 !important; font-size: 22px; }
@keyframes memory-popup-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media(prefers-reduced-motion: reduce) { #memoryLimitNotice[open] { animation: none; } }

.save-cleaner-map-view-note { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #574333; background: #292119; color: #cbbba9; font-size: 12px; line-height: 1.6; }
.save-cleaner-map-view-note[hidden] { display: none; }
.save-cleaner-map-stage.entity-only { background: #1c2320; }
.save-cleaner-map-stage.entity-only .save-cleaner-grid-labels > span b { color: #d4d2ba; font-family: inherit; font-weight: 600; text-shadow: 0 1px 2px #000; }
.save-cleaner-map-stage.entity-only .save-cleaner-grid-lines > span { border-color: #c1bfa32b; }
