/* Alignment: the Master Dashboard's third tab (2026-10-03, js/alignment-board.js).
 *
 * Nearly all of this tab's look is the board's own. `.page`, `.sh`, `.purpose`, `.sig`,
 * `.card` and the flag pair come from the ported desk sheet (css/master-dashboard-desk.css)
 * and apply because the host sits inside #view-master-dashboard; its tokens (--ink, --soft,
 * --faint, --rule, --up, --dn, --amber) are the ones used here, so the tab follows every
 * palette and theme the board does. This sheet adds only the rows and the timeframe strip.
 *
 * Colour keeps one meaning: green and red are direction (an arrow up or down), never "good"
 * or "bad". Whether a timeframe is with or against our call is drawn as its FRAME (solid
 * ink when with us, dashed amber when against), so a red arrow inside a solid frame reads
 * correctly as "down, which is what our short wants".
 */
#view-master-dashboard .al-page { padding-top: 6px; }
#view-master-dashboard .al-lede {
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--soft);
  max-width: 80ch;
}
#view-master-dashboard .al-sec { margin-top: 30px; }
#view-master-dashboard .al-list { display: flex; flex-direction: column; gap: 10px; }
#view-master-dashboard .al-none,
#view-master-dashboard .al-foot {
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
  max-width: 80ch;
}
#view-master-dashboard .al-foot { margin-top: 34px; }

#view-master-dashboard .al-row {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 16px;
  align-items: center;
}
#view-master-dashboard .al-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}
#view-master-dashboard .al-pair { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
#view-master-dashboard .al-conv { font-size: 12.5px; color: var(--soft); }
/* "2 of 3 with us", only in the Strong calls section at the top. */
#view-master-dashboard .al-prog {
  font-family: var(--fmono);
  font-size: 11px;
  color: var(--ink);
  border: 1px solid var(--rule2);
  border-radius: 7px;
  padding: 2px 7px;
  white-space: nowrap;
  cursor: help;
}
#view-master-dashboard .al-say {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}

/* The strip: 1D 12h 4h | 1h 15m. */
#view-master-dashboard .al-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
#view-master-dashboard .al-tf {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  font-family: var(--fmono);
  font-size: 11px;
  cursor: help;
}
#view-master-dashboard .al-tf.v-with { border: 1.5px solid var(--ink); }
#view-master-dashboard .al-tf.v-against { border: 1.5px dashed var(--amber); }
#view-master-dashboard .al-tf.al-lo { border-style: dotted; }
#view-master-dashboard .al-tfl { color: var(--faint); margin-right: 2px; letter-spacing: .04em; }
#view-master-dashboard .al-ar { font-size: 10px; line-height: 1; }
#view-master-dashboard .al-ar.up { color: var(--up); }
#view-master-dashboard .al-ar.dn { color: var(--dn); }
#view-master-dashboard .al-ar.nt { color: var(--nt); }
#view-master-dashboard .al-sep { width: 1px; height: 18px; background: var(--rule2); margin: 0 3px; }
#view-master-dashboard .al-tf .vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* The alert bell and its editor (2026-10-03). The bell sits at the end of the id line; the
   editor opens under the row's sentence, full width. */
#view-master-dashboard .al-bell { cursor: pointer; }
#view-master-dashboard .al-bell.on { border-color: var(--ink); color: var(--ink); font-weight: 600; }
#view-master-dashboard .al-ed {
  grid-column: 1 / -1;
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#view-master-dashboard .al-edh { margin: 0; font-size: 13.5px; font-weight: 600; }
#view-master-dashboard .al-edc,
#view-master-dashboard .al-edb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#view-master-dashboard .al-ed .chip { cursor: pointer; }
#view-master-dashboard .al-ed .al-save { border-color: var(--ink); color: var(--ink); font-weight: 600; }
#view-master-dashboard .al-edn,
#view-master-dashboard .al-edw { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--soft); }
#view-master-dashboard .al-edw { color: var(--amber); }
#view-master-dashboard .al-edm { font-size: 12.5px; color: var(--soft); }

/* At phone width the strip drops under the pair rather than squeezing the name. */
@media (max-width: 720px) {
  #view-master-dashboard .al-row { grid-template-columns: minmax(0, 1fr); }
  #view-master-dashboard .al-strip { justify-content: flex-start; }
}
