/* Trenches board (landing preview + app) */
.trenches { display: flex; flex-direction: column; min-height: 0; }
.tr-tabs { display: none; margin-bottom: 10px; align-self: flex-start; }
.tr-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-height: 0; flex: 1; }
.tr-col { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tr-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tr-head b { font-size: 13.5px; }
.tr-search { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); color: var(--dim); width: 108px; }
.tr-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 12px; color: var(--text); }
.tr-search:focus-within { border-color: var(--border-2); }
.tr-list { flex: 1; min-height: 0; padding: 6px; display: flex; flex-direction: column; gap: 6px; }

.tcard {
  position: relative; display: flex; gap: 11px; padding: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.tcard:hover { border-color: var(--border-2); background: #0d1015; }
.tcard.enter { animation: cardIn .45s ease-out; }
.tcard.flash::after { content: ''; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; animation: flash .7s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px); background: rgba(184, 245, 60, .08); } }
@keyframes flash { from { box-shadow: inset 0 0 0 1px rgba(184, 245, 60, .45); } to { box-shadow: inset 0 0 0 1px transparent; } }

.tc-img { position: relative; flex: none; height: 58px; }
.tc-img .pool { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--bg-2); }
.tc-img .pool.mig { background: var(--violet); }
.tc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tc-row { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; color: var(--muted); }
.tc-sym { font-weight: 700; font-size: 14.5px; color: var(--text); min-width: 0; flex: 0 1 auto; }
.tc-sym:hover { color: var(--lime); }
.tc-name { font-size: 12px; color: var(--dim); min-width: 0; flex: 0 3 auto; }
.tc-mc, .tc-mcl, .tc-copy { flex: none; }
@container (max-width: 330px) { .tc-name { display: none; } }
.tr-list { container-type: inline-size; }
.tc-copy { border: 0; background: transparent; color: var(--dim); padding: 2px; cursor: pointer; display: grid; place-items: center; border-radius: 5px; flex: none; }
.tc-copy:hover { color: var(--text); background: var(--surface-3); }
.tc-mcl { font-size: 10.5px; color: var(--dim); font-weight: 600; }
.tc-mc { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); }
.tc-mc.violet { color: var(--violet); } .tc-mc.lime { color: var(--lime); } .tc-mc.amber { color: var(--amber); }
.tc-stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.tc-age { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; }
.tc-age.fresh { color: var(--green); }
.tc-bs { width: 40px; flex: none; }
.tc-meta { gap: 6px; }
.tc-meta > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.tc-handle { color: var(--violet); max-width: 110px; }
.soc { color: var(--dim); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; flex: none; }
.soc:hover { color: var(--text); background: var(--surface-3); }
.qb {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 8px; border: 0; cursor: pointer; flex: none;
  background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 12px; transition: transform .08s, box-shadow .15s;
}
.qb:hover { box-shadow: 0 0 16px var(--lime-glow); }
.qb:active { transform: scale(.96); }
.tc-prog { height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 2px; }
.tc-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime-2), var(--lime)); border-radius: 3px; }

/* gallery */
.trenches.gallery .tr-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; }
.trenches.gallery .tcard { flex-direction: column; align-items: stretch; }
.trenches.gallery .tc-img { height: auto; }
.trenches.gallery .tc-img .tok-img { width: 100% !important; height: auto !important; aspect-ratio: 1; }
.trenches.gallery .tc-name, .trenches.gallery .tc-handle, .trenches.gallery .soc, .trenches.gallery .tc-mcl { display: none; }

@media (max-width: 900px) {
  .tr-tabs { display: inline-flex; }
  .tr-cols { grid-template-columns: 1fr; }
  .tr-col { display: none; }
  .tr-col.active { display: flex; }
}
