/* Shared table UI: land-summary (docs/ux/table-v2-spec.md §5). Owner: C01.
   Classes: .tui-mana*, .tui-pip*. The fallbacks let it work before a table has the .tui root. Phone portrait first, then the landscape and desktop blocks. */

.tui-mana {
  /* the five colours of mana, as the dots show them (component-local: a token for them is the lead's call) */
  --tui-mana-W: #f3ecc8; --tui-mana-U: #4a90d9; --tui-mana-B: #7b6a8a; --tui-mana-R: #d9553f; --tui-mana-G: #4aa564; --tui-mana-C: #a8a8a8;
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: var(--tui-gap, 6px);
  min-height: var(--tui-tap, 44px); padding: 0 10px; width: 100%; box-sizing: border-box; text-align: left;
  background: var(--tui-panel-2, #1b222a); color: var(--tui-text, #e7ecf1); border: 1px solid var(--tui-line, #2a333d); border-radius: var(--tui-radius, 10px);
  cursor: pointer; font: inherit;
}
.tui-mana.tui-open { border-color: var(--tui-accent, #4f8cff); }
.tui-pip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.tui-pip-free { color: var(--tui-muted, #8b97a4); }
.tui-pip-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tui-mana-C); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5) inset; }
.tui-pip-dot[data-colors="W"] { background: var(--tui-mana-W); }
.tui-pip-dot[data-colors="U"] { background: var(--tui-mana-U); }
.tui-pip-dot[data-colors="B"] { background: var(--tui-mana-B); }
.tui-pip-dot[data-colors="R"] { background: var(--tui-mana-R); }
.tui-pip-dot[data-colors="G"] { background: var(--tui-mana-G); }
.tui-pip-dot[data-colors="M"] { background: conic-gradient(var(--tui-mana-W) 0 20%, var(--tui-mana-U) 0 40%, var(--tui-mana-B) 0 60%, var(--tui-mana-R) 0 80%, var(--tui-mana-G) 0); }
.tui-pip-dot:not([data-colors="M"]):not([data-colors="W"]):not([data-colors="U"]):not([data-colors="B"]):not([data-colors="R"]):not([data-colors="G"]) { background: var(--tui-mana-C); }
.tui-mana-more { margin-left: auto; color: var(--tui-muted, #8b97a4); }

/* [compact] desktop Q3 (#1249): in the quadrant layout a board's land row looks 30px tall with "· N untapped" after the chips; its hit area is still 44px tall (and 44px wide
   at least) from the ::after. The table asks for it (compact) on desktop only: a phone's row is the 44px one above. */
@media (min-width: 900px) and (min-height: 501px) {
  .tui[data-layout="quad"] .tui-mana.tui-mana-c { position: relative; align-self: flex-start; min-height: 30px; min-width: 44px; width: auto; max-width: 100%; flex-wrap: nowrap; padding: 0 10px; gap: 8px; overflow: visible; }
  .tui[data-layout="quad"] .tui-mana.tui-mana-c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; margin-top: -22px; }
  .tui[data-layout="quad"] .tui-mana-free { color: var(--tui-muted, #8b97a4); font-size: 12px; white-space: nowrap; }
  .tui[data-layout="quad"] .tui-mana.tui-mana-c .tui-mana-more { margin-left: 2px; }
}
