/* ---- 00-base.css ---- */
/* The platform's pages: home, admin, the TV code. Dark, like the games' pages. */
@font-face { font-family: 'Montserrat'; src: url('/fonts/montserrat.woff') format('woff'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #162028; --bg2: #1d2a34; --line: #2c3c48; --text: #eef1f3; --muted: #93a3ae; --accent: #e3a33b; --accent2: #f0c06a;
  --warn: #e0675a; --ok: #6dbf8b; --r: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Montserrat, system-ui, sans-serif; }
a { color: var(--accent2); }
h1 { font-size: 26px; margin: 4px 0 2px; }
h2 { font-size: 17px; margin: 22px 0 10px; letter-spacing: .02em; }
.boot { display: grid; place-items: center; min-height: 100vh; letter-spacing: .3em; color: var(--muted); }
.muted { color: var(--muted); }
.err { color: var(--warn); }
small { display: block; color: var(--muted); font-size: 13px; }

.pg { max-width: 760px; margin: 0 auto; padding: 18px 16px 48px; }
.pg-wide { max-width: 1100px; }
.pg-head { margin-bottom: 8px; }
.pg-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; letter-spacing: .25em; font-size: 12px; font-weight: 600; }
.pg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); }
.pg-sub { color: var(--muted); }

.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--bg2); color: var(--text); border-radius: 10px;
  padding: 9px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink, #1b1408); border-color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: var(--warn); color: var(--warn); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #2f4250; color: var(--text); }
