:root {
  --pj-ink: #0f172a;
  --pj-muted: #64748b;
  --pj-line: #e2e8f0;
  --pj-bg: #f5f7fb;
  --pj-card: #ffffff;
  --pj-primary: #1d4ed8;
  --pj-primary-soft: #e8efff;
  --pj-red: #dc2626;
  --pj-win: #15803d;
  --pj-win-bg: #dcfce7;
  --pj-loss: #b91c1c;
  --pj-loss-bg: #fee2e2;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-link-color: var(--pj-primary);
  --bs-link-color-rgb: 29, 78, 216;
}
html, body { overflow-x: hidden; }
body { background: var(--pj-bg); color: var(--pj-ink); font-size: .95rem; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.01em; }

/* header */
.pj-nav { background: var(--pj-ink); }
.pj-nav .navbar-brand { color: #fff; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; }
.pj-nav .navbar-brand:hover { text-decoration: none; }
.pj-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--pj-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; }
.pj-nav .nav-link { color: #cbd5e1; font-weight: 500; }
.pj-nav .nav-link:hover { color: #fff; text-decoration: none; }
.pj-nav .pj-email { color: #94a3b8; font-size: .8rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* cards */
.pj-card { background: var(--pj-card); border: 1px solid var(--pj-line); border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.pj-card-head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--pj-line); display: flex;
  align-items: center; gap: .5rem; flex-wrap: wrap; }
.pj-card-head h2, .pj-card-head h3 { font-size: 1rem; margin: 0; }
.pj-card-body { padding: 1rem 1.1rem; }
.pj-section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pj-muted);
  font-weight: 700; margin: 1.75rem 0 .6rem; }

/* hero */
.pj-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); color: #fff; border-radius: 16px;
  padding: 1.6rem 1.5rem; margin-bottom: 1.25rem; }
.pj-hero h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.pj-hero .pj-sub { color: #cbd5e1; font-size: .9rem; }
.pj-hero .pj-sub a { color: #bfdbfe; }
.pj-stats { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.1rem; }
.pj-stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  padding: .55rem .9rem; min-width: 96px; }
.pj-stat b { display: block; font-size: 1.35rem; line-height: 1.2; }
.pj-stat span { font-size: .75rem; color: #cbd5e1; text-transform: uppercase; letter-spacing: .06em; }

/* light stat tiles (athlete header) */
.pj-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; }
.pj-tile { background: var(--pj-bg); border-radius: 12px; padding: .6rem .8rem; }
.pj-tile b { display: block; font-size: 1.25rem; line-height: 1.2; }
.pj-tile span { font-size: .72rem; color: var(--pj-muted); text-transform: uppercase; letter-spacing: .06em; }

/* athlete header */
.pj-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pj-primary-soft); color: var(--pj-primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex: none; }
.pj-avatar.sm { width: 36px; height: 36px; font-size: .8rem; }

/* badges */
.pj-res { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px;
  font-weight: 800; font-size: .8rem; flex: none; }
