/* ---- The Team tab: Team, Draft and Schedule, one open at a time ---------
   Shut, each is its banner: the team its name and Mirth, the other two
   their heading. The arrow at the foot of each opens it, and shuts
   whichever was open. */
.paneSec:not(.isOpen) > :not(.teamName):not(.teamPtsLine):not(.secHead):not(.secToggle):not(.teamLock) { display: none; }
.paneSec:not(.isOpen) > .teamPtsLine { margin-bottom: 0; }
.paneBox {
    border: 1px solid var(--border); border-radius: 3px;
    padding: 0.45rem 1rem; margin-bottom: 0.6rem;
    background: var(--bg-card);
}
/* The heading's line is the banner: the title, the arrow in the middle of
   it sitting on its foot, and the switch, if any, at the end -- as the arrow
   sits between Mirth and its number on the team. */
.paneBox .secHead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 8px; }
.paneBox .secHead h2 { line-height: 1.15; }
.paneBox .secHead .secToggle { align-self: end; }
.paneBox .secHead > :last-child:not(.secToggle) { justify-self: end; }
.drawerBody .paneBox .draftMeHead { margin: 0; }
.paneBox.isOpen { padding-bottom: 0.8rem; }
.paneBox.isOpen .draftMeHead { margin-bottom: 0.6rem; }
/* Draft: out of the accordion, always open, the switch at the heading's end;
   what waits on you below, each a banner, no rules between. */
