/* Add-on for js/workers-fill.js: My account → Workers as a table (JD, 2026-12-04). All classes start wt-. */

/* room.js's worker cards and graph range buttons give way to the table. */
.pane.wt-on .wcard, .pane.wt-on .hc-top, .pane.wt-on .wt-old { display: none }

/* ---- totals above the table ---- */
.wt-sum { margin-bottom: 12px }
.wt-sum-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px }
.wt-sum-top h4 { margin: 0 }
.wt-online { font-size: var(--fs-small); color: var(--text-muted) } .wt-online b { color: var(--text) }
.wt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px }
.wt-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.wt-stat { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); border-top: 2px solid var(--ac); min-width: 0 }
.wt-stat.sha { --ac: #3fd6c8 } .wt-stat.scr { --ac: #f0c070 }
.wt-k { font: 500 10.5px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px }
.wt-v { font: 500 22px var(--font-mono); color: var(--text); line-height: 1.2 }
.wt-s { margin-top: 4px; font-size: var(--fs-label); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
@media (max-width: 1100px) { .wt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) } }

/* ---- the table ---- */
.wt-box { padding: 0; overflow: hidden; margin-bottom: 12px }
.wt-scroll { overflow-x: auto }
.wt { width: 100%; border-collapse: collapse; font-size: var(--fs-small) }
.wt th { text-align: left; font: 500 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap }
.wt td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text); vertical-align: middle }
.wt tbody tr:last-child td { border-bottom: 0 }
.wt .r, .wt th.r { text-align: right }
.wt tbody tr.wt-row:hover { background: var(--surface-2) }
.wt tr.off td { color: var(--text-muted) }
.wt-name { display: flex; align-items: center; gap: 2px; font-weight: 600 }
.wt-name small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-label) }
.wt-num { font-family: var(--font-mono); font-weight: 500 }
.wt-rej { color: var(--text-muted) } .wt-rej.bad { color: var(--danger) }
.wt-pct { font-size: var(--fs-label); color: var(--text-muted); margin-left: 4px }
.wt-coins { display: inline-flex; align-items: center; gap: 6px }
.wt-coins img { width: 18px; height: 18px } .wt-coins img + img { margin-left: -9px }
.wt-coins small { color: var(--text-muted); font-size: var(--fs-label) }
.wt-mode { font-size: var(--fs-label); border: 1px solid var(--line-strong); border-radius: var(--r-round); padding: 1px 9px; color: var(--text) }
.wt-mode.solo { border-color: var(--gold-line); color: var(--gold) }
.wt-edit { font-size: var(--fs-label); color: var(--accent-text); border: 1px solid var(--accent-line); border-radius: var(--r-sm); padding: 4px 12px; background: none; cursor: pointer }
.wt-edit:hover, .wt-edit.on { background: var(--accent-wash); border-color: var(--accent) }
.wt-algo { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; font-weight: 500 }
.wt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
tr.wt-form td { background: var(--surface-1); padding: 14px 16px 16px; white-space: normal }
tr.wt-form .frm { margin: 0; padding: 0; border: 0 }
.wt-modebox { max-width: 420px }
.wt-one { margin: 0 }
tr.wt-form .sc-row { margin-top: 0 }
.wt-problem td { padding-top: 0; color: var(--gold); font-size: var(--fs-label); white-space: normal }

/* ---- phone: each worker becomes a card ---- */
@media (max-width: 700px) {
  .wt-stats { gap: 8px } .wt-stat { padding: 10px 12px } .wt-k { letter-spacing: .08em } .wt-v { font-size: 18px }
  .wt-scroll { overflow: visible } .wt thead { display: none }
  .wt, .wt tbody, .wt tr, .wt td { display: block; width: auto }
  .wt tr.wt-row { position: relative; padding: 12px 14px; border-top: 1px solid var(--line) }
  .wt tbody tr.wt-row:first-child { border-top: 0 }
  .wt tr.wt-row td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; align-items: center; text-align: right }
  .wt tr.wt-row td:first-child { padding: 0 70px 6px 0; text-align: left }
  .wt tr.wt-row td[data-k]::before { content: attr(data-k); font: 500 10.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted) }
  .wt tr.wt-row td.wt-act { position: absolute; top: 10px; right: 14px; padding: 0 }
  .wt-problem td { padding: 0 14px 10px }
  tr.wt-form td { padding: 12px 14px }
  tr.wt-form .shares { grid-template-columns: 1fr 1fr }
}
