.vs { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.vs h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px; }
.vs-lede { color: var(--muted); max-width: 70ch; margin: 0 0 14px; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.vs-card h2 { font-family: var(--display); font-size: 20px; margin: 0 0 10px; }
.vs-day { border-top: 1px solid var(--line); padding: 12px 0; }
.vs-day:first-child { border-top: 0; }
/* D-1081 polish: an aligned grid of equal-height cards, one name style (one line, ellipsis), a clear picked state */
.vs-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin: 10px 0; }
.vs-prod { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; min-width: 0; }
.vs-prod input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--mint-ink); }
.vs-prod span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.vs-prod:has(input:checked) { border-color: var(--mint-ink); background: var(--mint-soft); font-weight: 600; }
.vs-prod:focus-within { outline: 2px solid var(--mint-ink); outline-offset: 1px; }
.vs-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.vs-tools .vs-count { margin-left: auto; color: var(--muted); font-size: 14px; }
.vs-all { margin-top: 10px; }
.vs-send { margin: 6px 0 0; }
.vs-send .btn-primary { width: 100%; max-width: 360px; }
.vs-mine, .vs-ready { font-weight: 600; }
.vs-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.vs-t th, .vs-t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
.vs-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 12, 30, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vs-modal[hidden] { display: none; }
.vs-box { background: var(--surface); color: var(--ink); width: 100%; max-width: 400px; border-radius: 20px; padding: 24px 22px; text-align: center; }
/* D-1094 card mode: one matchup at a time */
.vs-progress { margin: 6px 0 4px; font-weight: 700; color: var(--muted); font-size: 14px; }
.vs-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 0 0 12px; }
.vs-bar i { display: block; height: 100%; background: var(--mint-ink); }
.vs-match { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.vs-q { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.vs-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.vs-side { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 88px; min-width: 0; padding: 12px 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.vs-side:hover, .vs-side:focus-visible { border-color: var(--mint-ink); }
.vs-side[aria-pressed="true"] { border-color: var(--mint-ink); background: var(--mint-soft); }
.vs-side.vs-pool { border-color: var(--violet-soft); }
.vs-who { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-side small { color: var(--muted); font-size: 13px; }
.vs-v { align-self: center; font-weight: 800; color: var(--muted); }
.vs-hidden { margin: 12px 0 0; font-size: 13px; }
.vs-card-tools { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0 0; }
.vs-listfold { margin-top: 12px; }
@keyframes vs-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.vs-enter { animation: vs-in .22s ease-out; }
@media (prefers-reduced-motion: reduce) { .vs-enter { animation: none; } }
@media (max-width: 520px) { .vs-sides { grid-template-columns: 1fr; } .vs-side { min-height: 64px; } .vs-v { padding: 2px 0; } }
/* D-1095 + RL3 (#276): the Send bar is always in view; on a phone it is fixed above the tab bar (not sticky), and main gets room so the last card is never under it */
@media (max-width: 760px) { .vs-send { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin: 0; padding: 10px 14px; background: var(--surface, #fff); box-shadow: 0 -8px 20px -14px rgba(20, 22, 31, .45); } main { padding-bottom: calc(66px + 110px); } }
/* Rule 16: who pays (and the estimate) under Send */
.vs-pays { display: block; margin-top: 6px; font-size: 13px; color: var(--muted, #5b6170); }
