* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px; color: #1f2937; background: #fff;
  display: flex; flex-direction: column;
}
.hidden { display: none !important; }

.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-bottom: 1px solid #e5e7eb; flex: 0 0 auto;
}
.title { font-weight: 600; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.pill-wait { background: #fef3c7; color: #92400e; }
.pill-ok   { background: #d1fae5; color: #065f46; }
.pill-err  { background: #fee2e2; color: #991b1b; }

.pending {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #f0fdfa; border-bottom: 1px solid #ccfbf1; flex: 0 0 auto;
}
.pending-text { flex: 1; min-width: 0; }
.label { font-size: 11px; color: #6b7280; }
.number { font-size: 15px; font-weight: 600; }
.record { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn {
  border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer;
  background: #0d9488; color: #fff; font-weight: 600;
}
.btn:hover { background: #0f766e; }
.btn-small { padding: 5px 10px; }

.notice {
  padding: 8px 10px; background: #fff7ed; color: #9a3412;
  border-bottom: 1px solid #fed7aa; flex: 0 0 auto;
}

#bp-widget { flex: 1 1 auto; display: flex; min-height: 300px; }
#bp-widget iframe { flex: 1 1 auto; width: 100%; height: 100%; border: 0; }

.debug { flex: 0 0 auto; border-top: 1px solid #e5e7eb; padding: 6px 10px; max-height: 30%; overflow: auto; }
.manual { display: flex; gap: 6px; margin-bottom: 6px; }
.manual input { flex: 1; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 6px; }
#log { margin: 0; font-size: 11px; white-space: pre-wrap; word-break: break-all; color: #374151; }
