.app-notice {
  position: fixed;
  z-index: 300;
  top: 78px;
  left: 50%;
  width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px 17px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #abefc6;
  color: #065f46;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .24);
  animation: noticeDrop .28s ease-out;
}
.app-notice.danger { border-color: #fda29b; background: #fff7f6; color: #9f1d16; }
.app-notice.warning { border-color: var(--ds-warning); background: var(--ds-warning-soft); color: var(--ds-warning); }
.app-notice.warning .notice-symbol { background: var(--ds-warning-soft); color: var(--ds-warning); border: 1px solid currentColor; }
.app-notice strong { display: block; font-size: 15px; margin: 0 0 3px; }
.app-notice p { margin: 0; font-size: 13px; color: inherit; }
.notice-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #dcfae6; color: #027a48; font-weight: 900; }
.app-notice.danger .notice-symbol { background: #fee4e2; color: #b42318; }
.notice-close { border: 0; background: transparent; color: currentColor; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 2px; }
.field-invalid { border-color: #d92d20 !important; background: #fff7f6 !important; box-shadow: 0 0 0 4px rgba(217, 45, 32, .15) !important; animation: fieldShake .34s ease-in-out; }
.field-invalid:focus { outline: none; }
@keyframes noticeDrop { from { opacity: 0; transform: translate(-50%, -18px) scale(.98); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes fieldShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (max-width: 600px) {
  .app-notice { top: 70px; grid-template-columns: auto 1fr; }
  .notice-close { position: absolute; right: 9px; top: 7px; }
  .app-notice > div { padding-right: 18px; }
}
