/* The watcher tile in "Turn raw output into datasets". It draws the watcher
   screen large and cut by the tile's right and bottom edges: the app's rail,
   two tabs, where the output came from, the raw lines, one value picked, and
   the field it names reading that value from every line. Drawn at 600 by 600
   and scaled to the tile by watcher-tile.js. */
.f50-asset--wx {
  background: radial-gradient(70% 50% at 80% 0%, #ffffff, transparent 70%), #f4f6f9;
}
.wx-tile {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 600px;
  transform-origin: 0 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* the app, cut by the tile's right and bottom edges */
.wx-app {
  position: absolute;
  left: 70px;
  top: 86px;
  width: 620px;
  height: 600px;
  background: #ffffff;
  border-top-left-radius: 18px;
  border-top: 1px solid #e7e9ee;
  border-left: 1px solid #e7e9ee;
  overflow: hidden;
}
.wx-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58px;
  border-right: 1px solid #e7e9ee;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding-top: 24px;
}
.wx-rail svg { width: 22px; height: 22px; color: #a3a8b0; }
.wx-rail .on { color: #5f6670; }
.wx-tabs {
  position: absolute;
  left: 58px;
  right: 0;
  top: 0;
  height: 60px;
  border-bottom: 1px solid #e7e9ee;
  display: flex;
  align-items: center;
  gap: 40px;
  padding-left: 26px;
  font-weight: 300;
  font-size: 20px;
  white-space: nowrap;
}
.wx-tab { display: flex; align-items: center; gap: 12px; color: #a3a8b0; }
.wx-tab svg { width: 20px; height: 20px; }
.wx-tab.on { color: #161616; }
.wx-crumb {
  position: absolute;
  left: 84px;
  top: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 300;
  font-size: 22px;
  color: #a3a8b0;
  white-space: nowrap;
}
.wx-crumb svg { width: 16px; height: 16px; }
.wx-crumb b { font-weight: 300; color: #161616; }

/* the raw lines */
.wx-lines { position: absolute; left: 58px; top: 140px; right: 0; }
.wx-ln { position: relative; height: 36px; display: flex; align-items: center; white-space: pre; }
.wx-ln .n { width: 46px; flex: none; text-align: right; font-weight: 300; font-size: 17px; color: #9aa0a6; }
.wx-ln .x { margin-left: 22px; font-family: "Hack", ui-monospace, Menlo, monospace; font-size: 16px; line-height: 36px; color: #1f2328; }
.wx-ln.hd .x { color: #8b9097; }
.wx-ln.cur { background: linear-gradient(90deg, transparent 0, transparent 62px, #eef1fd 62px); }
.wx-ln.cur .n { color: #161616; }
/* a captured value: the field's hue at 18% with a 2px underline */
.wx-v { border-radius: 3px; border-bottom: 2px solid transparent; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.wx-v.on { background: #3455fa2e; border-bottom-color: #3455fa; }
.wx-v.pick { background: #3455fa8c; border-bottom-color: #3455fa; color: #0d0d0d; }

/* the field: its name being typed, then every value it reads */
.wx-pop {
  position: absolute;
  left: 390px;
  top: 230px;
  width: 214px;
  background: #ffffff;
  border: 1px solid #d9dce2;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(15, 23, 42, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.wx-name {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #f1f3f6;
  font-family: "Hack", ui-monospace, Menlo, monospace;
  font-size: 15px;
  color: #161616;
}
.wx-name i { width: 9px; height: 9px; border-radius: 2px; background: #3455fa; flex: none; }
.wx-name .car { width: 1.5px; height: 18px; background: #161616; margin-left: -8px; animation: wx-blink 1.06s steps(1) infinite; }
.wx-name .k { margin-left: auto; font-size: 11.5px; color: #8b9097; }
.wx-r {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-family: "Hack", ui-monospace, Menlo, monospace;
  font-size: 15px;
  color: #1f2328;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}
.wx-r.on { opacity: var(--o, 1); transform: none; }
.wx-r svg { width: 14px; height: 14px; color: #3455fa; flex: none; }
.wx-r .of { margin-left: auto; font-family: "Figtree", system-ui, sans-serif; font-weight: 300; font-size: 13px; color: #8b9097; }
@keyframes wx-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wx-v, .wx-r { transition: none; }
  .wx-name .car { animation: none; }
}