.badge.warn { background: var(--warn); color: #fff; }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 10px 0; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
input, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); margin: 12px 0; padding: 8px 14px; }
legend { color: var(--muted); padding: 0 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.seg button { font: inherit; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink, #1b1408); border-color: var(--accent); }
details summary { cursor: pointer; color: var(--muted); margin: 10px 0; }

/* ---- 10-pages.css ---- */
/* home: my games, the catalog */
.mines, .cat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mine a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg2);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.mine a:hover { border-color: var(--accent); }
.mine.turn a { border-color: var(--accent); }
.mine-game { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; grid-column: 1 / -1; }
.mine-seat { color: var(--muted); }
.mine .status { grid-column: 1; color: var(--muted); font-size: 13px; }
.mine .badge { grid-column: 2; grid-row: 2 / 4; align-self: center; background: var(--accent); color: var(--accent-ink, #1b1408); }
.cat li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); }

/* the TV code: big, for a remote */
.tvcode { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 24px; }
.tvcode h1 { font-size: 44px; }
.tvcode form { display: flex; gap: 12px; justify-content: center; }
.tvcode input { font-size: 44px; width: 5.2ch; text-align: center; letter-spacing: .15em; }
.tvcode .btn { font-size: 26px; padding: 12px 26px; }
.tvcode .muted { max-width: 36em; margin: 0 auto; }

/* admin */
.game header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; cursor: pointer; }
.game-kind { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.game.archived { opacity: .6; }
.seats { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.seats li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seats li.turn .seat-name { color: var(--accent2); font-weight: 600; }
.seat-id { font-weight: 700; min-width: 2.6em; color: var(--muted); }
.score { margin-left: auto; font-weight: 700; }
.game footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.created { border-color: var(--accent); }
.nseats { list-style: none; padding: 0; display: grid; gap: 8px; }
.nseats li { display: grid; grid-template-columns: minmax(9em, auto) 1fr auto; gap: 10px; align-items: center; }
.nseats li.off { opacity: .55; }
@media (max-width: 560px) { .nseats li { grid-template-columns: 1fr auto; } .nseats li input { grid-column: 1 / -1; } }

/* the admin page's Telegram part (admin-telegram.tsx) */
.tg-admin .tg-head { display: flex; align-items: baseline; gap: 12px; cursor: pointer; }
.tg-admin .tg-head h2 { margin: 0; }
.tg-admin h3 { font-size: 15px; margin: 18px 0 4px; }
.tg-ok { color: var(--ok); }
.tg-code { margin: 10px 0; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 10px; }
.tg-code ol { margin: 0 0 6px; padding-left: 20px; }
.tg-code code { font-size: 16px; padding: 4px 8px; background: var(--bg); border-radius: 6px; }
.tg-people { list-style: none; padding: 0; margin: 8px 0; }
.tg-people li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tg-people li > span:first-child { flex: 1; min-width: 0; }
.tg-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.nseats select { max-width: 220px; }

/* ---- 30-schedule.css ---- */
/* The friends' schedule (schedule/): the page /schedule — the Telegram Mini App, a game's sheet in a frame, a view
   link. Its own tokens on top of the platform's (00-base.css), and a light theme for a light Telegram app or
   ?theme=light. */
:root {
  --line-soft: rgba(255, 255, 255, 0.09); --text-2: #c9d3da; --gold: #e3a33b; --gold-2: #f3c26a; --neg: #ff6b5e;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #e9edf0; --bg2: #f4f6f8; --line: rgba(0, 0, 0, 0.14); --text: #121a20; --muted: #5d6c76;
  --line-soft: rgba(0, 0, 0, 0.1); --text-2: #2c3a44; --gold: #a96d0c; --gold-2: #8a5806; --neg: #c62a1f;
}
/* the games' base rules the schedule was drawn with (only inside it) */
:where(.sched-page) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(.sched-page) button:disabled { cursor: default; }
:where(.sched-page) small { display: inline; font-size: inherit; color: inherit; }
.sched-page .btn { min-height: 34px; }
.sched-page .linklike { color: var(--muted); text-decoration: underline; font-size: 13px; padding: 6px 0; }


:root {
  --sched-accent: var(--gold);
  --sched-accent-ink: #241600;
  --sched-panel: rgba(255, 255, 255, 0.045);
  --sched-link: var(--gold-2);
  --sg-line: rgba(255, 255, 255, 0.07);
  --sg-line-hour: rgba(255, 255, 255, 0.16);
  --sched-hot: #f0b43c;
  /* what the grid lies on (the page; the game's sheet has its own) */
  --sched-surface: var(--bg);
}
:root[data-theme='light'] {
  --sched-panel: rgba(0, 0, 0, 0.04);
  --sg-line: rgba(0, 0, 0, 0.07);
  --sg-line-hour: rgba(0, 0, 0, 0.16);
  --sched-hot: #c98a0c;
}

/* ---------------- the page */
body.sched-body { background-image: none; background-color: var(--bg); }
.sched-page { max-width: 1120px; margin: 0 auto; padding: 6px 12px 0; }
.sched-page.embedded { padding-top: 6px; }
.sched-title { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sched-accent); }
.sched-msg { padding: 32px 4px; text-align: center; color: var(--text-2); }
.sched-err { color: var(--text); max-width: 460px; margin: 0 auto; line-height: 1.5; }

.sched { display: flex; flex-direction: column; gap: 6px; }
.sched-note { margin: 0; font-size: 13px; color: var(--muted); }
.sched-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; }
.sched-zone { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* the bar: week / two days, the pager, how many are needed */
.sched-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sched-span { padding: 1px; }
.sched-span .seg-b { min-height: 28px; padding: 2px 10px; font-size: 12.5px; }
.sched-pager { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sched-arrow { width: 28px; height: 28px; border-radius: 9px; background: var(--sched-panel); border: 1px solid var(--line-soft); font-size: 20px; line-height: 1; display: grid; place-items: center; }
.sched-arrow:disabled { opacity: 0.35; }
.sched-need { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sched-need select {
  min-height: 28px; padding: 1px 6px; border-radius: 8px; border: 1px solid var(--line-soft); background: var(--bg);
  color: var(--text); font-weight: 800; font-size: 14px;
}

/* the people */
.sched-people { display: flex; flex-wrap: wrap; gap: 4px; }
.scp {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 1px 9px 1px 4px; border-radius: 999px;
  background: var(--sched-panel); border: 1px solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.scp small { font-size: 11px; color: var(--muted); font-weight: 500; }
.scp.silent { opacity: 0.55; }
.scp.mine { border-color: var(--sched-accent); }
.scp-edit { font-size: 12px; color: var(--muted); }
.scp-dot {
  flex: none; min-width: 16px; height: 16px; padding: 0 2px; border-radius: 4px; background: var(--pc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  display: grid; place-items: center; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 1;
}
.scp-dot:empty { min-width: 11px; width: 11px; height: 11px; border-radius: 50%; padding: 0; }
.sched-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--sched-panel); }
.sched-sw { width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.sched-sw.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--pc); }
.sched-sw.taken { opacity: 0.6; }
.sched-auto { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 13px; font-weight: 700; }

/* when we meet */
.sched-win { padding: 4px 8px 3px; border-radius: 10px; background: var(--sched-panel); border: 1px solid var(--line-soft); }
.sched-win header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 0 2px; min-height: 18px; }
.sched-win h3 { margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sched-accent); }
.sched-win ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.sched-win .sched-note { margin: 2px; }
.scw { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 2px; border-radius: 6px; font-size: 13px; }
.scw:hover { background: rgba(255, 255, 255, 0.05); }
:root[data-theme='light'] .scw:hover { background: rgba(0, 0, 0, 0.04); }
.scw-when { white-space: nowrap; }
.scw-when b { font-weight: 700; }
.scw-who { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 3px; }
.scw-p {
  display: inline-flex; align-items: center; gap: 2px; height: 19px; padding: 0 3px 0 4px; border-radius: 5px;
  background: var(--pc); color: #fff; font-style: normal; font-size: 11px; font-weight: 800;
}
.scw-p.mk-off { background-image: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px); background-size: 4px 4px; }
.scw-maybe { font-size: 11px; color: var(--muted); font-weight: 700; }
/* a possible window: dashed like its frame in the grid; those who said maybe striped, with their «?» */
.scw.soft { box-shadow: inset 0 0 0 1px transparent; outline: 1px dashed color-mix(in srgb, var(--sched-hot) 70%, transparent); outline-offset: -1px; margin: 1px 0; }
.scw-p.mk-maybe { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--pc); }
.scw-more { font-size: 12px; }

