/* Feedback shares the footer with actions; neither floats over editable content. */
.layout-notice {
  display:flex; align-items:flex-start; gap:12px; width:100%; padding:12px 14px;
  border:1px solid #cbdcf4; border-radius:10px; background:#f4f8ff; color:#193760;
  box-shadow:0 1px 2px #102d5812; font-size:13px; text-align:left; overflow-wrap:anywhere;
}
.layout-notice .notice-content { flex:1; min-width:0; white-space:pre-line; }
.layout-notice .notice-title { display:block; font-size:13px; font-weight:400; line-height:1.45; }
.layout-notice .notice-body { margin:2px 0 0; font-size:13px; line-height:1.45; }
.layout-notice .notice-detail { margin:4px 0 0; color:#526c91; font-size:12px; line-height:1.4; }
.layout-notice .notice-action { display:inline-flex; margin-top:8px; padding:0; border:0; background:none; color:#075df1; font:inherit; font-weight:400; text-decoration:underline; cursor:pointer; }
.layout-notice .notice-close { display:grid; place-items:center; flex:none; width:28px; height:28px; padding:0; border:0; border-radius:5px; background:transparent; color:#526c91; font:inherit; font-size:20px; cursor:pointer; }
.layout-notice.notice-error { border-color:#f4b8b4; background:#fff5f4; color:#650b05; }
.layout-notice.notice-warning { border-color:#f2d28c; background:#fff9e9; color:#614600; }
.layout-notice.notice-error .notice-icon { background:#b42318; }
.layout-notice.notice-warning .notice-icon { background:#956400; }
.layout-notice .notice-close:hover { background:#13213b0d; }
.layout-notice .notice-action:focus-visible, .layout-notice .notice-close:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.notification-stack { position:fixed; right:20px; bottom:20px; z-index:1000; display:grid; gap:10px; width:min(390px,calc(100vw - 32px)); }
.connect-notification { display:flex; align-items:center; gap:10px; min-height:48px; padding:10px 12px; border:1px solid #dce3ed; border-top:2px solid #cbdcf4; border-radius:8px; background:#fff; color:var(--text); box-shadow:0 6px 18px #102d5820; animation:notification-enter .18s ease-out; }
.connect-notification .notice-icon { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:50%; color:#fff; font-size:15px; line-height:1; }
.connect-notification .notice-content { flex:1; min-width:0; }
.connect-notification .notice-title { display:block; font-size:13px; font-weight:400; line-height:1.4; }
.connect-notification .notice-body { margin:0; font-size:13px; font-weight:400; line-height:1.45; overflow-wrap:anywhere; }
.connect-notification .notice-close { display:grid; place-items:center; flex:none; width:24px; height:24px; padding:0; border:0; border-radius:4px; background:transparent; color:#526c91; font:inherit; font-size:18px; cursor:pointer; }
.notification-success { border-top-color:#129e58; }.notification-success .notice-icon { background:#129e58; }
.notification-info { border-color:#cbdcf4; }.notification-info .notice-icon { background:#1e478e; }
.notification-warning { border-color:#f2d28c; background:#fffdf5; }.notification-warning .notice-icon { background:#956400; }
.notification-error { border-top-color:#dc263b; background:#fff5f5; }.notification-error .notice-icon { background:#dc263b; }
@keyframes notification-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.feedback-footer, #layout-editor .feedback-footer, #map-editor .feedback-footer {
  display:flex; align-items:center; justify-content:flex-end; gap:16px;
  flex-wrap:wrap; flex-shrink:0; min-height:54px; padding:8px 18px; margin:0;
  background:#fff; border-top:1px solid var(--line); color:var(--text);
}
.feedback-messages { display:flex; flex:1 1 260px; min-width:0; flex-direction:column; align-items:flex-start; gap:8px; }
.feedback-buttons { display:flex; flex:0 1 auto; flex-wrap:wrap; min-width:0; max-width:100%; align-items:center; justify-content:flex-end; gap:12px; }
.feedback-footer .layout-notice {
  display:flex; align-items:center; gap:10px; max-width:640px; width:fit-content;
  margin:0 auto 0 0; padding:0; border:0; border-radius:0; box-shadow:none;
  background:transparent; color:var(--text); font-size:13px; text-align:left; overflow-wrap:anywhere;
}
.feedback-footer .notice-content { flex:1; min-width:0; white-space:pre-line; }
.feedback-footer .notice-title { font-size:13px; font-weight:400; line-height:1.5; }
.notice-info .notice-icon { background:#1e478e; }
.notice-warning .notice-icon { background:#956400; }
.feedback-footer .notice-action { display:inline-block; margin-top:4px; }
.feedback-footer .notice-close { width:28px; height:28px; }
.feedback-footer .notice-error {
  align-items:flex-start; gap:16px; width:100%; max-width:680px; box-sizing:border-box;
  padding:8px 12px 8px 20px; border:1px solid #ffdadd; border-radius:10px;
  background:#fff5f5;
}
.feedback-footer .notice-error .notice-icon { width:22px; height:22px; margin-top:7px; background:#b42318; }
.feedback-footer .notice-error .notice-title { color:#650b05; font-size:13px; font-weight:400; line-height:1.5; }
.feedback-footer .notice-error .notice-body { margin:0; font-size:12px; line-height:1.5; white-space:pre-line; }
.feedback-footer .notice-detail { margin:3px 0 0; color:#526c91; font-size:11px; line-height:1.5; }
.feedback-footer .notice-error .notice-close { width:22px; height:22px; font-size:18px; }
.feedback-footer .generation-notice { margin:0; padding:0; border:0; background:transparent; max-width:640px; text-align:left; justify-content:flex-start; }
.feedback-footer #validation-errors { margin:0; width:100%; max-width:640px; text-align:left; }
.feedback-messages { max-height:min(32dvh,260px); overflow:auto; overscroll-behavior:contain; }
/* A separate scroll area leaves the footer visible even in a long editor. */
#layout-editor[open], #map-editor[open] { display:flex; flex-direction:column; overflow:hidden; }
#layout-editor .editor-content, #map-editor .editor-content { flex:1; min-height:0; overflow:auto; max-height:none; }
#layout-editor .editor-header, #map-editor .editor-header { flex-shrink:0; }
.list-notice:not([hidden]) { margin:8px 15px; width:calc(100% - 30px); }
.feedback-footer .layouts-loading { position:static; display:block; margin-right:auto; background:transparent; }
.feedback-footer .layouts-loading-indicator { display:flex; min-width:0; min-height:0; padding:0; border:0; gap:10px; }
.feedback-footer .layouts-loading-icon { width:20px; height:20px; border-width:2px; }
.feedback-footer .layouts-loading-icon::after { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
[aria-invalid=true] { outline:2px solid #b42318; outline-offset:1px; }
@media(max-width:600px) {
  .feedback-footer, #layout-editor .feedback-footer, #map-editor .feedback-footer { gap:8px; padding:8px 10px; }
  .feedback-messages { flex-basis:100%; }
  .feedback-messages:not(:has(> :not([hidden]))) { display:none; }
  .feedback-buttons { width:100%; }
  .feedback-footer .layout-notice { max-width:100%; }
  .feedback-buttons { flex-wrap:wrap; }
  .notification-stack { right:10px; bottom:10px; width:calc(100vw - 20px); }
}
@media(prefers-reduced-motion:reduce) {
  .feedback-footer .layouts-loading-icon, .feedback-footer .notice-progress .notice-icon { animation:none; }
  .connect-notification { animation:none; }
}
