/* Your watchlist: the viewer's starred tickers against the latest board, set as a stock-table listing.
   Every selector is scoped under .m-watch. */
.m-watch {
  --w-cols: 7.5rem 9.75rem minmax(0, 1fr) 5rem 5rem 5rem 10rem 5.5rem;
  --w-gap: 16px;
  --w-hatch-red: repeating-linear-gradient(135deg, var(--red) 0 1.2px, transparent 1.2px 4.243px);
  --w-hatch-green: repeating-linear-gradient(135deg, var(--green) 0 1.2px, transparent 1.2px 4.243px);
}
.m-watch .w-n { font: 400 .86em/1 var(--mono); letter-spacing: -.02em; }
.m-watch .w-h .w-n { font-weight: 500; letter-spacing: -.04em; }
.m-watch .w-h:focus { outline: none; }
.m-watch .dek { max-width: 760px; }

/* Column heads and rows share one template */
.m-watch .w-cols, .m-watch .w-item { display: grid; grid-template-columns: var(--w-cols); column-gap: var(--w-gap); }
.m-watch .w-cols {
  margin-top: 26px; padding-bottom: 7px; border-bottom: 1px solid var(--ink);
  font: 600 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.m-watch .w-c-n { text-align: right; }
.m-watch .w-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--ink); }
.m-watch .w-item { align-items: baseline; border-bottom: 1px solid var(--rule); }
.m-watch .w-item:last-child { border-bottom: 0; }
.m-watch .w-setups { grid-column: 2 / 8; display: grid; grid-template-columns: subgrid; align-self: stretch; }
.m-watch .w-setup { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; }
.m-watch .w-setup + .w-setup { border-top: 1px dotted var(--rule); }