/* the legend */
.sched-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11.5px; color: var(--muted); }
.scl { display: inline-flex; align-items: center; gap: 6px; }
.scl .scg-sw { flex: none; width: 10px; height: 14px; border-radius: 3px; }
.scl-hot { flex: none; width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--sched-hot); }
.scl-hot.soft { box-shadow: none; border: 1.5px dashed var(--sched-hot); }

/* ---------------- the grid: a column per day; under it the half-hour cells (taps, lines), over them the rectangles */
.scg {
  /* --dgap: the gutter between the days */
  --rail: 24px; --row: 15px; --dgap: 4px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
@media (min-width: 720px) { .scg { --rail: 32px; --row: 18px; --dgap: 8px; } }
.scg-big { --rail: 40px; --row: 30px; --dgap: 8px; }
.scg-paint .scg-c:not(.past) { cursor: pointer; }
.scg-cols { display: grid; grid-template-columns: var(--rail) repeat(var(--days), minmax(0, 1fr)); column-gap: var(--dgap); }
.scg-head { position: sticky; top: -1px; z-index: 6; background: var(--sched-surface); padding: 1px 0 3px; border-bottom: 1px solid var(--sg-line-hour); }
.scg-dh { min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 1px 0; line-height: 1.2; }
/* the day in one line: «ВТ 13», «Сегодня 13 окт» */
.scg-dt { display: flex; align-items: baseline; justify-content: center; gap: 3px; max-width: 100%; overflow: hidden; white-space: nowrap; }
.scg-dt b { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.scg-dt > span { font-size: 13px; font-weight: 800; color: var(--text); }
.scg-dh.weekend b { color: var(--neg); }
.scg-dh.today b, .scg-dh.today .scg-dt > span { color: var(--sched-accent); }
.scg-big .scg-dt b { font-size: 12px; }
.scg-big .scg-dt > span { font-size: 12px; font-weight: 600; color: var(--text-2); }
.scg-lh { display: flex; gap: 2px; width: 100%; margin-top: 1px; padding: 0 3px; }
.scg-lh i { flex: 1 1 0; min-width: 0; font-style: normal; font-size: 11px; font-weight: 800; color: var(--pc); text-align: center; overflow: hidden; }
.scg-lh i.me { text-decoration: underline; text-underline-offset: 2px; }

.scg-rail { display: flex; flex-direction: column; }
.scg-t { position: relative; height: var(--row); flex: none; font-size: 10px; font-weight: 600; color: var(--muted); text-align: right; padding-right: 4px; line-height: 1; top: -5px; white-space: nowrap; }
.scg-big .scg-t { font-size: 11px; }
/* the first hour's label under the head, not half behind it */
.scg-t:first-child { top: 1px; }
.scg-big .scg-t.half { opacity: 0.7; }

.scg-day {
  /* a card of its own, apart from the next day; its layers (rectangles, frames, the now line) stay inside it: the
     sticky head and the dock stay above them */
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; display: flex; flex-direction: column;
  border-radius: 6px; background: var(--sched-panel); box-shadow: inset 0 0 0 1px var(--sg-line);
  /* the lanes: --lw a lane with its gap; a rectangle is --lw minus the gap wide */
  --pad: 2px; --gap: 2px; --lw: calc((100% - 2 * var(--pad) + var(--gap)) / var(--lanes));
}
.scg-big .scg-day { --pad: 3px; --gap: 3px; }
.scg-c { flex: none; height: var(--row); border-top: 1px dashed var(--sg-line); }
.scg-c.hour { border-top: 1px solid var(--sg-line-hour); }
.scg-c:first-child { border-top-color: transparent; }
/* today: a frame in the accent colour; the weekend a little warmer */
.scg-day.today { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sched-accent) 55%, transparent); }
.scg-day.weekend { background: color-mix(in srgb, var(--neg) 5%, var(--sched-panel)); }

