/* The capper page (/cappers/<slug>/) and its editor (/cappers/edit/). Colours are tokens. */

/* Room under the fixed header on a phone (Zach, 2026-11-06): the default 60px is the header's own height. */
.content-wrapper.tmb-page:has(> .cp-page, > .cp-edit) { --page-top-mobile: 76px; }
.cp-page, .cp-edit { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.cp-edit { max-width: 760px; }

.cp-card { background: #fff; border: 1px solid var(--tmb-gray-300); border-radius: 14px; padding: 20px; }
.cp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cp-head-left { display: flex; align-items: center; gap: 10px; }
.cp-h2 { font-size: 19px; font-weight: 600; margin: 0; }
.cp-edit .cp-h2 { margin: 22px 0 10px; }
.cp-edit .cp-h2:first-of-type { margin-top: 0; }
.cp-edit-title { font-size: 28px; font-weight: 700; margin: 0; }
.cp-muted { color: var(--tmb-gray-600); }
.cp-small { font-size: 13px; }
.cp-pos { color: var(--tmb-green-700); }
.cp-neg { color: var(--tmb-red-700); }

/* Avatars */
.cp-avatar { border-radius: 50%; background: var(--tmb-navy-700); color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; font-weight: 700; }
.cp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-avatar-lg { width: 96px; height: 96px; font-size: 32px; }
.cp-avatar-xl { width: 112px; height: 112px; font-size: 38px; border: 3px solid #fff; }

/* Hero */
/* the matchup game header's colour: the site header's green, a shade lighter (Zach, 2026-10-19; navy-900, then slate) */
.cp-hero { background: var(--tmb-tracker-header-bg); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cp-hero-who { display: flex; gap: 22px; align-items: flex-start; min-width: 0; flex: 1 1 100%; }
.cp-hero-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 260px; }
/* The name and the all-time figures on one row; they wrap under the name when the row is too narrow. */
.cp-hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 28px; }
.cp-hero-ident { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cp-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tmb-gray-400); }
.cp-name { font-size: 34px; line-height: 1.1; font-weight: 700; margin: 0; color: #fff; }
.cp-hero-sub { color: var(--tmb-gray-300); font-size: 15px; }
/* Rank badges under the name (tmbTrackingBadges(): "#1 NFL"), each a link to that slice of the leaderboard. */
.cp-ranks { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.cp-rank { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; line-height: 1.4; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tmb-gold) 60%, transparent); background: color-mix(in srgb, var(--tmb-gold) 14%, transparent); color: #fff !important; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cp-rank i { color: var(--tmb-gold); font-size: 9px; }
.cp-rank:hover { background: color-mix(in srgb, var(--tmb-gold) 26%, transparent); text-decoration: none; }
/* Style tags under the name (tmbTrackingCapperTags(): "High volume", "NBA specialist"), every bettor; the rule in the hover text. */
.cp-tags { display: flex; gap: 3px; flex-wrap: wrap; }
.cp-tag { display: inline-flex; align-items: center; padding: 0 6px; line-height: 1.45; border-radius: 999px; border: 1px solid var(--tmb-white-30); background: var(--tmb-white-10); color: #fff; font-size: 10px; font-weight: 600; white-space: nowrap; cursor: help; }
.cp-bio { margin: 14px 0 0; color: var(--tmb-gray-100); font-size: 15px; line-height: 1.5; }
.cp-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cp-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--tmb-white-10); color: #fff !important; font-size: 14px; text-decoration: none; min-height: 34px; }
.cp-link:hover { background: var(--tmb-white-20); text-decoration: none; }
.cp-edit-link { color: var(--tmb-gray-300) !important; font-size: 14px; margin-top: 4px; }
/* The photo with the owner's Edit profile button under it. */
.cp-hero-side { display: flex; flex-direction: column; align-items: center; gap: 20px; flex: 0 0 auto; }
.cp-edit-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 9px; border-radius: 999px; background: var(--tmb-brand); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 36px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tmb-brand) 25%, transparent); }
.cp-edit-btn:hover { background: var(--tmb-green-300); text-decoration: none; }
/* /tracking/edit/: Private or Public, as two cards. */
.cp-vis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cp-vis-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--tmb-gray-300); border-radius: 10px; cursor: pointer; margin: 0; font-weight: normal; }
.cp-vis-opt input { margin-top: 4px; }
.cp-vis-opt > span { display: flex; flex-direction: column; gap: 2px; }
.cp-vis-opt:has(input:checked) { border-color: color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 15%); background: var(--tmb-gray-100); }
.cp-vis-locked { display: flex; flex-direction: column; gap: 6px; }
.cp-vis-state { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 6px; }
.cp-vis-state.on { background: var(--tmb-success-bg); color: var(--tmb-green-700); }
.cp-vis-state.off { background: var(--tmb-warning-bg); color: var(--tmb-amber-800); }
.cp-off { display: inline-block; font-size: 14px; line-height: 1.4; background: var(--tmb-warning-bg); color: var(--tmb-amber-800); padding: 6px 12px; border-radius: 6px; }
.cp-off a { color: inherit; text-decoration: underline; font-weight: 600; }
.cp-on-note { display: inline-block; font-size: 14px; line-height: 1.4; background: var(--tmb-blue-50); color: var(--tmb-gray-900); padding: 6px 12px; border-radius: 6px; }
.cp-on-note a { color: inherit; text-decoration: underline; font-weight: 600; }
.cp-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.cp-hero-stats > div { display: flex; flex-direction: column; gap: 2px; }
.cp-hero-k { font-size: 13px; color: var(--tmb-gray-400); }
.cp-hero-v { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Filters */
.cp-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
a.tmb-pill { text-decoration: none; }
/* The leaderboard's filters (2026-10-30): two selects and two multi-select
   dropdowns (<details> of checkboxes), one box look for all four. */
.cp-table th.lb-sort a { color: inherit; text-decoration: none; white-space: nowrap; }
.cp-table th.lb-sort a:hover { color: var(--tmb-blue); }
.cp-table th.lb-sort-on a { color: var(--tmb-gray-900); }
.lb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; }
.lb-select { position: relative; display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; min-height: 46px; margin: 0; padding: 5px 34px 5px 12px; border: 1px solid var(--tmb-gray-400); border-radius: 8px; background: #fff; cursor: pointer; font-weight: normal; --tmb-select-room: 34px; }
.lb-select:hover, .lb-multi[open] > .lb-select { border-color: var(--tmb-blue); }
.lb-field-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--tmb-gray-600); line-height: 1.3; }
/* A select fills its whole box (the label sits on top of it and lets clicks
   through), so a click anywhere in the box opens it. Every box's arrow is
   the site's (styles/select-arrow.css): the select's own, and on a <details> box the
   summary's (.tmb-select-arrow), so the four sit in one place. */
