.wtc {
  --teal-tint: rgba(13, 148, 136, 0.08);
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wtc .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtc .pill {
  display: inline-block;
  padding: 0.14rem 0.55rem;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  background: var(--cream);
}
.wtc .head { padding: 2.6rem 0 1.6rem; }
.wtc .sample-data {
  margin: 0 0 0.55rem;
  color: #1C1917;
  font-size: 1rem;
  font-weight: 700;
}
.wtc .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.wtc .rule { width: 3.5rem; height: 1px; background: var(--brass); margin: 0.55rem 0 1rem; }
.wtc h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.wtc .lede {
  margin-top: 0.6rem;
  color: rgba(28, 25, 23, 0.72);
  font-size: 1.06rem;
  max-width: 58ch;
}
.wtc .meta {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}
.wtc .list {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.05), 0 8px 24px rgba(15, 118, 110, 0.05);
  overflow: hidden;
  margin-bottom: 3rem;
}
.wtc .row {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
}
.wtc .row:first-child { border-top: 0; }
.wtc .idx {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal-dark);
  background: var(--teal-tint);
}
.wtc .who { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.wtc .why { color: rgba(28, 25, 23, 0.75); font-size: 0.95rem; line-height: 1.35; margin-top: 0.1rem; }
.wtc .detail { color: var(--muted); font-size: 0.86rem; line-height: 1.35; margin-top: 0.2rem; }
.wtc .tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}
.wtc .tag.stopped,
.wtc .tag.dropped { color: var(--charcoal); background: var(--cream-deep); }
.wtc .tag.late { color: var(--cream); background: var(--charcoal); }
.wtc .rows { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.wtc .chev { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.wtc .row.sel { background: var(--teal-tint); box-shadow: inset 3px 0 0 var(--teal); }
.wtc .row.sel .idx { background: var(--teal); color: #fff; }
.wtc .endcol { display: flex; align-items: center; gap: 0.8rem; }
.wtc .expand {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  background: #FCFAF6;
}
.wtc .expand.solo { grid-template-columns: minmax(0, 1fr); }
.wtc .table-scroll { overflow-x: auto; max-width: 100%; }
.wtc .by-month-wrap { display: none; }
.wtc .inv.months { min-width: 36rem; width: 100%; }
.wtc .inv.by-month { width: 100%; min-width: 0; table-layout: fixed; }
.wtc .inv.by-month th,
.wtc .inv.by-month td { white-space: normal; overflow-wrap: anywhere; }
.wtc .inv.by-month th:not(:first-child),
.wtc .inv.by-month td:not(:first-child) { text-align: right; }
.wtc .inv.by-month th:first-child,
.wtc .inv.by-month td:first-child { text-align: left; width: 18%; }
.wtc .inv.months th:not(:first-child),
.wtc .inv.months td:not(:first-child) { text-align: right; white-space: nowrap; }
.wtc .inv.months th:first-child,
.wtc .inv.months td:first-child { text-align: left; }
.wtc .inv tr.gone td { background: var(--cream); }
.wtc .inv td.none { color: var(--muted); font-style: italic; font-weight: 400; }
.wtc .card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
}
.wtc .cardtop {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.wtc .kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.wtc .cname { font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin-top: 0.15rem; }
.wtc .csub { font-size: 0.9rem; color: var(--muted); }
.wtc .changed {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.12rem;
  line-height: 1.35;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--teal-tint);
  margin-bottom: 1rem;
}
.wtc .inv { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.wtc .inv th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.wtc .inv td { padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.wtc .inv th:last-child,
.wtc .inv td:last-child { text-align: right; }
.wtc .inv td.amt { font-weight: 600; }
.wtc .paid {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.wtc .foot { margin-top: 0.8rem; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.wtc .draft .to { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.8rem; }
.wtc .draft .to b { color: var(--charcoal); font-weight: 600; }
.wtc .chat { background: #F3EFE7; border-radius: 12px; padding: 1rem 0.9rem; margin-bottom: 0.9rem; }
.wtc .bubble {
  margin-left: auto;
  max-width: 94%;
  background: #E3F3F1;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 12px 12px 4px 12px;
  padding: 0.75rem 0.85rem 0.55rem;
  font-size: 0.98rem;
  line-height: 1.45;
}
.wtc .bubble p + p { margin-top: 0.55rem; }
.wtc .bubble .bmeta {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--muted);
}
.wtc .draftpill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px dashed var(--teal-dark);
  color: var(--teal-dark);
  background: var(--paper);
}
.wtc .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.wtc .btn {
  cursor: default;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.1;
}
.wtc .btn.primary { flex: 1 1 12rem; }
.wtc .actions .btn,
.wtc .actions .btn.primary,
.wtc .actions .btn.ghost {
  background: #fff;
  color: #57534E;
  border: 1px solid rgba(28, 25, 23, 0.22);
  cursor: default;
}
.wtc .actions .btn svg { color: inherit; }
.wtc .btn svg { width: 1.05rem; height: 1.05rem; }
.wtc .never {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}
.wtc .never svg { flex: none; width: 1rem; height: 1rem; margin-top: 0.12rem; color: var(--teal-dark); }
.wtc .dtp { margin: 0 0 1rem; }
.wtc .dtphead {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.wtc .dtprow {
  display: grid;
  grid-template-columns: 4.6rem 1fr 4.9rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  margin: 0.32rem 0;
}
.wtc .dtprow .lab { color: var(--charcoal); font-weight: 600; }
.wtc .dtprow .val { color: var(--muted); text-align: right; }
.wtc .track { position: relative; height: 14px; border-radius: 4px; background: rgba(28, 25, 23, 0.05); }
.wtc .track .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--teal); }
.wtc .track .fill.open {
  background: repeating-linear-gradient(135deg, rgba(28, 25, 23, 0.78) 0 4px, rgba(28, 25, 23, 0.55) 4px 8px);
}
.wtc .track .due {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 37.5%;
  border-left: 1.5px dashed var(--charcoal);
}
.wtc .dtpkey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.45rem;
}
.wtc .dtpkey i {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  vertical-align: -0.1rem;
  margin-right: 0.3rem;
}
.wtc .dtpkey i.p { background: var(--teal); }
.wtc .dtpkey i.o {
  background: repeating-linear-gradient(135deg, rgba(28, 25, 23, 0.78) 0 3px, rgba(28, 25, 23, 0.55) 3px 6px);
}
.wtc .dtpkey i.d { width: 0; height: 0.85rem; border-radius: 0; border-left: 1.5px dashed var(--charcoal); }
.wtc .inv.late td,
.wtc .inv.late th { white-space: nowrap; }
.wtc .inv.late th:nth-child(4),
.wtc .inv.late td:nth-child(4) { text-align: right; }
.wtc .inv tr.open td { background: var(--cream); }
.wtc .inv tr.open td.od { font-weight: 700; }
.wtc .inv tr.total td { border-bottom: 0; font-weight: 700; padding-top: 0.65rem; }
@media (max-width: 820px) {
  .wtc .expand { grid-template-columns: 1fr; padding: 1.1rem 0.85rem 1.25rem; }
}
@media (max-width: 639px) {
  .wtc .table-scroll { display: none; }
  .wtc .by-month-wrap { display: block; }
  .wtc .inv.by-month { font-size: 0.82rem; }
  .wtc .inv.by-month th,
  .wtc .inv.by-month td { padding: 0.45rem 0.2rem; }
}
@media (max-width: 560px) {
  .wtc .head { padding: 1.9rem 0 1.2rem; }
  .wtc .row { grid-template-columns: 2rem 1fr auto; gap: 0.7rem; padding: 0.9rem; align-items: start; }
  .wtc .row .endcol { grid-column: 2 / -1; justify-content: flex-start; margin-top: -0.2rem; }
  .wtc .row .chev { display: none; }
  .wtc .card { padding: 1rem 0.9rem 0.95rem; }
  .wtc .inv.late { font-size: 0.84rem; }
  .wtc .inv.late th,
  .wtc .inv.late td { padding-left: 0.18rem; padding-right: 0.18rem; }
  .wtc .inv.late th { font-size: 0.64rem; letter-spacing: 0.06em; }
  .wtc .dtprow { grid-template-columns: 4.1rem 1fr 4.4rem; gap: 0.45rem; font-size: 0.78rem; }
  .wtc .actions { flex-direction: column; }
  .wtc .actions .btn { width: 100%; flex: none; }
  .wtc .actions .btn.primary { order: -1; }
}
