/*
  The clubs' back office (verein.einlass.digital), on top of base.css. Platform furniture: ink and
  warm neutrals, brand green for the one thing to do next, no club colour (brand guide, co-branding
  tier one) and no scanner status colours (those live in gate.css only). Class names start with s-.
*/

/* ------------------------------------------------------------ boot, frame */

/* Before a club (PlainFrame), and the boot screen in index.html, which writes the same markup by
   hand: one white card on the warm surface, light like the rest of the back office. */
.s-plain {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 50% 0%, var(--brand-25), transparent 70%), var(--surface);
}
.s-plain__card {
  width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px;
  padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-card-lg); background: var(--card);
  box-shadow: var(--shadow-card);
}
.s-plain__card .wordmark { align-self: flex-start; margin-bottom: 6px; }
.s-plain__card .f-h2 { margin: 0; }
.s-plain__card > .f-btn { align-self: flex-start; }
.s-plain__foot { margin: 0; color: var(--ink-400); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 480px) {
  /* On a phone the card is the page: no box inside a box. */
  .s-plain { justify-content: flex-start; padding-top: max(48px, env(safe-area-inset-top)); background: var(--card); }
  .s-plain__card { padding: 0; border: 0; box-shadow: none; }
  .s-plain__foot { margin-top: auto; }
}

/* A wait: a short brand bar sliding along a hairline track. Still under reduced motion. */
.s-plain__bar { position: relative; display: block; height: 4px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.s-plain__bar > span { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: inherit; background: var(--brand-500); animation: s-plain-bar 1.3s ease-in-out infinite; }
@keyframes s-plain-bar { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .s-plain__bar > span { animation: none; width: 100%; opacity: 0.35; } }

/* Blazor shows this itself (display: block) on an unhandled exception; hidden until then. */
#blazor-error-ui {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 1000;
  padding: 12px 20px; background: var(--ink-900); color: #FFFFFF;
  box-shadow: 0 -1px 2px rgba(16, 21, 18, 0.2);
}
#blazor-error-ui .reload { margin-left: 12px; color: inherit; text-decoration: underline; }
#blazor-error-ui .dismiss { position: absolute; right: 20px; cursor: pointer; }

.s-pick { display: flex; flex-direction: column; gap: 8px; }
.s-pick a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 16px; border: 1px solid var(--hairline); border-radius: var(--radius-ctrl);
  color: var(--ink-900); text-decoration: none;
}
.s-pick a:hover { border-color: var(--ink-900); }

/* ---------------------------------------------------------------- shell */

/* The club frame (ClubShell): a white top bar with the three areas, the club and the account; on a
   phone the areas move into a tab bar at the bottom. The operator's area (PlatformShell) uses the same frame. */
.s-app { min-height: 100vh; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.s-top { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.s-top__in { display: flex; align-items: center; gap: 12px; max-width: calc(1120px + 2 * var(--gutter)); min-height: 60px; margin: 0 auto; padding: 0 var(--gutter); }
.s-top__brand { display: inline-flex; color: var(--ink-900); text-decoration: none; }
.s-top__space { flex: 1; }
.s-top__leave { color: var(--brand-700); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.s-top__leave:hover { color: var(--ink-900); text-decoration: underline; }
.s-app--focused { padding-bottom: 0; }
/* A focused task's way out needs the room on a phone: the mark alone stands for the brand there. */
@media (max-width: 419px) { .s-app--focused .s-top__brand .wordmark__name { display: none; } }
.s-app--focused .s-top { background: transparent; border-bottom-color: transparent; }
.s-areas { display: none; gap: 4px; margin-left: 24px; }
.s-areas__link { display: grid; place-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink-600); font-weight: 500; text-decoration: none; }
.s-areas__link:hover { color: var(--ink-900); background: var(--surface); }
/* The open area: a brand tint, as in VereinHomeDesktop (brand green marks where you are, not a club). */
.s-areas__link[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); font-weight: 700; }

.s-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 260px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); color: var(--ink-900); font: inherit; font-weight: 600; cursor: pointer;
}
.s-switch:hover { border-color: var(--ink-900); }
.s-switch--single, .s-switch--single:hover { border-color: transparent; cursor: default; }
.s-switch__name { display: none; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-mono {
  flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink-900); color: #FFFFFF; font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
}
.s-mono--lg { width: 52px; height: 52px; font-size: 19px; }
.s-avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.s-avatar:hover { box-shadow: inset 0 0 0 1.5px var(--brand-500); }
.s-account__name { display: block; font-weight: 700; }
.s-account__role { display: block; color: var(--ink-450); font-size: 13px; font-weight: 500; }

