/* --- empty state -------------------------------------------------------- */
.empty { max-width: 880px; margin: var(--s6) auto; text-align: center; }
.empty h1 { font-size: 24px; margin-bottom: var(--s2); }
.empty > p { color: var(--muted); margin: 0 0 var(--s5); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s3); text-align: left; }
.tile { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-1); cursor: pointer; text-align: left; }
.tile:hover { border-color: var(--accent); }
.tile b { font-size: 14px; }
.tile code { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.tile .tile-n { font-size: 12px; color: var(--accent); font-weight: 600; min-height: 18px; }

/* --- results bar ----------------------------------------------------- */
.toolbar { display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s3); }
.count { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.count small { font-size: 14px; font-weight: 400; color: var(--muted); }
.coverage { display: flex; gap: var(--s4); flex-wrap: wrap; }
.cov { display: grid; gap: 2px; font-size: 12px; color: var(--muted); min-width: 92px; }
.cov b { color: var(--ink); font-weight: 600; }
.cov .bar { height: 4px; border-radius: 2px; background: var(--sunken); overflow: hidden; }
.cov .bar i { display: block; height: 100%; background: var(--accent); }
.chips { display: flex; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 10px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 500; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; }
.chip button:hover { background: rgb(0 0 0 / .08); }
.actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); }
.actions .spacer { flex: 1; }
.actions .hint { font-size: 12px; color: var(--muted); }
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 25; min-width: 220px; padding: var(--s2); background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-3); }
.menu-pop label { display: flex; align-items: center; gap: var(--s2); padding: 6px var(--s2); border-radius: var(--r-sm); cursor: pointer; }
.export-pop { left: 0; right: auto; width: 320px; display: flex; flex-direction: column; gap: var(--s2); }
.export-presets { display: flex; gap: var(--s4); padding: var(--s1) var(--s2); font-size: 14px; }
.export-fields { max-height: min(50vh, 420px); overflow-y: auto; border-block: 1px solid var(--line); }
.menu-pop label:hover { background: var(--sunken); }
.menu-pop .grp { font-size: 12px; font-weight: 600; color: var(--muted); padding: var(--s2) var(--s2) 2px; }

/* background job (REGON) */
.job { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s3); align-items: center; padding: var(--s3) var(--s4);
  margin-bottom: var(--s3); border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.job .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.job .bar i { display: block; height: 100%; background: var(--accent); transition: width .5s; }
