#rf-host {
  position: fixed;
  z-index: 20;
  display: none;
  overflow: auto;
  box-sizing: border-box;
  padding: 18px 22px 48px;
}
#rf-host.on { display: block; }
#rf-host, #rf-modal, #rf-2fa {
  font-family: Roboto, "Segoe UI", sans-serif;
}
.rf-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.rf-sub { opacity: .72; margin: 0 0 16px; font-size: 14px; }
.rf-card {
  border: 1px solid rgba(127,127,127,.28);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(127,127,127,.06);
}
.rf-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rf-split { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
@media (max-width: 900px) { .rf-split { grid-template-columns: 1fr; } }
.rf-input, .rf-select, .rf-area {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(127,127,127,.45);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  min-width: 0;
}
.rf-input, .rf-select { height: 38px; }
.rf-area { width: 100%; min-height: 72px; resize: vertical; }
.rf-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
  background: #2f9e4f;
  color: #fff;
}
.rf-btn.ghost { background: transparent; color: inherit; border: 1px solid rgba(127,127,127,.45); }
.rf-btn.warn { background: #b42318; }
.rf-btn:disabled { opacity: .55; cursor: default; }
.rf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rf-table th, .rf-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(127,127,127,.22); vertical-align: middle; }
.rf-table th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.rf-list button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.rf-list button.active, .rf-list button:hover { background: rgba(47,158,79,.16); }
.rf-pill {
  position: fixed;
  z-index: 40;
  top: 10px;
  right: 16px;
  background: #173222;
  color: #d9ffe4;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rf-toast {
  position: fixed;
  z-index: 80;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
#rf-modal, #rf-2fa {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#rf-modal.on, #rf-2fa.on { display: flex; }
.rf-dialog {
  width: min(520px, 100%);
  background: #1e1e1e;
  color: #f2f2f2;
  border-radius: 14px;
  padding: 18px;
}
.rf-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 10px;
}
.rf-bubble { padding: 8px 10px; border-radius: 10px; white-space: pre-wrap; }
.rf-bubble.user { background: rgba(47,158,79,.2); align-self: flex-end; }
.rf-bubble.bot { background: rgba(127,127,127,.15); }
.rf-switch { display: flex; align-items: center; gap: 10px; }
.rf-switch input { width: 42px; height: 22px; }
.rf-qr { width: 180px; height: 180px; background: #fff; border-radius: 8px; }
.rf-create {
  position: fixed;
  z-index: 35;
  top: 74px;
  right: 24px;
}
