/* WATCHTOWER — standing orders on the live feeds. */

.wt-wrap { display: flex; flex-direction: column; gap: 16px; padding-bottom: 40px; }

.wt-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wt-head h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.01em; }
.wt-sub { font-size: 0.7rem; color: var(--muted); }
.wt-head .grow { flex: 1; }
.wt-swept { font-size: 0.66rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- the watches strip ---- */
.wt-watches { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink);
  padding: 7px 11px; font-size: 0.72rem; cursor: pointer; font-family: inherit;
  transition: border-color var(--fast), background var(--fast);
}
.wt-chip:hover { border-color: var(--acc); }
.wt-chip b { font-weight: 700; }
.wt-chip i { font-style: normal; color: var(--muted); font-size: 0.62rem; }
.wt-chip-dot { width: 6px; height: 6px; background: var(--acc); flex: none; }
.wt-chip.muted { opacity: 0.5; }
.wt-chip.muted .wt-chip-dot { background: var(--muted); }
.wt-chip-bound {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--st-shaping); font-size: 0.6rem;
}
.wt-chip-hits {
  font-size: 0.6rem; color: var(--acc); border: 1px solid var(--line);
  padding: 0 4px; font-variant-numeric: tabular-nums;
}
.wt-add {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px dashed var(--line-2); background: none; color: var(--muted);
  padding: 7px 11px; font-size: 0.72rem; cursor: pointer; font-family: inherit;
}
.wt-add:hover { border-color: var(--acc); color: var(--acc); }

.wt-errs { display: flex; flex-direction: column; gap: 3px; font-size: 0.66rem; color: var(--bad); }

.wt-empty {
  border: 1px dashed var(--line); padding: 40px 20px; text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.wt-empty p { margin: 0; font-size: 0.76rem; max-width: 46ch; line-height: 1.6; }

/* ---- source filter bar ---- */
.wt-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.wt-bar .grow { flex: 1; }
.wt-tab {
  border: 1px solid transparent; background: none; color: var(--muted);
  padding: 4px 9px; font-size: 0.66rem; cursor: pointer; font-family: inherit;
  text-transform: lowercase;
}
.wt-tab:hover { color: var(--ink); }
.wt-tab.on { color: var(--acc); border-color: var(--acc); }
.wt-clear { background: none; border: 0; color: var(--muted); font-size: 0.62rem; cursor: pointer; font-family: inherit; }
.wt-clear:hover { color: var(--acc); }

/* ---- signals ---- */
.wt-signals { display: flex; flex-direction: column; gap: 10px; }
.wt-sig {
  display: grid; grid-template-columns: auto 1fr;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color var(--fast);
}
.wt-sig:hover { border-color: var(--line-2); }
.wt-sig-img { width: 92px; overflow: hidden; background: var(--bg-3); }
.wt-sig-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-sig-body { padding: 11px 13px; min-width: 0; }
.wt-sig-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.wt-sig-top .grow { flex: 1; }
.wt-src {
  font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.09em;
  border: 1px solid var(--line-2); color: var(--muted); padding: 1px 5px;
}
.wt-src.s-hn { border-color: var(--acc); color: var(--acc); }
.wt-src.s-github { border-color: var(--st-shaping); color: var(--st-shaping); }
.wt-src.s-youtube { border-color: var(--bad); color: var(--bad); }
.wt-src.s-anime { border-color: var(--st-spark); color: var(--st-spark); }
.wt-src.s-screen { border-color: var(--st-shipped); color: var(--st-shipped); }
.wt-sig-meta { font-size: 0.62rem; color: var(--muted); }
.wt-score {
  font-size: 0.68rem; font-weight: 800; color: var(--acc);
  font-variant-numeric: tabular-nums; cursor: help;
}
.wt-sig h3 { margin: 0 0 5px; font-size: 0.86rem; line-height: 1.4; font-weight: 700; }
.wt-sig h3 a { color: var(--ink); text-decoration: none; }
.wt-sig h3 a:hover { color: var(--acc); }
.wt-sig p {
  margin: 0 0 8px; font-size: 0.7rem; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* the arithmetic, made readable — a rank nobody can interrogate is a rank
   nobody trusts */
.wt-why { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.wt-chip-why {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.6rem; border: 1px solid var(--line); color: var(--muted); padding: 1px 6px;
}
.wt-chip-why.term { border-color: var(--acc); color: var(--acc); }
.wt-chip-why.idea { border-color: var(--st-shaping); color: var(--st-shaping); }
.wt-chip-why.bound { border-color: var(--st-shaping); color: var(--muted); }
.wt-chip-why.fresh { border-color: var(--st-shipped); color: var(--st-shipped); }

.wt-sig-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- editor ---- */
.wt-hint { margin: 4px 0 0; font-size: 0.62rem; color: var(--muted); line-height: 1.5; }
.wt-srcpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.wt-src-opt {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink);
  padding: 7px 9px; cursor: pointer; font-family: inherit;
}
.wt-src-opt b { font-size: 0.7rem; }
.wt-src-opt i { font-style: normal; font-size: 0.58rem; color: var(--muted); line-height: 1.4; }
.wt-src-opt.on { border-color: var(--acc); background: var(--bg-3); }
.wt-src-opt.on b { color: var(--acc); }

@media (max-width: 640px) {
  .wt-sig { grid-template-columns: 1fr; }
  .wt-sig-img { width: 100%; height: 120px; }
}
