/* ReelFusion Studio — Minimal Phone Farm Bridge UI (CSP-Strict) */

.rf-pf-minimal[hidden],
.rf-pf-minimal [hidden] {
  display: none !important;
}

.rf-pf-minimal {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink, #f4f4f8);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Card */
.rf-pf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: #171922;
  border: 1px solid var(--line, #2b2c36);
  border-radius: 16px;
}

.rf-pf-head-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rf-pf-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rf-pf-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.rf-pf-status-pill.is-offline {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.28);
}

.rf-pf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.rf-pf-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.rf-pf-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted, #9a9cae);
}

.rf-pf-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rf-pf-open-btn {
  appearance: none;
  background: var(--lime, #dcf993);
  color: #111217;
  border: 1px solid var(--lime, #dcf993);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease;
}

.rf-pf-open-btn:hover {
  background: #e6fbaa;
  border-color: #e6fbaa;
  transform: translateY(-1px);
}

.rf-pf-ghost-btn {
  appearance: none;
  background: #222532;
  color: #e2e8f0;
  border: 1px solid #323648;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.14s ease;
}

.rf-pf-ghost-btn:hover {
  background: #2b2f40;
}

/* Minimal Section Box */
.rf-pf-box {
  background: #171922;
  border: 1px solid var(--line, #2b2c36);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rf-pf-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rf-pf-box-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.rf-pf-box-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted, #9a9cae);
}

/* Simple Provider Switch */
.rf-pf-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .rf-pf-switch {
    grid-template-columns: 1fr;
  }
}

.rf-pf-switch-btn {
  appearance: none;
  background: #1c1f2b;
  border: 1px solid #2c3144;
  border-radius: 12px;
  padding: 13px 16px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: all 0.14s ease;
}

.rf-pf-switch-btn:hover {
  border-color: #464d6b;
  color: #ffffff;
}

.rf-pf-switch-btn.is-active {
  background: rgba(176, 160, 255, 0.1);
  border-color: var(--purple, #b0a0ff);
  color: #ffffff;
}

.rf-pf-switch-check {
  font-size: 11.5px;
  color: var(--purple, #b0a0ff);
  font-weight: 700;
}

/* Minimal Device Rows */
.rf-pf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rf-pf-row {
  background: #1c1f2b;
  border: 1px solid #2b3042;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rf-pf-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rf-pf-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #13151e;
  border: 1px solid #292e40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.rf-pf-row-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.rf-pf-row-meta {
  font-size: 12px;
  color: var(--muted, #9a9cae);
  margin-top: 2px;
}

.rf-pf-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rf-pf-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #13151e;
  border: 1px solid #2a2f42;
  color: #cbd5e1;
}

.rf-pf-tag-ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.rf-pf-tag-busy {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}

.rf-pf-empty {
  padding: 20px;
  text-align: center;
  color: var(--muted, #9a9cae);
  font-size: 13px;
  background: #14161f;
  border: 1px dashed #2b3042;
  border-radius: 12px;
}
