/* BARMO — banner e painel de persistência multi-PC */
.barmo-persist-banner {
  margin: 0 0 1.25rem;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  background: linear-gradient(135deg, rgba(16, 42, 67, 0.95) 0%, rgba(23, 59, 93, 0.88) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.barmo-persist-banner.is-compact {
  margin-bottom: 1rem;
}

.barmo-persist-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 18px;
}

.barmo-persist-banner-text {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e8eef6;
  font-size: 13px;
  line-height: 1.45;
}

.barmo-persist-banner-text strong {
  color: #f5d78e;
  font-size: 14px;
}

.barmo-persist-banner-text code {
  font-size: 12px;
  color: #c9dff5;
}

.barmo-persist-banner-meta {
  font-size: 12px;
  opacity: 0.9;
}

.barmo-persist-banner-meta.warn {
  color: #ffb4a8;
}

.barmo-persist-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.barmo-persist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.barmo-persist-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(217, 164, 65, 0.45);
  color: #fff;
}

.barmo-persist-btn.primary {
  background: rgba(217, 164, 65, 0.22);
  border-color: rgba(217, 164, 65, 0.55);
  color: #fff;
}

.barmo-persist-btn.primary:hover {
  background: rgba(217, 164, 65, 0.35);
}

.barmo-persist-btn.sm {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
}

.barmo-persist-btn.link {
  border-style: dashed;
}

.barmo-persist-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barmo-persist-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-subtle, #5a6b7d);
  line-height: 1.5;
}

.barmo-persist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.barmo-persist-output {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-elevated, #f4f7fb);
  border: 1px solid var(--line, #d8e0ea);
  font-size: 11px;
  line-height: 1.45;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
}

.barmo-persist-migrate-list {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  font-size: 13px;
}

.barmo-persist-migrate-list li {
  margin-bottom: 6px;
}

.barmo-persist-banner.is-empty {
  border-color: rgba(255, 140, 120, 0.55);
  box-shadow: 0 10px 32px rgba(180, 60, 40, 0.18);
}

.barmo-persist-banner.is-empty .barmo-persist-banner-inner {
  background: linear-gradient(135deg, rgba(48, 24, 24, 0.92) 0%, rgba(16, 42, 67, 0.95) 100%);
}

.barmo-persist-empty-alert {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 140, 120, 0.45);
  background: rgba(255, 140, 120, 0.1);
  color: #5a2e28;
  font-size: 13px;
  line-height: 1.5;
}

.barmo-persist-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(217, 164, 65, 0.35);
  background: rgba(217, 164, 65, 0.06);
}

.barmo-persist-flow-step {
  flex: 1 1 180px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-subtle, #5a6b7d);
}

.barmo-persist-flow-step strong {
  display: block;
  color: var(--ink, #102a43);
  font-size: 13px;
  margin-bottom: 2px;
}

.barmo-persist-flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(217, 164, 65, 0.22);
  border: 1px solid rgba(217, 164, 65, 0.45);
  color: #8a5a10;
  font-weight: 800;
  font-size: 13px;
}

.barmo-persist-flow-arrow {
  align-self: center;
  color: rgba(217, 164, 65, 0.7);
  font-size: 20px;
  font-weight: 800;
}

.barmo-persist-output.is-success {
  border-color: rgba(46, 125, 50, 0.35);
  background: rgba(46, 125, 50, 0.06);
}

.barmo-persist-output.is-error {
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.06);
}

.barmo-transfer-section {
  padding-top: 0;
}

.barmo-transfer-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(217, 164, 65, 0.4);
  background: linear-gradient(135deg, rgba(255, 248, 235, 0.95) 0%, rgba(244, 247, 251, 0.98) 100%);
  box-shadow: 0 10px 28px rgba(16, 42, 67, 0.08);
}

.barmo-transfer-card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.barmo-transfer-icon {
  font-size: 28px;
  line-height: 1;
  color: #d9a441;
}

.barmo-transfer-title {
  margin: 0 0 4px;
  font-size: 17px;
  color: #102a43;
}

.barmo-transfer-lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5a6b7d;
}

.barmo-transfer-steps-inline {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.55;
  color: #334e68;
}

.barmo-transfer-steps-inline li {
  margin-bottom: 6px;
}

.barmo-transfer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.barmo-transfer-card .barmo-persist-btn {
  color: #102a43;
  border-color: rgba(16, 42, 67, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.barmo-transfer-card .barmo-persist-btn.primary {
  color: #fff;
  background: rgba(16, 42, 67, 0.92);
  border-color: rgba(217, 164, 65, 0.45);
}

@media (max-width: 640px) {
  .barmo-persist-flow {
    flex-direction: column;
  }

  .barmo-persist-flow-arrow {
    transform: rotate(90deg);
    align-self: center;
  }

  .barmo-persist-banner-inner {
    flex-direction: column;
  }

  .barmo-persist-banner-actions {
    width: 100%;
  }

  .barmo-persist-btn {
    flex: 1 1 auto;
  }
}
