/* A fact's actions in a space (treelive.js fxFor, Art and Conner,
   2026-11-10). Copy and the ⋯ button sit at the row's right edge: on a
   computer they show on hover or keyboard focus, on a phone ⋯ always shows
   and a long press opens the menu. The menu opens in the row itself, under
   the fact, so no card's edge can cut it off. */
.td-fr.tl-hasfx, .tl-shell .td-fr.tl-hasfx { position: relative; padding-right: 36px; }
.tl-fx { position: absolute; top: 4px; right: 0; display: flex; align-items: center; gap: 2px; }
.tl-fx-b { min-width: 30px; height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--card, #fff); color: var(--soft, var(--muted)); font: 500 12.5px var(--sans); cursor: pointer; }
.tl-fx-b:hover { background: var(--ground, #EEF1F4); color: var(--ink); }
.tl-fx-b:focus-visible, .tl-fx-i:focus-visible { outline: 2px solid var(--day, #1570EF); outline-offset: 1px; }
.tl-fx-more { font-size: 16px; line-height: 1; letter-spacing: 1px; opacity: 0.55; }
.tl-fx-more[aria-expanded="true"] { opacity: 1; background: var(--ground, #EEF1F4); color: var(--ink); }
.tl-fx-copy { opacity: 0; }
.td-fr.tl-hasfx:hover .tl-fx-copy, .td-fr.tl-hasfx:focus-within .tl-fx-copy, .td-fr.tl-hasfx:hover .tl-fx-more, .td-fr.tl-hasfx:focus-within .tl-fx-more { opacity: 1; }
.tl-fx-note { padding: 4px 8px; border-radius: 8px; background: var(--card, #fff); color: var(--ink); font: 500 12px var(--sans); white-space: nowrap; }
.tl-fx-note:empty { display: none; }

.tl-fx-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 2px; }
.tl-fx-menu[hidden] { display: none; }
.tl-fx-i { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card, #fff); color: var(--ink); font: 500 12.5px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.tl-fx-i:hover { background: var(--ground, #EEF1F4); }
.tl-fx-i[disabled] { opacity: 0.5; cursor: default; }
.tl-fx-i[disabled]:hover { background: var(--card, #fff); }
.tl-fx-host { color: var(--soft, var(--muted)); font-weight: 400; }
.tl-fx-why { font: 400 12px var(--sans); color: var(--soft, var(--muted)); }
/* Copy's fallback box, off screen while it copies. */
.tl-fx-copybox { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* After Wrong or out of date: what moved, with Undo. */
.tl-fx-filed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--card, #fff); box-shadow: 0 0 0 1px var(--line); font: 500 13px/1.4 var(--sans); color: var(--ink); }
.tl-fx-filed > span:first-child { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }

/* Phones and other touch screens: ⋯ always shows, Copy lives in the menu,
   and a long press opens the menu instead of the text callout. */
@media (hover: none) {
  .tl-fx-copy { display: none; }
  .tl-fx-more { opacity: 0.8; min-width: 36px; height: 32px; }
  .td-fr.tl-hasfx { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
  .tl-fx-i { min-height: 36px; }
}
