/* ==========================================================================
   CLOUDFLARE PAGES: LEAN DEPLOYMENT OBSERVER (v5.1.1)
   Strictly Scoped: .cf-*
   ========================================================================== */

.cf-topbar-deck {
  position: relative;
}

.cf-header-trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.cf-header-trigger:hover svg {
  color: #f38020;
}

.cf-led-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a3a3a3;
  flex-shrink: 0;
  display: inline-block;
}

.cf-led-dot.building {
  background: #fbbf24;
  animation: compilingBadgePulse 1.2s ease-in-out infinite;
}

.cf-led-dot.failed {
  background: #f87171;
}

#cfPagesModal.te-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #0d0d0d4d;
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#cfPagesModal.te-modal-overlay.active {
  display: flex !important;
}

.cf-modal-card {
  width: 90vw;
  max-width: 580px;
  background: #121212;
  border: 1px solid #242424;
  border-radius: 12px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: qsIn 0.15s ease;
  position: relative;
  z-index: 10001;
}

.cf-header {
  padding: 12px 16px;
  background: #0e0e0e;
  border-bottom: 1px solid #1c1c1c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 78vh;
  overflow-y: auto;
}

.cf-zone-card {
  background: #0c0c0c;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* MULTI-TARGET CI/CD GRID */
.cf-targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.cf-target-pill {
  background: #101010;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cf-target-badge {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  background: #181818;
  border: 1px solid #262626;
  color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.cf-target-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cf-target-meta strong {
  font-size: 11px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-target-meta span {
  font-size: 9px;
  color: var(--text-dim, #777777);
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-history-deck {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: #101010;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.cf-branch-zone {
  border-color: #242424;
  background: #0c0c0c;
}

.cf-unlinked-card {
  border-color: #242424;
  background: #0c0c0c;
  gap: 10px;
}

/* SMART RECIPE HUD */
.cf-recipe-card {
  background: #0a0a0a;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-recipe-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid #181818;
}

.cf-recipe-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cf-recipe-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-recipe-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.cf-recipe-label {
  color: var(--text-dim);
  font-size: 10px;
  min-width: 110px;
}

.cf-recipe-value {
  color: #ffffff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-micro-copy {
  background: #121212;
  border: 1px solid #222222;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.1s ease;
  flex-shrink: 0;
}

.btn-micro-copy:hover {
  color: var(--status-green-text);
  border-color: rgba(52, 211, 153, 0.4);
  background: #1a1a1a;
}

.cf-actions-deck {
  display: flex;
  gap: 8px;
}

.btn-stage-wrangler {
  flex: 1;
  background: #141414;
  border: 1px solid #2e2e2e;
  color: var(--status-green-text);
  font-size: 11px;
  font-weight: 600;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.btn-stage-wrangler:hover {
  background: #1c1c1c;
  border-color: var(--status-green-text);
}

.cf-subtext-deck {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.cf-inline-link {
  color: #e5e5e5;
  text-decoration: none;
  border-bottom: 1px dotted #3f3f3f;
  transition: all 0.12s ease;
}

.cf-inline-link:hover {
  color: #ffffff;
  border-bottom-color: #737373;
}

.cf-manual-latch-details {
  border-top: 1px solid #1c1c1c;
  padding-top: 6px;
}

.cf-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cf-zone-title {
  font-size: 11px;
  font-weight: 600;
  color: #888888;
  letter-spacing: -0.01em;
}

.cf-url-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #101010;
  border: 1px solid #1f1f1f;
  padding: 8px 10px;
  border-radius: 8px;
}

.cf-domain-link {
  color: #f5f5f5;
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-domain-link:hover {
  text-decoration: underline;
}

.cf-subtext {
  font-size: 10px;
  color: var(--text-dim, #777777);
  line-height: 1.4;
}

.cf-subtext code {
  font-family: var(--font-mono, monospace);
  color: var(--text-muted, #9e9e9e);
}