.feedback-center {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 1100;
  width: min(390px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: 0 8px 30px #142e3d20;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.feedback-center[data-type]:not([data-type="idle"]) {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.feedback-center .feedback-control,
.feedback-center a {
  pointer-events: auto;
}
.feedback-kind {
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
  background: var(--canvas);
  color: var(--label);
}
.feedback-current {
  flex: 1;
  min-width: 0;
  max-height: 100px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.feedback-control {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--label);
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.feedback-center[data-type="success"] .feedback-kind { color: var(--primary); background: var(--accent-soft); }
.feedback-center[data-type="warning"] .feedback-kind,
.feedback-center[data-type="error"] .feedback-kind { color: #b45309; background: #fff4db; }
.feedback-center[data-type="progress"] .feedback-kind { color: #2563eb; background: #eaf2ff; }
.ui-confirm { max-width: 480px; padding: 26px; }
.ui-dialog-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ui-dialog-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); font-weight: 700; }
.ui-confirm-message { white-space: pre-line; line-height: 1.85; color: var(--label); overflow-wrap: anywhere; margin: 0 0 24px; }
.ui-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.ui-history-item { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.composer-mode-switch { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.composer-mode-switch button { border: 0; padding: 8px 16px; border-radius: 7px; background: transparent; color: var(--label); font-size: 13px; }
.composer-mode-switch button[aria-pressed="true"] { background: var(--primary); color: white; }
#delivery-form[data-mode="fast"] [data-advanced] { display: none !important; }
.composer-actions { position: sticky; bottom: 12px; z-index: 5; padding: 12px; margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 4px 18px #182f3b12; }
.composer-mode-help { font-size: 12px; color: var(--muted); margin: 10px 0 22px; }
.merge-plan { border: 1px solid var(--line); border-radius: 9px; padding: 14px; margin-top: 14px; background: var(--canvas); }
.merge-plan p { margin: 0 0 6px; font-size: 12px; overflow-wrap: anywhere; }
.merge-plan p:last-child { margin-bottom: 0; }
body > .feedback-center { top: 74px; }
@media (max-width: 767px) {
  .feedback-center { top: 74px; right: 12px; padding: 12px; gap: 7px; width: min(370px, calc(100vw - 24px)); }
  .feedback-current { font-size: 11px; }
  .composer-mode-switch button { padding: 8px 12px; }
  .composer-actions { bottom: 8px; }
}



.composer-actions .btn { margin-top: 8px !important; }
.composer-actions .btn:first-child { margin-top: 0 !important; }