label.lb-select { justify-content: flex-start; padding-top: 6px; }
label.lb-select .lb-field-label { position: relative; z-index: 1; pointer-events: none; }
.lb-select select { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; padding: 20px 34px 6px 12px; margin: 0; background: transparent; font-size: 14px; font-weight: 600; color: var(--tmb-gray-900); cursor: pointer; outline: none; }
.lb-select select:focus-visible { text-decoration: underline; }
/* The Normalize switch, beside the dropdowns, its label centred on them. */
.lb-norm { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; margin: 0; padding-left: 2.6rem; font-size: 14px; font-weight: 600; color: var(--tmb-gray-900); }
.lb-norm .custom-control-label { cursor: pointer; }
.lb-norm .info-tooltip { color: var(--tmb-gray-600); cursor: help; }
.lb-norm .tooltip-text { margin-left: -260px; }
.lb-multi { position: relative; }
.lb-multi > summary { list-style: none; }
.lb-multi > summary::-webkit-details-marker { display: none; }
.lb-multi-value { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--tmb-gray-900); line-height: 1.4; }
.lb-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 200px; padding: 6px; border: 1px solid var(--tmb-gray-300); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px var(--tmb-black-15); }
.lb-multi[data-name="flag"] .lb-menu { max-height: 70vh; overflow-y: auto; min-width: 220px; }
/* Style-tag chips after a handicapper's name (tmbTrackingTagChip()): a colour a family, filled for a specialist / Props only. */
.lb-flags { display: inline-flex; gap: 3px; flex-wrap: wrap; vertical-align: 1px; }
.lb-flag { display: inline-block; padding: 0 5px; border-radius: 4px; border: 1px solid transparent; font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; white-space: nowrap; cursor: help; }
.lb-flag-hv { background: color-mix(in srgb, var(--tmb-orange) 16%, transparent); color: color-mix(in srgb, var(--tmb-orange), black 35%); border-color: color-mix(in srgb, var(--tmb-orange) 40%, transparent); }
.lb-flag-lv { background: var(--tmb-gray-100); color: var(--tmb-gray-700); border-color: var(--tmb-gray-300); }
.lb-flag-sport { background: var(--tmb-blue-100); color: var(--tmb-blue-800); border-color: color-mix(in srgb, var(--tmb-blue) 35%, transparent); }
.lb-flag-spec { background: var(--tmb-blue); color: #fff; border-color: var(--tmb-blue); }
.lb-flag-kind { background: var(--tmb-purple-bg); color: var(--tmb-purple); border-color: color-mix(in srgb, var(--tmb-purple) 35%, transparent); }
.lb-flag-only { background: var(--tmb-purple); color: #fff; border-color: var(--tmb-purple); }
.lb-opt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 8px; border-radius: 6px; font-size: 14px; font-weight: normal; color: var(--tmb-gray-900); cursor: pointer; }
.lb-opt:hover { background: var(--tmb-gray-100); }
.lb-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--tmb-switch-on); }
.lb-menu-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding: 6px 2px 0; border-top: 1px solid var(--tmb-gray-300); }
/* front.css gives every button a grey background and a margin, both !important. */
.lb-menu-foot button { margin-bottom: 0 !important; border: 0; border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.lb-clear { background-color: transparent !important; color: var(--tmb-gray-700); }
.lb-clear:hover { background-color: var(--tmb-gray-100) !important; }
.lb-apply { background-color: var(--tmb-switch-on) !important; color: #fff; }
@media (max-width: 600px) {
    .lb-filters > * { flex: 1 1 calc(50% - 5px); min-width: 0; }
    .lb-multi > .lb-select { width: 100%; }
    .lb-multi:nth-of-type(even) .lb-menu { left: auto; right: 0; }
}
/* front.css paints every button grey with !important. */
.cp-pill { margin-bottom: 0 !important; background-color: #fff !important; border: 1px solid var(--tmb-gray-400); color: var(--tmb-gray-900); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; cursor: pointer; min-height: 36px; }
.cp-pill:hover { border-color: var(--tmb-blue); }
/* ON is every switch's ON (--tmb-switch-on), as front.css's .tmb-pill (Zach, 2026-10-23). */
.cp-pill-on { background-color: var(--tmb-switch-on) !important; border-color: var(--tmb-switch-on); color: #fff; }

/* KPIs */
.cp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cp-kpi { background: #fff; border: 1px solid var(--tmb-gray-300); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.cp-kpi-k { font-size: 13px; color: var(--tmb-gray-700); font-weight: 500; }
.cp-kpi-v { font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cp-kpi-sub { font-size: 12px; color: var(--tmb-gray-600); }
/* The tiles in the header, beside the name (since 2026-10-23): smaller, five in a row
   where the name leaves room, under it otherwise (.cp-hero-top wraps). A row of flex
   items, not the grid's equal columns: a tile is never narrower than its figure
   (a long record, "123-110-4"), the room left shared out evenly. */
.cp-kpis-hero { display: flex; flex-wrap: wrap; flex: 1 1 380px; max-width: 570px; gap: 5px; color: var(--tmb-gray-900); }
.cp-kpis-hero .cp-kpi { flex: 1 1 0; min-width: min-content; padding: 7px 5px; border-radius: 8px; gap: 1px; border-color: transparent; }
.cp-kpis-hero .cp-kpi-k { font-size: 10.5px; }
.cp-kpis-hero .cp-kpi-v { font-size: 16px; white-space: nowrap; }
.cp-kpis-hero .cp-kpi-sub { font-size: 9.5px; line-height: 1.25; }
@media (max-width: 767px) { .cp-kpis-hero { display: grid; flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chart */
.cp-chart-wrap { position: relative; height: 300px; }
.cp-chart-end { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cp-empty { padding: 40px 0; text-align: center; color: var(--tmb-gray-600); }
.cp-chart-title { flex-wrap: wrap; gap: 6px 12px; }

/* Calendar view of the chart card (since 2026-11-02): a month, a cell a day. */
.cp-cal[hidden] { display: none; }
.cp-cal-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cp-cal-month { font-size: 16px; font-weight: 600; }
.cp-cal-rec { margin-left: auto; font-variant-numeric: tabular-nums; }
.cp-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cp-cal-wd { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tmb-gray-600); text-align: center; padding-bottom: 2px; }
.cp-cal-day { min-height: 40px; border: 1px solid var(--tmb-gray-300); border-radius: 6px; background: var(--tmb-gray-100);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cp-cal-pad { border: 0; background: none; }
.cp-cal-n { font-size: 11px; color: var(--tmb-gray-600); }
.cp-cal-u { font-size: 13px; font-weight: 700; }
/* --cal-a (the script): how big the day is against the window's biggest, on
   the matchup tables' rank colours (matchup-tables.css: good-1 / bad-8 at
   their strongest). */
.cp-cal-up { background: color-mix(in srgb, color-mix(in srgb, var(--tmb-green-700) var(--cal-d, 0%), var(--tmb-good-1)) var(--cal-a, 5%), white); border-color: transparent; }
.cp-cal-up .cp-cal-u { color: var(--tmb-green-700); }
.cp-cal-down { background: color-mix(in srgb, var(--tmb-bad-8) calc(var(--cal-a, 5%) * 0.8), white); border-color: transparent; }
.cp-cal-down .cp-cal-u { color: var(--tmb-red-700); }
.cp-cal-even .cp-cal-u { color: var(--tmb-gray-700); }
.cp-cal-up .cp-cal-n, .cp-cal-down .cp-cal-n { color: var(--tmb-gray-700); }
.cp-cal-deep .cp-cal-u, .cp-cal-deep .cp-cal-n { color: white; }
.cp-cal-today { box-shadow: inset 0 0 0 2px var(--tmb-blue); }
@media (max-width: 767px) {
    .cp-cal-grid { gap: 3px; }
    .cp-cal-day { min-height: 36px; }
    .cp-cal-u { font-size: 11px; }
}

/* Two columns */
.cp-two { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.cp-two > .cp-card { flex: 1 1 380px; min-width: 0; }

/* The chart (2/3) beside the Records (1/3), one height. The chart sets it: the
   records tables sit in an absolutely placed scroller, so a long By bet type list
   scrolls inside the card instead of stretching the row. Stacked under 992px. */
.cp-top-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.cp-top-row > .cp-card { min-width: 0; display: flex; flex-direction: column; }
#cp-records .cp-rec-body { position: relative; flex: 1 1 auto; min-height: 120px; }
#cp-records .cp-rec-body > .cp-table-wrap { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; }
#cp-records .cp-rec-body > .cp-table-wrap[hidden] { display: none; }
#cp-records .cp-table th { position: sticky; top: 0; background: #fff; z-index: 1; }
@media (max-width: 991px) {
    .cp-top-row { grid-template-columns: minmax(0, 1fr); }
    #cp-records .cp-rec-body { min-height: 0; }
    #cp-records .cp-rec-body > .cp-table-wrap { position: static; }
}

/* Upcoming plays / Pick history tabs. */
.cp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tmb-gray-300); margin: -4px 0 14px; }
.cp-tab { background-color: transparent !important; border: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px !important; padding: 8px 14px;
          font-size: 17px; font-weight: 600; color: var(--tmb-gray-600); cursor: pointer; border-radius: 0; display: inline-flex; align-items: center; gap: 6px; }
.cp-tab:hover { color: var(--tmb-gray-900); }
.cp-tab:focus-visible { outline: 2px solid var(--tmb-blue); outline-offset: -2px; }
.cp-tab.is-on { color: var(--tmb-navy-900); border-bottom-color: var(--tmb-blue); }
.cp-tab-n { font-size: 12px; font-weight: 700; background: var(--tmb-gray-100); color: var(--tmb-gray-700); border-radius: 10px; padding: 1px 7px; }
.cp-tab.is-on .cp-tab-n { background: var(--tmb-blue-100); color: var(--tmb-navy-900); }
.cp-panel[hidden] { display: none; }

/* Plays */
.cp-play { border: 1px solid var(--tmb-gray-300); border-radius: 10px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
/* The bet just added, from the slip's "See My Bets" (?bet=<id>). */
.cp-play-new { border-color: var(--tmb-green-700); background: var(--tmb-good-7); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tmb-green-700) 25%, transparent); scroll-margin-top: 140px; }
.cp-play-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cp-play-label .cp-sport { font-size: 12px; margin-right: 6px; vertical-align: 2px; }
.cp-play-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--tmb-gray-700); flex-wrap: wrap; }
.cp-sport { font-weight: 600; background: var(--tmb-blue-50); color: var(--tmb-navy-900); padding: 2px 7px; border-radius: 5px; }
.cp-play-label { font-size: 16px; font-weight: 600; }
/* The book a bet was made at: for reference only, the quietest text on the page (Zach, 2026-10-30). */
.cp-book, .cp-play-label .cp-book { font-size: 11px; font-weight: 300; color: var(--tmb-gray-500); }
.cp-chip { font-size: 12px; font-weight: 600; background: var(--tmb-gray-100); color: var(--tmb-gray-700); border: 1px solid var(--tmb-gray-300); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.cp-detail { color: var(--tmb-blue) !important; text-decoration: none; }
.cp-detail:hover { border-color: var(--tmb-blue); text-decoration: none; }
.cp-chip-lock { background: var(--tmb-green-700); border-color: var(--tmb-green-700); color: #fff !important; text-decoration: none; }
.cp-chip-lock:hover { text-decoration: none; background: color-mix(in srgb, var(--tmb-green-700), black 12%); }
.cp-cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Buttons */
.cp-btn { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0 !important; background-color: #fff !important; border: 1px solid var(--tmb-navy-900); color: var(--tmb-navy-900) !important; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; min-height: 40px; }
.cp-btn:hover { text-decoration: none; background-color: var(--tmb-gray-100) !important; }
.cp-btn-primary { background-color: color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 15%) !important; border-color: color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 15%); color: #fff !important; }
.cp-btn-primary:hover { background-color: color-mix(in srgb, color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 15%), black 15%) !important; }
.cp-more { align-self: center; margin-top: 12px; }

/* Tables */
.cp-table-wrap { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--tmb-gray-700); padding: 8px 6px; border-bottom: 1px solid var(--tmb-gray-300); }
.cp-table td { padding: 10px 6px; border-bottom: 1px solid var(--tmb-gray-100); font-variant-numeric: tabular-nums; text-align: left; }
.cp-table .r { text-align: right; }
.cp-table .c { text-align: center; }
.cp-table .nw { white-space: nowrap; }
#cp-history { min-width: 680px; }
.cp-click { cursor: pointer; }
.cp-click:hover, .cp-click:focus { background: var(--tmb-blue-50); outline: none; }
.cp-res { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.cp-res-W { background: var(--tmb-success-bg); color: var(--tmb-green-700); }
.cp-res-L { background: var(--tmb-danger-bg); color: var(--tmb-red-700); }
.cp-res-P { background: var(--tmb-gray-100); color: var(--tmb-gray-700); }
.cp-badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 15%); color: #fff; padding: 4px 8px; border-radius: 5px; }
.cp-locked { text-align: center; padding: 28px 16px; background: var(--tmb-gray-100); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cp-locked-title { font-size: 18px; font-weight: 700; }

/* Editor */
.cp-flash { padding: 10px 14px; border-radius: 8px; }
.cp-flash.ok { background: var(--tmb-success-bg); color: var(--tmb-green-700); }
.cp-flash.err { background: var(--tmb-danger-bg); color: var(--tmb-red-700); }
.cp-label { display: block; font-size: 13px; font-weight: 600; color: var(--tmb-gray-700); margin-bottom: 4px; }
.cp-edit textarea, .cp-edit input[type="text"] { width: 100%; border: 1px solid var(--tmb-gray-400); border-radius: 8px; padding: 9px 12px; font-size: 15px; }
.cp-photo-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cp-check { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 14px; }
.cp-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cp-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 767px) {
    .cp-page, .cp-edit { padding-left: 12px; padding-right: 12px; }
    .cp-hero { padding: 20px; }
    /* A phone has no room beside the photo: the text goes under it, at the full width. */
    .cp-hero-who { flex-wrap: wrap; }
    .cp-hero-text { flex-basis: 100%; }
    .cp-hero-stats { gap: 20px; }
    .cp-name { font-size: 28px; }
    .cp-avatar-xl { width: 88px; height: 88px; font-size: 30px; }
    .cp-hero-v { font-size: 24px; }
    .cp-chart-wrap { height: 240px; }
    /* A smaller photo with the name beside it, and everything after the name
       (the figure tiles, bio, links, the owner's row) the full width under both
       (Zach, 2026-11-06). The two wrappers step aside (display: contents) so
       their children are cells of one grid. Not in a capture (.cp-snap-wide),
       which is the desktop layout. */
    .cp-page:not(.cp-snap-wide) .cp-hero-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 14px; align-items: center; }
    .cp-page:not(.cp-snap-wide) .cp-hero-text,
    .cp-page:not(.cp-snap-wide) .cp-hero-top { display: contents; }
    .cp-page:not(.cp-snap-wide) .cp-hero-side { grid-column: 1; gap: 8px; }
    .cp-page:not(.cp-snap-wide) .cp-hero-ident { grid-column: 2; gap: 4px; }
    .cp-page:not(.cp-snap-wide) .cp-hero-text > :not(.cp-hero-top),
    .cp-page:not(.cp-snap-wide) .cp-hero-top > :not(.cp-hero-ident) { grid-column: 1 / -1; }
    .cp-page:not(.cp-snap-wide) .cp-hero-text > .cp-bio { margin: 0; }
    .cp-page:not(.cp-snap-wide) .cp-avatar-xl { width: 68px; height: 68px; font-size: 24px; border-width: 2px; }
    .cp-page:not(.cp-snap-wide) .cp-name { font-size: 24px; }
    .cp-page:not(.cp-snap-wide) .cp-hero-sub { font-size: 13px; }
    .cp-page:not(.cp-snap-wide) .cp-eyebrow { font-size: 11px; }
    .cp-page:not(.cp-snap-wide) .cp-edit-btn { padding: 3px 10px 4px; min-height: 26px; font-size: 12px; gap: 4px; box-shadow: none; }
    /* Closed on a phone: the chart card and Performance keep their heading (and
       the units won beside it), the bio its About toggle (Zach, 2026-11-06; the
       fold script at the foot of tracking/index.php). */
    .cp-page:not(.cp-snap-wide) [data-cp-fold] > [data-cp-fold-toggle] { cursor: pointer; }
    .cp-page:not(.cp-snap-wide) .cp-card[data-cp-fold] > .cp-card-head .cp-h2::after {
        content: "\f078"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 12px;
        margin-left: 8px; display: inline-block; transition: transform .2s; color: var(--tmb-gray-600);
    }
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded > .cp-card-head .cp-h2::after { transform: rotate(-90deg); }
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded > :not(.cp-card-head) { display: none !important; }
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded > .cp-card-head { margin-bottom: 0; align-items: center; }
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded #cp-chart-view,
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded #cp-chart-sub,
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded .cp-rec-select,
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded #cp-records-sub { display: none !important; }
    .cp-page:not(.cp-snap-wide) .cp-top-row > .cp-card.cp-folded { height: auto !important; min-height: 0 !important; }
    .cp-page:not(.cp-snap-wide) .cp-card.cp-folded { padding-top: 14px; padding-bottom: 14px; }
    .cp-page:not(.cp-snap-wide) .cp-bio-toggle {
        display: inline-flex; align-items: center; gap: 6px; background: transparent !important; border: 0; padding: 0;
        box-shadow: none !important; color: #fff !important; font-size: 14px; font-weight: 600; cursor: pointer;
    }
    .cp-page:not(.cp-snap-wide) .cp-bio-toggle i { font-size: 11px; transition: transform .2s; }
    .cp-page:not(.cp-snap-wide) .cp-bio-wrap.cp-folded .cp-bio-toggle i { transform: rotate(-90deg); }
    .cp-page:not(.cp-snap-wide) .cp-bio-wrap .cp-bio { margin-top: 6px; }
    .cp-page:not(.cp-snap-wide) .cp-bio-wrap.cp-folded .cp-bio { display: none; }
}
/* The About toggle is a phone's alone. */
.cp-bio-toggle { display: none; }
@media (max-width: 767px) { .cp-snap-wide .cp-bio-toggle { display: none !important; } }
/* The leaderboard's range and order pills are links, not buttons. */
a.cp-pill { display: inline-flex; align-items: center; text-decoration: none; }
a.cp-pill:hover { text-decoration: none; }
a.cp-pill-on, a.cp-pill-on:hover { color: #fff; }

/* Records card (by sport, by bet type) and the chart's period controls (since 2026-10-17). */
.cp-h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tmb-gray-700); margin: 14px 0 4px; }
.cp-card-head + .cp-h3 { margin-top: 0; }
.cp-rec-note { margin-top: 8px; }
.cp-row-on, .cp-row-on:hover { background: var(--tmb-blue-100); }
.cp-pills-sm .cp-pill { padding: 4px 12px; min-height: 30px; font-size: 13px; }

/* Search over the pick history (filters the whole page; scripts/capper-page.js), and a play's own note. */
.cp-search { position: relative; margin-bottom: 12px; max-width: 420px; }
/* Sized as the site's other search boxes (Odds, Player Search: front.css's input.form-control, 30px high), with room for the icon. */
.cp-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tmb-gray-500); font-size: 12px; pointer-events: none; }
.cp-search input { width: 100%; padding: 5px 14px 5px 32px; line-height: 1.4; border: 1px solid var(--tmb-gray-300); border-radius: 20px; font-size: 0.8rem; font-weight: 500; color: var(--tmb-gray-700); background: #fff; }
/* Pick history's head: one line, the search at the far right (wraps under on a narrow screen). */
.cp-hist-head { align-items: center; }
.cp-hist-head .cp-head-left { flex-wrap: wrap; gap: 6px 12px; }
.cp-hist-head .cp-search { margin: 0 0 0 auto; flex: 0 1 260px; min-width: 200px; }
@media (max-width: 600px) { .cp-hist-head .cp-search { flex-basis: 100%; margin-left: 0; } }
.cp-search input::placeholder { color: var(--tmb-gray-500); }
.cp-search input:focus { outline: none; border-color: var(--tmb-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tmb-blue) 20%, transparent); }
.cp-note { color: var(--tmb-gray-700); font-style: italic; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
/* A note in Pick history: an icon with the shared tooltip (front.css .info-tooltip),
   pinned to the window beside the icon by capper-page.js placeTip() so the table's
   sideways scroll cannot clip it. A phone keeps front.css's bottom sheet. */
.cp-note-tip { color: var(--tmb-gray-900); cursor: help; margin-left: 2px; font-size: 13px; }
/* No note on a play the owner may write one on: the same icon, faded, with a plus (it opens the editor). */
.cp-note-add { position: relative; background-color: transparent !important; border: 0; padding: 2px 4px; margin: 0 0 0 2px !important;
               color: var(--tmb-gray-300); font-size: 13px; line-height: 1; cursor: pointer; vertical-align: baseline; }
.cp-note-add::after { content: '+'; position: absolute; right: 0; top: -3px; font: 700 11px/1 sans-serif; color: var(--tmb-blue); }
.cp-note-add:hover, .cp-note-add:focus { color: var(--tmb-gray-600); outline: none; background-color: transparent !important; }
.cp-note-tip.cp-note-edit { cursor: pointer; }
.cp-note-inline { display: inline-block; max-width: 260px; margin-left: 4px; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-style: italic; color: var(--tmb-gray-700); }
.cp-note-tip:hover .cp-note-inline, .cp-note-tip:focus .cp-note-inline { color: var(--tmb-blue); }
.cp-note-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--tmb-gray-400); }
/* The editor: a row under the play. */
.cp-note-row td { background: var(--tmb-blue-50); }
.cp-note-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cp-note-input { flex: 1 1 260px; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--tmb-gray-400); border-radius: 8px; font-size: 16px; color: var(--tmb-gray-900); background: #fff; }
.cp-note-input::placeholder { color: var(--tmb-gray-500); }
.cp-note-input:focus { outline: none; border-color: var(--tmb-blue); }
.cp-note-form .cp-btn { min-height: 36px; margin: 0 !important; }
.cp-note-msg { color: var(--tmb-red-700); }
.cp-note-tip:hover, .cp-note-tip:focus { color: var(--tmb-blue); outline: none; }
.cp-note-tip:focus .tooltip-text { display: block; opacity: 1; }
.cp-note-tip .tooltip-text { white-space: normal; overflow-wrap: anywhere; font-style: normal; }
@media (min-width: 769px) {
    .cp-note-tip .tooltip-text { position: fixed; margin-left: 0; width: max-content; max-width: 300px; }
}
/* Upcoming plays: four in view and half the fifth, the rest scroll (tracking/index.php sizes the list). */
.cp-plays-scroll { overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; position: relative; }
.cp-plays-scroll .cp-play:last-child { margin-bottom: 0; }
/* Upcoming plays: a tracked bet's delete button beside its chip (the owner's own, before the game). */
.cp-play-end { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cp-del { background-color: transparent !important; border: 0; color: var(--tmb-gray-500); padding: 6px; margin: 0 !important; cursor: pointer; font-size: 14px; line-height: 1; border-radius: 6px; min-width: 32px; min-height: 32px; }
.cp-del:hover, .cp-del:focus { color: var(--tmb-red-700); background-color: var(--tmb-danger-bg-light) !important; outline: none; }
.cp-del:disabled { opacity: .4; cursor: default; }
/* The owner's odds / units editor (tracking/index.php) */
/* The pencil of an upcoming play. button.: the profile editor's wrapper is a
   div.cp-edit too, and these rules painted the whole editor until 2026-10-23. */
button.cp-edit { background-color: transparent !important; border: 0; color: var(--tmb-gray-500); padding: 6px; margin: 0 !important; cursor: pointer; font-size: 13px; line-height: 1; border-radius: 6px; min-width: 32px; min-height: 32px; }
button.cp-edit:hover, button.cp-edit:focus { color: var(--tmb-blue); background-color: var(--tmb-blue-50) !important; outline: none; }
/* The editor keeps the look that rule gave it on hover, all the time, less
   its blue background (Zach, 2026-10-23). */
div.cp-edit { color: var(--tmb-blue); font-size: 13px; line-height: 1; }
.cp-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.cp-editor label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--tmb-gray-700); }
.cp-editor input { width: 76px; border: 1px solid var(--tmb-gray-400); border-radius: 6px; padding: 4px 8px; font-size: 14px; }
.cp-editor .cp-editor-note { flex-basis: 100%; }
.cp-editor .cp-editor-note input { flex: 1; width: auto; min-width: 0; }
.cp-editor .cp-btn { padding: 4px 12px; font-size: 13px; }
.cp-editor-msg { flex-basis: 100%; color: var(--tmb-red-700); }
.cp-editor-msg:empty { display: none; }
/* Records: the By bet type / By sport / CLV dropdown (one table at a time),
   a .tmb-pill's size so it sits on the heading's line like one. */
