/* Ride together (js/together.js): mates on the same train or bus. Spacing 4/8/12/16/20/24/32, radii 12/20/999, type 12/14/16/18/22/34 (critic/REPORT.md). Colours only from the theme tokens, so every theme and dark mode follow. */
.tg-body, .tg-form { padding-bottom: 32px; }
.tg-lead { margin: 8px 4px 0; }
.tg-title { margin: 0 0 4px; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.tg-sub { margin: 0 0 20px; font-size: var(--fs-body); }
.tg-row .tg-tag, .tg-tag { flex: none; font-size: var(--fs-cap); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 999px; }
.tg-card { padding: 20px; border-radius: 20px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 12px; }
.tg-card .label { font-size: var(--fs-cap); letter-spacing: .08em; }
.tg-card h2, .tg-big { margin: 0; font-size: var(--fs-title3); line-height: 1.25; font-weight: 800; }
.tg-big { color: var(--text); }
.tg-people-col { display: flex; flex-direction: column; gap: 0; }
.tg-mem { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, color-mix(in srgb, var(--text) 12%, transparent)); min-width: 0; }
.tg-mem:first-child { border-top: 0; }
.tg-mem .mate-av { margin-top: 2px; }
.tg-mem .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.tg-top b { font-size: var(--fs-row); font-weight: 700; }
.tg-where { font-size: var(--fs-sub); color: var(--muted); line-height: 1.4; }
.tg-where b { color: var(--text); font-weight: 700; }
.tg-t { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tg-pill { flex: none; font-size: var(--fs-cap); font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); text-align: center; line-height: 1.25; }
.tg-pill.ok { background: var(--ok-soft); color: var(--ok); }
.tg-pill.warn { background: var(--warn-soft); color: var(--warn); }
.tg-pill.bad { background: var(--bad-soft); color: var(--bad); }
.tg-arrive { margin: 0; font-size: var(--fs-body); font-weight: 600; } .tg-arrive.late { color: var(--bad); }
.tg-wait { margin: 0; }
.tg-car { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--line, color-mix(in srgb, var(--text) 12%, transparent)); font-size: var(--fs-sub); }
.tg-car > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tg-car-seg { flex: 1 1 200px; max-width: 260px; }
.tg-car-seg button { min-height: 36px; font-size: var(--fs-sub); }
.tg-people { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-chip { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-sub); font-weight: 600; }
.tg-alts { margin: 0 0 12px; }
.tg-alts summary { cursor: pointer; padding: 12px 4px; font-size: var(--fs-sub); font-weight: 600; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.tg-quick { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.tg-quick .btn, .tg-body > .btn { margin-top: 0; }
.tg-body > .btn { margin-top: 8px; }
.tg-late { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: var(--fs-sub); font-weight: 600; }
.tg-foot { display: flex; justify-content: space-between; gap: 12px; margin: 24px 4px 0; }
.tg-foot .link { min-height: 44px; font-size: var(--fs-sub); }
.tg-priv { margin: 20px 4px 0; }
.tg-when { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; }
.tg-form .field { margin-top: 12px; }
.tg-form .field select, .tg-form .field input[type=time] { width: 100%; font: inherit; color: inherit; background: transparent; border: 0; padding: 4px 0 0; min-height: 28px; }
.tg-form > .btn { margin-top: 20px; }
.tg-form .mate-pick input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: var(--accent); }
@media (max-width: 380px) { .tg-title { font-size: var(--fs-title); } .tg-top b { font-size: var(--fs-body); } }

/* People → Meet up: ticking mates, quick places in the plan form */
.mt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-head .link { min-height: 44px; font-weight: 700; }
.mt-pickhint { margin: 0 4px 12px; }
.mate-pick.off { opacity: .55; }
.mate-pick input[type=checkbox] { width: 24px; height: 24px; flex: none; accent-color: var(--accent); }
.tg-places { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

/* invites: People tab section and Home card */
.tg-inbox { display: flex; flex-direction: column; gap: 12px; margin: 0 0 var(--card-gap, 12px); }
.tg-invite { padding: 20px; border-radius: 20px; }
.tg-inv-top { display: flex; flex-direction: column; gap: 4px; }
.tg-inv-top b { font-size: var(--fs-row); font-weight: 700; }
.tg-inv-top small { font-size: var(--fs-cap); letter-spacing: .04em; text-transform: uppercase; }
.tg-inv-what { margin: 12px 0 16px; font-size: var(--fs-body); line-height: 1.5; cursor: pointer; }
.tg-inv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* v59: each person's own steps, who dropped out, the carriage to meet in, Can't make it / cancel for everyone */
.tg-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: tgs; }
.tg-step { position: relative; padding-left: 32px; font-size: var(--fs-body); line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.tg-step::before { counter-increment: tgs; content: counter(tgs); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-cap); font-weight: 800; background: var(--main-bg); color: var(--main-fg); }
.tg-step.mate { font-weight: 500; color: var(--muted); }
.tg-step.mate::before { background: var(--surface-2); color: var(--muted); }
.tg-same { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sub); line-height: 1.4; color: var(--ok); font-weight: 600; }
.tg-mem.out b { color: var(--muted); }
.tg-car { flex-direction: column; align-items: stretch; }
.tg-stand { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sub); line-height: 1.4; }
.tg-car-seg { max-width: none; }
.tg-car-seg button { min-height: 44px; }
.tg-carnum { align-self: flex-start; min-height: 40px; font-size: var(--fs-sub); }
.tg-cars { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tg-cars .chip { min-width: 44px; min-height: 44px; justify-content: center; }
.tg-cars .chip[aria-pressed="true"] { background: var(--main-bg); color: var(--main-fg); }
.tg-cars small { flex-basis: 100%; }
.tg-foot { flex-direction: column; align-items: stretch; }
.tg-cant { min-height: 48px; }
.tg-foot .link.danger, .btn.danger { color: var(--bad); }
.btn.primary.danger { background: var(--bad); color: #fff; }