.pj-res.W { background: var(--pj-win-bg); color: var(--pj-win); }
.pj-res.L { background: var(--pj-loss-bg); color: var(--pj-loss); }
.pj-method { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  white-space: nowrap; background: #f1f5f9; color: #334155; }
.pj-method.ippon { background: #dbeafe; color: #1e40af; }
.pj-method.wazari { background: #e0f2fe; color: #0369a1; }
.pj-method.yuko { background: #ede9fe; color: #6d28d9; }
.pj-method.hansokumake { background: #fee2e2; color: #b91c1c; }
.pj-method.decision { background: #fef3c7; color: #92400e; }
.pj-method.walkover { background: #f1f5f9; color: #64748b; }
.pj-time { color: var(--pj-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.pj-medal { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pj-medal.p1 { background: #fef3c7; color: #92400e; }
.pj-medal.p2 { background: #e5e7eb; color: #374151; }
.pj-medal.p3 { background: #fde6d3; color: #9a3412; }
.pj-medal.px { background: #f1f5f9; color: var(--pj-muted); font-weight: 600; }
.pj-pill { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--pj-primary-soft); color: var(--pj-primary); white-space: nowrap; }

.pj-pill.grey { background: #f1f5f9; color: #475569; }
.pj-pill.red { background: #fee2e2; color: #b91c1c; }

/* watch button */
.pj-watch { display: inline-flex; align-items: center; gap: .35rem; background: var(--pj-red); color: #fff;
  border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; font-weight: 700; white-space: nowrap; flex: none;
  box-shadow: 0 1px 2px rgba(220, 38, 38, .3); }
.pj-watch:hover { background: #b91c1c; color: #fff; text-decoration: none; }
.pj-watch-tri { font-size: .65rem; }

/* match rows (list instead of table: wraps on mobile) */
.pj-rows { list-style: none; margin: 0; padding: 0; }
.pj-row { display: flex; align-items: center; gap: .65rem; padding: .6rem 1.1rem; border-top: 1px solid var(--pj-line); }
.pj-rows > .pj-row:first-child { border-top: 0; }
.pj-row.has-video { background: #fffbfb; }
.pj-row-main { flex: 1 1 auto; min-width: 0; }
.pj-row-title { font-weight: 600; overflow-wrap: anywhere; }
.pj-row-meta { font-size: .78rem; color: var(--pj-muted); overflow-wrap: anywhere; }
.pj-row-side { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.pj-fight { color: var(--pj-muted); font-size: .75rem; font-variant-numeric: tabular-nums; min-width: 2.2rem; flex: none; }
.pj-def { color: var(--pj-muted); font-weight: 400; font-size: .85em; margin: 0 .2rem; }
@media (max-width: 575.98px) {
  .pj-row { flex-wrap: wrap; padding: .6rem .85rem; }
  .pj-row-main { flex-basis: calc(100% - 40px); }
  .pj-row-side { width: 100%; justify-content: flex-start; padding-left: 34px; }
  .pj-row.no-res .pj-row-side { padding-left: 0; }
  .pj-athlete .pj-actions { padding-left: 48px; }
  .pj-hero { padding: 1.2rem 1rem; }
  .pj-hero h1 { font-size: 1.3rem; }
  .pj-card-head, .pj-card-body { padding-left: .85rem; padding-right: .85rem; }
}

/* collapsible divisions / events */
details.pj-fold { border-top: 1px solid var(--pj-line); }
details.pj-fold:first-of-type { border-top: 0; }
details.pj-fold > summary { list-style: none; cursor: pointer; padding: .7rem 1.1rem; display: flex; align-items: center;
  gap: .5rem; }
details.pj-fold > summary::-webkit-details-marker { display: none; }
details.pj-fold > summary::before { content: "\25B8"; color: var(--pj-muted); transition: transform .15s; display: inline-block; width: .8rem; }
details.pj-fold[open] > summary::before { transform: rotate(90deg); }
details.pj-fold > summary:hover { background: #f8fafc; }
details.pj-fold .pj-rows { border-top: 1px solid var(--pj-line); background: #fcfdff; }
.pj-fold-title { font-weight: 600; flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }

/* history */
.pj-event { padding: .9rem 1.1rem; border-top: 1px solid var(--pj-line); }
.pj-event:first-child { border-top: 0; }
.pj-event-head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.pj-event-title { font-weight: 700; flex: 1 1 220px; min-width: 0; }
.pj-event-date { color: var(--pj-muted); font-size: .8rem; white-space: nowrap; }
.pj-div { margin-top: .55rem; }
.pj-div-head { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .82rem; color: #334155; }
.pj-div .pj-rows { margin-top: .35rem; border: 1px solid var(--pj-line); border-radius: 10px; overflow: hidden; }
.pj-div .pj-row { padding: .45rem .75rem; }
.pj-more > summary { list-style: none; cursor: pointer; padding: .75rem 1.1rem; border-top: 1px solid var(--pj-line);
  color: var(--pj-primary); font-weight: 600; text-align: center; }
.pj-more > summary::-webkit-details-marker { display: none; }
.pj-more[open] > summary { display: none; }

/* athlete list */
.pj-athlete { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.1rem; border-top: 1px solid var(--pj-line); flex-wrap: wrap; }
.pj-athlete:first-child { border-top: 0; }
.pj-athlete .pj-row-main { flex: 1 1 160px; }
.pj-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.pj-search .form-control { border-radius: 10px; }
.pj-search .btn { border-radius: 10px; }
.btn-primary { --bs-btn-bg: var(--pj-primary); --bs-btn-border-color: var(--pj-primary); }
.pj-empty { color: var(--pj-muted); padding: 1rem 1.1rem; }
.pj-note { font-size: .82rem; color: var(--pj-muted); }
footer { color: var(--pj-muted); }

/* dashboard */
.pj-pill.green { background: var(--pj-win-bg); color: var(--pj-win); }
.pj-act { align-items: flex-start; }
.pj-act-ico { width: 30px; height: 30px; border-radius: 9px; flex: none; display: inline-flex; align-items: center;
  justify-content: center; font-size: .85rem; background: #f1f5f9; color: #475569; margin-top: .1rem; }
.pj-act-ico.result { background: #fef3c7; }
.pj-act-ico.reg { background: var(--pj-primary-soft); color: var(--pj-primary); font-weight: 700; }
.pj-act-ico.reg.dropped { background: var(--pj-loss-bg); color: var(--pj-loss); }
.pj-act-ico.reg.changed { background: #ede9fe; color: #6d28d9; }
.pj-act .pj-row-side { align-self: flex-start; }
.pj-when { color: var(--pj-muted); font-size: .78rem; white-space: nowrap; }
.pj-act-bouts { display: flex; flex-direction: column; gap: .3rem; margin-top: .4rem; }
.pj-act-bout { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .85rem; }
.pj-act-bout .pj-res { width: 22px; height: 22px; font-size: .7rem; }
.pj-invite { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; border-top: 1px solid var(--pj-line); background: #f8fafc; font-size: .88rem;
  border-radius: 0 0 14px 14px; }
.pj-sub { margin-top: .4rem; border: 1px solid var(--pj-line); border-radius: 10px; overflow: hidden; }
.pj-sub .pj-row { padding: .45rem .75rem; }
@media (max-width: 575.98px) {
  .pj-act .pj-row-main, .pj-row.has-avatar .pj-row-main { flex: 1 1 0; }
  .pj-row.has-avatar .pj-row-side { padding-left: 46px; }
  .pj-act .pj-row-side { padding-left: 40px; }
  .pj-invite { padding: .8rem .85rem; }
}
.pj-more-rows { border-top: 1px solid var(--pj-line); }

/* ---------- landing (owner 2026-11-05: ChatGPT-style) ---------- */
body.pj-landing { background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.pj-topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.pj-topbar-brand { font-size: 1.15rem; font-weight: 600; color: var(--pj-ink); letter-spacing: -.01em; padding: 6px 8px; border-radius: 10px; }
.pj-topbar-brand:hover { text-decoration: none; color: var(--pj-ink); background: #f4f4f5; }
.pj-topbar-right { display: flex; gap: 8px; }
.pj-pill-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.pj-pill-btn:hover { text-decoration: none; }
.pj-pill-btn.dark { background: #0d0d0d; color: #fff; }
.pj-pill-btn.dark:hover { background: #2f2f2f; color: #fff; }
.pj-pill-btn.outline { border-color: #e3e3e3; color: #0d0d0d; background: #fff; }
.pj-pill-btn.outline:hover { background: #f4f4f5; color: #0d0d0d; }
.pj-landing-main { flex: 1; display: flex; padding: 0 16px; }
.pj-landing-center { width: 100%; min-width: 0; max-width: 720px; margin: auto; padding-bottom: 14vh; text-align: center; }
.pj-landing-center.has-results { margin-top: 10vh; }
.pj-landing-title { font-size: clamp(1.5rem, 3.6vw, 1.9rem); font-weight: 500; letter-spacing: -.01em; color: #0d0d0d; margin: 0 0 28px; }
.pj-composer { display: flex; align-items: center; background: #fff; border-radius: 28px; padding: 10px 10px 10px 22px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06); }
.pj-composer:focus-within { box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 4px 18px rgba(0,0,0,.08); }
.pj-composer input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 1rem; background: transparent; padding: 10px 0; color: #0d0d0d; }
.pj-composer input::placeholder { color: #8f8f8f; }
.pj-composer button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #0d0d0d; color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; }
.pj-composer button:hover { background: #2f2f2f; }
.pj-chips { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pj-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #e3e3e3;
  color: #5d5d5d; font-size: .88rem; background: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-chip:hover { background: #f4f4f5; color: #0d0d0d; text-decoration: none; }
.pj-landing-results { margin-top: 14px; text-align: left; border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05); }
.pj-landing-hit { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid #f0f0f0; color: #0d0d0d; }
.pj-landing-hit:first-child { border-top: 0; }
.pj-landing-hit:hover { background: #f7f7f8; text-decoration: none; color: #0d0d0d; }
.pj-hit-name { font-weight: 500; }
.pj-hit-club { color: #8f8f8f; font-size: .9rem; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-landing-empty { padding: 14px 20px; color: #8f8f8f; }
.pj-landing-foot { text-align: center; color: #8f8f8f; font-size: .75rem; padding: 10px 16px 16px; }
.pj-hit-group { padding: 10px 20px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8f8f8f; background: #fafafa; }
.pj-hit-icon { display: inline-block; width: 1.5em; opacity: .8; }

/* ======== ChatGPT-style theme for every page (owner 2026-11-05) ======== */
:root {
  --pj-ink: #0d0d0d; --pj-muted: #6b6b6b; --pj-line: #e5e5e5; --pj-bg: #ffffff; --pj-card: #ffffff;
  --pj-primary: #0d0d0d; --pj-primary-soft: #f4f4f4; --pj-red: #0d0d0d;
  --pj-win: #1a7f37; --pj-win-bg: #e9f6ec; --pj-loss: #b42318; --pj-loss-bg: #fdecea;
  --bs-link-color: #0d0d0d; --bs-link-hover-color: #0d0d0d; --bs-link-color-rgb: 13,13,13; --bs-link-hover-color-rgb: 13,13,13;
}
body { background: #fff; color: var(--pj-ink); }
a { color: var(--pj-ink); text-decoration-color: rgba(13,13,13,.25); }
a:hover { color: var(--pj-ink); text-decoration: underline; text-underline-offset: 2px; }
.pj-topbar-app { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #f0f0f0; margin-bottom: 1.25rem; }
.pj-topbar-right { flex-wrap: wrap; justify-content: flex-end; }
.pj-pill-btn.ghost { color: #5d5d5d; background: transparent; }
.pj-pill-btn.ghost:hover, .pj-pill-btn.ghost.active { background: #f4f4f4; color: #0d0d0d; }
main.container { max-width: 880px; }
footer.container { max-width: 880px; color: #8f8f8f; }
/* cards: flat, hairline border, generous radius */
.pj-card { border: 1px solid var(--pj-line); border-radius: 16px; box-shadow: none; }
.pj-section-title { color: #8f8f8f; }
/* tournament hero: plain card instead of navy */
.pj-hero { background: #fff; color: var(--pj-ink); border: 1px solid var(--pj-line); box-shadow: none; }
.pj-hero .pj-sub { color: var(--pj-muted); }
.pj-hero .pj-sub a { color: var(--pj-ink); }
.pj-hero .small.text-uppercase { color: #8f8f8f !important; }
.pj-stat { background: #f7f7f8; border: 0; }
.pj-stat span { color: #8f8f8f; }
.pj-tile { background: #f7f7f8; }
.pj-avatar { background: #f4f4f4; color: #0d0d0d; }
/* badges: neutral; W/L and medals keep meaning */
.pj-method, .pj-method.ippon, .pj-method.wazari, .pj-method.yuko, .pj-method.decision, .pj-method.walkover {
  background: #f4f4f4; color: #3d3d3d; }
.pj-method.ippon { background: #e9e9e9; color: #0d0d0d; }
.pj-method.hansokumake { background: var(--pj-loss-bg); color: var(--pj-loss); }
.pj-pill { background: #f4f4f4; color: #3d3d3d; }
.pj-pill.grey { background: #f4f4f4; color: #5d5d5d; }
.pj-pill.red { background: #0d0d0d; color: #fff; }
.pj-medal.px { background: #f4f4f4; }
/* watch = black pill */
.pj-watch { background: #0d0d0d; color: #fff; border-radius: 999px; }
.pj-watch:hover { background: #2f2f2f; color: #fff; }
.pj-row.has-video { background: #fafafa; }
details.pj-fold > summary:hover, .pj-landing-hit:hover { background: #f7f7f8; }
details.pj-fold .pj-rows { background: #fff; }
.pj-div-head { color: #3d3d3d; }
/* bootstrap buttons + forms -> black / neutral */
.btn { border-radius: 999px; font-weight: 500; }
.btn-primary, .btn-dark { background: #0d0d0d; border-color: #0d0d0d; color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-dark:hover { background: #2f2f2f; border-color: #2f2f2f; color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success { color: #0d0d0d; border-color: #e3e3e3; background: #fff; }
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-success:hover { background: #f4f4f4; color: #0d0d0d; border-color: #e3e3e3; }
.btn-secondary, .btn-success { background: #f4f4f4; border-color: #f4f4f4; color: #0d0d0d; }
.btn-secondary:hover, .btn-success:hover { background: #e9e9e9; border-color: #e9e9e9; color: #0d0d0d; }
.form-control { border-radius: 999px; border-color: #e3e3e3; padding-left: 1rem; }
.form-control:focus { border-color: #cfcfcf; box-shadow: 0 0 0 3px rgba(13,13,13,.06); }
.alert { border-radius: 14px; }
.text-primary { color: #0d0d0d !important; }

/* ---------- athlete stats + common opponents (stats_elo_plan Phases 1, 5) ---------- */
.pj-sec-note { text-transform: none; letter-spacing: 0; font-weight: 500; color: #b4b4b4; margin-left: .35rem; }
.pj-wl { margin-bottom: 1.1rem; }
.pj-wl-text { font-size: .88rem; color: #5d5d5d; font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.pj-wl-text b { color: var(--pj-ink); font-weight: 600; }
.pj-wl-bar { height: 6px; border-radius: 999px; background: #f1c9c4; overflow: hidden; }
.pj-wl-bar span { display: block; height: 100%; background: var(--pj-win); border-radius: 999px 0 0 999px; }
.pj-donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem 2rem; }
.pj-donut-title { font-size: .85rem; font-weight: 600; margin-bottom: .6rem; }
.pj-donut-wrap { display: flex; align-items: center; gap: 1.1rem; }
.pj-donut { position: relative; width: 132px; height: 132px; flex: none; }
.pj-donut canvas { width: 132px !important; height: 132px !important; }
.pj-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; }
.pj-donut-center b { font-size: 1.5rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.pj-donut-center span { font-size: .7rem; color: #8f8f8f; margin-top: .2rem; }
.pj-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: 0; font-size: .84rem; }
.pj-legend li { display: flex; align-items: center; gap: .5rem; padding: .18rem 0; }
.pj-sw { width: 10px; height: 10px; border-radius: 3px; flex: none; background: #e5e5e5; }
.pj-legend-l { flex: 1 1 auto; min-width: 0; color: #3d3d3d; }
.pj-legend-n { font-weight: 600; font-variant-numeric: tabular-nums; }
.pj-legend-p { color: #8f8f8f; width: 2.8rem; text-align: right; font-variant-numeric: tabular-nums; }

.pj-co { display: grid; grid-template-columns: minmax(0, 1fr) 4rem 4.8rem 4.8rem; gap: .5rem; align-items: center;
  padding: .6rem 1.1rem; }
.pj-co > span:not(.pj-co-name) { text-align: right; font-variant-numeric: tabular-nums; }
.pj-co-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #8f8f8f; font-weight: 600;
  padding-top: .7rem; padding-bottom: .5rem; }
.pj-co-head > span:first-child { padding-left: 1.1rem; }
.pj-co-head > span { overflow-wrap: anywhere; }
.pj-co-item { border-top: 1px solid var(--pj-line); }
.pj-co-item > summary { list-style: none; cursor: pointer; }
.pj-co-item > summary::-webkit-details-marker { display: none; }
.pj-co-item > summary:hover { background: #f7f7f8; }
.pj-co-item > summary .pj-co-name::before { content: "\25B8"; color: #8f8f8f; display: inline-block; width: 1.1rem; font-size: .8em; vertical-align: .12em; transition: transform .15s; }
.pj-co-item[open] > summary .pj-co-name::before { transform: rotate(90deg); }
.pj-co-name { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }
.pj-co-num { color: #5d5d5d; }
.pj-co-rec { font-weight: 600; }
.pj-co-opps { list-style: none; margin: 0; padding: 0 0 .4rem; background: #fafafa; border-top: 1px solid #f0f0f0; }
.pj-co-opps .pj-co { padding-top: .35rem; padding-bottom: .35rem; font-size: .86rem; }
.pj-co-opps .pj-co-name { font-weight: 400; padding-left: 1.1rem; }
.pj-co-res { color: #8f8f8f; }
.pj-co-res.W { color: var(--pj-win); font-weight: 600; }
.pj-co-res.L { color: var(--pj-loss); font-weight: 600; }
@media (max-width: 575.98px) {
  .pj-donuts { grid-template-columns: 1fr; }
  .pj-co { grid-template-columns: minmax(0, 1fr) 3rem 3.5rem 3.3rem; gap: .35rem; padding-left: .85rem; padding-right: .85rem; }
  .pj-co-head { font-size: .64rem; letter-spacing: .02em; }
  .pj-co-opps .pj-co-name { padding-left: .6rem; }
}

/* ---------- Elo + rankings (stats_elo_plan Phases 3-4) ---------- */
a.pj-tile-link { color: inherit; }
a.pj-tile-link:hover { text-decoration: none; background: #efeff0; }
.pj-elo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.pj-elo-num { font-size: 2.6rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: .6rem; }
.pj-elo-num .pj-pill { font-size: .7rem; letter-spacing: 0; }
.pj-elo-rank { margin-top: .45rem; font-size: .88rem; color: #5d5d5d; }
.pj-elo-rank b { color: var(--pj-ink); font-weight: 600; }
.pj-elo-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pj-elo-fact { display: flex; flex-direction: column; min-width: 0; max-width: 220px; }
.pj-elo-fact .pj-elo-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #8f8f8f; font-weight: 600; }
.pj-elo-fact b { font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.35; }
.pj-elo-fact b.pj-up { color: var(--pj-win); }
.pj-elo-fact small { font-size: .78rem; color: #6b6b6b; overflow-wrap: anywhere; }
.pj-elo-chart { position: relative; height: 220px; margin-top: 1.1rem; }

.pj-ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: .75rem; }
.pj-rank-card { display: flex; flex-direction: column; padding: .9rem 0 .2rem; min-width: 0; }
.pj-rank-card > div[data-pane] { display: flex; flex-direction: column; flex: 1; }
.pj-rank-card > div[data-pane][hidden] { display: none; }
.pj-rank-title { font-size: .9rem; font-weight: 600; padding: 0 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.pj-rank-select { display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 500; font-size: .86rem;
  border: 1px solid #e3e3e3; border-radius: 10px; padding: .25rem .5rem; background: #fff; color: var(--pj-ink); }
.pj-rank-you { font-size: .8rem; color: #6b6b6b; padding: .15rem 1rem .5rem; }
.pj-rank-you b { color: var(--pj-ink); }
.pj-rank-list { list-style: none; margin: 0; padding: 0; flex: 1; }
.pj-rank-row { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) 2.8rem 2.6rem; gap: .4rem; align-items: center;
  padding: .3rem 1rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.pj-rank-row.me { background: #f4f4f4; font-weight: 600; }
.pj-rank-hd { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: #8f8f8f; font-weight: 600;
  padding-top: .2rem; padding-bottom: .2rem; border-bottom: 1px solid #f0f0f0; }
.pj-rank-n { color: #8f8f8f; }
.pj-rank-row.me .pj-rank-n { color: var(--pj-ink); }
.pj-rank-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.pj-rank-elo, .pj-rank-b { text-align: right; }
.pj-rank-b { color: #8f8f8f; }
.pj-rank-gap { text-align: center; color: #b4b4b4; line-height: 1; padding: .05rem 0 .25rem; list-style: none; }
.pj-rank-all { display: block; font-size: .8rem; color: #6b6b6b; padding: .55rem 1rem .5rem; margin-top: .25rem;
  border-top: 1px solid #f0f0f0; }
.pj-rank-all:hover { color: var(--pj-ink); }

.pj-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.pj-filters select { font: inherit; font-size: .86rem; border: 1px solid #e3e3e3; border-radius: 999px; padding: .35rem .8rem;
  background: #fff; color: var(--pj-ink); max-width: 100%; min-width: 0; }
.pj-filters-clear { font-size: .85rem; color: #6b6b6b; }
.pj-board { list-style: none; margin: 0; padding: .3rem 0; }
.pj-board-row { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) 3.2rem 3rem; gap: .5rem; align-items: center;
  padding: .5rem 1.1rem; font-variant-numeric: tabular-nums; border-top: 1px solid #f3f3f3; }
.pj-board-row.pj-rank-hd { border-top: 0; }
.pj-board-main { display: flex; flex-direction: column; min-width: 0; }
.pj-board-name { font-weight: 500; overflow-wrap: anywhere; }
.pj-board-meta { font-size: .78rem; color: #8f8f8f; overflow-wrap: anywhere; }
.pj-board-row .pj-rank-elo { font-weight: 600; }
@media (max-width: 575.98px) {
  .pj-elo-num { font-size: 2.2rem; }
  .pj-elo-facts { gap: 1.1rem; }
  .pj-elo-fact { max-width: 100%; }
  .pj-elo-chart { height: 180px; }
  .pj-board-row { padding-left: .85rem; padding-right: .85rem; grid-template-columns: 1.8rem minmax(0, 1fr) 2.8rem 2.6rem; }
  .pj-filters select { flex: 1 1 calc(50% - .5rem); }
}

/* ---------- settings (owner 2026-11-05) ---------- */
.pj-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--pj-line); flex-wrap: wrap; }
.pj-settings-row:first-child { border-top: 0; }
.pj-settings-label { font-size: .75rem; color: #8f8f8f; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.pj-danger-card { border-color: #f3c9c4; }
.pj-confirm-input { max-width: 240px; }
.pj-btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.pj-btn-danger:hover { background: #912018; border-color: #912018; color: #fff; }

/* ---------- terms (draft, owner 2026-11-05) ---------- */
.pj-terms { max-width: 720px; line-height: 1.65; }
.pj-terms h2 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 .5rem; }
.pj-terms ul { padding-left: 1.2rem; }
.pj-terms li { margin-bottom: .35rem; }
.pj-landing-foot a, footer.container a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pj-change-email > summary { cursor: pointer; color: #5d5d5d; font-size: .9rem; }
.pj-change-email > summary:hover { color: #0d0d0d; }

/* logged-out watch button (owner 2026-11-05: videos for logged-in users only) */
.pj-watch-locked { background: #fff; color: #0d0d0d; border: 1px solid #e3e3e3; }
.pj-watch-locked:hover { background: #f4f4f4; color: #0d0d0d; }

/* ---------- video library /video_search (owner 2026-11-05) ---------- */
.pj-vs-head { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.pj-vs-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: #0d0d0d; color: #fff; font-size: .86rem; max-width: 100%; }
.pj-vs-chip b { font-weight: 600; overflow-wrap: anywhere; }
.pj-vs-chip:hover { background: #2f2f2f; color: #fff; text-decoration: none; }
.pj-vs-chip span { opacity: .7; font-size: 1.05rem; line-height: 1; }
.pj-vs-filters select { max-width: 15rem; text-overflow: ellipsis; }
.pj-vs-filters select.on { border-color: #0d0d0d; }
.pj-vs-q { font: inherit; font-size: .86rem; border: 1px solid #e3e3e3; border-radius: 999px; padding: .35rem .9rem;
  background: #fff; color: var(--pj-ink); min-width: 0; width: 13rem; outline: 0; }
.pj-vs-q:focus { border-color: #cfcfcf; box-shadow: 0 0 0 3px rgba(13,13,13,.06); }
.pj-vs-hits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -.25rem 0 .9rem; }
.pj-vs-hits .pj-chip { height: 30px; font-size: .84rem; padding: 0 12px; }
.pj-vs-club { color: #8f8f8f; font-weight: 400; font-size: .82rem; margin-left: .25rem; }
.pj-vs-row .pj-row-meta a { color: inherit; }
.pj-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; margin-top: 1rem; }
.pj-pager .pj-pill-btn { height: 34px; padding: 0 12px; }
.pj-pager-gap { color: #8f8f8f; padding: 0 2px; }
a.pj-tile-link .pj-tile-go, .pj-see-all { color: #6b6b6b; }
.pj-see-all { display: block; padding: .7rem 1.1rem; border-top: 1px solid var(--pj-line); font-size: .88rem; font-weight: 500; }
.pj-see-all:hover { color: var(--pj-ink); background: #f7f7f8; }
.pj-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.pj-title-row a { font-size: .82rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: #6b6b6b; }
@media (max-width: 575.98px) {
  .pj-vs-filters .pj-vs-q { flex: 1 1 100%; width: auto; }
  .pj-vs-filters select { max-width: none; }
  .pj-vs-row .pj-row-side { padding-left: 0; }
  .pj-vs-row:not(.no-res) .pj-row-side { padding-left: 34px; }
}
/* top bar on phones: the Videos item made it 3 rows; compact pills keep it at 2 */
@media (max-width: 575.98px) {
  .pj-topbar-app { padding: 8px 10px; }
  .pj-topbar-app .pj-topbar-right { gap: 2px; }
  .pj-topbar-app .pj-pill-btn { height: 32px; padding: 0 9px; font-size: .84rem; }
}

/* ---------- mobile pass (owner 2026-11-05: "check all pages are mobile friendly") ---------- */
.pj-menu { position: relative; }
.pj-menu > summary { list-style: none; cursor: pointer; }
.pj-menu > summary::-webkit-details-marker { display: none; }
.pj-menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; background: #fff;
  border: 1px solid var(--pj-line); border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 6px; display: flex; flex-direction: column; }
.pj-menu-panel a { padding: 11px 14px; border-radius: 10px; color: #0d0d0d; font-weight: 500; }
.pj-menu-panel a:hover, .pj-menu-panel a.active { background: #f4f4f4; text-decoration: none; }
.pj-tile-medals b { display: flex; flex-wrap: wrap; gap: 0 .45rem; font-size: 1.1rem; }
.pj-tile-medals b > span { white-space: nowrap; }
@media (max-width: 575.98px) {
  .pj-watch { min-height: 36px; padding: 0 .85rem; font-size: .85rem; }
  .pj-watch-tri { font-size: .75rem; }
  .pj-method, .pj-pill, .pj-medal { font-size: .78rem; padding: .2rem .55rem; }
  .pj-time, .pj-row-meta, .pj-tile span, .pj-section-title { font-size: .8rem; }
  .pj-res { width: 28px; height: 28px; }
  details.pj-fold > summary, .pj-more > summary { min-height: 44px; }
  .pj-topbar { padding: 10px 12px; }
  .form-select, .form-control, select { min-height: 40px; font-size: 16px; }  /* 16px stops iOS zoom-on-focus */
  .pj-composer input { font-size: 16px; }
}

/* ---------- sitemap page ---------- */
.pj-sitemap-list { list-style: none; margin: 0; padding: 8px 18px 12px; }
.pj-sitemap-list li { padding: 6px 0; }
.pj-sitemap-cols { columns: 3 200px; column-gap: 24px; }
.pj-sitemap-cols li { break-inside: avoid; }
.pj-az { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-az a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--pj-line); border-radius: 10px; color: #0d0d0d; font-weight: 500; }
.pj-az a:hover { background: #f4f4f4; text-decoration: none; }
.pj-card-head h2 { font-size: 1rem; }
@media (max-width: 575.98px) {
  /* ranking/common-opponent table headers and Elo card labels were ~10px on phones */
  .pj-elo-k, .pj-rank-n, .pj-rank-name, .pj-rank-elo, .pj-rank-b, .pj-co-name,
  .pj-rank-head span, .pj-co-head span { font-size: .75rem !important; }
}
@media (max-width: 575.98px) { .pj-def { font-size: .75rem !important; } }
.pj-settings-row > div { min-width: 0; overflow-wrap: anywhere; }

/* Premium (billing_view.py) */
.pj-premium { max-width: 520px; margin: 1.5rem auto 0; }
.pj-premium-head { text-align: center; margin-bottom: 1.25rem; }
.pj-premium-head h1 { font-size: 1.9rem; font-weight: 700; margin: .6rem 0 .35rem; }
.pj-premium-badge { display: inline-block; background: #0d0d0d; color: #fff; border-radius: 999px; padding: .2rem .7rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pj-premium-badge.sm { font-size: .68rem; padding: .1rem .55rem; vertical-align: 1px; }
.pj-premium-card { padding: 1.6rem 1.5rem; }
.pj-premium-price b { font-size: 2.6rem; font-weight: 700; letter-spacing: -.02em; }
.pj-premium-price span { color: var(--pj-muted); margin-left: .2rem; }
.pj-premium-list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.pj-premium-list li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-top: 1px solid var(--pj-line); }
.pj-premium-list li:first-child { border-top: 0; }
.pj-premium-list li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; color: var(--pj-win); }
.pj-premium-cta { width: 100%; justify-content: center; height: 44px; font-size: 1rem; }
.pj-premium-on { background: #f4f4f5; border-radius: 12px; padding: .7rem .9rem; margin-bottom: .8rem; }
.pj-upsell { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap;
  background: #f4f4f5; border: 1px solid var(--pj-line); border-radius: 12px; padding: .55rem .6rem .55rem .9rem; margin-bottom: .9rem; }
@media (max-width: 575.98px) { .pj-premium-card { padding: 1.2rem 1rem; } .pj-upsell .pj-pill-btn { width: 100%; justify-content: center; } }

.pj-premium-legal { margin: 10px auto 0; max-width: 460px; font-size: .78rem; color: #8f8f8f; line-height: 1.5; }

/* ---------- contact + admin (admin_view.py) ---------- */
.pj-contact { max-width: 640px; margin: 1.5rem auto 0; }
.pj-contact .form-label { font-weight: 500; font-size: .9rem; margin-bottom: .3rem; }
.pj-contact .form-control, .pj-contact .form-select { border-radius: 12px; }
.pj-contact-send { height: 42px; padding: 0 1.3rem; }
.pj-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pj-admin-fold > summary { padding: .7rem 1.1rem; border-top: 1px solid var(--pj-line); cursor: pointer; font-weight: 500; }
.pj-admin-table { font-size: .875rem; }
.pj-admin-table th { font-weight: 600; color: var(--pj-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.pj-admin-table th:first-child, .pj-admin-table td:first-child { padding-left: 1.1rem; }
.pj-admin-table th:last-child, .pj-admin-table td:last-child { padding-right: 1.1rem; }
.pj-admin-email { overflow-wrap: anywhere; }
.pj-admin-msg { padding: .9rem 1.1rem; border-top: 1px solid var(--pj-line); }
.pj-admin-msg:first-child { border-top: 0; }
.pj-admin-msg.done { opacity: .6; }
.pj-admin-msg-head { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.pj-admin-topic { font-weight: 600; }
.pj-admin-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .4rem; }
.pj-admin-runs { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .9rem; }
.pj-admin-runs dt { font-weight: 500; color: var(--pj-muted); }
.pj-admin-runs dd { margin: 0; }
.pj-admin-log { margin: 0; padding: .9rem 1.1rem; font-size: .75rem; line-height: 1.45; white-space: pre-wrap;
  overflow-wrap: anywhere; max-height: 360px; overflow: auto; background: #f7f7f8; border-radius: 0 0 16px 16px; }

/* ---------- /athlete/<id>/elo: how the Elo was calculated ---------- */
.pj-back { font-size: .85rem; color: var(--pj-muted); text-decoration: none; }
.pj-back:hover { color: var(--pj-ink); }
.pj-elo-how-link { display: inline-block; margin-top: .9rem; font-size: .85rem; font-weight: 500; }
.pj-elo-steps { margin: 0; padding-left: 1.2rem; }
.pj-elo-steps li { margin-bottom: .35rem; }
.pj-elo-example { margin-top: .8rem; padding: .7rem .85rem; background: #f7f7f8; border-radius: 10px; font-size: .92rem; }
.pj-elo-example .pj-elo-k, .pj-elo-k { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #8f8f8f; font-weight: 600; }
.pj-up { color: var(--pj-win); }
.pj-down { color: var(--pj-loss); }
.pj-elo-ch { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj-elo-ch.up { color: var(--pj-win); }
.pj-elo-ch.down { color: var(--pj-loss); }
.pj-card.pj-elo-ev { padding: 0; margin-bottom: .75rem; border-top: 0; }
.pj-elo-ev .pj-event-head { padding: .8rem 1.1rem 0; }
.pj-elo-evsum { padding: .15rem 1.1rem .6rem; font-size: .82rem; color: var(--pj-muted); font-variant-numeric: tabular-nums; }
.pj-elo-ev .pj-rows { border-top: 1px solid var(--pj-line); }
.pj-elo-opp { margin-left: .35rem; font-size: .78rem; font-weight: 500; color: var(--pj-muted); background: #f4f4f4;
  border-radius: 6px; padding: .05rem .4rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj-elo-move { display: inline-flex; flex-direction: column; align-items: flex-end; min-width: 58px; line-height: 1.2; }
.pj-elo-move small { font-size: .74rem; color: var(--pj-muted); font-variant-numeric: tabular-nums; }
.pj-res.D { background: #f4f4f4; color: #5d5d5d; }
.pj-elo-why { font-size: .78rem; color: var(--pj-muted); text-align: right; max-width: 170px; }
@media (max-width: 575.98px) {
  .pj-elo-ev .pj-event-head, .pj-elo-evsum { padding-left: .85rem; padding-right: .85rem; }
  .pj-elo-why { max-width: 110px; }
}
.pj-elo-tile small { display: block; font-size: .78rem; color: var(--pj-muted); margin-top: .1rem; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .pj-elo-ev .pj-row-side { justify-content: space-between; }
  .pj-elo-ev .pj-elo-move { margin-left: auto; flex-direction: row; align-items: baseline; gap: .4rem; }
  .pj-tile.pj-elo-tile b { font-size: 1.05rem; }
}

/* athlete names: never cut off; a link to a ProJudo profile always looks like one (owner 2026-11-06) */
a.pj-alink { text-decoration: underline; text-decoration-color: rgba(13,13,13,.22); text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
a.pj-alink:hover { text-decoration-color: currentColor; }
/* Premium page: "Secure payments powered by Stripe" badge (owner 2026-11-06) */
.pj-stripe-badge { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .4rem; margin: .9rem auto 0; padding: .4rem .8rem;
  border: 1px solid #e6e6e6; border-radius: 999px; background: #fff; font-size: .78rem; color: #6b6b6b; flex-wrap: wrap;
  justify-content: center; }
.pj-stripe-lock { width: 13px; height: 13px; fill: #8f8f8f; flex: none; }
.pj-stripe-mark { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: #635bff;
  letter-spacing: -.01em; font-size: .9rem; }
.pj-stripe-mark svg { width: 13px; height: 13px; fill: #635bff; }
.pj-support-form .form-control, .pj-support-form .form-select { border-radius: 8px; padding-left: .75rem; }

/* landing: names under the search + tournaments table (owner 2026-11-11) */
.pj-try { margin-top: .9rem; color: #6b7280; font-size: .95rem; text-align: center; }
.pj-try a { color: #111827; font-weight: 500; text-decoration: none; border-bottom: 1px solid #d1d5db; }
.pj-try a:hover { border-bottom-color: #111827; }
.pj-tourn-wrap { width: 100%; max-width: 720px; margin: 2.2rem auto 0; text-align: left; }
.pj-tourn-head { font-size: 1rem; font-weight: 600; color: #374151; margin: 0 0 .6rem; }
.pj-tourn-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pj-tourn-table th { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #6b7280;
  text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #e5e7eb; }
.pj-tourn-table td { padding: .6rem; border-bottom: 1px solid #f1f3f5; vertical-align: top; }
.pj-tourn-table td a { color: #111827; font-weight: 500; text-decoration: none; }
.pj-tourn-table td a:hover { text-decoration: underline; }
.pj-tourn-table tr:hover td { background: #fafafa; }
.pj-tourn-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pj-tourn-date { white-space: nowrap; color: #4b5563; }
.pj-tourn-city { font-size: .8rem; color: #9ca3af; margin-top: .1rem; }
@media (max-width: 576px) {
  .pj-tourn-table { font-size: .9rem; }
  .pj-tourn-table th, .pj-tourn-table td { padding: .5rem .35rem; }
}

/* video library: search button, foldable filters on phones, compact rows (owner 2026-11-11) */
.pj-vs-search { display: flex; gap: .4rem; flex: 1 1 18rem; min-width: 0; }
.pj-vs-search .pj-vs-q { flex: 1 1 auto; min-width: 0; width: auto; }
.pj-vs-go { font: inherit; font-size: .86rem; font-weight: 600; border: 0; border-radius: 999px; padding: .35rem 1rem;
  background: #0d0d0d; color: #fff; flex: none; }
.pj-vs-go:hover { background: #2f2f2f; }
.pj-vs-more { display: contents; }
.pj-vs-more-btn { display: none; }
.pj-vs-selects { display: contents; }
.pj-vs-filters select { min-width: 0; }
@media (max-width: 575.98px) {
  .pj-vs-search { flex: 1 1 100%; }
  .pj-vs-go { padding: .5rem 1rem; }
  .pj-vs-more { display: block; width: 100%; }
  .pj-vs-more-btn { display: inline-flex; align-items: center; list-style: none; cursor: pointer; font-size: .86rem; font-weight: 600;
    border: 1px solid #e3e3e3; border-radius: 999px; padding: .4rem .95rem; }
  .pj-vs-more-btn::-webkit-details-marker { display: none; }
  .pj-vs-more-btn::after { content: "\25BE"; margin-left: .4rem; font-size: .8rem; }
  .pj-vs-more[open] .pj-vs-more-btn { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
  .pj-vs-selects { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
  .pj-vs-selects select { flex: 1 1 calc(50% - .5rem); width: calc(50% - .25rem); max-width: none; }
  .pj-vs-detail, .pj-vs-row .pj-time { display: none; }
}

/* iPhone Safari zooms the whole page in when a field with text under 16px is tapped (owner 2026-11-11:
   "the screen widens and the Search button is cut off"). 16px on every field at phone width stops it,
   without disabling pinch-zoom. */
@media (max-width: 575.98px) {
  input, select, textarea, .form-control, .form-select, .pj-vs-q, .pj-filters select, .pj-composer input {
    font-size: 16px !important;
  }
}

/* athlete page: collapsible tournaments + "Show more" lists (2026-11-12) */
details.pj-event > summary { list-style: none; cursor: pointer; }
details.pj-event > summary::-webkit-details-marker { display: none; }
details.pj-event > summary .pj-event-title::before { content: "\25B8"; display: inline-block; width: 1.1em; color: var(--pj-muted); transition: transform .15s; }
details.pj-event[open] > summary .pj-event-title::before { transform: rotate(90deg); }
details.pj-event > summary { min-height: 44px; align-items: center; }
details.pj-event[open] > summary { margin-bottom: .4rem; }
.pj-event-meta { display: inline-flex; gap: .5rem; align-items: center; white-space: nowrap; }
.pj-event-rec { font-weight: 700; font-variant-numeric: tabular-nums; font-size: .85rem; }
.pj-more-btn { display: block; width: 100%; min-height: 44px; padding: .7rem 1.1rem; border: 0; border-top: 1px solid var(--pj-line);
  background: transparent; color: inherit; font-weight: 600; text-align: center; cursor: pointer; }
.pj-more-btn:hover { background: var(--pj-hover, rgba(0,0,0,.03)); }

/* athlete page: Titles badges + Opponents by Elo (2026-11-12) */
.pj-titles { display: flex; flex-wrap: wrap; gap: .45rem; }
.pj-titles .pj-more-btn { flex-basis: 100%; border-top: 0; padding: .4rem 0 0; min-height: 36px; }
.pj-title { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .32rem .7rem .32rem .5rem;
  border-radius: 999px; background: #fff7d6; border: 1px solid #f1d27a; font-size: .85rem; line-height: 1.25; }
.pj-title-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-title-n { font-weight: 800; color: #8a6100; }
.pj-title-yrs { color: var(--pj-muted); font-size: .75rem; white-space: nowrap; }
.pj-oppelo-stats { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .85rem; color: var(--pj-muted); margin-bottom: .4rem; }
.pj-oppelo-stats b { color: var(--pj-ink, #111); }
.pj-oppelo-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--pj-muted); margin-bottom: .5rem; }
.pj-oppelo-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.pj-oppelo-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.pj-oppelo-legend .w i { background: #1a7f37; } .pj-oppelo-legend .l i { background: #b42318; } .pj-oppelo-legend .d i { background: #888; }
.pj-oppelo-wrap { position: relative; border: 1px solid var(--pj-line); border-radius: 12px; background: #fafafa; overflow: hidden; touch-action: manipulation; }
.pj-oppelo-wrap canvas { display: block; width: 100%; }
.pj-oppelo-axis { position: absolute; bottom: .3rem; font-size: .68rem; color: var(--pj-muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.pj-oppelo-axis.min { left: .6rem; } .pj-oppelo-axis.max { right: .6rem; }
.pj-oppelo-tip { position: absolute; display: none; z-index: 5; min-width: 150px; max-width: 220px; padding: .55rem .7rem; font-size: .78rem; line-height: 1.45;
  background: #fff; border: 1px solid var(--pj-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); pointer-events: none; }
.pj-oppelo-tip .t-name { font-weight: 700; margin-bottom: .15rem; }
.pj-oppelo-tip .t-W { color: #1a7f37; font-weight: 800; } .pj-oppelo-tip .t-L { color: #b42318; font-weight: 800; } .pj-oppelo-tip .t-D { color: #777; font-weight: 800; }
.pj-oppelo-tip .t-when { color: var(--pj-muted); font-size: .72rem; }
.pj-oppelo-hint { margin: .5rem 0 0; font-size: .72rem; color: var(--pj-muted); text-align: center; }
.pj-opp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pj-opp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--pj-muted); font-weight: 600; padding: .6rem 1.1rem; }
.pj-opp-table td { padding: .55rem 1.1rem; border-top: 1px solid var(--pj-line); }
.pj-opp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 575.98px) { .pj-title { border-radius: 14px; } .pj-title-name { white-space: normal; } }

/* upcoming countdown + home button on athlete pages (2026-11-12) */
.pj-countdown { font-size: .75rem; color: var(--pj-muted); }
.pj-countdown.soon { color: #b45309; font-weight: 600; }
.pj-home-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #111; color: #fff !important; box-shadow: 0 6px 18px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.pj-home-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.pj-home-fab:hover { background: #333; }

/* landing: more air between blocks, most-active table, Judo Fanatics banner (2026-11-12) */
.pj-try { margin-top: 1.4rem; }
.pj-tourn-wrap { margin-top: 3.2rem; }
.pj-active-table .rk { width: 2rem; color: #9ca3af; font-variant-numeric: tabular-nums; }
.pj-active-note { font-size: .75rem; color: #9ca3af; margin: .5rem 0 0; }
.pj-jf { display: flex; align-items: center; gap: 1rem; width: 100%; max-width: 720px; margin: 3.2rem auto 0; padding: 1rem 1.2rem;
  border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; text-align: left; text-decoration: none; color: #111827;
  transition: border-color .15s, box-shadow .15s; }
.pj-jf:hover { border-color: #111827; box-shadow: 0 4px 16px rgba(0,0,0,.06); color: #111827; }
.pj-jf-logo { width: 160px; height: auto; flex: 0 0 auto; }
.pj-jf-copy { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.pj-jf-kicker { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #9ca3af; }
.pj-jf-title { font-weight: 600; }
.pj-jf-sub { font-size: .85rem; color: #6b7280; }
.pj-jf-cta { flex: 0 0 auto; padding: .5rem 1rem; border-radius: 999px; background: #111; color: #fff; font-weight: 600; font-size: .9rem; white-space: nowrap; }
@media (max-width: 575.98px) {
  .pj-jf { flex-wrap: wrap; gap: .6rem .8rem; }
  .pj-jf-logo { width: 120px; }
  .pj-jf-copy { flex-basis: 100%; order: 2; }
  .pj-jf-cta { order: 1; margin-left: auto; padding: .4rem .85rem; }
}

/* Sign in with Google button on /login (owner 2026-11-12): Google's light-theme button style */
.pj-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  padding:.6rem 1rem;border:1px solid #dadce0;border-radius:999px;background:#fff;color:#1f1f1f;
  font-weight:500;font-size:16px;text-decoration:none;transition:background .15s,box-shadow .15s}
.pj-google-btn:hover{background:#f8f9fa;box-shadow:0 1px 3px rgba(60,64,67,.25);color:#1f1f1f}
.pj-or{display:flex;align-items:center;gap:.75rem;margin:1rem 0;color:#888;font-size:.85rem}
.pj-or::before,.pj-or::after{content:"";flex:1;height:1px;background:#e3e3e3}