.cp-rec-head { align-items: center; }
.cp-rec-head .cp-head-left { flex-wrap: wrap; gap: 6px 12px; }
/* Its arrow is the site's (styles/select-arrow.css). */
.cp-rec-select { height: 26px; font-size: 12px; padding: 0 28px 0 8px; border: 1px solid var(--tmb-gray-400);
    border-radius: 6px; color: var(--tmb-gray-900); cursor: pointer; }
.cp-table-wrap[hidden] { display: none; }
.cp-rec-note[hidden] { display: none; }
/* The CLV view's split: -CLV, Even, +CLV as shares of the plays with a close. */
.cp-clv-split { margin: 2px 0 10px; }
.cp-clv-split:empty { display: none; }
.cp-clv-bar { display: flex; gap: 3px; height: 10px; }
.cp-clv-bar > span { flex-basis: 0; border-radius: 3px; min-width: 4px; }
.cp-clv-bad { background: var(--tmb-red); }
.cp-clv-even { background: var(--tmb-gray-300); }
.cp-clv-good { background: var(--tmb-green-700); }
.cp-clv-legend { display: flex; justify-content: space-between; font-size: 12px; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* The owner's header links (Leaderboard, Take the tour). The tour itself: styles/tour.css. */
.cp-hero-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Share (the owner's: includes/tracking-share.php). On the dark hero. */
.cp-share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.cp-share .cp-btn { min-height: 36px; padding: 6px 14px; }
.cp-share .cp-btn i { margin-right: 6px; }
.cp-share-img { color: var(--tmb-gray-300) !important; }

/* The view switch and filters above the header (Zach, 2026-10-23); the
   header's figures follow them and name their scope under them. */
.cp-filters-top { margin-bottom: 4px; }
/* The range and sport dropdowns (Zach, 2026-11-06): pill height, never wider than the row. */
.cp-top-pills { max-width: 100%; }
.cp-filter-select { max-width: 100%; min-width: 0; background-color: #fff; font-weight: 600; }
.cp-filter-select[hidden] { display: none; }
.cp-hero-scope { flex-basis: 100%; font-size: 12px; color: var(--tmb-gray-300); margin-top: -2px; }

/* The owner's row of the header, under a white rule (Zach, 2026-10-23):
   sharing on the left, Personal Picks and the tour on the right. */
.cp-hero-rule { border: 0; border-top: 1px solid #fff; margin: 21px 0 4px; width: 100%; opacity: 1; }
.cp-owner-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.cp-owner-left { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cp-owner-bar .cp-share { margin-top: 0; }
.cp-owner-right { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.cp-owner-right .cp-btn { min-height: 36px; padding: 6px 14px; }
/* Baller Picks / My bets: one switch, the view on screen filled. */
.cp-view-toggle { display: inline-flex; border: 1px solid #fff; border-radius: 8px; overflow: hidden; background-color: #fff; }
/* The view picked is the light one (Zach, 2026-11-06); the other is dark. */
.cp-view-opt { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; font-weight: 600; font-size: 14px; background-color: color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 15%); color: #fff !important; text-decoration: none !important; }
.cp-view-opt + .cp-view-opt { border-left: 1px solid #fff; }
.cp-view-opt:hover { background-color: color-mix(in srgb, var(--tmb-brand-dark), var(--tmb-brand-light) 35%); }
.cp-view-opt.is-on, .cp-view-opt.is-on:hover { background-color: #fff; color: var(--tmb-navy-900) !important; cursor: default; }
.cp-owner-right .cp-btn i { margin-right: 6px; }
/* tour.css draws a tour button as a plain link; here it is a button like its neighbour. */
.cp-owner-right .tmb-tour-start { background-color: #fff !important; border: 1px solid var(--tmb-navy-900); padding: 6px 14px; font-weight: 600; font-size: 14px; color: var(--tmb-navy-900) !important; }
.cp-owner-right .tmb-tour-start:hover { background-color: var(--tmb-gray-100) !important; text-decoration: none; }

/* The profile editor as an admin opens it for someone else: the profile and
   their tracked bets side by side (Zach, 2026-10-23; tracking/edit/). */
.cp-edit:has(.ce-two) { max-width: 1400px; }
.ce-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 991px) { .ce-two { grid-template-columns: minmax(0, 1fr); } }
.ce-bets { display: flex; flex-direction: column; gap: 10px; }
.ce-bet { border: 1px solid var(--tmb-gray-300); border-radius: 10px; padding: 10px 12px; }
.ce-bet-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ce-bet-status { margin-left: auto; color: var(--tmb-green-700); }
.ce-bet-status.bad { color: var(--tmb-red-700); }
.ce-bet-del { margin: 0 !important; background-color: #fff !important; border: 1px solid var(--tmb-gray-300); border-radius: 6px; padding: 3px 8px; color: var(--tmb-red-700); cursor: pointer; }
.ce-bet-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.ce-bet-grid label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--tmb-gray-600); margin: 0; }
.ce-bet-grid .ce-wide { grid-column: 1 / -1; }
.ce-bet-grid input, .ce-bet-grid select { border: 1px solid var(--tmb-gray-400); border-radius: 6px; padding: 4px 8px; font-size: 14px; color: var(--tmb-gray-900); width: 100%; min-width: 0; }
.ce-legs { margin: 8px 0 0; padding-left: 18px; }
.ce-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--tmb-warning-bg); color: var(--tmb-amber-800); }
.ce-tag.ok { background: var(--tmb-success-bg); color: var(--tmb-green-700); }
@media (max-width: 575px) { .ce-bet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Insights (the owner's own, scripts/capper-page.js): slides open above Pick history. */
.cp-hist-head .cp-insights-btn { margin-left: auto; }
.cp-hist-head .cp-insights-btn + .cp-search { margin-left: 0; }
.cp-insights { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.cp-insights.cp-insights-open { grid-template-rows: 1fr; }
.cp-insights-inner { overflow: hidden; min-height: 0; }
.cp-ins-body { margin-bottom: 16px; padding: 16px; border: 1px solid var(--tmb-gray-300); border-radius: 12px; background: var(--tmb-gray-100); }
.cp-ins-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.cp-ins-summary { margin: 12px 0 0; line-height: 1.5; }
.cp-ins-wait { margin: 12px 0 0; color: var(--tmb-gray-700); }
.cp-ins-wait i { color: var(--tmb-gray-500); margin-right: 4px; }
.cp-ins-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--tmb-gray-700); margin: 16px 0 8px; }
.cp-ins-recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 24px; }
.cp-ins-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-ins-item { background: #fff; border: 1px solid var(--tmb-gray-300); border-left-width: 4px; border-radius: 8px; padding: 8px 12px; }
.cp-ins-leak { border-left-color: var(--tmb-red-700); }
.cp-ins-good { border-left-color: var(--tmb-green-700); }
.cp-ins-item-title { font-weight: 600; }
.cp-ins-leak .cp-ins-item-title i { color: var(--tmb-red-700); }
.cp-ins-good .cp-ins-item-title i { color: var(--tmb-green-700); }
.cp-ins-item-text { margin: 2px 0; line-height: 1.45; }
.cp-ins-foot { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .cp-insights { transition: none; } }
/* The admin's Verified tick on a member's bet (tracking/edit, includes/tracking-admin-bets.php). */
.ce-verify { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--tmb-gray-700); cursor: pointer; white-space: nowrap; }
.ce-verify input { margin: 0; }
/* An unverified bet: a price the member typed or a bet added by hand (tracking/index.php). */
.cp-unverified { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--tmb-warning-bg); color: var(--tmb-amber-800); white-space: nowrap; }
/* Add a bet by hand (tracking/index.php, includes/tracking-manual.php). */
/* A .tmb-pill (front.css) at the heading's right; on while the form is open. */
#cp-upcoming .cp-card-head .cp-add-btn { margin-left: auto; align-self: center; }
.cp-add { margin-bottom: 14px; padding: 14px; border: 1px solid var(--tmb-gray-300); border-radius: 12px; background: var(--tmb-gray-100); }
.cp-add-note { margin: 0 0 10px; }
.cp-add-capper-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 6px;
    background: var(--tmb-warning-bg-light); border: 1px solid var(--tmb-warning-bg); color: var(--tmb-gray-900); }
.cp-add-capper-note i { color: var(--tmb-amber-800); margin-right: 4px; }
.cp-add-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.cp-add-grid label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 12px; font-weight: 600; color: var(--tmb-gray-700); }
.cp-add-grid .cp-add-wide { grid-column: 1 / -1; }
/* Game sits on Sport's line, taking the rest of it (Zach, 2026-10-30). */
.cp-add-grid > label:has(> select[name="sdb_id"]) { grid-column: 2 / -1; }
.cp-add-grid label[hidden] { display: none; }
/* The book's price line under the boxes: grey when it is the book's, amber once changed. */
.cp-add-price { color: var(--tmb-gray-700); }
.cp-add-price:empty { display: none; }
.cp-add-price.cp-add-price-warn { color: var(--tmb-amber-800); }
.cp-add-grid select, .cp-add-grid input { font-size: 0.8rem; font-weight: 500; padding: 5px 10px; border: 1px solid var(--tmb-gray-300); border-radius: 8px; background: #fff; color: var(--tmb-gray-900); min-width: 0; }
.cp-add-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.cp-add-actions .cp-btn { padding: 5px 14px; font-size: 0.8rem; }
.cp-add-msg { color: var(--tmb-gray-700); }
/* The confirm step under Add bet (tracking/index.php). */
.cp-add-confirm { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--tmb-blue-200); border-radius: 8px; background: var(--tmb-blue-50); }
.cp-add-confirm[hidden] { display: none; }
.cp-add-confirm-q { font-weight: 700; font-size: 0.85rem; color: var(--tmb-gray-900); }
.cp-add-confirm-bet { margin-top: 2px; font-size: 0.85rem; color: var(--tmb-gray-900); }
.cp-add-confirm-skip { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12px; font-weight: 500; color: var(--tmb-gray-700); cursor: pointer; }
.cp-add-confirm .cp-add-actions { margin-top: 8px; }
.cp-play-end .cp-unverified { align-self: center; }
/* Save image (scripts/tracking-image.js): while .cp-snapping is on .cp-page the
   page is what the picture holds: the header, the chart and Records, the first
   five Upcoming plays, and a line with the view and the address. */
.cp-snap-btn i { color: var(--tmb-gray-700); }
.cp-snap-btn:disabled { opacity: .6; cursor: default; }
.cp-snapping { padding: 16px; }
.cp-snapping #cp-filters, .cp-snapping .cp-hero-rule, .cp-snapping .cp-owner-bar,
.cp-snapping .cp-edit-btn, .cp-snapping .cp-off, .cp-snapping .cp-rec-switch,
.cp-snapping .cp-rec-note, .cp-snapping #cp-tab-history, .cp-snapping #cp-history-panel,
.cp-snapping #cp-add, .cp-snapping #cp-add-btn, .cp-snapping #cp-plays-count,
.cp-snapping .cp-edit, .cp-snapping .cp-del, .cp-snapping .cp-editor,
.cp-snapping .cp-play:nth-child(n+6), .cp-snapping > p.cp-muted { display: none !important; }
.cp-snapping #cp-upcoming { display: block !important; }
/* A play not started prints its locked form too (tracking/index.php): on the
   page a member sees the play, in the picture everyone gets the game and
   "Members only", so a saved image gives no play away (Zach, 2026-10-23). */
.cp-play-maskable > .cp-play-masked { display: none; }
/* The game takes the row's width: shrunk to its own, the picture's font
   (a hair wider than the browser's) wrapped it over the date line. */
.cp-play-main.cp-play-masked { flex: 1 1 auto; }
.cp-play-masked .cp-play-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-snapping .cp-play-maskable > .cp-play-masked { display: flex; }
.cp-snapping .cp-play-maskable > a.cp-play-masked { display: inline-block; }
.cp-snapping .cp-play-maskable > .cp-play-full { display: none !important; }
.cp-snapping .cp-plays { max-height: none !important; overflow: visible !important; }
/* A phone's picture is the desktop layout (Zach, 2026-10-23): .cp-snap-wide lays
   .cp-page out at 1100px for the capture and undoes the narrow-screen rules above,
   which read the screen and not the page. A new max-width rule for the page gets
   its undo here. */
.cp-snap-wide { width: 1100px; max-width: none; flex: none; }
.cp-snap-wide .cp-kpis-hero { flex-basis: 380px; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
.cp-snap-wide .cp-top-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.cp-snap-wide #cp-records .cp-rec-body { min-height: 120px; }
.cp-snap-wide #cp-records .cp-rec-body > .cp-table-wrap { position: absolute; }
.cp-snap-wide .cp-hero { padding: 28px; }
.cp-snap-wide .cp-hero-who { flex-wrap: nowrap; }
.cp-snap-wide .cp-hero-text { flex-basis: 260px; }
.cp-snap-wide .cp-hero-stats { gap: 28px; }
.cp-snap-wide .cp-name { font-size: 34px; }
.cp-snap-wide .cp-avatar-xl { width: 112px; height: 112px; font-size: 38px; }
.cp-snap-wide .cp-hero-v { font-size: 30px; }
.cp-snap-wide .cp-chart-wrap { height: 300px; }
.cp-snap-foot { display: none; }
.cp-snapping .cp-snap-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--tmb-gray-300); font-size: 13px; color: var(--tmb-gray-600); }
.cp-snapping .cp-snap-foot strong { color: var(--tmb-gray-900); }
.cp-snap-veil { position: fixed; inset: 0; z-index: 2000; background: var(--tmb-white-90); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--tmb-gray-900); }

/* Single pick (includes/single-pick.php; the owner's page alone): the play
   out as their single pick carries a gold mark, its headline and Take down. */
.cp-single { display: inline-block; margin: 0 6px 0 -2px; padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700;
             color: var(--tmb-amber-800); background: var(--tmb-warning-bg-light); vertical-align: 1px; }
.cp-single i { color: var(--tmb-gold); margin-right: 2px; }
.cp-single-head { color: var(--tmb-gray-700); font-weight: 600; }
/* The pencil's Single pick section (scripts/tracking-bets-ui.js). */
.cp-editor .cp-editor-single { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
.cp-editor .cp-editor-sp-fields { display: flex; flex-direction: column; gap: 6px; }
.cp-editor .cp-editor-sp-fields[hidden] { display: none; }
.cp-editor .cp-editor-sp-fields label { flex-direction: column; align-items: stretch; gap: 3px; font-weight: 600; color: var(--tmb-gray-900); }
.cp-editor .cp-editor-sp-fields input, .cp-editor .cp-editor-sp-fields textarea { width: 100%; border: 1px solid var(--tmb-gray-400); border-radius: 6px;
    padding: 5px 8px; font-size: 14px; font-family: inherit; font-weight: 400; color: var(--tmb-gray-900); background: var(--tmb-surface); }
.cp-editor .is-missing { border-color: var(--tmb-red-700); }
.cp-editor .cp-editor-sp-tick input { width: auto; }
.cp-editor-sp-note:empty { display: none; }
.cp-pod-help { margin: 0 0 8px; }
.cp-pod-help i { color: var(--tmb-gold); }

/* A demo site's sample-data line (includes/tracking-demo.php, tmbTrackingDemoNotice()). */
.cp-demo-note { background: var(--tmb-warning-bg-light); border-color: color-mix(in srgb, var(--tmb-amber-800) 30%, transparent); color: var(--tmb-gray-900); padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.cp-demo-note i { color: var(--tmb-amber-800); margin-right: 4px; }