.s-tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line);
}
.s-tabbar__link { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; color: var(--ink-450); font-size: 12px; font-weight: 600; text-decoration: none; }
.s-tabbar__link[aria-current="page"] { color: var(--ink-900); }
.s-tabbar__link[aria-current="page"] svg { color: var(--brand-500); }

@media (min-width: 760px) {
  .s-app { padding-bottom: 0; }
  .s-areas { display: flex; }
  .s-switch__name { display: inline; }
  .s-tabbar { display: none; }
}

/* The Verein area: its settings beside the one that is open. */
.s-settings { display: grid; gap: 20px; align-items: start; }
.s-settings__nav { display: flex; gap: 6px; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
.s-settings__link {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); color: var(--ink-600); text-decoration: none;
}
.s-settings__link:hover { border-color: var(--ink-900); color: var(--ink-900); }
.s-settings__link[aria-current="page"] { background: var(--ink-900); border-color: var(--ink-900); color: #FFFFFF; }
.s-settings__text { display: flex; flex-direction: column; min-width: 0; }
.s-settings__label { font-weight: 700; white-space: nowrap; }
.s-settings__hint { display: none; color: var(--ink-450); font-size: 13px; }
.s-settings__hint--open { color: var(--warn-ink); }
.s-settings__pane { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (min-width: 900px) {
  .s-settings { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
  .s-settings__nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .s-settings__link { border-color: transparent; border-radius: var(--radius-ctrl); background: none; padding: 10px 12px; }
  .s-settings__link[aria-current="page"] { background: var(--card); border-color: var(--line); color: var(--ink-900); }
  .s-settings__link[aria-current="page"] svg { color: var(--brand-500); }
  .s-settings__hint { display: block; }
}
.s-pane-head { display: flex; flex-direction: column; gap: 6px; }
.s-pane-head .f-h2 { margin: 0; }
.s-pane-block { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Onboarding: the steps on the left, the open one beside them. */
.s-onboarding { display: flex; flex-direction: column; gap: 20px; max-width: 1060px; }
.s-onboarding__pane { flex: 1; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.s-onboarding__pane .f-h2, .s-onboarding__pane h2 { font-size: clamp(24px, 20px + 1vw, 32px); letter-spacing: -0.025em; }
.s-onboarding__nav { display: flex; align-items: center; gap: 8px; }
/* On a phone the step list is no column beside the pane but a row of numbered dots over it, joined
   by their connectors; the labels stay for screen readers ("Schritt 2 von 5" heads the pane). The
   selectors follow BbStepper's markup (ol > li > a button or, for the open step, a span; then the connector), not its utility classes. */
@media (max-width: 759px) {
  .s-onboarding__steps { flex-direction: column; gap: 16px; }
  .s-onboarding__steps > ol { flex-direction: row; align-items: center; }
  .s-onboarding__steps > ol > li { flex-direction: row; align-items: center; flex: 1; }
  .s-onboarding__steps > ol > li:last-child { flex: none; }
  .s-onboarding__steps > ol > li > span[aria-hidden] { flex: 1; width: auto; height: 2px; margin: 0 6px; }
  .s-onboarding__steps > ol > li > :first-child > span:last-child > span:first-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .s-onboarding__pane { padding: 22px 18px; border-radius: var(--radius-card); }
}
.s-clubcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-ctrl); background: var(--surface); }
.s-clubcard > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-teamlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.s-teamlist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.s-points { display: flex; flex-direction: column; gap: 8px; }
.s-points li { display: flex; align-items: flex-start; gap: 10px; }
.s-points svg { flex: none; margin-top: 2px; color: var(--brand-500); }
.s-firstgame {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--line);
  border-radius: var(--radius-ctrl); color: var(--ink-900); text-decoration: none;
}
.s-firstgame:hover { border-color: var(--ink-900); color: var(--ink-900); }

.s-main { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 24px var(--gutter) 64px; }

@media (min-width: 960px) {
  .s-main { padding-top: 36px; }
}

/* ----------------------------------------------------------- page head */

.s-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.s-head__text { display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.s-head__text .f-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.s-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.s-head__text .f-h1 { margin: 0; }
.s-back { align-self: flex-start; color: var(--brand-700); font-size: 14px; font-weight: 600; text-decoration: none; }
.s-back:hover { color: var(--ink-900); text-decoration: underline; }
.s-head__kicker { margin: 0 0 -4px; color: var(--ink-600); font-size: 14px; font-weight: 600; }

/* -------------------------------------------------------------- layout */

.s-stack { display: flex; flex-direction: column; gap: 24px; }
.s-stack-sm { display: flex; flex-direction: column; gap: 14px; }
.s-narrow { max-width: 720px; }
.s-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.s-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.s-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-split { display: grid; gap: 24px; align-items: start; }
.s-columns { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .s-split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .s-split > :only-child { grid-column: 1 / -1; }
  .s-columns { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

.s-btn-ink { background: var(--ink-900); color: #FFFFFF; }
.s-btn-ink:hover { background: #2A322D; color: #FFFFFF; }

.s-loading { display: flex; align-items: center; gap: 10px; padding: 32px 0; color: var(--ink-400); }
.s-empty { max-width: 60ch; margin-inline: auto; }
.s-error { margin-block: 4px; }
/* A note that asks for something by hand (an invitation mail that did not go out). */
.s-note--warn { background: var(--warn-bg); }

/* ---------------------------------------------------------------- tags */

/* Colours come from Blueprint's badge variants (Ui/Tag.razor). */
.s-tag { flex: none; white-space: nowrap; }

/* --------------------------------------------------------------- stats */

.s-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.s-stats--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (min-width: 640px) { .s-stats--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.s-stat { display: flex; flex-direction: column; gap: 2px; }
.s-stat__label { color: var(--ink-450); font-size: 14px; font-weight: 600; }
.s-stat__value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.s-stat__hint { color: var(--ink-400); font-size: 13px; }

/* --------------------------------------------------------------- table */

.s-table-wrap { overflow-x: auto; margin-inline: -4px; }
.s-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.s-table th { padding: 8px 4px; border-bottom: 1px solid var(--hairline); color: var(--ink-450); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.s-table td { padding: 10px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.s-table td .s-tag { margin-left: 6px; }
.s-table tr:last-child td { border-bottom: 0; }
.s-table td > .s-tag:only-child { margin-left: 0; }
.s-table__group th { padding: 22px 4px 6px; border-bottom: 1px solid var(--hairline); color: var(--ink-900); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.s-table a.f-strong { text-decoration: none; }
.s-table a.f-strong:hover { color: var(--brand-700); text-decoration: underline; }
.s-table__aside { margin-left: 10px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* A few labelled values side by side: a record's settings, read-only until "Bearbeiten". */
.s-facts { display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; }
.s-facts > div { min-width: 0; }
.s-facts dt { color: var(--ink-450); font-size: 13px; font-weight: 600; }
.s-facts dd { margin: 2px 0 0; font-weight: 600; }
.s-num { text-align: right !important; white-space: nowrap; }

/* --------------------------------------------------------------- lists */

.s-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.s-list > li { border-bottom: 1px solid var(--line); }

/* The operator's overview: counts that are links to the list they count, and what is open. */
.s-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
@media (max-width: 559px) { .s-tile { min-height: 88px; padding: 14px 16px; } }
.s-tile {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; min-height: 104px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); color: var(--ink-900); text-decoration: none;
}
.s-tile:hover { border-color: var(--ink-900); color: var(--ink-900); }

.s-lines { display: flex; flex-direction: column; }
.s-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.s-lines li:last-child { border-bottom: 0; }
.s-lines__total { border-top: 1.5px solid var(--ink-900); border-bottom: 0 !important; }

/* ------------------------------------------------------- home games */

/* "Schritt 3 von 5" over an onboarding step (VereinOnboardingDesktop). */
.s-kicker { margin: 0; color: var(--brand-700); font-size: 14px; font-weight: 700; }
.s-count { margin-left: 6px; color: var(--ink-400); font-size: 13px; }
.f-seg__item--on .s-count { color: var(--ink-450); }

.s-setup-banner { text-decoration: none; }
.s-setup-banner:hover { box-shadow: inset 0 0 0 1px var(--brand-500); }

.s-board { display: grid; gap: 28px; align-items: start; }
.s-board__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 1000px) { .s-board { grid-template-columns: minmax(0, 1fr) 320px; } }

/* The next home game: a raised white card over the list (VereinHomeDesktop). */
.s-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 20px 22px; border-radius: 22px; background: var(--card); color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(16, 21, 18, 0.05), 0 22px 44px -32px rgba(16, 21, 18, 0.28);
}
.s-next__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.s-next__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--ink-600); font-size: 14px; font-weight: 600; }
.s-next .f-body { color: var(--ink-600); }
.s-next__title { margin: 2px 0; font-family: var(--font-display); font-size: clamp(24px, 20px + 1vw, 30px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; overflow-wrap: anywhere; }

.s-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.s-filters > .f-seg { margin: 0; }
/* A segmented filter wider than a phone scrolls sideways inside itself instead of widening the page. */
.s-filters > .f-seg, .s-toolbar > .f-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.s-filters > .f-seg::-webkit-scrollbar, .s-toolbar > .f-seg::-webkit-scrollbar { display: none; }
.s-filters .f-seg__item, .s-toolbar .f-seg__item { flex: none; white-space: nowrap; }
.s-searchbox {
  flex: 1 1 180px; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--hairline); border-radius: var(--radius-ctrl); background: var(--card); color: var(--ink-450);
}
.s-searchbox:focus-within { border-color: var(--ink-900); outline: 3px solid var(--brand-500); outline-offset: 1px; }
/* width: 0 so the input's own default width does not push the view switch onto a second line. */
.s-searchbox input { flex: 1; width: 0; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink-900); outline: none; }
.s-seg-icon { display: inline-grid; place-items: center; min-width: 44px; }

/* The games as one white card, rows divided by hairlines (VereinHomeDesktop). */
.s-games { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.s-games > ul { display: flex; flex-direction: column; }
.s-games > ul > li + li { border-top: 1px solid var(--line); }
.s-games__empty { padding: 32px 16px; color: var(--ink-450); text-align: center; }

.s-game {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "date main chevron" "date metric status";
  align-items: center; gap: 6px 14px; min-height: 78px; padding: 12px 16px; color: var(--ink-900); text-decoration: none;
}
.s-game:hover { background: var(--surface); color: var(--ink-900); }
.s-game:hover > .f-datetile { background: var(--card); }
.s-game > .f-datetile { grid-area: date; }
.s-game__main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-game__title { font-weight: 700; overflow-wrap: anywhere; }
.s-game__meta { color: var(--ink-450); font-size: 14px; }
.s-game__metric { grid-area: metric; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; font-size: 14px; line-height: 1.25; }
.s-game__number { font-weight: 700; }
.s-game__detail { color: var(--ink-450); font-size: 13px; }
.s-game__metric .s-bar { flex-basis: 100%; max-width: 160px; margin-top: 4px; }
.s-game__status { grid-area: status; justify-self: end; }
.s-game__chevron { grid-area: chevron; justify-self: end; color: var(--ink-400); }
.s-game--off .s-game__title { color: var(--ink-450); text-decoration: line-through; text-decoration-thickness: 1px; }
@media (min-width: 720px) {
  .s-game { grid-template-columns: auto minmax(0, 1fr) 160px 170px auto; grid-template-areas: "date main metric status chevron"; gap: 16px; padding: 10px 18px; }
  /* Figure over its detail, as in VereinHomeDesktop ("158 erwartet" / "112 online, 46 Dauerkarten"). */
  .s-game__metric { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1px; }
  .s-game__status { justify-self: start; }
}

/* The operator's lists (competitions, clubs): the same white card of rows as the home games, without
   a date tile. Title and meta, a detail, the state as a chip, and the row is the link. */
.s-rowgroup { display: flex; flex-direction: column; gap: 8px; }
.s-rowgroup__head { margin: 0; color: var(--ink-450); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.s-prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main chevron" "detail status";
  align-items: center; gap: 6px 14px; min-height: 64px; padding: 12px 16px; color: var(--ink-900); text-decoration: none;
}
.s-prow:hover { background: var(--surface); color: var(--ink-900); }
.s-prow__main { grid-area: main; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-prow__title { font-weight: 700; overflow-wrap: anywhere; }
.s-prow__meta { color: var(--ink-450); font-size: 14px; }
.s-prow__detail { grid-area: detail; display: flex; flex-wrap: wrap; gap: 2px 10px; min-width: 0; color: var(--ink-450); font-size: 13px; }
.s-prow__status { grid-area: status; justify-self: end; }
.s-prow__chevron { grid-area: chevron; justify-self: end; color: var(--ink-400); }
@media (min-width: 720px) {
  .s-prow { grid-template-columns: minmax(0, 1fr) 200px 150px auto; grid-template-areas: "main detail status chevron"; gap: 16px; padding: 10px 18px; }
  .s-prow__detail { flex-direction: column; gap: 1px; }
  .s-prow__status { justify-self: start; }
}

/* The overview's feed run in the next-game card: its progress or its result under the text and button. */
.s-next__progress { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; }
p.s-next__progress { flex-direction: row; }

.s-bar { display: block; height: 6px; border-radius: var(--radius-pill); background: var(--surface-2); overflow: hidden; }
.s-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-500); }
.s-bar--thick { height: 10px; }
.s-bar--ink > span { background: var(--ink-900); }

.s-cal { display: flex; flex-direction: column; gap: 12px; }
.s-cal__head { display: flex; align-items: center; gap: 8px; }
.s-cal__title { flex: 1; margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; text-transform: capitalize; }
.s-cal__head .s-cal__title { order: -1; }
.s-cal__nav {
  display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: var(--radius-ctrl);
  background: var(--card); color: var(--ink-900); cursor: pointer;
}
.s-cal__nav:hover { border-color: var(--ink-900); }
.s-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.s-cal__wd { padding: 4px; color: var(--ink-450); font-size: 12px; font-weight: 600; text-align: center; }
.s-cal__cell { display: flex; flex-direction: column; gap: 3px; min-height: 84px; padding: 6px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.s-cal__cell--blank { background: none; box-shadow: none; }
.s-cal__cell--today { box-shadow: inset 0 0 0 2px var(--ink-900); }
.s-cal__day { color: var(--ink-450); font-size: 12px; font-weight: 700; }
.s-cal__game {
  display: block; padding: 3px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none;
  background: var(--neutral-bg); color: var(--neutral-ink);
}
.s-cal__game--ok { background: var(--brand-50); color: var(--brand-700); }
.s-cal__game--warn { background: var(--warn-bg); color: var(--warn-ink); }
.s-cal__game--danger { background: var(--danger-bg); color: var(--danger-ink); text-decoration: line-through; }
.s-cal__game--live { background: var(--signal); color: var(--signal-ink); }
.s-cal__game:hover { box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 640px) {
  .s-cal__cell { min-height: 56px; padding: 4px; }
  .s-cal__game { padding: 2px 3px; font-size: 10px; }
}

.s-todo { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--card); }
.s-todo ul { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.s-todo__item { display: flex; align-items: flex-start; gap: 12px; padding: 10px; margin-inline: -10px; border-radius: var(--radius-ctrl); color: var(--ink-900); text-decoration: none; }
.s-todo__item:hover { background: var(--surface); color: var(--ink-900); }
.s-todo__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--neutral-bg); color: var(--neutral-ink); }
.s-todo__icon--ok { background: var(--brand-50); color: var(--brand-700); }
.s-todo__icon--warn { background: var(--warn-bg); color: var(--warn-ink); }
.s-todo__icon--danger { background: var(--danger-bg); color: var(--danger-ink); }
.s-todo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-todo__title { font-weight: 700; }
.s-todo__text .f-body { font-size: 14px; }

/* --------------------------------------------------- Spiel vorbereiten */

/* "Bereit für Samstag": the state and its four checks on one row from 900 px (VereinMatchDesktop). */
.s-ready { display: flex; flex-direction: column; gap: 14px 28px; padding: 18px 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
@media (min-width: 900px) { .s-ready { flex-direction: row; flex-wrap: wrap; align-items: center; } }
.s-ready__head { display: flex; align-items: center; gap: 12px; }
.s-ready__head .f-h3 { margin: 0; }
.s-ready__mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
.s-ready__mark--done { background: var(--brand-500); color: #FFFFFF; }
.s-ready__list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.s-ready__item { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); font-weight: 500; font-size: 15px; }
.s-ready__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--hairline); color: transparent; }
.s-ready__item--done { color: var(--ink-600); }
.s-ready__item--done .s-ready__box { background: var(--brand-500); box-shadow: none; color: #FFFFFF; }

.s-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.s-big__number { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.s-bars { display: flex; flex-direction: column; gap: 10px; }
.s-bars li { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 15px; }
.s-bars li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sum { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-450); font-size: 15px; }
.s-sum .f-strong { color: var(--ink-900); }

.s-lines__end { display: inline-flex; align-items: center; gap: 12px; }

/* Move and call off, as a pair of equal buttons under the side cards. */
.s-change { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.s-change .f-btn { background: var(--card); }
.s-btn-danger, .f-btn--outline.s-btn-danger { color: var(--danger-ink); border-color: var(--danger-bg); }
.s-btn-danger:hover, .f-btn--outline.s-btn-danger:hover { color: var(--danger-ink); border-color: var(--danger); }

.s-dialog { width: min(560px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 48px); overflow-y: auto; }
.s-effects { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: var(--radius-ctrl); background: var(--surface); }
.s-effects li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.s-effects svg { flex: none; margin-top: 3px; color: var(--ink-450); }
.s-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0; text-align: center; }
.s-done__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-500); color: #FFFFFF; }

/* Setup steps: a number, or a tick once the data says it is done. */
.s-steps { display: flex; flex-direction: column; gap: 14px; }
.s-step { display: flex; align-items: flex-start; gap: 12px; }
.s-step__mark {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--hairline); color: var(--ink-450); font-size: 14px; font-weight: 700;
}
.s-step--done .s-step__mark { background: var(--brand-500); box-shadow: none; color: #FFFFFF; }
.s-step__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.s-step__text .f-body { font-size: 15px; }

/* --------------------------------------------------------------- forms */

.s-form-grid { display: grid; gap: 16px; }
.s-form-grid > .f-field + .f-field, .s-inline-form > .f-field + .f-field { margin-top: 0; }
@media (min-width: 640px) {
  .s-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-form-grid--invite { grid-template-columns: minmax(0, 1fr) 200px auto; align-items: start; }
}
.s-form-grid__action { padding-top: 26px; }
.f-field .f-select { margin-top: 6px; }

.s-inline-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.s-inline-form > .f-field { flex: 1 1 160px; }
.s-inline-form > .f-field:nth-child(2) { flex: 0 1 140px; }
.s-inline-form > .f-btn, .s-inline-form > .f-link-button { margin-top: 26px; }

.s-fieldset { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; }
.s-fieldset legend { margin-bottom: 4px; }
.s-with-unit { display: flex; align-items: center; gap: 10px; }
.s-input-short { width: 110px; }
.s-file { cursor: pointer; }
.s-file:focus-within { outline: 3px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
.s-sponsor { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
/* Verein → Sponsoren (VereinClubDesktop): the main sponsor on a quiet card, then each coming home
   game with its partner or "Noch frei". */
.s-mainsponsor {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px;
  border-radius: 16px; background: var(--surface);
}
.s-mainsponsor__well {
  display: grid; place-items: center; flex: none; box-sizing: border-box; min-width: 64px; height: 64px; padding: 8px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
}
.s-mainsponsor__text { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-mainsponsor__kicker { font-size: 13px; font-weight: 700; color: var(--brand-700); }
.s-mainsponsor__name { font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.s-partnergames__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 60px; padding: 8px 0;
  border-top: 1px solid var(--line);
}
.s-partnergames__game { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }

.s-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.s-check input, .s-fixture input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand-500); flex: none; }

.s-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.s-toolbar .f-seg__item .nums { margin-left: 6px; color: var(--ink-400); font-size: 13px; }
.s-search { flex: 1 1 240px; max-width: 360px; }
.s-search .f-input { margin-top: 0; }

/* -------------------------------------------------------- schedule import */

.s-fixtures { display: flex; flex-direction: column; gap: 8px; }
.s-fixtures__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.s-season { display: inline-flex; align-items: center; gap: 10px; }
.s-season .f-input { margin-top: 0; width: auto; min-width: 220px; min-height: 40px; font-size: 15px; }
/* The feed's games as one white card (ScheduleImport). */
.s-fixtures__list { border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.s-fixture { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 20px; }
.s-fixture + .s-fixture, .s-fixtures__list > li + li { border-top: 1px solid var(--line); }
.s-fixture--fixed .f-strong { color: var(--ink-450); }
.s-fixture__spacer { flex: none; width: 20px; }
.s-fixture del { color: var(--ink-400); }

/* What "Übernehmen" will do, on an ink bar that stays in sight; the button sits on the right. */
.s-importbar {
  position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  padding: 16px 20px; border-radius: 16px; background: var(--ink-900); color: #FFFFFF;
}
.s-importbar > .f-btn { order: 1; margin-left: auto; }
.s-importbar .f-body { flex: 1 1 280px; color: #FFFFFF; }
.s-importbar .f-link { color: #FFFFFF; }
.s-importbar :focus-visible { outline-color: #FFFFFF; }

/* --------------------------------------------------------------- orders */

.s-order { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.s-order__head { display: flex; align-items: flex-start; gap: 16px; }
.s-order__sum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
/* An order's details: game, tickets, when ordered and paid, how, reference. Label beside value, so a
   treasurer on the phone finds the line they are asked about. */
.s-orderfacts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.s-orderfacts > div { display: contents; }
.s-orderfacts dt { color: var(--ink-450); font-weight: 600; }
.s-orderfacts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.s-tickets { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.s-ticket { padding: 8px 0; border-bottom: 1px solid var(--line); }
.s-ticket:last-child { border-bottom: 0; }
.s-ticket__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }

/* ----------------------------------------------------- season tickets, desk */

.s-desk { padding-top: 16px; border-top: 1px solid var(--line); }
.s-issued { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 14px; border-radius: var(--radius-ctrl); background: var(--brand-50); }
.s-code { overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- team */

.s-member { padding: 12px 4px; }
.s-member__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.s-member__row .s-grow { flex-basis: 200px; }
.s-member__mark {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-900); font-weight: 700;
}

/* --------------------------------------------------- matchday side cards */

.s-scanner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.s-scanner .s-stack-sm { flex: 1 1 180px; align-items: flex-start; }
.s-qr { flex: none; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }

.s-pinmap { height: 260px; border-radius: var(--radius-ctrl); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.s-pinmap .leaflet-container { font-family: var(--font-ui); }

/* The draggable pin: the logo's field square, so a pin reads as "here is the ground". */
.s-pin { width: 22px !important; height: 22px !important; margin: -11px 0 0 -11px !important; border-radius: 6px; background: var(--brand-500); box-shadow: 0 0 0 3px #FFFFFF, 0 2px 8px rgba(16, 21, 18, 0.35); cursor: grab; }

/* Admissions per quarter hour, in the report. */
.s-timeline { margin: 4px 0 0; display: flex; flex-direction: column; gap: 10px; }
.s-timeline__bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.s-timeline__bars li { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.s-timeline__bar { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--ink-900); }
.s-timeline__count { color: var(--ink-450); font-size: 11px; }
.s-timeline__minute { color: var(--ink-400); font-size: 11px; }

/* Who came in through the helper link (Sections/ScannerCard.razor). */
.s-helpers { display: flex; flex-direction: column; gap: 4px; }
.s-helpers li { display: flex; justify-content: space-between; gap: 12px; max-width: 320px; }