.draftBox .secHead { display: flex; justify-content: space-between; }
.draftBox .sentRow { margin-bottom: 6px; padding: 0.5rem 0.65rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.draftBox .sentRow:last-child { margin-bottom: 0; }
/* An offer reads as a request does: who, what under it, the button at the right. */
.draftBox .sentRow[data-offer] { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.draftBox .sentRow[data-offer] .sentWho { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draftBox .sentRow[data-offer] .sentTeam { grid-column: 1; grid-row: 2; font-size: 0.68rem; }
.draftBox .sentRow[data-offer] .sentPull { grid-column: 2; grid-row: 1 / span 2; padding: 0.2rem 0.55rem; font-size: 0.66rem; border-radius: 4px; }
.draftBox .draftSub { margin-top: 0.2rem; }
.draftBox .sentRow + .draftSub { margin-top: 0.7rem; }
.teamPtsLine:has(.secToggle) { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.teamPtsLine:has(.secToggle) strong { justify-self: end; }
/* Player / Alias, centred under the arrow. */
.teamViewRow { display: flex; justify-content: center; margin: -0.3rem 0 0.5rem; }
/* Locked: a padlock in a circle on the card's top right corner. */
.teamCard.paneSec { position: relative; }
.teamLock {
    position: absolute; top: -9px; right: -9px; width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--gold-dim); border-radius: 50%; background: var(--bg-card); color: var(--gold);
}
.teamLock svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.secToggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 16px; padding: 0;
    background: none; border: 0; border-radius: 4px;
    color: var(--gold-dim); cursor: pointer;
}
.secToggle:hover { color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.secToggle svg { width: 11px; height: 7px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.18s; }
.paneSec.isOpen .secToggle svg { transform: rotate(180deg); }

/* ---- The split, on the schedule app ------------------------------------
   The votes first (games a week as numbers, the hours as a heat map), the
   next game as compact as it goes with the one button that fits, then the
   split's games. */
.seasonSec { margin-bottom: 1rem; }
.seasonBody { font-family: var(--font-mono); font-size: 0.72rem; }
.seasonBody .draftNote { padding-top: 0; }

/* The votes. */
.seasonVotes { margin: 0 0 1.1rem; }
.seasonVoteRow { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.76rem; color: var(--text-muted); }
.seasonVoteRow + .seasonVoteRow { margin-top: 1rem; }
.seasonGpw { font-family: var(--font-mono); font-size: 0.74rem; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }
/* Games a week: the site's slider, the numbers big on it and each stop a
   wide target, the votes under each. Yours lit, the team's filled. */
/* The numbers alone on the slider, each stop the same width; the votes under each, outside it. */
.weekPick { display: inline-flex; flex-direction: column; align-items: stretch; }
.weekSlider { padding: 2px; align-self: center; }
.weekSlider .weekNum { display: flex; justify-content: center; width: 2.5rem; min-width: 0; padding: 0.22rem 0; }
.weekNum b { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.weekNum.isSet { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.weekNum.on.isSet { color: var(--on-gold); }
.weekNum:disabled { opacity: 0.6; cursor: default; }
.weekVotes { display: grid; grid-template-columns: repeat(3, 2.5rem); justify-content: center; padding: 0 2px; margin-top: 3px; }
.weekVotes small { text-align: center; font-size: 0.56rem; line-height: 1.2; min-height: 1em; color: var(--gold-dim); white-space: nowrap; }
/* The hours five can play, chips by day: the hour, the votes under it; yours
   outlined, an agreed one filled; one five can no longer make dimmed. */
.seasonHours { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.seasonHourDay { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); align-items: start; gap: 0.5rem; }
.seasonHourLabel { padding-top: 0.5rem; font-size: 0.68rem; color: var(--text-muted); }
.seasonHourChips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.seasonHour {
    display: inline-flex; flex-direction: column; align-items: center; min-width: 3.6rem; padding: 0.3rem 0.55rem 0.25rem;
    border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text);
    font: inherit; font-family: var(--font-mono); line-height: 1.2; cursor: pointer;
}
span.seasonHour { cursor: default; }
.seasonHour b { font-size: 0.78rem; font-weight: 600; }
.seasonHour small { min-height: 1em; font-size: 0.56rem; color: var(--gold-dim); white-space: nowrap; }
button.seasonHour:hover { border-color: var(--gold-dim); }
.seasonHour.isMine { border-color: var(--gold); }
.seasonHour.isSet { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.seasonHour.isSet small { color: var(--on-gold); }
.seasonHour.isDead { opacity: 0.55; }
/* The nearest hour where five are never free: dashed. */
.seasonHour.isNear { border-style: dashed; }
.seasonHour:disabled { opacity: 0.6; cursor: default; }

/* The next game. */
.seasonGame { border: 1px solid var(--border); border-radius: 6px; padding: 0.7rem 0.9rem 0.8rem; background: var(--bg-card); }
.seasonGameHead { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; }
.seasonOpp { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seasonOpp.isBig { display: inline-flex; align-items: center; gap: 0.45em; font-size: 1.15rem; }
.seasonOpp.isBig > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.seasonOpp .teamIcon { width: 1.2em; height: 1.2em; }
.seasonOpp.isBig .teamIcon { flex: none; width: 1.7rem; height: 1.7rem; margin: 0; vertical-align: 0; }
.seasonGameSide { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.seasonMeta { flex: none; font-size: 0.62rem; color: var(--text-muted); }
/* The lock: open and green while the time can move, shut and red once locked. */
.seasonLock { flex: none; width: 1.15rem; height: 1.15rem; cursor: help; }
.seasonLock svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.seasonLock.isOpen { color: var(--ok); }
.seasonLock.isShut { color: var(--loss); }
.seasonActs .seasonPropose { align-self: center; }
/* Propose time and Decline side by side, Decline in the loss colour. */
.seasonActs:has(.seasonDecline) { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.seasonActs .seasonPropose, .seasonActs .seasonDecline { margin: 0; }
/* Confirm and Report side by side, the same size. */
.seasonActs:has(.seasonReport) { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.seasonActs .seasonReport, .seasonActs .seasonReportOk { margin: 0; align-self: center; }
.seasonDecline { color: var(--loss); border-color: color-mix(in srgb, var(--loss) 60%, transparent); }
.seasonDecline:hover { background: color-mix(in srgb, var(--loss) 12%, transparent); }
.seasonWhen { margin: 0.35rem 0 0; font-size: 1.15rem; font-weight: 600; color: var(--gold); }
.seasonLine { margin: 0.35rem 0 0; color: var(--text); line-height: 1.5; }
.seasonLine.isLive { color: var(--ok); font-weight: 600; }
.seasonProp { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); color: var(--text-muted); line-height: 1.45; }
.seasonProp button { flex: none; }
/* Drop and Send one pair: Save's top margin and its phone size were Drop's alone. */
.seasonProp .draftSave { margin: 0; align-self: center; font-size: 0.74rem; padding: 0.35rem 0.8rem; }
@media (max-width: 600px), (pointer: coarse) { .seasonProp button { min-height: 30px; } }
/* The words take the room; a row's buttons sit together at its end. */
.seasonProp > span { flex: 1; min-width: 0; }
.seasonProp.isDeclined { color: color-mix(in srgb, var(--loss) 75%, var(--text-muted)); }
.seasonProp.isAccepted { color: color-mix(in srgb, var(--win) 75%, var(--text-muted)); }
.seasonReport.isDisputed { color: color-mix(in srgb, var(--loss) 75%, var(--text-muted)); }
/* The one thing to do, centred: Check in and Join the lobby big, Propose a time small. */
.seasonActs { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; margin-top: 0.7rem; }
.seasonCheckin, .seasonJoin {
    display: block; width: min(100%, 20rem); box-sizing: border-box; padding: 0.85rem 1.2rem; text-align: center;
    font-family: var(--font-mono); font-size: 1rem; font-weight: 700; text-decoration: none;
    color: var(--on-gold); background: var(--gold); border: 1px solid var(--gold); border-radius: 8px; cursor: pointer;
}
.seasonCheckin:hover, .seasonJoin:hover { background: var(--gold-light); border-color: var(--gold-light); }
.seasonCheckin:disabled { opacity: 0.6; cursor: default; }
.seasonJoin { color: var(--on-ok, var(--bg)); background: var(--ok); border-color: var(--ok); }
.seasonJoin:hover { filter: brightness(1.1); background: var(--ok); border-color: var(--ok); }
.schedBanner .seasonCheckin, .schedBanner .seasonJoin { width: auto; padding: 0.4rem 0.9rem; font-size: 0.74rem; }
.seasonCaster { margin: 0.5rem 0 0; font-size: 0.68rem; color: var(--text-muted); }
/* The custom game: steps, one to the next. */
.seasonLobby { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.seasonLobby h3 { margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: var(--text); }
.seasonSteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: step; }
.seasonStep {
    position: relative; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: start; gap: 0.5rem;
    padding: 0.5rem 0.65rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
    font-size: 0.7rem; line-height: 1.55; color: var(--text);
}
.seasonStep::before { counter-increment: step; content: counter(step); width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 0.62rem; font-weight: 700; margin-top: 0.1rem; }
.seasonStep + .seasonStep::after {
    content: ''; position: absolute; left: calc(0.65rem + 0.65rem - 0.28rem); top: -0.72rem; width: 0.4rem; height: 0.4rem;
    border-right: 2px solid var(--gold-dim); border-bottom: 2px solid var(--gold-dim); transform: rotate(45deg);
}
.seasonStepHead, .seasonStepBody { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; }
.seasonStepHead + .seasonStepBody { margin-top: 0.2rem; }
.seasonStep code { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text); background: color-mix(in srgb, var(--gold) 10%, transparent); padding: 0.05em 0.45em; border-radius: 4px; }
.seasonStep .isMuted { color: var(--text-muted); }
.seasonCopy { font: inherit; font-size: 0.6rem; padding: 0.05rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--gold); cursor: pointer; }
.seasonCopy:hover { border-color: var(--gold-dim); }
.seasonSent { color: var(--ok); }
/* The link and Send, one height. */
.seasonLobbyForm { display: flex; gap: 0.4rem; width: 100%; }
.seasonLobbyForm input { flex: 1 1 auto; min-width: 0; height: 2rem; box-sizing: border-box; padding: 0 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; color: var(--text); }
.seasonLobbyForm input:focus { outline: none; border-color: var(--gold-dim); }
.seasonLobbyForm button { flex: none; height: 2rem; box-sizing: border-box; padding: 0 0.9rem; }

/* Games to come: a banner each, the next one lit; Match history across from the head. */
.seasonSplit { margin-top: 1.2rem; }
.seasonSplitHead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.45rem; font-size: 0.76rem; color: var(--text-muted); }
.seasonHistory { display: inline-flex; align-items: center; gap: 5px; font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.seasonHistory:hover { color: var(--gold-light); }
.seasonHistory svg { width: 6px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* The banners, one size whatever is on them, down the page; a tag sits before the round, so the round holds the top right. */
.seasonSplitRow {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.8rem;
    box-sizing: border-box; min-height: 2.95rem;
    padding: 0.6rem 0.8rem; margin-bottom: 0.45rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card);
    font-size: 0.72rem; color: var(--text-muted);
}
.seasonSplitWhen:empty::before { content: '\00a0'; }
.seasonSplitRow.isNext { border-color: var(--gold-dim); color: var(--text); }
.seasonSplitTeam { display: inline-flex; align-items: center; gap: 0.45em; min-width: 0; font-size: 0.86rem; }
.seasonSplitTeam > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seasonSplitTeam .teamIcon { flex: none; width: 1.5rem; height: 1.5rem; margin: 0; vertical-align: 0; }
.seasonSplitMeta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.seasonSplitRound { font-size: 0.64rem; }
.seasonSplitWhen { white-space: nowrap; }
.seasonTag { font-size: 0.6rem; padding: 0.12rem 0.5rem; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.seasonTag.isLocked { color: var(--gold); border-color: var(--gold-dim); }
.seasonTag.isOpen { border-style: dashed; }
.seasonTag.isSet { color: var(--text); }
.seasonTag.isWin { color: var(--win); border-color: var(--win); }
.seasonTag.isLoss { color: var(--loss); border-color: var(--loss); }
.seasonTag.isLive { color: var(--ok); border-color: var(--ok); }
@media (max-width: 480px) {
    .seasonSplitRow { grid-template-columns: minmax(0, 1fr) auto; }
    .seasonSplitRow .seasonSplitMeta { grid-column: 1; grid-row: 2; align-items: flex-start; text-align: left; }
    .seasonSplitRow .seasonTag { grid-row: 1 / 3; }
    .weekSlider .weekNum { width: 2.3rem; }
    .weekVotes { grid-template-columns: repeat(3, 2.3rem); }
}
/* The ask: a time, then a note. */
.seasonAsk { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); }
.seasonAsk .availWeekNote { margin: 0; }
.seasonAsk input { width: 100%; box-sizing: border-box; background: var(--overlay-soft, rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px; font-family: inherit; font-size: 13px; }
.seasonAsk input:focus { outline: none; border-color: var(--gold-dim); }
.seasonAsk .draftErr { margin: 0; }
/* Where you are short, under the week in the Availability overlay. */
.availShort { margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.availShort h4 { margin: 0 0 4px; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--text); }
.availShort p { margin: 2px 0; }
.availShort .isShort { color: var(--red-x); }
/* The admin's box on the Profile pane: the form to open one, or Close. */
.seasonSec.paneBox .draftMeHead { margin-bottom: 0.6rem; }
.seasonSec .teamFields input { background: var(--bg); border: 1px solid var(--border); border-radius: 3px; color: var(--text); font-family: var(--font-mono); font-size: 0.78rem; padding: 0.35rem 0.5rem; }
.seasonSec .teamFields input:focus { outline: none; border-color: var(--gold-dim); }
.seasonSec .teamFields input[name="rounds"] { width: 4.2em; }
.seasonSec .teamActions { margin-top: 0; }
.seasonCloseBtn {
    padding: 0.3rem 0.7rem;
    background: none; border: 1px solid var(--red-x); border-radius: 3px;
    color: var(--red-x);
    font-family: var(--font-mono); font-size: 0.72rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.seasonCloseBtn:hover { background: var(--red-x); color: var(--on-notify, #fff); }

/* ---- Schedule, in the Team tab: a banner. The next game in a line, Check
   in when it is time, and the whole of it opens the schedule app, where the
   rest is. ---- */
.schedBanner { padding-bottom: 0.65rem; cursor: pointer; transition: border-color 0.15s; }
.schedBanner:hover { border-color: var(--gold-dim); }
.schedBanner .secHead { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; min-width: 0; }
/* Who you play, on the heading's row and again small for the game after: Round N, vs with room round it,
   then the icon and the name in the team's colour, all on one centre line. */
.schedVs { display: inline-flex; align-items: center; gap: 0.5em; min-width: 0; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1; white-space: nowrap; }
.schedVsRound, .schedVsWord, .schedVsWhen { flex: none; font-size: 0.66rem; line-height: 1; color: var(--text-muted); }
.schedVsWord { margin: 0 0.2em; }
.schedVs .teamLink { display: inline-flex; align-items: center; gap: 0.35em; min-width: 0; font-weight: 600; line-height: 1; }
.schedVs .teamLink > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedVs .teamLink .teamIcon { display: block; flex: none; width: 1.3em; height: 1.3em; margin: 0; }
.schedSnipNext .schedVs { font-size: 0.72rem; }
.drawerBody .schedBanner .draftMeHead { margin: 0 0 0.3rem; }
.schedBanner .seasonSec { margin-bottom: 0; }
.schedSnip { display: flex; align-items: center; gap: 0.35em; margin: 0; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text); }
.schedSnip + .schedSnip { margin-top: 0.2rem; }
.schedSnip.isMuted { font-size: 0.68rem; color: var(--text-muted); }
.schedSnip .teamIconSlot { display: inline-flex; margin: 0; }
.schedSnip .teamIcon { width: 1.15em; height: 1.15em; vertical-align: 0; }
.schedSnip .seasonOpp { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedSnipWhen { color: var(--gold); }
.schedSnipNext { flex-wrap: wrap; }
.schedSnipNext .schedSnipWhen { color: var(--text-muted); }
.schedSnipNext .schedSnipTeam { font-weight: 600; }
.schedBanner .seasonActs { margin-top: 0.5rem; }
.schedBanner .seasonJoin { display: inline-block; margin-top: 0.5rem; }

/* Availability, by the hours on the schedule app: the team's form answers and its week. */
.teamAvailBtn {
    display: inline-flex; align-items: center; gap: 5px; padding: 0;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold);
}
.teamAvailBtn:hover { color: var(--gold-light); }
.teamAvailBtn svg { width: 6px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The schedule: one line a match. */
.teamSchedule { font-family: var(--font-mono); font-size: 0.72rem; }
.schedRow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.schedRow:first-child { border-top: 0; }
.schedRow .schedVs { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedRow .schedVs a { color: var(--gold); text-decoration: none; }
.schedWhen { grid-column: 1; color: var(--text-muted); font-size: 0.64rem; }
.schedResult { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; }
.schedResult.isWin { color: var(--win); }
.schedResult.isLoss { color: var(--loss); }

/* The Availability overlay: the week, then each of them. */
.availTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.availTop select { font-family: var(--font-mono); font-size: 0.68rem; }
.availWho { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 10px; }
.availWho button { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gold-dim); background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); font-family: var(--font-mono); font-size: 0.64rem; cursor: pointer; }
.availWho button.isOff { background: none; border-color: var(--border); color: var(--text-muted); text-decoration: line-through; }
.availWho button:disabled { cursor: default; opacity: 0.55; text-decoration: none; }
.availWeek { display: grid; grid-template-columns: 2.2rem repeat(24, minmax(0, 1fr)); gap: 2px; font-family: var(--font-mono); }
.availHour { font-size: 0.52rem; color: var(--text-muted); white-space: nowrap; overflow: visible; }
.availDay { font-size: 0.6rem; color: var(--text-muted); align-self: center; }
.availCell { aspect-ratio: 1; border-radius: 2px; background: color-mix(in srgb, var(--gold) calc(var(--h, 0) * 85%), color-mix(in srgb, var(--border) 45%, transparent)); }
.availCell.isAll { outline: 1px solid var(--gold); }
/* Propose time: its time now and Availability over the week ahead, an hour a
   cell. The best lit gold, the game's own hour ringed dashed, the one picked
   outlined, what is not on offer struck through. Under it one banner: the hour
   under the pointer, else the one picked, gold. */
.proposeTop { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.proposeNow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.5em; margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.proposeNowWhen { color: var(--gold); white-space: nowrap; }
.proposeTop .teamAvailBtn { flex: none; }
#lafterOverlayTitle .proposeTeam .teamIcon { width: 0.9em; height: 0.9em; vertical-align: -0.08em; }
.proposeWeek .proposeCell { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 0; font: inherit; cursor: pointer; }
.proposeWeek span.proposeCell { cursor: default; }
.proposeWeek .proposeCell.isShut { opacity: 0.6; background-image: repeating-linear-gradient(135deg, transparent 0 3px, color-mix(in srgb, var(--bg-card, #000) 70%, transparent) 3px 4.5px); }
.proposeWeek .proposeCell.isBest { background: var(--gold); box-shadow: 0 0 6px color-mix(in srgb, var(--gold) 70%, transparent); z-index: 1; }
/* On a phone an hour is a sliver across; taller, so a thumb can take it. */
@media (max-width: 600px) { .proposeWeek .proposeCell { aspect-ratio: auto; height: 22px; } }
.proposeWeek .proposeCell.isOwn { outline: 2px dashed var(--text); outline-offset: 0; z-index: 1; }
.proposeWeek .proposeCell.isPick { outline: 2px solid var(--text); outline-offset: 1px; z-index: 2; }
.proposeWeek button.proposeCell:hover { outline: 2px solid var(--gold-light, var(--gold)); outline-offset: 1px; z-index: 3; }
.proposeBar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: var(--font-mono); font-size: 0.72rem; }
.proposeBar.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.proposeBar[hidden] { display: none; }
.proposeBarWhen { white-space: nowrap; }
.proposeBarFree { font-size: 0.64rem; color: var(--text-muted); }
.availWeekNote { margin: 6px 0 14px; font-family: var(--font-mono); font-size: 0.64rem; color: var(--text-muted); }
.availWeekNote a { color: var(--gold); }
.availPeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.availPerson { border: 1px solid var(--border); border-left-width: 3px; border-radius: 6px; padding: 8px 10px; background: var(--bg-card); font-family: var(--font-mono); font-size: 0.68rem; }
/* The captain's edge in gold, the coach's dimmer, as the Lookup team page has them. */
.availPerson.isCaptain { border-left-color: var(--gold); }
.availPerson.isCoach { border-left-color: var(--gold-dim); }
.availPerson h4 { margin: 0 0 5px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text); font-weight: 600; }
.availPerson h4 span { color: var(--text-muted); font-weight: 400; margin-left: 6px; }
.availPerson dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; }
.availPerson dt { color: var(--text-muted); }
.availPerson dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.availPerson .isNone { color: var(--text-muted); font-style: italic; }
/* The switch in a banner sits inside the title's height, so Draft is no
   taller than Schedule. */
.paneBox .secHead .faToggle { padding-top: 1px; padding-bottom: 1px; line-height: 1.2; }

/* Shut, the Mirth row is the last thing; the card's full bottom padding under it read as a blank row. */
.teamCard.paneSec:not(.isOpen) { padding-bottom: 0.5rem; }

/* The form an availability overlay reads from: beside the title, a link, one line that scrolls sideways. */
.availForm { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-left: 1.4em; vertical-align: middle;
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold); text-decoration: none;
    white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.availForm::-webkit-scrollbar { display: none; }
.availForm svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
a.availForm:hover { color: var(--gold-light); }
/* Schedule's heading opens the schedule app. */
.secHeadLink { color: inherit; text-decoration: none; }
.secHeadLink:hover { color: var(--gold); }
.seasonWaiting { margin-top: 0.6rem; }
.seasonWaiting a { color: var(--gold); }
/* The custom game: Join for everyone; the name, settings and link for the captains. */
.seasonLobby { display: flex; flex-direction: column; gap: 6px; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.seasonLobbyName { display: flex; align-items: center; gap: 8px; }
.seasonLobbyName code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); }
.seasonCopy { padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.66rem; cursor: pointer; }
.seasonCopy:hover { border-color: var(--gold-dim); color: var(--gold); }
.seasonLobbySet { margin: 0; font-size: 0.66rem; color: var(--text-muted); line-height: 1.5; }
.seasonLobbyForm { display: flex; gap: 6px; }
.seasonLobbyForm input { flex: 1 1 auto; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 3px; color: var(--text); font-family: var(--font-mono); font-size: 0.74rem; padding: 0.3rem 0.5rem; }
.seasonLobbyForm input:focus { outline: none; border-color: var(--gold-dim); }
.seasonCaster { margin: 0.4rem 0 0; font-size: 0.68rem; color: var(--text-muted); }
