.magic-ai-complete-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.magic-ai-complete-toast.is-visible { opacity: 1; transform: translateY(0); }
.magic-ai-complete-toast strong { font-size: 15px; }
.magic-ai-complete-toast span { font-size: 13px; line-height: 1.4; }

.magic-ai-review-panel {
  margin: -4px -4px 24px;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fbff;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
}
.magic-ai-review-panel.is-complete { border-color: #a7f3d0; background: #f0fdf4; }
.magic-ai-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.magic-ai-review-header > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.magic-ai-review-header h3 { margin: 0; color: #0f172a; font-size: 17px; }
.magic-ai-review-header p { margin: 3px 0 0; color: #475569; font-size: 13px; }
.magic-ai-success-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #059669;
  color: white;
  font-weight: 900;
  font-size: 18px;
}
.magic-ai-collapse-button,
.magic-ai-secondary-button,
.magic-ai-primary-button,
.magic-ai-full-form-button,
.magic-ai-address-result,
.magic-ai-field-link {
  font: inherit;
  cursor: pointer;
}
.magic-ai-collapse-button {
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.magic-ai-review-body { padding: 18px; }
.magic-ai-guidance { margin: 0 0 15px; color: #475569; font-size: 13px; line-height: 1.55; }
.magic-ai-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.magic-ai-quick-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: white;
}
.magic-ai-quick-field.is-filled { opacity: 0.55; border-color: #d1fae5; background: #f0fdf4; }
.magic-ai-quick-field > span { color: #334155; font-size: 12px; font-weight: 800; }
.magic-ai-quick-field input,
.magic-ai-quick-field select,
.magic-ai-quick-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: white;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
}
.magic-ai-quick-field textarea { min-height: 84px; resize: vertical; }
.magic-ai-quick-field input:focus,
.magic-ai-quick-field select:focus,
.magic-ai-quick-field textarea:focus { outline: 2px solid #93c5fd; border-color: #2563eb; }
.magic-ai-field-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}
.magic-ai-warnings {
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
}
.magic-ai-warnings summary { cursor: pointer; font-size: 13px; font-weight: 800; }
.magic-ai-warnings ul { margin: 10px 0 0; padding-left: 20px; font-size: 12px; line-height: 1.5; }
.magic-ai-cep-tools {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  background: white;
}
.magic-ai-cep-tools h4 { margin: 0; color: #0f172a; font-size: 14px; }
.magic-ai-cep-tools p { margin: 5px 0 12px; color: #64748b; font-size: 12px; line-height: 1.45; }
.magic-ai-cep-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.magic-ai-primary-button,
.magic-ai-secondary-button,
.magic-ai-full-form-button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.magic-ai-primary-button { border: 1px solid #0f172a; background: #0f172a; color: white; }
.magic-ai-secondary-button { border: 1px solid #cbd5e1; background: white; color: #334155; }
.magic-ai-full-form-button {
  width: 100%;
  margin-top: 16px;
  border: 1px solid #334155;
  background: #334155;
  color: white;
}
.magic-ai-cep-status { min-height: 20px; margin-top: 10px; color: #475569; font-size: 12px; }
.magic-ai-cep-status.is-success { color: #047857; font-weight: 700; }
.magic-ai-cep-status.is-error { color: #be123c; font-weight: 700; }
.magic-ai-address-results { display: grid; gap: 7px; margin-top: 9px; }
.magic-ai-address-result {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #eff6ff;
  color: #1e3a8a;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.magic-ai-address-result:hover { border-color: #60a5fa; background: #dbeafe; }

@media (max-width: 700px) {
  .magic-ai-complete-toast { top: 84px; right: 16px; }
  .magic-ai-review-panel { margin: 0 0 20px; }
  .magic-ai-review-header { align-items: flex-start; padding: 15px; }
  .magic-ai-review-body { padding: 15px; }
  .magic-ai-quick-grid { grid-template-columns: 1fr; }
  .magic-ai-cep-actions { display: grid; grid-template-columns: 1fr; }
  .magic-ai-primary-button,
  .magic-ai-secondary-button { width: 100%; }
}
