/* Shared action feedback: outside the page flow, so tables and forms do not jump. */
.lp-notice-tray {
  position: fixed; z-index: 20000; top: 20px; right: 24px;
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto;
  padding: 4px; pointer-events: none; box-sizing: border-box;
}
.lp-notice-tray:empty { display: none; }
.lp-notice-tray .lp-notice {
  --notice-color: #356b87; --notice-tint: #edf5fa;
  display: flex; align-items: flex-start; gap: 12px; position: relative;
  padding: 16px; border: 1px solid #dce7e1; border-left: 3px solid var(--notice-color);
  border-radius: 12px; background: #fff; color: #244437;
  box-shadow: 0 8px 28px rgb(26 57 44 / 12%); pointer-events: auto;
  font-family: inherit; font-size: 14px; line-height: 1.5; text-align: left;
  box-sizing: border-box; animation: lp-notice-enter 160ms ease-out;
}
.lp-notice-tray [data-notice-level="success"] { --notice-color: #13775b; --notice-tint: #eaf6f0; }
.lp-notice-tray [data-notice-level="warning"] { --notice-color: #99600b; --notice-tint: #fff5e4; }
.lp-notice-tray [data-notice-level="error"] { --notice-color: #b03e3e; --notice-tint: #fceeee; }
.lp-notice-icon {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  border-radius: 9px; color: var(--notice-color); background: var(--notice-tint);
}
.lp-notice-icon::before { content: 'i'; font-size: 17px; font-weight: 700; }
[data-notice-level="success"] > .lp-notice-icon::before { content: '\2713'; }
[data-notice-level="error"] > .lp-notice-icon::before,
[data-notice-level="warning"] > .lp-notice-icon::before { content: '!'; }
.lp-notice-text { flex: 1; min-width: 0; padding-top: 4px; overflow-wrap: anywhere; white-space: pre-line; }
.lp-notice-tray .lp-notice-close {
  display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px;
  margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent;
  color: #678074; font-family: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.lp-notice-tray .lp-notice-close[hidden] { display: none; }
.lp-notice-tray .lp-notice-close:hover { background: #edf4f0; color: #164e3c; }
.lp-notice-tray .lp-notice-close:focus-visible { outline: 2px solid #13775b; outline-offset: 2px; }
@keyframes lp-notice-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Existing decision dialogs keep their actions and receive the same visual language. */
body .swal2-container .swal2-popup {
  width: 420px; padding: 26px; border: 1px solid #dce7e1; border-radius: 16px;
  font-family: inherit; color: #244437; box-shadow: 0 20px 70px rgb(20 51 37 / 18%);
}
body .swal2-container .swal2-title { padding: 0; font-size: 21px; line-height: 1.35; font-weight: 650; color: #244437; }
body .swal2-container .swal2-html-container { margin: 12px 0 0; padding: 0; font-size: 14px; line-height: 1.6; color: #60766b; }
body .swal2-container .swal2-icon { margin: 0 auto 20px; }
body .swal2-container .swal2-actions { margin: 22px 0 0; gap: 10px; }
body .swal2-container .swal2-styled.swal2-confirm,
body .swal2-container .swal2-confirm.my-green-button {
  background: #13775b !important; border: 1px solid #13775b !important;
  color: #fff !important; border-radius: 8px; padding: 10px 20px; margin: 0; font-size: 14px;
}
body .swal2-container .swal2-styled.swal2-cancel {
  background: #f1f6f3; color: #355749; border: 1px solid #dce7e1;
  border-radius: 8px; padding: 10px 20px; margin: 0; font-size: 14px;
}
@media (max-width: 600px) { .lp-notice-tray { top: 12px; right: 12px; width: calc(100vw - 24px); } }
@media (prefers-reduced-motion: reduce) { .lp-notice-tray .lp-notice { animation: none; } }
.lp-confirm-dialog {
  width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  margin: auto; padding: 26px; box-sizing: border-box; border: 1px solid #dce7e1;
  border-radius: 16px; background: #fff; color: #244437; font-family: inherit;
  box-shadow: 0 20px 70px rgb(20 51 37 / 18%);
}
.lp-confirm-dialog::backdrop { background: rgb(20 41 32 / 32%); }
.lp-confirm-dialog h2 { margin: 0; color: #244437; font-size: 21px; line-height: 1.35; }
.lp-confirm-dialog p { margin: 12px 0 24px; color: #60766b; font-size: 14px; line-height: 1.6; }
.lp-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.lp-confirm-actions button { margin: 0; padding: 10px 18px; border: 1px solid #dce7e1; border-radius: 8px; background: #f1f6f3; color: #355749; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.lp-confirm-actions .lp-confirm-accept { background: #13775b; border-color: #13775b; color: #fff; }
.lp-confirm-actions button:focus-visible { outline: 2px solid #13775b; outline-offset: 3px; }
