/* team.css — Team link builder (team.html). Prefix tm-. Uses the pages.css tokens (light + dark). */
.tm { padding-bottom: 40px; }
.tm-intro { margin: 26px 0 18px; }
.tm-kicker { margin: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.tm-intro h1 { font-size: 1.8rem; margin: 4px 0 8px; }
.tm-lead { margin: 0 0 14px; max-width: 70ch; color: var(--text); }
.tm-privacy { margin: 0 0 12px; }
.tm-buy { margin: 0; font-size: .9rem; color: var(--muted); }
.tm-buy a { font-weight: 600; }

.tm-card { margin-top: 16px; }
.tm-card h2 { font-size: 1.15rem; margin: 0 0 14px; }
.tm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.tm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; }
.tm-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.tm-small { padding: 6px 12px; font-size: .84rem; }

.tm-paste { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-2); }
.tm-paste summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.tm-paste textarea { margin-top: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .84rem; }

.tm-row { position: relative; margin: 0 0 12px; padding: 12px 14px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); min-width: 0; }
.tm-row legend { padding: 0 6px; font-weight: 700; font-size: .84rem; color: var(--ink); }
.tm-row input { padding: 9px 11px; }
.tm-remove { margin-top: 10px; }
.tm-lender { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.tm-lender summary { cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--ink); }
.tm-lender .field-help { margin: 6px 0 8px; }
.tm-lender .btn { margin-top: 10px; }
.tm-check { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; grid-column: span 2; align-self: end; padding-bottom: 8px; }
.tm-check input { width: 18px; height: 18px; flex: none; }

.tm-build-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 16px;
  padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }

.tm-keynote { margin: 0 0 4px; }
#tm-out { display: grid; gap: 12px; margin-top: 14px; }
.tm-agent { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.tm-agent h3 { margin: 0 0 4px; font-size: 1rem; overflow-wrap: anywhere; }
.tm-agent .field { margin-top: 10px; }
.tm-status { margin: 2px 0; font-size: .84rem; font-weight: 600; }
.tm-status.is-ok { color: var(--good); }
.tm-status.is-bad { color: var(--bad); }
.tm-warn { margin: 4px 0; font-size: .82rem; color: var(--warn-text); }
.tm-copyrow { display: flex; gap: 6px; align-items: center; min-width: 0; }
.tm-copyrow input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; padding: 8px 10px; }
.tm-agent textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; resize: vertical; }

.tm-qr-wrap { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.tm-qr-wrap h3 { margin: 0 0 8px; font-size: 1rem; }
.tm-qr { width: 160px; max-width: 100%; padding: 6px; background: #fff; border-radius: 8px; border: 1px solid var(--border); }
.tm-qr svg { display: block; width: 100%; height: auto; }

.tm-keys { margin: 6px 0; padding-left: 18px; }
.tm-keys code, .tm-seat-table code { overflow-wrap: anywhere; font-size: .82rem; }
.tm-seat-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .88rem; }
.tm-seat-table th, .tm-seat-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tm-seat-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

@media (max-width: 860px) {
  .tm-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .tm-intro h1 { font-size: 1.45rem; }
  .tm-grid2, .tm-grid4 { grid-template-columns: 1fr; }
  .tm-check { grid-column: auto; padding-bottom: 0; }
  .tm-copyrow { flex-wrap: wrap; }
  .tm-copyrow input { flex-basis: 100%; }
  .wrap.tm { padding: 0 14px 40px; }
  .tm-card { padding: 16px; }
}
@media print {
  .tm-build-bar, .tm-paste, .tm-remove, .tm-row-actions, #tm-seats { display: none !important; }
}
