/* Caretaker — the kit every page is built from: tables, panels, cards, list toolbars, forms, rating cells, charts. */
.wrap > h1 { font-size: 22px; font-weight: 800; margin: 4px 0 8px; text-transform: uppercase; color: #d6d6d9; }
.sub { color: var(--muted); margin-bottom: 10px; }
h2 { font-size: 15px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #b4b4b9; margin: 18px 0 8px; }
h3 { font-size: 15px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; color: #a9a9ae; margin: 0 0 8px; }
h2:first-child { margin-top: 0; }
p { margin: 0 0 8px; }
/* a card is a panel whose title sits inside it: the same title, the same line in the club's colour across the top */
.card { background: var(--panel); border-radius: 6px; padding: 12px 14px; min-width: 0; }
.card:has(> h3:first-child) { padding-top: 9px; border-top: 2px solid color-mix(in srgb, var(--head) 80%, transparent); }
.card.pad0 { padding: 0; overflow: hidden; }
/* the boxes in a row stand the same height (a table on its own keeps its own) */
.grid { display: grid; gap: 14px; align-items: stretch; } .grid > .tablewrap, .grid > div:not([class]) > .tablewrap { align-self: start; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .g13 { grid-template-columns: minmax(280px, 1fr) minmax(0, 3fr); } .g31 { grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr); }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrapf { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; } .end { margin-left: auto; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; } .nowrap { white-space: nowrap; } .ctr { text-align: center; } .rt { text-align: right; }
.big { font-size: 26px; font-weight: 800; line-height: 1.1; } .lbl { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; }
.empty { padding: 14px; color: var(--dim); }

/* panels: a titled box; on the team home its title is a menu of every panel */
.panel { background: var(--panel); border-radius: 6px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; position: relative; container-type: inline-size; }
.panel > header { padding: 12px 13px 9px; font-size: 16px; font-weight: 800; color: #a9a9ae; letter-spacing: .2px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; gap: 10px; }
.panel > header.pick { cursor: pointer; } .panel > header.pick:hover, .panel.open > header { color: #fff; }
.panel > header a.more { font-size: 12px; color: var(--accent); letter-spacing: .4px; }
.panel-body { padding: 0 4px 8px; overflow: auto; flex: 1; min-height: 0; }
.panel-body.pad { padding: 2px 14px 12px; }
.wmenu { display: none; position: absolute; top: 40px; right: 6px; left: 6px; max-height: calc(100% - 48px); overflow: auto; background: #37373b; border: 1px solid #111; border-radius: 6px; padding: 5px; z-index: 20; box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.panel.open .wmenu { display: block; }
.wmenu a { display: block; padding: 5px 10px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; } .wmenu a:hover { background: var(--head); color: #fff; } .wmenu a.on { color: var(--accent); }

/* tables: steel-blue header rows, tight lines */
.tablewrap { background: var(--panel); border-radius: 6px; overflow: auto; }
.tablewrap.fit { max-height: 100%; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--head); color: #fff; text-align: left; padding: 4px 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; position: sticky; top: 0; z-index: 1; }
th[data-sort] { cursor: pointer; } th[data-sort]:hover { color: var(--accent); } th.sorted { color: #ffc49a; } th.sorted::after { content: ' ▾'; } th.sorted.asc::after { content: ' ▴'; }
td { padding: 4px 10px; white-space: nowrap; border-bottom: 1px solid #2c3135; }
tr:hover td { background: #2d3338; }
tr.me td { background: color-mix(in srgb, var(--team) 26%, transparent); } tr.sel td { background: #3a2a1c; } tr.cut td { border-bottom: 2px solid var(--accent); } tr.dimrow td { opacity: .55; }
tr.tot td { font-weight: 800; background: #262b2f; border-top: 1px solid var(--line); }
th.n, td.n { text-align: right; } th.c, td.c { text-align: center; }
td.rk { color: var(--muted); width: 30px; }
td .tb { vertical-align: 0; }
table.tight td, table.tight th { padding: 3px 9px; } table.tight td { font-size: 13.5px; } table.tight th { font-size: 12px; }
/* label and value in banded rows, the label at the left and the value at the right (.pd in the football and basketball games) */
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0; font-size: 13.5px; } .kv dt, .kv .k { color: var(--muted); font-weight: 700; white-space: nowrap; padding: 3.5px 10px 3.5px 8px; border-radius: 3px 0 0 3px; } .kv dd, .kv .v { margin: 0; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3.5px 8px 3.5px 0; border-radius: 0 3px 3px 0; }
.kv > :nth-child(4n+1), .kv > :nth-child(4n+2) { background: rgba(255,255,255,.035); }
.kv.left .v { text-align: left; white-space: normal; }

/* list toolbar: VIEW, FILTER, POSITION, REPORT (playerlists.js in Full Court) */
.lbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.lbar label { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .6px; }
.lbar .say { margin-left: auto; color: var(--muted); font-size: 12.5px; }
select, input[type=text], input[type=number], input[type=search], textarea { background: #1c1c1e; border: 1px solid #555; border-radius: 4px; padding: 3px 8px; outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
/* a drop-down's own list: the system draws it, and on Windows drew it white with the page's white letters until a line was hovered */
select { color: #f4f4f5; } option, optgroup { background-color: #1f2126; color: #f4f4f5; }
textarea { width: 100%; min-height: 90px; resize: vertical; }
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--head); border: 0; border-radius: 4px; padding: 5px 13px; font-size: 13px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; color: #fff; white-space: nowrap; }
.btn:hover { filter: brightness(1.25); color: #fff; }
.btn.hi { background: var(--accent); color: #111; } .btn.quiet { background: #33393e; } .btn.red { background: #8f2b2b; } .btn.grn { background: #2e7d1a; } .btn.sm { padding: 2px 9px; font-size: 11.5px; } .btn.wht { background: #fff; color: #111; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; } .pill { padding: 3px 11px; border-radius: 3px; background: var(--panel); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; } .pill.on { background: #fff; color: #111; } .pill:hover { background: var(--head); color: #fff; }
.pill em { font-style: normal; opacity: .7; margin-left: 5px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 8px; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 3px; background: #444; letter-spacing: .3px; vertical-align: 1px; text-transform: uppercase; }
.tag.red { background: var(--bad); color: #111; } .tag.grn { background: var(--good); color: #111; } .tag.org { background: var(--accent); color: #111; } .tag.blu { background: var(--mlb); color: #fff; } .tag.gld { background: var(--gold); color: #111; } .tag.al { background: var(--al); } .tag.nl { background: var(--nl); }
.inj { color: var(--bad); font-weight: 800; font-size: 11px; margin-left: 5px; } .dtd { color: var(--warn); font-weight: 800; font-size: 11px; margin-left: 5px; }
.pos { display: inline-block; min-width: 27px; color: var(--muted); font-size: 12px; font-weight: 800; }

/* ratings: a graded number coloured by tier, the way a scouting scale reads */
.g { display: inline-block; min-width: 28px; text-align: center; font-weight: 800; border-radius: 3px; padding: 0 4px; }
.g.t5 { color: #37d7ff; } .g.t4 { color: #46cf6d; } .g.t3 { color: #f1f1f2; } .g.t2 { color: #f3a53a; } .g.t1 { color: #ff6666; }
.g.box.t5 { background: #0f3b4a; } .g.box.t4 { background: #1f3f10; } .g.box.t3 { background: #33383c; } .g.box.t2 { background: #4a3210; } .g.box.t1 { background: #4a1c1c; }
.rbar { display: grid; grid-template-columns: 128px 34px minmax(0, 1fr) 34px; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 13.5px; } .rbar > span:first-child { color: #c3c5cb; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rbar > b { text-align: center; font-weight: 800; }
.rbar.vs { grid-template-columns: 128px 34px minmax(0, 1fr) 34px 34px 34px; } .rbar.hd { padding: 0 0 1px; font-size: 10.5px; font-weight: 800; letter-spacing: .7px; color: var(--muted); } .rbar.hd span { text-align: center; white-space: nowrap; } .rbar .vsn { text-align: center; }
.rbar .track { height: 9px; background: #15181b; border-radius: 5px; position: relative; overflow: hidden; }
.rbar .track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #3a7b95; }
.rbar .track u { position: absolute; top: 0; bottom: 0; background: rgba(255,255,255,.22); }       /* the scouting accuracy interval */
.rbar .track s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--gold); }  /* potential */
.rbar .t5 i { background: #37d7ff; } .rbar .t4 i { background: #46cf6d; } .rbar .t3 i { background: #c9c9cc; } .rbar .t2 i { background: #f3a53a; } .rbar .t1 i { background: #ff6666; }
.track { height: 8px; background: #15181b; border-radius: 4px; position: relative; overflow: hidden; min-width: 50px; } .track > i { position: absolute; left: 0; top: 0; bottom: 0; background: #3a7b95; border-radius: 4px; }
.track.good > i { background: var(--good); } .track.bad > i { background: var(--bad); } .track.warn > i { background: var(--warn); }
.stars { color: var(--gold); letter-spacing: -1px; white-space: nowrap; } .stars i { color: #4a4a4f; font-style: normal; }
.val { font-weight: 800; } .val.pos { color: var(--good); } .val.neg { color: var(--bad); }

/* forms: slider rows and setting rows (strategy and settings screens) */
.srow2 { display: grid; grid-template-columns: 210px 150px minmax(0, 1fr); gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid #2c3135; }
.srow2 input[type=range] { width: 100%; accent-color: var(--accent); }
.srow2 .hint { color: var(--muted); font-size: 12.5px; }
.setrow { display: grid; grid-template-columns: minmax(0, 1.1fr) 220px minmax(0, 1.4fr); gap: 14px; align-items: center; padding: 6px 0; border-bottom: 1px solid #2c3135; }
.setrow .hint { color: var(--muted); font-size: 12.5px; }
.seg { display: inline-flex; border: 1px solid #555; border-radius: 4px; overflow: hidden; } .seg a { padding: 3px 11px; font-size: 12.5px; font-weight: 700; background: #1c1c1e; text-transform: uppercase; } .seg a.on { background: var(--accent); color: #111; } .seg a + a { border-left: 1px solid #555; }
.sw { display: inline-flex; width: 38px; height: 20px; border-radius: 10px; background: #44484c; position: relative; cursor: pointer; vertical-align: middle; } .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .12s; } .sw.on { background: var(--good); } .sw.on::after { left: 20px; }
.styles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .styles button { background: #1c1c1e; border: 1px solid #555; border-radius: 4px; padding: 5px 12px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 12px; } .styles button.on { background: var(--accent); color: #111; border-color: var(--accent); }

/* charts */
svg.graph { width: 100%; height: auto; display: block; }
.gl { stroke: #3c3c40; stroke-width: 1; } .gz { stroke: #8a8a8f; stroke-width: 1; } .gt { fill: #d7d7da; font-size: 9px; font-weight: 600; }
.statbox { background: #232325; border: 1px solid #000; border-radius: 6px; padding: 8px 12px; text-align: center; min-width: 0; } .statbox b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; } .statbox span { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .6px; text-transform: uppercase; } .statbox small { display: block; color: var(--accent); font-size: 11px; font-weight: 700; }
.statrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.note { background: #252a2e; border-left: 3px solid var(--head); border-radius: 4px; padding: 8px 12px; color: #d9dde0; font-size: 13.5px; }
/* a note under a row of boxes or under another note stands clear of it */
.grid + .note, .prof + .note, .note + .note, .tablewrap + .note, .card + .note { margin-top: 10px; }
.card .tablewrap { background: none; }
.note.warn { border-left-color: var(--warn); } .note.bad { border-left-color: var(--bad); } .note.good { border-left-color: var(--good); } .note.mock { border-left-color: var(--warn); color: var(--warn); }
.why { margin: 6px 0 0; padding: 0 0 0 18px; color: #d9dde0; } .why li { padding: 2px 0; }
.hrow { display: grid; background: var(--head); padding: 3px 8px; font-size: 12.5px; font-weight: 700; margin-top: 2px; white-space: nowrap; text-transform: uppercase; letter-spacing: .3px; }
.hrow span, .srow span { text-align: right; } .hrow .nm, .srow .nm { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow { display: grid; padding: 4px 8px; font-size: 14.5px; align-items: center; }
/* a club's name in a narrow column: all of it where it fits; where it does not, the city folds away and the nickname stays whole */
.nm > a:has(> .fit) { display: flex; align-items: center; min-width: 0; } .nm > a:has(> .fit) > :not(.fit) { flex: none; }
.fit { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; height: 1.3em; line-height: 1.3; overflow: hidden; white-space: nowrap; }
.fit.rev { flex-direction: row-reverse; justify-content: flex-end; }
/* a narrow standings panel folds every row alike, so the names line up */
.panel.w-standings { container-type: inline-size; } @container (max-width: 400px) { .fit > span + span { display: none; } }
.srow.me a, a.me { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.c5 { grid-template-columns: minmax(0, 1fr) 30px 30px 46px 40px; } .c4 { grid-template-columns: minmax(0, 1fr) 46px 46px 52px; } .c3 { grid-template-columns: minmax(0, 1fr) 54px 54px; } .c2 { grid-template-columns: minmax(0, 1fr) 64px; }
.nrow { display: flex; gap: 10px; padding: 4px 10px; font-size: 14px; align-items: baseline; } .nrow .when { color: var(--dim); font-size: 11.5px; font-weight: 700; min-width: 46px; flex: none; }
.hovercard { position: fixed; z-index: 120; background: #2b3035; border: 1px solid #000; border-radius: 6px; padding: 10px 12px; width: 300px; box-shadow: 0 14px 34px rgba(0,0,0,.6); pointer-events: none; font-size: 13px; }
.hovercard h4 { margin: 0 0 2px; font-size: 15px; } .hovercard .kv { margin-top: 6px; }

/* ---- density and polish (second pass, from looking at the screens) ---- */
tbody tr:nth-child(even) td { background: rgba(255,255,255,.022); }
tbody tr:hover td { background: #2d3338; }
tbody tr.me td { background: color-mix(in srgb, var(--team) 26%, transparent); } tbody tr.sel td { background: #3a2a1c; } tbody tr.tot td { background: #262b2f; }
td select, td input[type=number], td input[type=text] { height: 23px; padding: 0 6px; font-size: 13px; }
td .btn.sm { padding: 1px 8px; font-size: 11px; }
/* a packed table: the columns sit together at the left, the slack goes to an empty last column */
table.pack th, table.pack td { padding-left: 11px; padding-right: 11px; }
th.fill, td.fill { width: 100%; padding: 0 !important; }
tr[draggable=true] { cursor: grab; } tr[draggable=true]:active { cursor: grabbing; }
tr.dragging td { opacity: .4; } tr.dropover td { box-shadow: inset 0 2px 0 var(--accent); background: #3a2a1c !important; }
.pos { margin-right: 3px; } .srow .pos, .nrow .pos { text-align: left; }
svg.chart { max-height: 230px; }

.srow2 { grid-template-columns: minmax(110px, 1.2fr) minmax(90px, 1fr) minmax(0, 1.2fr); }
td.wrapc { white-space: normal; min-width: 220px; }
.statbox small { color: color-mix(in srgb, var(--accent) 80%, #fff); }

/* list toolbar: the choices look like the menu buttons they are */
.lbar select { appearance: none; -webkit-appearance: none; background: #2b3035 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23c9c9cc' stroke-width='1.6'/></svg>") no-repeat right 9px center; border: 1px solid #000; border-radius: 4px; padding: 4px 28px 4px 10px; font-weight: 700; font-size: 13px; cursor: pointer; }
.lbar select:hover { background-color: var(--head); }

/* ---- a player's file (the profile the football and basketball games have): four panels across, then his status beside the tables ---- */
.prof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 12px; }
.prof.two { grid-template-columns: minmax(0, 1fr) minmax(0, 3.75fr); align-items: start; margin-bottom: 0; }
.prof .col { gap: 12px; }
.prof .panel > header { font-size: 15px; padding: 10px 13px 6px; } .prof .panel > header .cnt { background: var(--gold); color: #111; border-radius: 9px; padding: 0 8px; font-size: 12px; }
.prof .panel.hon > header { color: var(--gold); }
.prof .panel-body.pad { overflow: visible; } .prof .panel-body.pad > p { margin: 0; line-height: 1.45; }
.prof .panel .tablewrap { background: none; border-radius: 0; } .prof .panel .empty { padding: 6px 10px 4px; }
.prof .rbar { grid-template-columns: minmax(112px, 1.1fr) 34px minmax(0, 1.5fr) 34px; } .prof .rbar.main > span:first-child { color: #fff; }
.prof .grid.g2 { gap: 0 22px; align-items: start; }
h4.grp { margin: 12px 0 3px; font-size: 11px; font-weight: 800; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; } h4.grp:first-child { margin-top: 2px; }
.fine { font-size: 12.5px; margin: 8px 0 0 !important; }
.ovn .g { font-size: 17px; line-height: 1.1; min-width: 0; padding: 0; }
@media (max-width: 1500px) { .prof { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prof.two { grid-template-columns: minmax(0, 1fr); } }