.m-watch .w-id { grid-column: 1; padding: 14px 0 14px; min-width: 0; }
.m-watch .w-sym {
  display: inline-block; font: 800 25px/1.05 var(--serif); letter-spacing: -.015em; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
.m-watch .w-sym:hover { color: var(--ink); text-decoration-color: var(--accent); }
.m-watch .w-name { display: block; margin-top: 5px; font: italic 400 14px/1.3 var(--serif); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-watch .w-setup > * { padding: 17px 0 14px; min-width: 0; }
.m-watch .w-status { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.m-watch .w-dir { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.m-watch .w-what { grid-column: 2; display: grid; gap: 4px; }
.m-watch .w-kind { font: 600 16px/1.25 var(--serif); }
.m-watch .w-grade { font: 400 12.5px/1.3 var(--sans); color: var(--muted); }
.m-watch .w-grade b { font: 600 12.5px/1 var(--mono); color: var(--ink); }
.m-watch .w-grade .w-n { font-size: 13px; color: var(--ink); }
.m-watch .w-of { font: 400 12px/1 var(--mono); color: var(--muted); }
.m-watch .w-dot { margin: 0 2px; }
.m-watch .w-lv { font: 400 15px/1.25 var(--mono); text-align: right; }
.m-watch .w-lv:nth-child(3) { grid-column: 3; }
.m-watch .w-lv:nth-child(4) { grid-column: 4; }
.m-watch .w-lv:nth-child(5) { grid-column: 5; }
.m-watch .w-rr { grid-column: 6; }
.m-watch .w-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reward : risk bar */
.m-watch .w-rrv { display: flex; align-items: center; gap: 10px; }
.m-watch .w-rrv b { font: 400 13px/1 var(--mono); color: var(--ink); min-width: 3.1em; text-align: right; }
.m-watch .w-bar { position: relative; flex: 1 1 auto; height: 11px; min-width: 60px; border-bottom: 1px solid var(--rule); }
.m-watch .w-bar i { position: absolute; top: 1px; bottom: 1px; display: block; }
.m-watch .w-risk { left: 0; background: var(--w-hatch-red); border: 1px solid var(--red); border-right: 0; }
.m-watch .w-gain { background: var(--w-hatch-green); border: 1px solid var(--green); border-left: 0; }
.m-watch .w-entry { width: 0; top: -2px !important; bottom: -3px !important; border-left: 1.5px solid var(--ink); margin-left: -.75px; }
.m-watch .w-floor { width: 0; top: auto !important; bottom: -5px !important; height: 5px; border-left: 1px solid var(--ink); }
.m-watch .w-na { font: 400 14px/1 var(--mono); color: var(--muted); }

/* Not on the board */
.m-watch .w-off { grid-column: 1 / -1; margin: 0; padding: 18px 0 14px; font: italic 400 16px/1.4 var(--serif); color: var(--muted); }

/* Remove */
.m-watch .w-act { grid-column: 8; justify-self: end; padding: 10px 0; }
.m-watch .w-remove {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.m-watch .w-remove:hover { color: var(--ink); }
.m-watch .w-x { position: relative; width: 11px; height: 11px; flex: none; }
.m-watch .w-x::before, .m-watch .w-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; }
.m-watch .w-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.m-watch .w-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Fine print, the add line and the undo notice */
.m-watch .w-fine { max-width: 780px; margin: 12px 0 0; font: italic 400 14px/1.5 var(--serif); color: var(--muted); }
.m-watch .w-add { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 0; font: italic 400 15px/1.5 var(--serif); color: var(--muted); }
.m-watch .w-find {
  padding: 8px 0 4px; border: 0; border-bottom: 2px solid var(--accent); background: none; cursor: pointer;
  font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.m-watch .w-find:hover { color: var(--ink); border-color: var(--ink); }
.m-watch .w-note { margin: 10px 0 0; min-height: 1.5em; font: 400 13.5px/1.5 var(--sans); color: var(--muted); }
.m-watch .w-note:empty { margin: 0; min-height: 0; }
.m-watch .w-note-sym { font: 800 15px/1 var(--serif); color: var(--ink); }
.m-watch .w-undo {
  min-height: 32px; margin-left: 4px; padding: 0 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
  font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.m-watch .w-undo:hover { background: var(--ink); color: var(--paper); }

/* Empty: three ruled steps */
.m-watch .w-steps {
  list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.m-watch .w-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 22px 20px; border-left: 1px solid var(--rule); }
.m-watch .w-steps li:first-child { border-left: 0; padding-left: 0; }
.m-watch .w-step { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
.m-watch .w-step-h { font: 800 22px/1.15 var(--serif); letter-spacing: -.01em; }
.m-watch .w-steps p { margin: 0; max-width: 300px; font: italic 400 16px/1.45 var(--serif); color: var(--muted); }
.m-watch .w-steps .w-find { margin-top: 8px; }
.m-watch .w-key { display: inline-block; min-width: 19px; padding: 1px 5px 0; border: 1px solid var(--rule); border-bottom-width: 2px; background: var(--card); font: 500 12px/1.3 var(--mono); font-style: normal; color: var(--ink); text-align: center; }
.m-watch .w-steps i { font-style: normal; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.m-watch .w-steps + .w-fine { margin-top: 14px; }

/* Narrow desktop / tablet: drop to two columns of numbers */
@media (max-width: 1020px) {
  .m-watch { --w-cols: 6.5rem 9.5rem minmax(0, 1fr) 4.75rem 4.75rem 4.75rem 8rem 5.25rem; --w-gap: 12px; }
  .m-watch .w-sym { font-size: 22px; }
}

/* Phone: each ticker is a block; its setups stack under the symbol line */
@media (max-width: 760px) {
  .m-watch .w-cols { display: none; }
  .m-watch .w-list { border-top: 2px solid var(--ink); margin-top: 20px; }
  .m-watch .w-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id act" "setups setups"; column-gap: 12px; padding: 0 0 12px; }
  .m-watch .w-id { grid-area: id; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 14px 0 6px; }
  .m-watch .w-name { margin: 0; }
  .m-watch .w-act { grid-area: act; align-self: start; padding: 10px 0 0; }
  .m-watch .w-setups { grid-area: setups; display: block; }
  .m-watch .w-setup {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px;
    grid-template-areas: "status status status" "what what what" "entry stop target" "rr rr rr";
  }
  .m-watch .w-setup > * { padding: 0; }
  .m-watch .w-setup + .w-setup { margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--rule); }
  .m-watch .w-setup + .w-setup > * { border-top: 0; }
  .m-watch .w-status { grid-area: status; padding-top: 2px; }
  .m-watch .w-what { grid-area: what; margin-top: 8px; gap: 2px; }
  .m-watch .w-lv { text-align: left; margin-top: 10px; padding-top: 7px; border-top: 1px solid var(--rule); }
  .m-watch .w-lv:nth-child(3) { grid-area: entry; }
  .m-watch .w-lv:nth-child(4) { grid-area: stop; }
  .m-watch .w-lv:nth-child(5) { grid-area: target; }
  .m-watch .w-rr { grid-area: rr; margin-top: 10px; }
  .m-watch .w-l {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; margin-bottom: 3px;
    font: 600 10px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }
  .m-watch .w-off { padding: 0 0 4px; font-size: 15.5px; }
  .m-watch .w-steps { grid-template-columns: minmax(0, 1fr); }
  .m-watch .w-steps li { padding: 14px 0 16px; border-left: 0; }
  .m-watch .w-steps li + li { border-top: 1px solid var(--rule); }
  .m-watch .w-step-h { font-size: 20px; }
}
