/* VisaFree — checker UI. Access colors are semantic, not theme-tied:
   vf green / voa amber / ev blue / vr red. */

#vf-app {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem;
  margin: 1.3rem 0 1.8rem;
}

/* ---------- controls ---------- */
.vf-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.vf-lab {
  font-weight: 700;
  font-size: 0.95rem;
}
#vf-passport {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  min-width: 12rem;
}
#vf-filter {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  flex: 1 1 10rem;
  min-width: 9rem;
}
.vf-stamp {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.vf-stamp::before {
  content: "ⓘ ";
  color: var(--accent);
}

/* ---------- score ---------- */
#vf-score {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 0.9rem 1.1rem;
}
.vf-score-num {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.vf-score-val {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.vf-score-lab {
  font-weight: 700;
}
.vf-score-lab small {
  display: block;
  font-weight: 500;
  color: var(--text-dim);
}
.vf-score-sum {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- groups ---------- */
.vf-group {
  margin-top: 1.1rem;
}
.vf-group h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.02rem;
  margin: 0 0 0.45rem;
}
.vf-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: none;
}
.vf-vf .vf-dot { background: #16a34a; }
.vf-voa .vf-dot { background: #d97706; }
.vf-ev .vf-dot { background: #2563eb; }
.vf-vr .vf-dot { background: #dc2626; }
.vf-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

#vf-app [hidden] {
  display: none !important;
}
.vf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}
.vf-empty {
  margin: 1rem 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.vf-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
}
.vf-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.vf-dur {
  color: var(--text-dim);
  font-size: 0.76rem;
  white-space: nowrap;
}
.vf-unc {
  flex: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 0 0.35rem;
  cursor: help;
}
@media (prefers-color-scheme: dark) {
  .vf-unc { color: #fcd34d; background: #451a03; border-color: #92400e; }
}
.vf-src {
  flex: none;
  margin-left: auto;
  font-size: 0.74rem;
  color: var(--primary);
  white-space: nowrap;
}
.vf-src::after {
  content: " ↗";
}