/* runs of slots over the column: --from (slot) and --len (slots) */
.scg-ov, .scg-bar { position: absolute; pointer-events: none; top: calc(var(--from) * var(--row)); height: calc(var(--len) * var(--row)); }
.scg-ov { left: 0; right: 0; }
.scg-insel { z-index: 1; background: color-mix(in srgb, var(--sched-accent) 16%, transparent); }
.scg-full { z-index: 1; background: color-mix(in srgb, var(--sched-hot) 18%, transparent); }
.scg-hot { z-index: 3; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--sched-hot); }
/* enough if those who said maybe come: dashed */
.scg-hot.soft { box-shadow: none; border: 1.5px dashed color-mix(in srgb, var(--sched-hot) 80%, transparent); }
.scg-past { z-index: 4; background: color-mix(in srgb, var(--sched-surface) 62%, transparent); }
.scg-pick { z-index: 5; border-radius: 4px; outline: 2px solid var(--sched-link); outline-offset: -1px; }
.scg-now { position: absolute; z-index: 5; pointer-events: none; left: 0; right: 0; top: calc(var(--from) * var(--row)); height: 2px; margin-top: -1px; background: var(--neg); }
.scg-now::before { content: ''; position: absolute; left: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--neg); }

/* a person's run: one rectangle, the label at its top */
.scg-bar {
  z-index: 2; margin-top: 1.5px; height: calc(var(--len) * var(--row) - 3px);
  left: calc(var(--pad) + var(--k) * var(--lw)); width: calc(var(--lw) - var(--gap));
  border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 1px; padding-top: 2px;
  color: #fff; font-style: normal;
}
.scg-week .scg-bar { border-radius: 3px; padding-top: 1px; }
/* a big club's heat map (grid.tsx LANES_MAX): how many are ready, darker the more; beside my own lane */
.scg-heat {
  position: absolute; pointer-events: none; z-index: 2; top: calc(var(--from) * var(--row)); margin-top: 1.5px;
  height: calc(var(--len) * var(--row) - 3px); left: calc(var(--pad) + var(--k) * var(--lw)); width: calc(var(--w) * var(--lw) - var(--gap));
  border-radius: 3px; background: color-mix(in srgb, var(--sched-accent) calc(12% + var(--h) * 70%), transparent);
  display: flex; justify-content: center; color: var(--text); font-style: normal;
}
.scg-heat .scg-n { padding-top: 1px; }
.scg-lh.heat { justify-content: flex-start; }
.sched-scope { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.scg-n { position: relative; max-width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 800; line-height: 1.2; text-shadow: 0 0 2px rgba(0, 0, 0, 0.45); }
.scg-big .scg-n { font-size: 12px; }
.scg-bar .mk-ico { position: relative; flex: none; }

/* the marks: rectangles, the legend's and the brushes' swatches */
.mk-on { background: var(--pc); }
.mk-off { background-color: var(--pc); background-image: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1.1px, transparent 1.5px); background-size: 6px 6px; }
.mk-maybe { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--pc) 85%, transparent) 0 2.5px, transparent 2.5px 6px); box-shadow: inset 0 0 0 1.5px var(--pc); }
.mk-no { background: color-mix(in srgb, var(--pc) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pc) 65%, transparent); color: var(--pc); }
/* on stripes the label sits on a chip of the background; on an outline it is in the person's colour */
.mk-maybe > .scg-n, .mk-maybe > .mk-ico { color: var(--pc); background: var(--sched-surface); border-radius: 3px; text-shadow: none; }
.mk-maybe > .scg-n { margin-top: 1px; }
.mk-no > .scg-n { text-shadow: none; }

