/* Page styles: people area. Owned by its views; tokens and shared components live in ../app.css. */

/* ===== Singles ladder (Singles.dc.html) ===== */
.sg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 46px; }
.sg-note { margin: 0; font-size: 13px; color: var(--subtle); }
.sg-season-note a { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; vertical-align: middle; font-weight: 600; text-decoration: none; }
.sg-season-note[hidden] { display: none; }
.sg-list { padding: 0 var(--gutter); display: flex; flex-direction: column; }
.sg-pad { padding: 0 var(--gutter); }
.sg-empty-note { margin: 0 0 6px; padding: 14px 0; font-size: 14px; line-height: 1.45; color: var(--muted); border-bottom: 1px solid var(--line); }
.sg-row {
  display: grid; grid-template-columns: 30px 36px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  min-height: 64px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; border-bottom: 1px solid var(--line);
  background: transparent; text-decoration: none; color: var(--ink);
}
.sg-row:hover { color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.sg-row.me, .sg-row.me:hover { background: var(--gold-tint); border-bottom-color: transparent; }
.sg-rank { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }
.sg-av { width: 36px; height: 36px; border-radius: 18px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink); }
.sg-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sg-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-you { margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.sg-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sg-right { display: flex; align-items: baseline; gap: 8px; }
.sg-delta { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sg-delta.up { color: var(--ink); }
.sg-delta.down { color: var(--subtle); }
.sg-rating { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.sg-unplayed-h { margin: 16px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.sg-row.unplayed { min-height: 56px; padding: 0; margin: 0; border-radius: 0; color: var(--muted); }
.sg-row.unplayed:hover { color: var(--ink); background: transparent; }
.sg-row.unplayed .sg-rank { font-weight: 400; color: var(--faint); }
.sg-row.unplayed .sg-av { background: var(--surface); color: var(--muted); }
.sg-row.unplayed .sg-right { gap: 6px; }
.sg-row.unplayed .sg-rating { font-size: 24px; line-height: 1.1; min-width: 0; }
.sg-tag { font-size: 12px; }
.sg-recent { padding: 24px var(--gutter) 0; }
.sg-recent .eyebrow { color: var(--muted); }
.sg-feed { margin-top: 10px; display: flex; flex-direction: column; }
.sg-feed-empty { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sg-feed-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 3px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sg-feed-line { font-size: 15px; grid-row: 1; grid-column: 1; }
/* Name links: 44px tall hit area without growing the row (negative margins cancel the extra height). */
.sg-feed-line a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; vertical-align: middle; }
.sg-feed-line .w { color: var(--ink); font-weight: 700; text-decoration: none; }
.sg-feed-line .l { color: var(--muted); text-decoration: none; }
.sg-feed-fix { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: -3px -10px -3px 0; }
.sg-feed-line a:hover { text-decoration: underline; }
.sg-feed-line .verb { color: var(--subtle); }
.sg-feed-deltas { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.sg-feed-deltas .ld { color: var(--subtle); font-weight: 500; }
.sg-feed-meta { grid-row: 2; grid-column: 1; font-size: 12px; color: var(--subtle); }
.sg-feed-item .badge { align-self: start; }
.sg-feed-item .badge.corrected { grid-row: 2; grid-column: 2; }
.sg-feed-item.voided .sg-feed-line, .sg-feed-item.voided .sg-feed-line .w { color: var(--subtle); font-weight: 500; text-decoration: line-through; }

/* ===== Player profile (Profile.dc.html) ===== */
.pf-top { padding: 14px var(--gutter) 22px; display: flex; flex-direction: column; gap: 16px; }
.pf-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 46px; }
.pf-name {
  margin: 0 0 -10px; min-width: 0; padding-bottom: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 52px; line-height: 0.88;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-gear { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.pf-gear:hover { color: var(--gold-hover); }
.pf-ident { display: flex; align-items: center; gap: 12px; }
.pf-av { width: 44px; height: 44px; flex: none; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: var(--ink); }
.pf-titles { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf-title { align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--bg); background: var(--gold); border-radius: 6px; padding: 3px 8px; }
.pf-challenge { flex: none; }
.pf-of { font-size: 18px; color: var(--subtle); }
.stat-value.pf-unplayed { font-size: 22px; line-height: 34px; color: var(--muted); }
.pf-body { padding: 4px var(--gutter) 0; display: flex; flex-direction: column; gap: 28px; }
.pf-sec { display: flex; flex-direction: column; gap: 10px; }
.pf-sec.flat { gap: 0; }
.pf-sec.tight { gap: 8px; }
.pf-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pf-sec-head.center { align-items: center; }
.pf-h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pf-act-h { margin-bottom: 6px; }
.pf-sec-meta { font-size: 13px; color: var(--subtle); font-variant-numeric: tabular-nums; text-align: right; }
.pf-empty { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.pf-team { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); }
.pf-team:hover { color: var(--ink); border-color: var(--border-strong); }
.pf-team-who { display: flex; flex-direction: column; min-width: 0; }
.pf-team-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-team-meta { font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.pf-team-rating { font-family: var(--font-display); font-weight: 600; font-size: 26px; font-variant-numeric: tabular-nums; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.pf-table caption { text-align: left; font-size: 12px; color: var(--subtle); padding: 6px 0; }
.pf-table thead tr { color: var(--subtle); font-size: 12px; text-align: right; }
.pf-table thead th { font-weight: 600; }
.pf-table thead th:first-child { text-align: left; padding: 6px 0; }
.pf-table tbody tr { border-top: 1px solid var(--line); text-align: right; }
.pf-table tbody th { text-align: left; font-weight: 600; padding: 0; }
.pf-table tbody td { padding: 0 0 0 8px; }
.pf-plain { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.pf-plain:hover { color: var(--gold-hover); }
.pf-best { margin-left: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.seg.pf-seg { border-radius: 10px; }
.seg.pf-seg > button { padding: 0 12px; border-radius: 8px; }
.pf-h2h { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-h2h-empty { grid-column: 1 / -1; }
.pf-h2h-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; min-width: 0; }
.pf-h2h-cell:hover { color: var(--ink); border-color: var(--border-strong); }
.pf-h2h-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pf-h2h-wl { flex: none; font-family: var(--font-display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.pf-h2h-wl.up { color: var(--ink); }
.pf-h2h-wl.down { color: var(--subtle); }
.pf-h2h-wl.even { color: var(--muted); }
.pf-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; border: 1px solid var(--border); overflow: hidden; }
.pf-shot { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-shot + .pf-shot { border-left: 1px solid var(--border); }
.pf-shot-value { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-shot-label { font-size: 12px; color: var(--muted); }
.pf-foot { font-size: 12px; color: var(--subtle); }
.pf-act { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; border-top: 1px solid var(--line); }
.pf-kind { justify-self: start; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 5px; padding: 2px 5px; }
.pf-act-text { display: flex; flex-direction: column; min-width: 0; }
.pf-act-line { font-size: 14px; font-weight: 600; }
.pf-act-when { font-size: 12px; color: var(--subtle); }
.pf-act-res { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-act-res.up { color: var(--ink); }
.pf-act-res.down { color: var(--subtle); }
.pf-act.voided .pf-act-line { color: var(--subtle); font-weight: 500; }
.pf-trn { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.pf-trn:hover { color: var(--ink); }
.pf-trn-name { min-width: 0; }
.pf-trn-status { flex: none; color: var(--muted); font-weight: 600; }
.pf-trn-status.live { color: var(--gold); }

/* ===== Settings (Settings.dc.html) ===== */
.st-top { padding: 10px var(--gutter) 6px; display: flex; flex-direction: column; gap: 6px; }
.st-body { padding: 16px var(--gutter) 24px; display: flex; flex-direction: column; gap: 26px; }
.st-sec { display: flex; flex-direction: column; }
.st-h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.st-h2.tight { margin-bottom: 4px; }
.st-label { font-size: 14px; color: var(--muted); }
.st-row { display: flex; gap: 8px; }
.st-input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); color: var(--ink); font: 600 16px var(--font-body); }
.st-input:focus { border-color: var(--ink); outline: none; }
.st-input.invalid { border-color: var(--error-line); }
.st-save { height: 48px; padding: 0 16px; border-radius: 12px; background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); font: 700 14px var(--font-body); }
.st-save:hover:not(:disabled) { border-color: var(--muted); }
.st-save:disabled { color: var(--disabled-ink); }
.st-help { font-size: 12px; color: var(--subtle); }
.st-help-error { display: inline-flex; align-items: center; gap: 6px; color: var(--error-ink); }
.st-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--line); cursor: pointer; }
.st-note-text { display: flex; flex-direction: column; gap: 2px; }
.st-note-title { font-size: 15px; font-weight: 600; }
.st-note-sub { font-size: 12px; color: var(--subtle); }
.st-sw { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border-strong); cursor: pointer; }
.st-sw::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 12px; background: var(--muted); transition: transform 0.15s; }
.st-sw:checked { background: var(--red); border-color: var(--red); }
.st-sw:checked::before { transform: translateX(20px); background: #FFFFFF; }
.st-sw:disabled { opacity: 0.6; cursor: progress; }
.st-sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .st-sw::before { transition: none; } }
.st-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.st-link:hover { color: var(--ink); border-color: var(--border-strong); }
.st-link-label { font-size: 15px; font-weight: 600; }
.st-link-end { display: flex; align-items: center; gap: 8px; }
.st-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #FFFFFF; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-chev { color: var(--subtle); }
.st-rules { margin: 0; padding: 14px 16px 14px 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--soft-ink); }
.st-rules strong { color: var(--ink); }
.st-download { align-self: flex-start; min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.st-signout { height: 52px; border-radius: 12px; background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); font: 700 15px var(--font-body); }
.st-signout:hover:not(:disabled) { border-color: var(--muted); }
.st-signout:disabled { color: var(--disabled-ink); }
.st-others { font-size: 14px; }
.st-sessions { text-align: center; font-size: 12px; color: var(--subtle); }

/* ===== Members admin (Members.dc.html) ===== */
.mb-top { padding: 10px var(--gutter) 6px; display: flex; flex-direction: column; gap: 6px; }
.mb-body { padding: 16px var(--gutter) 40px; display: flex; flex-direction: column; gap: 26px; }
.mb-sec { display: flex; flex-direction: column; }
.mb-h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mb-h2.tight { margin-bottom: 4px; }
.mb-empty { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.mb-help { font-size: 12px; line-height: 1.45; color: var(--subtle); }
.mb-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); }
.mb-card-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mb-card-name { font-size: 16px; font-weight: 700; }
.mb-card-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mb-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mb-card-status:empty { display: none; }
.mb-approve { height: 44px; border: 0; border-radius: 10px; background: var(--ink); color: var(--bg); font: 700 14px var(--font-body); }
.mb-approve:disabled { background: var(--surface-2); color: var(--disabled-ink); }
.mb-reject { height: 44px; border-radius: 10px; background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); font: 600 14px var(--font-body); }
.mb-reject:disabled { color: var(--disabled-ink); }
.mb-row { display: flex; gap: 8px; }
.mb-row.top { align-items: flex-start; }
.mb-input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); color: var(--ink); font: 500 16px var(--font-body); }
.mb-input:focus { border-color: var(--ink); outline: none; }
textarea.mb-invite { height: 48px; min-height: 48px; padding: 12px 14px; line-height: 1.35; resize: none; overflow: hidden; }
.mb-input::placeholder { color: var(--subtle); }
.mb-send { flex: none; height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--red); color: #FFFFFF; font: 700 14px var(--font-body); }
.mb-send:disabled { background: var(--surface-2); color: var(--disabled-ink); }
.mb-save { flex: none; height: 48px; padding: 0 16px; border-radius: 12px; background: transparent; border: 1.5px solid var(--border-strong); color: var(--ink); font: 700 14px var(--font-body); }
.mb-save:disabled { color: var(--disabled-ink); }
.mb-label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mb-remove { height: 48px; border-radius: 12px; background: transparent; border: 1.5px solid var(--border-alert); color: var(--error-ink); font: 700 14px var(--font-body); }
.mb-remove:disabled { color: var(--disabled-ink); border-color: var(--line); }
.mb-sheet-meta { margin: 0; font-size: 14px; color: var(--muted); }
.mb-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 8px; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mb-item.removed { color: var(--subtle); }
.mb-item-who { display: flex; flex-direction: column; min-width: 0; }
.mb-item-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-item-email { font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--muted); border-radius: 6px; padding: 2px 6px; }
.mb-tag.admin { color: var(--gold); border-color: var(--gold); }
.mb-tag.removed { color: var(--subtle); border: 1px dashed var(--subtle); }
.mb-manage { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.mb-manage:hover { color: var(--ink); background: var(--surface); }
.mb-policy { margin: 0; padding: 14px; border-radius: 14px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mb-policy legend { padding: 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mb-radio { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; }
.mb-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.mb-radio-note { font-size: 12px; color: var(--subtle); }
.mb-policy .mb-help { padding-top: 6px; }
