#wfc-root{
  --wfc-accent: #fb7185;
  --wfc-bg-card: #14141b;
  --wfc-border: #2a2a34;
  --wfc-text: #e7e7ec;
  --wfc-text-dim: #9a9aa5;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--wfc-text);
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

#wfc-root .wfc-home-link{
  display: inline-block;
  color: var(--wfc-text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border: 1px solid var(--wfc-border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: color .15s, border-color .15s;
}
#wfc-root .wfc-home-link:hover{
  color: var(--wfc-accent);
  border-color: var(--wfc-accent);
}

#wfc-root h1{
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
}
#wfc-root .wfc-sub{
  color: var(--wfc-text-dim);
  font-size: 1.02rem;
  margin: 0 0 32px;
}
#wfc-root h2{
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
}
#wfc-root h3{
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--wfc-accent);
}

.wfc-step{
  background: var(--wfc-bg-card);
  border: 1px solid var(--wfc-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

.wfc-chip-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.wfc-chip{
  background: #1c1c24;
  border: 1px solid var(--wfc-border);
  color: var(--wfc-text);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.wfc-chip:hover{ border-color: var(--wfc-accent); }
.wfc-chip.is-active{
  background: var(--wfc-accent);
  border-color: var(--wfc-accent);
  color: #1a0a0d;
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(251,113,133,0.18);
}

.wfc-live-echo{
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--wfc-text-dim);
  margin: 0;
}

.wfc-mode-switch{
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.wfc-mode-btn{
  flex: 1;
  background: transparent;
  border: 1px solid var(--wfc-border);
  color: var(--wfc-text-dim);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}
.wfc-mode-btn.is-active{
  border-color: var(--wfc-accent);
  color: var(--wfc-accent);
  font-weight: 600;
}

.wfc-field-block label{
  display: block;
  font-size: 0.85rem;
  color: var(--wfc-text-dim);
  margin: 12px 0 8px;
}
.wfc-input{
  background: #1c1c24;
  border: 1px solid var(--wfc-border);
  color: var(--wfc-text);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100px;
  margin-bottom: 12px;
}

.wfc-toggle-row{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--wfc-text);
  margin-bottom: 12px;
  cursor: pointer;
}
.wfc-toggle-row input{ width: 18px; height: 18px; accent-color: var(--wfc-accent); }

.wfc-btn-row{
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.wfc-run-btn{
  flex: 1;
  background: var(--wfc-accent);
  color: #1a0a0d;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}
.wfc-run-btn:hover{ opacity: .92; }
.wfc-reset-btn{
  background: transparent;
  color: var(--wfc-text-dim);
  border: 1px solid var(--wfc-border);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.wfc-reset-btn:hover{ border-color: var(--wfc-accent); color: var(--wfc-accent); }

.wfc-results{
  background: var(--wfc-bg-card);
  border: 1px solid var(--wfc-border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 28px;
  animation: wfcFadeIn 0.4s ease-out;
}
@keyframes wfcFadeIn{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

.wfc-badges{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wfc-badge{
  background: #1c1c24;
  border: 1px solid var(--wfc-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--wfc-text-dim);
}
.wfc-badge-conf{ border-color: var(--wfc-accent); color: var(--wfc-accent); }

.wfc-verdict{
  font-size: 1.15rem;
  line-height: 1.4;
  padding: 16px 18px;
  background: rgba(251,113,133,0.08);
  border-left: 3px solid var(--wfc-accent);
  border-radius: 8px;
  margin-bottom: 22px;
}
.wfc-verdict-sub{
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--wfc-text-dim);
}

.wfc-quad{ text-align: center; margin-bottom: 22px; position: relative; }
.wfc-quad-svg{ width: 100%; max-width: 420px; height: auto; }
.wfc-quad-zone{
  font-size: 0.92rem;
  color: var(--wfc-text-dim);
  margin: 4px 0 0;
}
.wfc-reveal::before{
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 6%;
  width: 90%;
  max-width: 420px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wfc-accent), transparent);
  animation: wfcScan 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes wfcScan{
  0%{ top: 6%; opacity: 1; }
  100%{ top: 82%; opacity: 0; }
}

.wfc-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media(min-width: 600px){
  .wfc-cards{ grid-template-columns: 1fr 1fr; }
}
.wfc-card{
  background: #1a1a22;
  border: 1px solid var(--wfc-border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  transition: border-left-color 0.3s;
}
.wfc-card p{ margin: 0 0 6px; color: var(--wfc-text-dim); }
.wfc-card .wfc-insight{ color: var(--wfc-text); }
.wfc-card-ok{ border-left: 3px solid #22c55e; }
.wfc-card-warn{ border-left: 3px solid #f5a623; }
.wfc-card-critical{ border-left: 3px solid var(--wfc-accent); }
.wfc-card-blind{ animation: wfcBlindPulse 2.5s ease-in-out infinite; }
@keyframes wfcBlindPulse{
  0%, 100%{ border-left-color: #f5a623; }
  50%{ border-left-color: rgba(245,166,35,0.25); }
}

.wfc-pills{
  margin-bottom: 18px;
  font-size: 0.85rem;
}
.wfc-pills-label{ display: block; color: var(--wfc-text-dim); margin-bottom: 8px; }
.wfc-pill{
  display: inline-block;
  background: #1c1c24;
  border: 1px solid var(--wfc-border);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0 6px 6px 0;
}
.wfc-pill em{ color: var(--wfc-text-dim); font-style: normal; font-size: 0.8em; }

.wfc-esu{
  background: #1a1a22;
  border: 1px dashed var(--wfc-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 18px;
}
.wfc-esu-step{ display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.wfc-esu-price{ font-size: 1.3rem; font-weight: 700; color: var(--wfc-accent); }
.wfc-esu-note{ font-size: 0.82rem; color: var(--wfc-text-dim); }

.wfc-risk{
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.wfc-risk-low{ background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); }
.wfc-risk-medium{ background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.35); }
.wfc-risk-high{ background: rgba(251,113,133,0.1); border: 1px solid var(--wfc-accent); }

.wfc-next, .wfc-whatif, .wfc-answers, .wfc-ignore{
  margin-bottom: 18px;
  font-size: 0.88rem;
}
.wfc-next ul, .wfc-answers ul, .wfc-ignore ul{
  margin: 0; padding-left: 20px; color: var(--wfc-text-dim);
}
.wfc-next li, .wfc-answers li, .wfc-ignore li{ margin-bottom: 4px; }

.wfc-article{
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--wfc-text-dim);
}
.wfc-article h2{ color: var(--wfc-text); font-size: 1.15rem; margin: 28px 0 10px; }
.wfc-article p{ margin: 0 0 14px; }

@media (prefers-reduced-motion: reduce){
  .wfc-quad-svg animate{ display:none; }
  .wfc-reveal::before{ animation: none; display: none; }
  .wfc-card-blind{ animation: none; }
  .wfc-results{ animation: none; }
}