/* ---------------- a picked slot, the brushes (stuck to the bottom) */
.sched-dock { position: sticky; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: 5px; margin: 0 -12px; padding: 5px 12px calc(6px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line-soft); }
/* the sheet's body scrolls: no padding under the dock, or the grid shows below it */
.sched-slot { padding: 6px 10px; border-radius: 12px; background: var(--sched-panel); border: 1px solid var(--sched-link); }
.sched-slot header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.sched-x { width: 26px; height: 26px; border-radius: 8px; font-size: 22px; line-height: 1; color: var(--muted); display: grid; place-items: center; }
.scs-rows { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.scs-rows > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.scs-h { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.scs-none { opacity: 0.75; }
.sched-who { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.sched-who .scp-dot { width: 11px; height: 11px; }
.scs-mine { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.scs-btns { display: flex; gap: 4px; }

.sched-tools { display: flex; flex-direction: column; gap: 4px; }
.sct-hint { margin: 0; font-size: 11px; line-height: 1.3; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-tools.ro .sct-hint { white-space: normal; }
.sct-hint.bad { color: var(--neg); font-weight: 600; }
.sct-row { display: flex; gap: 4px; }
.scb {
  flex: 1 1 auto; min-width: 0; height: 34px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px;
  border-radius: 9px; background: var(--sched-panel); border: 1px solid var(--line-soft); color: var(--text);
  font-size: min(12px, 3.05vw); font-weight: 700; white-space: nowrap; letter-spacing: -0.015em;
}
.scb > span { overflow: hidden; text-overflow: ellipsis; }
.scb.on { border-color: var(--sched-accent); box-shadow: inset 0 0 0 1px var(--sched-accent); background: color-mix(in srgb, var(--sched-accent) 14%, transparent); }
/* the swatch: what the mark looks like in the grid */
.scb > .scg-sw { flex: none; width: 8px; height: 15px; border-radius: 2px; }
.sched-tools.ro { align-items: center; }

/* ---------------- in the game: the top bar button (from 720 px; a phone has it in the Settings), the sheet */
.tb-sched { flex: none; width: 34px; height: 36px; display: none; place-items: center; border-radius: 10px; color: var(--text-2); }
.tb-sched:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold-2); }
@media (min-width: 720px) { .tb-sched { display: grid; } }
.sched.embedded .sched-dock { margin-top: 2px; }

/* ---- 40-club.css ---- */
/* the club's page (club/page.tsx, also the Mini App), its links (club/join.tsx), the admin page's club part */
.club-note { border-color: var(--warn); }
.club-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.club-row input { flex: 1 1 12em; min-width: 0; }
.club-me h3 { font-size: 15px; margin: 18px 0 4px; }
.club-devices { list-style: none; padding: 0; margin: 6px 0; }
.club-devices li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.club-devices li > span { flex: 1; min-width: 0; }
.club-devices .badge { margin-left: 8px; }
.club-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: 13px; padding: 4px 8px; background: var(--bg); border-radius: 6px; }
.club-join { display: grid; gap: 10px; max-width: 26em; }
.club-join input { font-size: 17px; }
.mine-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg2); border: 1px solid var(--line); }
.tg-people li.off { opacity: .6; }
/* the Mini App: Telegram's own header is above the page */
.tg-app .pg-logo { display: none; }
/* gatherings (club/gather.tsx) */
.gather .gather-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.gather p { margin: 6px 0; }
.gather-who { color: var(--muted); font-size: 13px; }
.gather.started, .gather.cancelled { opacity: .75; }
.gather.closed { border-color: var(--warn); }
.gather-wish button { font-size: 13px; }
.gather-new h3 { margin: 0 0 6px; }
/* my games: the time to answer, the autopilot */
.mine-until { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.mine-auto { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px 0; color: var(--warn); }
.mine-timing { grid-column: 1 / -1; font-size: 12px; }
/* the game's window and its time to answer (club/timing.tsx: the gathering's form, the admin page) */
.timing .win { display: grid; gap: 6px; margin: 6px 0 10px; }
.win-ranges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.win-range { display: inline-flex; align-items: center; gap: 4px; }
.win-range input[type=time] { padding: 5px 6px; min-width: 0; }
.win-range .icon-btn { font: inherit; font-size: 18px; line-height: 1; padding: 2px 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.win-we { padding-left: 26px; }
.timing small.bad { color: var(--bad, #e05a4f); }
/* notices (club/notify.tsx) */
.club-notify > div, .club-notify > p { margin: 8px 0; }
.notify-kinds { border-collapse: collapse; margin: 6px 0; }
.notify-kinds td { padding: 4px 8px 4px 0; }
.chip { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-ink, #1b1408); border-color: var(--accent); }
