:root {
  --green-950: var(--brand-053b28, #053b28);
  --green-900: var(--brand-075034, #075034);
  --green-800: var(--brand-075f3c, #075f3c);
  --green-700: var(--brand-08784a, #08784a);
  --green-600: var(--brand-0b9259, #0b9259);
  --green-100: var(--brand-dff3e8, #dff3e8);
  --green-50: var(--brand-eef9f3, #eef9f3);
  --goalkeeper-700: #b62f68;
  --goalkeeper-200: #efb8cd;
  --goalkeeper-100: #f8dce7;
  --goalkeeper-50: #fcf0f5;
  --ink: var(--brand-17211c, #17211c);
  --muted: #66736c;
  --line: var(--brand-d9e2dc, #d9e2dc);
  --surface: #ffffff;
  --background: var(--brand-f3f6f4, #f3f6f4);
  --danger: #a83030;
  --danger-soft: #fbeaea;
  --warning: #a86413;
  --shadow: 0 10px 30px rgba(13, 45, 31, 0.07);
  --radius: 18px;
  --radius-small: 12px;
  --touch: 54px;
  --app-safe-top: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* A persistent, opaque demo label stays above the normal sticky match controls. */
.app-shell--demo { --demo-banner-height: 60px; }
.app-shell--demo .match-hero .live-label { color: var(--green-800); }
.demo-banner {
  position: sticky;
  top: var(--app-safe-top);
  z-index: 40;
  height: var(--demo-banner-height);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff0c9;
  color: #573c08;
  border-bottom: 2px solid #b77815;
}
.demo-banner strong { white-space: nowrap; font-size: 0.9rem; }
.demo-banner div { display: flex; gap: 8px; }
.demo-banner button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #b77815;
  border-radius: 8px;
  color: inherit;
  background: #fffaf0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.app-shell--demo .live-match-strip,
.app-shell--demo .match-overview-tabs { top: calc(var(--app-safe-top) + var(--demo-banner-height)); }
@media screen and (max-width: 680px) {
  .app-shell--demo { --demo-banner-height: 96px; }
  .demo-banner { flex-direction: column; justify-content: center; gap: 4px; padding: 6px 10px; }
  .demo-banner button { font-size: 0.85rem; }
}

/* Personlig spelarportal */
.player-portal-gate {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(28px + var(--app-safe-top, 0px)) 20px 28px;
  background: radial-gradient(circle at top left, var(--brand-e3f5eb, #e3f5eb) 0, transparent 42%), var(--surface-soft, var(--brand-f4f7f5, #f4f7f5));
}

.player-portal-pin-card {
  width: min(460px, 100%);
}

.player-pin-input {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: .38em;
  text-align: center;
}

.player-portal-shell {
  min-height: 100dvh;
  background: var(--surface-soft, var(--brand-f4f7f5, #f4f7f5));
  padding-top: var(--app-safe-top, 0px);
}

.player-portal-header {
  position: sticky;
  top: var(--app-safe-top, 0px);
  z-index: 40;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: var(--brand-064b37, #064b37);
  box-shadow: 0 12px 28px rgba(4, 50, 37, .14);
}

.player-portal-header strong { font-size: 1.25rem; }
.player-portal-header > div:last-child { display: flex; align-items: center; gap: 14px; }
.player-portal-header > div:last-child span { color: rgba(255,255,255,.72); font-size: .82rem; }
.player-portal-header .button { color: #fff; border-color: rgba(255,255,255,.35); }
.player-portal-main { width: min(1440px, 100%); margin: 0 auto; padding: clamp(18px, 3vw, 40px); }
.player-portal-refresh {
  margin-bottom: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--brand-cfe1d8, #cfe1d8);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(5, 58, 42, .05);
}
.player-portal-refresh > div { display: grid; gap: 3px; }
.player-portal-refresh strong { color: var(--brand-173b30, #173b30); font-size: .92rem; }
.player-portal-refresh span { color: #68736d; font-size: .78rem; }
.player-portal-privacy-note { margin: 0; padding: 15px 18px; border: 1px solid var(--brand-b9dfca, #b9dfca); border-radius: 14px; color: var(--brand-315f4d, #315f4d); background: var(--brand-effaf4, #effaf4); }

.player-access-status { color: #7d867f; }
.player-access-status--active { color: var(--brand-087b4e, #087b4e); font-weight: 750; }
.player-access-notice {
  margin: 0 14px 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #dccba1;
  border-radius: 13px;
  color: #624d20;
  background: #fff9e9;
}
.player-access-notice > div { min-width: 0; display: grid; gap: 3px; }
.player-access-notice strong { font-size: .82rem; }
.player-access-notice span { color: #75633a; font-size: .75rem; line-height: 1.4; }
.player-access-notice .button { flex: 0 0 auto; background: #fff; }
.player-access-button:disabled { border-color: var(--brand-d2d9d5, #d2d9d5); color: #5f6b64; background: var(--brand-e9eeeb, #e9eeeb); opacity: 1; }
.player-portal-publication {
  margin: 0 14px 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--brand-c8dfd3, #c8dfd3);
  border-radius: 14px;
  background: var(--brand-f4faf7, #f4faf7);
}
.player-portal-publication > div { min-width: 0; display: grid; gap: 3px; }
.player-portal-publication p { margin: 0; }
.player-portal-publication strong { color: var(--brand-174b3b, #174b3b); font-size: .84rem; }
.player-portal-publication span { color: #66736d; font-size: .75rem; line-height: 1.35; }
.player-portal-publication .button { flex: 0 0 auto; white-space: nowrap; }
.player-portal-publication--warning { border-color: #dccba1; background: #fff9e9; }
.player-portal-publication--warning strong { color: #6b531f; }
.player-access-dialog { width: min(720px, calc(100vw - 32px)); }
.player-access-overview { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.player-access-large-status { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #76571b; background: #fff4d6; font-weight: 800; }
.player-access-large-status--active { color: var(--brand-086642, #086642); background: var(--brand-dff5e9, #dff5e9); }
.player-access-secret { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--brand-9bd1b3, #9bd1b3); border-radius: 16px; background: var(--brand-f1fbf5, #f1fbf5); }
.player-access-secret p { margin: 0; }
.player-access-pin { font-size: clamp(2rem, 8vw, 3rem); line-height: 1; letter-spacing: .24em; font-weight: 900; color: var(--brand-064b37, #064b37); }
.player-access-qr { width: min(270px, 80vw); margin: 18px auto; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(5, 58, 42, .12); }
.player-access-qr svg { display: block; width: 100%; height: auto; }
.player-access-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.player-access-footnote { margin: 16px 0 0; color: #68736d; font-size: .85rem; }
.player-access-busy { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; color: var(--brand-064b37, #064b37); background: rgba(255,255,255,.84); font-weight: 800; backdrop-filter: blur(2px); }

@media (max-width: 700px) {
  .player-portal-header { align-items: flex-start; }
  .player-portal-header > div:last-child { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .player-portal-header > div:last-child span { display: none; }
  .player-portal-main { padding: 14px; }
  .player-portal-refresh { align-items: stretch; flex-direction: column; }
  .player-portal-refresh .button { width: 100%; }
  .player-access-notice { align-items: stretch; flex-direction: column; }
  .player-access-notice .button { width: 100%; }
  .player-portal-publication { align-items: stretch; flex-direction: column; }
  .player-portal-publication .button { width: 100%; }
  .player-portal-main .development-toolbar { align-items: stretch; }
  .player-portal-main .development-selectors { width: 100%; }
  .player-portal-main .development-selectors .field { width: 100%; }
  .player-access-actions .button { width: 100%; }
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100dvh;
  background: var(--background);
  color: var(--ink);
  overscroll-behavior-y: none;
}

button,
input,
select {
  font: inherit;
}

button,
label,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(11, 146, 89, 0.28);
  outline-offset: 2px;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 { margin-bottom: 0; font-size: clamp(1.45rem, 2vw, 2rem); letter-spacing: -0.025em; }
h2 { margin-bottom: 0.3rem; font-size: 1.2rem; letter-spacing: -0.015em; }
h3 { margin-bottom: 0.25rem; font-size: 1rem; }
p { color: var(--muted); line-height: 1.5; }

.app-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  padding-top: var(--app-safe-top);
  background: linear-gradient(90deg, var(--green-950) 0 184px, var(--background) 184px);
}

.sidebar {
  position: sticky;
  top: var(--app-safe-top);
  height: calc(100dvh - var(--app-safe-top));
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--green-950), var(--brand-042e20, #042e20));
  color: white;
}

.brand {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: white;
  color: var(--green-900);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.logo-filter-defs { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.brand-mark--club { position: relative; width: 52px; height: 52px; flex: 0 0 52px; overflow: hidden; background: transparent; border-radius: 0; }
.brand-mark--club img { position: absolute; top: 50%; left: 50%; width: 104px; max-width: none; height: 78px; object-fit: contain; transform: translate(-50%, -50%); filter: url(#green-logo-white); }

.brand strong { display: block; }
.brand strong { font-size: 1rem; }

.navigation {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-button {
  min-height: 54px;
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255,255,255,0.72);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.nav-button:hover { background: rgba(255,255,255,0.08); color: white; }
.nav-button--active { background: white; color: var(--green-900); box-shadow: 0 8px 22px rgba(0,0,0,0.15); }
.nav-symbol { font-size: 1.15rem; text-align: center; }
.nav-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }

.sidebar-match {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
}

.sidebar-match strong { line-height: 1.3; }
.sidebar-match > span:last-child { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
.sidebar-match--empty { color: rgba(255,255,255,0.72); }
.sidebar .text-button { color: white; text-align: left; padding: 3px 0 0; }

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
}

.sidebar-footer > small {
  margin-left: auto;
  color: rgba(255,255,255,0.72);
  font-size: 0.68rem;
  font-weight: 800;
}

.connection-dot { width: 8px; height: 8px; border-radius: 50%; }
.connection-dot--online { background: var(--brand-5de39b, #5de39b); }
.connection-dot--offline { background: #ffbd66; }

.main-area { min-width: 0; }

.topbar {
  min-height: 84px;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px 14px;
  border-bottom: 1px solid rgba(217, 226, 220, 0.85);
  background: var(--background);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar .eyebrow { margin-bottom: 2px; }
.topbar-actions { display: flex; flex-wrap: wrap; max-width: 100%; align-items: center; gap: 10px; }
.topbar-actions .help-link { min-height: 44px; white-space: nowrap; text-decoration: none; }
.team-switcher { min-width: 170px; display: grid; gap: 2px; }
.team-switcher > span { color: var(--muted); font-size: 0.62rem; font-weight: 850; text-transform: uppercase; }
.team-switcher select { min-height: 36px; padding: 5px 30px 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--green-900); font: inherit; font-size: 0.78rem; font-weight: 850; }

.eyebrow {
  margin-bottom: 4px;
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.active-match-badge,
.offline-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.active-match-badge { cursor: pointer; }
.offline-pill { color: var(--green-700); }
.offline-pill--active { border-color: #e3ba7e; background: #fff8ed; color: var(--warning); }

.pulse-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e44949;
  box-shadow: 0 0 0 4px rgba(228,73,73,0.12);
}

.page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 22px calc(26px + env(safe-area-inset-bottom));
}

.card {
  border: 1px solid rgba(217,226,220,0.95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 10px;
}

.card-heading p { margin-bottom: 0; font-size: 0.86rem; }

.button {
  min-height: var(--touch);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.button:disabled { opacity: 0.45; cursor: not-allowed; }
.button--primary { background: var(--green-800); color: white; box-shadow: 0 8px 16px rgba(7,95,60,0.18); }
.button--primary:hover { background: var(--green-700); }
.button--secondary { border-color: var(--line); background: white; color: var(--green-900); }
.button--secondary:hover { border-color: var(--brand-b5c8bc, #b5c8bc); background: var(--green-50); }
.button--danger { border-color: #e7b8b8; background: var(--danger-soft); color: var(--danger); }
.button--ghost { min-height: 44px; border-color: transparent; background: transparent; color: var(--green-800); }
.button--ghost:hover { background: var(--green-50); }
.button--small { min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 0.82rem; }
.button--large { min-width: 180px; min-height: 58px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.text-button { border: 0; background: transparent; color: var(--green-700); font-weight: 800; cursor: pointer; }

.live-match-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--green-950);
  color: white;
}

.live-match-strip > div { display: flex; align-items: center; gap: 12px; }
.live-match-strip span:not(.pulse-dot) { color: rgba(255,255,255,0.68); font-size: 0.78rem; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: #ffdddd !important; font-weight: 900; letter-spacing: 0.07em; }
.event-counter { white-space: nowrap; }

.live-coach-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border: 1px solid var(--brand-c8e7d5, #c8e7d5);
  border-radius: 12px;
  background: white;
  white-space: nowrap;
}

.live-coach-strip > .live-coach-metric {
  display: grid;
  gap: 1px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}
.live-coach-strip > .live-coach-metric:last-child { padding-right: 0; border-right: 0; }

.live-coach-strip small { color: var(--muted); font-size: 0.58rem; font-weight: 800; text-transform: uppercase; }
.live-coach-strip strong { color: var(--green-900); font-size: 0.74rem; }
@media (max-width: 900px) {
  .live-coach-strip { justify-content: center; }
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
  gap: 14px;
  align-items: stretch;
}

.live-step {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading h2,
.section-heading p { margin-bottom: 0; }
.section-heading p { font-size: 0.74rem; }
.step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--green-100); color: var(--green-800); font-weight: 900; }

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.player-button {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 2px 8px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--brand-fbfcfb, #fbfcfb);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.player-button:hover { border-color: var(--brand-a9c7b5, #a9c7b5); background: var(--green-50); }
.player-button--selected { border-color: var(--green-700); background: var(--green-100); box-shadow: inset 0 0 0 1px var(--green-700); }
.player-number { grid-row: 1 / 3; min-width: 31px; color: var(--green-800); font-size: 0.86rem; font-weight: 900; }
.player-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; font-weight: 850; }
.player-position { color: var(--muted); font-size: 0.68rem; }

.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.event-button {
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.event-button strong,
.event-button small { display: block; }
.event-button small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; font-weight: 550; }
.event-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--green-50); color: var(--green-800); font-size: 1.25rem; font-weight: 900; }
.event-button:hover:not(:disabled) { border-color: var(--brand-a6c7b4, #a6c7b4); background: var(--brand-fbfefc, #fbfefc); }
.event-button--selected { border-color: var(--green-700); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-700); }
.event-button--attack { border-color: var(--brand-83c79e, #83c79e); background: var(--brand-f3fbf6, #f3fbf6); }
.event-button--attack .event-symbol { background: var(--brand-d9f3e3, #d9f3e3); color: var(--brand-075f36, #075f36); }
.event-button--defence { border-color: #8eb4d8; background: #f4f8fd; }
.event-button--defence .event-symbol { background: #deebf7; color: #245e91; }
.event-button--attack:hover:not(:disabled) { border-color: var(--brand-238653, #238653); background: var(--brand-e9f8ef, #e9f8ef); }
.event-button--defence:hover:not(:disabled) { border-color: #3f79ae; background: #eaf2fa; }
.event-button--goal .event-symbol { background: var(--brand-e6f6eb, #e6f6eb); }
.event-button--shot .event-symbol { background: #edf2ff; color: #355aa8; }
.event-button--save .event-symbol { background: #fff5df; color: #96600f; }
.event-button--opponent_attack .event-symbol { background: #fbeaea; color: var(--danger); }
.event-button:disabled,
.zone-button:disabled { opacity: 0.38; cursor: not-allowed; }

.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.zone-button {
  min-height: 94px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.zone-button:hover:not(:disabled) { border-color: var(--green-700); background: var(--green-50); color: var(--green-900); }
.zone-button:active:not(:disabled) { transform: translateY(1px); }

.recent-card { overflow: hidden; }
.recent-events { display: grid; padding: 0 14px 12px; }
.recent-event {
  min-height: 54px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 54px auto;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-top: 1px solid var(--brand-edf1ee, #edf1ee);
}

.event-chip { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--green-50); color: var(--green-800); font-weight: 900; }
.event-chip--shot { background: #edf2ff; color: #355aa8; }
.event-chip--save { background: #fff5df; color: #96600f; }
.event-chip--opponent_attack { background: #fbeaea; color: var(--danger); }
.recent-event-main strong,
.recent-event-main span { display: block; }
.recent-event-main span { margin-top: 2px; color: var(--muted); font-size: 0.75rem; }
.recent-event time { color: var(--muted); font-size: 0.75rem; }

.form-stack { display: flex; flex-direction: column; gap: 16px; padding: 10px 22px 22px; }
.form-grid { display: grid; gap: 14px; }
.form-grid--three { grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr) minmax(140px, 0.7fr); }
.form-grid--two { grid-template-columns: 0.75fr 1.25fr; }
.field { display: flex; flex-direction: column; gap: 7px; color: var(--ink); font-size: 0.8rem; font-weight: 800; }
.field input,
.field select {
  min-height: var(--touch);
  width: 100%;
  padding: 0 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}
.field input:focus,
.field select:focus { border-color: var(--green-600); }
.field--compact { min-width: 150px; }
.field--compact select { min-height: 48px; }

.roster-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 4px; }
.roster-heading h3,
.roster-heading p { margin-bottom: 0; }
.roster-heading p { font-size: 0.78rem; }
.roster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.roster-option {
  min-height: 66px;
  position: relative;
  display: grid;
  grid-template-columns: 24px 33px 1fr;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--brand-fbfcfb, #fbfcfb);
  cursor: pointer;
  user-select: none;
}
.roster-option input { position: absolute; opacity: 0; pointer-events: none; }
.roster-check { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--brand-b9c6be, #b9c6be); border-radius: 7px; color: transparent; }
.roster-option:has(input:checked) { border-color: var(--brand-9ec9ae, #9ec9ae); background: var(--green-50); }
.roster-option input:checked + .roster-check { border-color: var(--green-700); background: var(--green-700); color: white; }
.roster-number { color: var(--green-800); font-weight: 900; }
.roster-option strong,
.roster-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster-option strong { font-size: 0.82rem; }
.roster-option small { margin-top: 2px; color: var(--muted); font-size: 0.68rem; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 4px; }
.form-actions--compact { padding-top: 0; }
.form-hint { color: var(--muted); font-size: 0.75rem; }

.match-hero,
.season-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
}
.match-hero h2,
.match-hero p,
.season-toolbar h2,
.season-toolbar p { margin-bottom: 0; }
.match-hero p,
.season-toolbar p { margin-top: 5px; font-size: 0.83rem; }

.stats-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow);
}
.stat-card > span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card strong { color: var(--green-900); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -0.04em; }
.stat-card small { color: var(--muted); }

.table-scroll { width: 100%; overflow-x: auto; padding: 4px 14px 16px; }
.stats-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.stats-table th,
.stats-table td { padding: 12px 11px; border-bottom: 1px solid var(--brand-e9eeeb, #e9eeeb); text-align: right; font-size: 0.82rem; white-space: nowrap; }
.stats-table thead th { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.stats-table th:first-child,
.stats-table td:first-child { text-align: left; }
.stats-table tbody tr:last-child th,
.stats-table tbody tr:last-child td { border-bottom: 0; }
.stats-table tbody tr:hover { background: var(--brand-fafcfb, #fafcfb); }
.table-player { width: 100%; min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr) max-content; align-items: center; gap: 8px; }
.table-player > span { color: var(--green-800); font-weight: 900; }
.table-player strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-player small { justify-self: end; color: var(--muted); font-weight: 600; white-space: nowrap; }

.two-column-layout { display: grid; grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.5fr); gap: 16px; align-items: start; }
.player-form-card { position: sticky; top: 102px; }
.squad-list { display: grid; gap: 8px; padding: 4px 14px 16px; }
.squad-player {
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--brand-fbfcfb, #fbfcfb);
}
.squad-player--archived { opacity: 0.72; }
.squad-number { color: var(--green-800); font-weight: 900; text-align: center; }
.squad-player strong,
.squad-player span { display: block; }
.squad-player > div > span { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }
.squad-actions { display: flex; gap: 3px; }

.archive-card,
.data-card { overflow: hidden; }
details > summary { min-height: 58px; display: flex; align-items: center; padding: 0 20px; font-weight: 850; cursor: pointer; user-select: none; }
details[open] > summary { border-bottom: 1px solid var(--line); }
.data-tools { display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 18px 24px; align-items: center; padding: 20px; }
.data-tools h3,
.data-tools p { margin-bottom: 0; }
.data-tools p { margin-top: 4px; font-size: 0.82rem; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.history-list { display: grid; gap: 12px; }
.history-match { overflow: hidden; }
.history-summary {
  min-height: 88px;
  width: 100%;
  display: grid;
  grid-template-columns: 130px minmax(190px, 1fr) repeat(3, 92px) 28px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.history-summary:hover { background: var(--brand-fbfdfc, #fbfdfc); }
.history-date strong,
.history-date small,
.history-opponent span,
.history-opponent strong,
.history-metric strong,
.history-metric small { display: block; }
.history-date small,
.history-opponent span,
.history-metric small { margin-top: 3px; color: var(--muted); font-size: 0.7rem; }
.history-opponent strong { margin-top: 3px; font-size: 1.02rem; }
.history-metric { text-align: center; }
.history-metric strong { color: var(--green-900); font-size: 1.2rem; }
.history-chevron { font-size: 1.4rem; color: var(--muted); transition: transform 160ms ease; }
.history-match--expanded .history-chevron { transform: rotate(180deg); }
.history-details { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-top: 1px solid var(--line); background: var(--brand-fafcfb, #fafcfb); }
.history-analysis-heading { margin: 8px 0 0; color: var(--green-900); font-size: 0.9rem; }
.card-subsection { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.card-subsection > h3 { padding: 16px 18px 4px; }

.inline-empty { margin: 8px 14px 18px; padding: 18px; border: 1px dashed var(--brand-bfcac3, #bfcac3); border-radius: 13px; background: var(--brand-fafcfb, #fafcfb); color: var(--muted); text-align: center; }
.inline-empty--large { min-height: 210px; display: grid; place-content: center; gap: 10px; }
.inline-empty--large p { margin-bottom: 0; }
.empty-state { min-height: min(540px, calc(100dvh - 130px)); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px; text-align: center; }
.empty-state p { max-width: 520px; }
.empty-symbol { width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 24px; background: var(--green-100); color: var(--green-800); font-size: 2rem; font-weight: 900; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100;
  max-width: min(560px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 13px;
  background: var(--green-950);
  color: white;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-weight: 700;
  text-align: center;
}
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #812424; }

.fatal-error { max-width: 580px; margin: 80px auto; padding: 30px; border-radius: 18px; background: white; box-shadow: var(--shadow); }


/* Firebase-inloggning, synkstatus och appuppdateringar */
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 18% 12%, rgba(11,146,89,0.16), transparent 34%),
    linear-gradient(145deg, var(--green-950), var(--brand-03271b, #03271b) 68%, var(--brand-061f17, #061f17));
}

.auth-card {
  width: min(460px, 100%);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 28px 80px rgba(0,0,0,0.28);
}

.auth-card--loading { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.auth-card--loading h1 { margin-bottom: 18px; }
.auth-card--loading small { color: var(--muted); }
.auth-card--recovery { width: min(560px, 100%); }
.auth-card--recovery h1 { margin-bottom: 14px; }
.data-load-recovery-note { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.startup-recovery-note { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.data-load-recovery-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.data-load-recovery-actions .text-button { grid-column: 1 / -1; justify-self: center; }
.data-load-reset-note { display: block; margin-top: 14px; color: var(--muted); font-size: 0.7rem; line-height: 1.45; }
.data-cache-reset-dialog { width: min(560px, calc(100vw - 28px)); }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.auth-brand h1,
.auth-brand p { margin-bottom: 0; }
.auth-brand-mark {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green-900);
  color: white;
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -0.06em;
  box-shadow: 0 12px 28px rgba(7,80,52,0.24);
}
.auth-brand-mark--warning { background: var(--danger); margin-bottom: 18px; }
.auth-intro { margin-bottom: 22px; }
.auth-form { padding: 0; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-reset { display: block; margin: 14px auto 0; color: var(--green-800); }
.auth-alert { margin: 0 0 18px; padding: 13px 15px; border-radius: 12px; font-size: 0.84rem; line-height: 1.45; }
.auth-alert--error { border: 1px solid #efc6c6; background: var(--danger-soft); color: #772323; }
.auth-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.auth-note .connection-dot { margin-top: 4px; flex: 0 0 auto; }
.auth-security-note { margin: 14px 0 0; font-size: 0.7rem; }
.auth-actions { margin-top: 22px; }
.auth-card code { padding: 1px 5px; border-radius: 5px; background: var(--brand-eef2ef, #eef2ef); font-size: 0.78em; overflow-wrap: anywhere; }

.loading-spinner {
  width: 34px;
  height: 34px;
  margin: 4px 0 18px;
  border: 4px solid var(--green-100);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spinner-rotate 800ms linear infinite;
}
@keyframes spinner-rotate { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .data-load-recovery-actions { grid-template-columns: 1fr; }
  .data-load-recovery-actions .text-button { grid-column: auto; }
}

.sync-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}
.sync-pill--online { color: var(--green-800); border-color: var(--brand-b9ddca, #b9ddca); background: var(--green-50); }
.sync-pill--pending { color: #7a4d0c; border-color: #efd4a9; background: #fff8e9; }
.sync-pill--offline { color: #785115; border-color: #e6c995; background: #fff5df; }
.connection-dot--pending { background: #e09b32; box-shadow: 0 0 0 3px rgba(224,155,50,0.16); }
.connection-dot--error { background: #d04a4a; }
.update-button { min-height: 44px; border-color: #c9a95d; background: #fff8dc; color: #674b08; }
.logout-button { white-space: nowrap; }



@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 164px minmax(0, 1fr);
    background: linear-gradient(90deg, var(--green-950) 0 164px, var(--background) 164px);
  }
  .live-grid { grid-template-columns: minmax(290px, 1.25fr) minmax(200px, 0.85fr) minmax(200px, 0.85fr); }
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .history-summary { grid-template-columns: 112px minmax(170px, 1fr) repeat(3, 78px) 24px; }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    background: var(--background);
  }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    display: block;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: var(--green-950);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .brand,
  .sidebar-match,
  .sidebar-footer { display: none; }
  .navigation { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 4px; }
  .nav-button { min-height: 54px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 3px; border-radius: 11px; text-align: center; font-size: 0.67rem; }
  .nav-symbol { font-size: 1rem; }
  .nav-live-dot { position: absolute; top: 6px; right: calc(50% - 18px); }
  .topbar { min-height: 72px; padding-left: 16px; padding-right: 16px; }
  .page { padding-left: 14px; padding-right: 14px; }
  .live-grid { grid-template-columns: 1fr; }
  .player-grid { max-height: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zone-button { min-height: 78px; }
  .two-column-layout { grid-template-columns: 1fr; }
  .player-form-card { position: static; }
  .history-summary { grid-template-columns: 100px minmax(150px,1fr) repeat(2, 72px) 24px; }
  .history-metric:nth-of-type(5) { display: none; }
}

@media (max-width: 680px) {
  .topbar-actions .active-match-badge,
  .topbar-actions .button { display: none; }
  .topbar-actions .help-link { display: inline-flex; }
  .topbar-actions .update-button { display: inline-flex; }
  .topbar, .topbar-actions { flex-wrap: wrap; }
  .topbar { min-height: 66px; }
  .topbar h1 { font-size: 1.25rem; }
  .team-switcher { min-width: 118px; }
  .team-switcher > span { display: none; }
  .team-switcher select { max-width: 150px; }
  .page { padding-top: 12px; }
  .live-match-strip { align-items: flex-start; }
  .live-match-strip,
  .live-match-strip > div { flex-direction: column; }
  .live-match-strip > div { align-items: flex-start; gap: 4px; }
  .live-strip-actions { width: 100%; }
  .event-counter { display: none; }
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster-grid { grid-template-columns: 1fr; }
  .form-grid--three,
  .form-grid--two { grid-template-columns: 1fr; }
  .form-actions,
  .roster-heading,
  .match-hero,
  .season-toolbar { align-items: stretch; flex-direction: column; }
  .form-actions .button--large { width: 100%; }
  .stats-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .squad-player { grid-template-columns: 42px minmax(0,1fr); }
  .squad-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .data-tools { grid-template-columns: 1fr; }
  .history-summary { grid-template-columns: 92px minmax(120px,1fr) 65px 24px; }
  .history-metric:nth-of-type(4),
  .history-metric:nth-of-type(5) { display: none; }
  .recent-event { grid-template-columns: 34px minmax(0,1fr) auto; }
  .recent-event time { display: none; }
}

/* Version 2.10.0: tydligare liveval, zonutfall, klubbmärke och kompaktare statistik */
.history-result { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 1rem; font-weight: 950; }
.history-result--win { background: var(--brand-16834d, #16834d); }
.history-result--loss { background: #c74747; }
.history-result--draw { background: #76817b; }
.history-summary { grid-template-columns: 130px minmax(190px, 1fr) 38px repeat(4, 82px) 28px; }
.bar-chart-track { position: relative; overflow: hidden; }
.bar-chart-fill--attempts { position: absolute; inset: 0 auto 0 0; background: var(--brand-cfe4d7, #cfe4d7); }
.bar-chart-fill--success { position: absolute; inset: 0 auto 0 0; background: var(--green-700); z-index: 1; }
/* Version 2.15.0: Skuru MEP för utespelare */
.stats-table--outfield { min-width: 1560px; }

.mep-stat-cell {
  min-width: 72px;
  background: var(--brand-eaf4ee, #eaf4ee);
  color: var(--green-900) !important;
  font-weight: 950;
}

.stats-table tbody tr:hover .mep-stat-cell { background: var(--brand-dceee4, #dceee4); }
.defensive-stat-cell--penalty { min-width: 104px; white-space: normal !important; line-height: 1.15; }

.mep-definition-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--brand-a9c7b5, #a9c7b5);
  border-radius: 10px;
  background: var(--brand-f4faf6, #f4faf6);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.mep-definition-button span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: white;
  font-size: 0.7rem;
}

.mep-definition-button:hover,
.mep-definition-button:focus-visible { border-color: var(--green-700); background: var(--brand-e8f4ed, #e8f4ed); }

.mep-dialog { width: min(620px, 100%); }
.mep-definition-intro,
.mep-definition-notes {
  padding: 13px 15px;
  border: 1px solid var(--brand-d9e7df, #d9e7df);
  border-radius: 13px;
  background: var(--brand-f5faf7, #f5faf7);
}
.mep-definition-intro p,
.mep-definition-notes p { margin: 4px 0 0; font-size: 0.78rem; line-height: 1.5; }
.mep-definition-notes { margin-top: 14px; background: #fafbf9; }
.mep-definition-notes p + p { margin-top: 8px; }
.mep-weight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}
.mep-weight-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid var(--brand-e1e8e4, #e1e8e4);
  border-radius: 10px;
  background: white;
  font-size: 0.76rem;
}
.mep-weight-row strong { font-variant-numeric: tabular-nums; }
.mep-weight-positive { color: var(--green-800); }
.mep-weight-negative { color: #9a3f35; }
.mep-dialog-close { width: 100%; margin-top: 14px; }

@media (max-width: 700px) {
  .mep-weight-list { grid-template-columns: 1fr; }
}

/* Version 2.14.0: automatiska samband i säsongsstatistiken */
.season-toolbar-copy { display: grid; justify-items: start; gap: 0; }
.season-insights-button { margin-top: 14px; }

.season-insights-hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  padding: 27px 30px;
  background: linear-gradient(135deg, var(--green-950), var(--green-700));
  color: white;
}

.season-insights-hero-copy { max-width: 760px; }
.season-insights-hero .button--ghost { margin: -7px 0 18px -12px; color: white; }
.season-insights-hero .button--ghost:hover { background: rgba(255,255,255,0.1); }
.season-insights-hero .eyebrow { color: var(--brand-92e0b6, #92e0b6); }
.season-insights-hero h1 { margin-bottom: 9px; font-size: clamp(1.7rem, 3vw, 2.55rem); }
.season-insights-hero p { max-width: 700px; margin-bottom: 0; color: rgba(255,255,255,0.76); }

.season-insights-summary {
  min-height: 164px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.1);
  text-align: center;
}

.season-insights-summary strong { font-size: 3rem; line-height: 1; letter-spacing: -0.06em; }
.season-insights-summary span { max-width: 150px; color: rgba(255,255,255,0.82); font-size: 0.77rem; font-weight: 800; line-height: 1.35; }
.season-insights-summary small { margin-top: 10px; color: var(--brand-a7e8c4, #a7e8c4); font-size: 0.7rem; }

.season-insights-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 22px;
}

.season-insights-toolbar h2,
.season-insights-toolbar p { margin-bottom: 0; }
.season-insights-toolbar p { margin-top: 3px; font-size: 0.78rem; }

.executive-summary-card { overflow: hidden; }
.executive-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px 14px;
  border-bottom: 1px solid var(--line);
}
.executive-summary-heading h2,
.executive-summary-heading p { margin-bottom: 0; }
.executive-summary-heading > span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}
.executive-summary-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.executive-summary-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.executive-summary-list li:nth-child(even) { border-right: 0; }
.executive-summary-list li:nth-last-child(-n + 2) { border-bottom: 0; }
.executive-summary-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--green-50); color: var(--green-700); font-weight: 900; }
.executive-summary-list p { margin-bottom: 0; color: var(--ink); font-size: 0.83rem; font-weight: 720; line-height: 1.45; }
.executive-summary-empty { margin: 0; padding: 20px 22px; }

.season-insights-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid var(--brand-c9e4d5, #c9e4d5);
  border-radius: 13px;
  background: var(--green-50);
  color: var(--green-950);
  font-size: 0.78rem;
}

.season-insights-note span { color: var(--muted); }
.season-insights-section { display: grid; gap: 11px; }
.season-insights-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 9px 3px 0; }
.season-insights-section-heading h2,
.season-insights-section-heading p { margin-bottom: 0; }
.season-insights-section-heading > span { color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.season-insights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.season-insight-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.season-insight-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.season-insight-type { color: var(--green-700); font-size: 0.69rem; font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.season-insight-confidence { padding: 5px 8px; border-radius: 999px; background: var(--brand-edf3ef, #edf3ef); color: var(--muted); font-size: 0.65rem; font-weight: 850; white-space: nowrap; }
.season-insight-card--established .season-insight-confidence { background: var(--brand-dff3e8, #dff3e8); color: var(--green-800); }
.season-insight-card--early .season-insight-confidence { background: #fff4e4; color: var(--warning); }
.season-insight-card--team { border-color: var(--brand-c9ddd1, #c9ddd1); background: linear-gradient(180deg, #ffffff, var(--brand-f5faf7, #f5faf7)); }
.season-insight-card--player-trend { border-top: 3px solid var(--brand-75b991, #75b991); }
.season-insight-card h2 { max-width: 660px; margin-bottom: 0; font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.35; }

.season-insight-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px;
  border-radius: 14px;
  background: var(--brand-f7faf8, #f7faf8);
}

.season-insight-comparison > div { min-width: 0; display: grid; justify-items: center; gap: 2px; text-align: center; }
.season-insight-comparison span { max-width: 100%; overflow: hidden; color: var(--muted); font-size: 0.68rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.season-insight-comparison strong { color: var(--green-900); font-size: 1.55rem; letter-spacing: -0.04em; }
.season-insight-comparison small { color: var(--muted); font-size: 0.65rem; }
.season-insight-versus { overflow: visible !important; padding: 4px 6px; border-radius: 7px; background: white; font-size: 0.6rem !important; text-transform: uppercase; }

.season-insight-support { margin: auto 0 0; color: var(--muted); font-size: 0.7rem; }
.season-insight-support span { color: var(--brand-b7c6bd, #b7c6bd); font-size: 0.55rem; }
.season-insight-card--established .season-insight-support span { color: var(--green-600); }

.season-insights-empty {
  min-height: 300px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 38px;
  text-align: center;
}

.season-insights-empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 17px; background: var(--green-50); color: var(--green-700); font-size: 1.45rem; }
.season-insights-empty p { max-width: 570px; margin-bottom: 0; }

@media (max-width: 900px) {
  .season-insights-hero { grid-template-columns: minmax(0, 1fr) 175px; padding: 24px; }
  .executive-summary-list { grid-template-columns: 1fr; }
  .executive-summary-list li,
  .executive-summary-list li:nth-child(even),
  .executive-summary-list li:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .executive-summary-list li:last-child { border-bottom: 0; }
  .season-insights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .season-insights-hero { grid-template-columns: 1fr; gap: 20px; }
  .season-insights-summary { min-height: 120px; }
  .season-insights-toolbar { align-items: stretch; flex-direction: column; }
  .executive-summary-heading { align-items: flex-start; flex-direction: column; }
  .season-insights-note { align-items: flex-start; flex-direction: column; }
  .season-insights-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .season-insight-card { padding: 17px; }
  .season-insight-card-topline { align-items: flex-start; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .history-summary { grid-template-columns: 106px minmax(150px, 1fr) 34px repeat(4, 68px) 24px; }
}
@media (max-width: 900px) {
  .history-summary { grid-template-columns: 100px minmax(150px, 1fr) 34px repeat(2, 72px) 24px; }
  .history-metric:nth-of-type(5), .history-metric:nth-of-type(6) { display: none; }
}
@media (max-width: 680px) {
  .history-summary { grid-template-columns: 82px minmax(112px, 1fr) 30px 65px 24px; gap: 7px; padding-inline: 10px; }
  .history-metric:nth-of-type(4), .history-metric:nth-of-type(5), .history-metric:nth-of-type(6) { display: none; }
  .history-result { width: 26px; height: 26px; }
}


@media (max-width: 760px) {
  .auth-card { border-radius: 20px; }
  .topbar-actions .logout-button { display: none; }
  .sync-pill { min-height: 34px; padding: 0 9px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Version 2.1.0: tvåstegsregistrering, ställning och matchhantering */
.live-match-strip {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
}

.live-match-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-strip-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.undo-latest-button:disabled {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  color: var(--ink);
}

.score-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.score-team--home { justify-content: flex-end; text-align: right; }
.score-team--away { justify-content: flex-start; text-align: left; }
.score-team strong {
  font-size: clamp(1.75rem, 3.3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.score-team small {
  max-width: 105px;
  overflow: hidden;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.score-separator {
  font-size: 1.6rem;
  font-weight: 900;
  opacity: 0.52;
}

.scoreboard--live {
  min-width: 250px;
  color: white;
}
.live-match-strip .scoreboard--live {
  display: grid;
  gap: 10px;
}
.scoreboard--live .score-team small { color: rgba(255, 255, 255, 0.72); }

.live-grid,
.live-grid--two-step {
  grid-template-columns: minmax(360px, 1.25fr) minmax(270px, 0.75fr);
}

.live-step--players,
.live-step--events {
  min-height: 430px;
}

.live-player-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-list-group {
  min-width: 0;
}

.player-list-group--goalkeepers {
  padding-top: 12px;
  border-top: 2px solid var(--brand-d5e8dc, #d5e8dc);
}

.player-list-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--green-900);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-list-group-heading span {
  min-width: 25px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-100);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
}

.player-list {
  display: grid;
  gap: 7px;
}

.player-list-group--outfield .player-list {
  max-height: 290px;
  overflow-y: auto;
  padding-right: 3px;
  overscroll-behavior: contain;
}

.player-list-button {
  min-height: 55px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--brand-fbfcfb, #fbfcfb);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.player-list-button:hover { border-color: var(--brand-a9c7b5, #a9c7b5); background: var(--green-50); }
.player-list-button--selected {
  border-color: var(--green-700);
  background: var(--green-100);
  box-shadow: inset 0 0 0 1px var(--green-700);
}
.player-list-number { color: var(--green-800); font-size: 0.84rem; font-weight: 900; }
.player-list-name { overflow: hidden; font-size: 0.88rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.player-list-position {
  min-width: 38px;
  padding: 5px 6px;
  border-radius: 8px;
  background: var(--brand-eef3f0, #eef3f0);
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 850;
  text-align: center;
}
.player-list-group--goalkeepers .player-list-button { background: var(--brand-f7fbf8, #f7fbf8); }
.player-list-group--goalkeepers .player-list-position { background: var(--brand-dff3e8, #dff3e8); color: var(--green-800); }
.player-list-empty { padding: 10px 12px; border-radius: 10px; background: var(--brand-f6f8f7, #f6f8f7); color: var(--muted); font-size: 0.76rem; }

.live-step--events .event-grid {
  grid-template-columns: 1fr;
}
.live-step--events .event-button {
  min-height: 72px;
}
.event-button:disabled small { color: #8a938e; font-weight: 700; }

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(2, 31, 21, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: default;
}

.zone-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(650px, calc(100dvh - 36px));
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  background: white;
  box-shadow: 0 28px 80px rgba(0, 20, 13, 0.34);
}

.zone-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.zone-dialog-header h2 { margin-bottom: 4px; font-size: 1.5rem; }
.zone-dialog-header p { margin-bottom: 0; }
.modal-close {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--green-900);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.zone-grid--dialog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.zone-button--dialog {
  min-height: 90px;
  font-size: 1rem;
}
.zone-dialog-cancel {
  width: 100%;
  margin-top: 14px;
}

.match-hero {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(260px, 1fr);
}
.match-hero-actions { justify-content: flex-end; }
.scoreboard--hero { min-width: 230px; }

.match-management-card { overflow: hidden; }
.match-management-list { display: grid; padding: 2px 14px 16px; }
.match-management-row {
  display: grid;
  grid-template-columns: 145px minmax(170px, 1fr) 85px auto;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 9px 8px;
  border-bottom: 1px solid var(--brand-e9eeeb, #e9eeeb);
}
.match-management-row:last-child { border-bottom: 0; }
.match-management-date,
.match-management-opponent,
.match-management-score { min-width: 0; }
.match-management-date strong,
.match-management-date span,
.match-management-opponent span,
.match-management-opponent strong,
.match-management-score span,
.match-management-score strong { display: block; }
.match-management-date span,
.match-management-opponent span,
.match-management-score span { color: var(--muted); font-size: 0.68rem; }
.match-management-opponent strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-management-score strong { color: var(--green-900); font-size: 1.25rem; }

.history-delete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  border: 1px solid #efcaca;
  border-radius: 14px;
  background: #fff8f8;
}
.history-delete-row p { margin: 4px 0 0; font-size: 0.78rem; }

@media (max-width: 1180px) {
  .live-match-strip { grid-template-columns: minmax(160px, 1fr) auto minmax(210px, 1fr); }
  .scoreboard--live { min-width: 210px; }
  .live-grid,
  .live-grid--two-step { grid-template-columns: minmax(340px, 1.15fr) minmax(250px, 0.85fr); }
  .match-hero { grid-template-columns: minmax(175px, 1fr) auto; }
  .match-hero-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 900px) {
  .live-match-strip {
    grid-template-columns: 1fr auto;
  }
  .live-strip-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .live-grid,
  .live-grid--two-step { grid-template-columns: 1fr; }
  .live-step--players,
  .live-step--events { min-height: 0; }
  .player-list-group--outfield .player-list { max-height: none; }
  .player-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-management-row { grid-template-columns: 125px minmax(150px, 1fr) 75px auto; }
}

@media (max-width: 680px) {
  .live-match-strip { grid-template-columns: 1fr; }
  .live-match-strip .scoreboard--live { width: 100%; min-width: 0; margin: 8px 0; }
  .live-strip-actions { grid-column: auto; width: 100%; }
  .undo-latest-button { display: inline-flex !important; }
  .player-list { grid-template-columns: 1fr; }
  .zone-dialog { padding: 17px; border-radius: 18px; }
  .zone-grid--dialog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone-button--dialog { min-height: 76px; }
  .match-hero { grid-template-columns: 1fr; }
  .match-hero-actions { grid-column: auto; justify-content: stretch; }
  .match-hero-actions .button { width: 100%; }
  .match-management-row { grid-template-columns: 92px minmax(0, 1fr) 64px; gap: 9px; }
  .match-management-row .button { grid-column: 1 / -1; width: 100%; }
  .history-delete-row { align-items: stretch; flex-direction: column; }
  .history-delete-row .button { width: 100%; }
}

/* Livevy 2.1: tvåstegsflöde, spelarlister, ställning och modal */
.live-grid--two-step {
  grid-template-columns: minmax(390px, 1.25fr) minmax(300px, 0.75fr);
}

.live-step--events .event-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-step--events .event-button {
  min-height: 96px;
}

.live-player-list {
  display: grid;
  gap: 14px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 3px;
  overscroll-behavior: contain;
}

.player-list-group {
  display: grid;
  gap: 7px;
}

.player-list-group--goalkeepers {
  margin-top: 2px;
  padding-top: 13px;
  border-top: 2px solid var(--brand-bdd8c8, #bdd8c8);
}

.player-list-group-heading {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 5px;
  color: var(--green-900);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.player-list-group-heading span {
  min-width: 25px;
  min-height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.7rem;
}

.player-list {
  display: grid;
  gap: 7px;
}

.player-list-button {
  min-height: 58px;
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: var(--brand-fbfcfb, #fbfcfb);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.player-list-button:hover {
  border-color: var(--brand-a9c7b5, #a9c7b5);
  background: var(--green-50);
}

.player-list-button--selected {
  border-color: var(--green-700);
  background: var(--green-100);
  box-shadow: inset 0 0 0 1px var(--green-700);
}

.player-list-number {
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 950;
}

.player-list-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 850;
}

.player-list-position {
  justify-self: end;
  min-width: 38px;
  padding: 5px 6px;
  border-radius: 8px;
  background: var(--brand-edf3ef, #edf3ef);
  color: var(--green-900);
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.player-list-group--goalkeepers .player-list-position {
  background: #fff2d7;
  color: #7c520d;
}

.player-list-empty {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.live-match-meta,
.live-strip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-strip-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.scoreboard {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: minmax(72px, auto) 20px minmax(72px, auto);
  align-items: center;
  gap: 6px !important;
  padding: 7px 12px;
  border-radius: 13px;
  text-align: center;
}

.score-team {
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
}

.score-team small {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.67rem;
  font-weight: 800;
}

.score-team strong {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-separator {
  font-size: 1.15rem !important;
  font-weight: 900;
}

.scoreboard--live {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.09);
  color: white;
}

.scoreboard--live .score-team small,
.scoreboard--live .score-separator {
  color: rgba(255,255,255,0.68) !important;
}

.scoreboard--live .score-team strong {
  color: white;
}

.scoreboard--hero {
  border: 1px solid var(--brand-c4dfcf, #c4dfcf);
  background: var(--green-50);
  color: var(--green-950);
}

.scoreboard--hero .score-team small,
.scoreboard--hero .score-separator {
  color: var(--muted);
}

.undo-latest-button:disabled {
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.48);
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 30, 20, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: default;
}

.zone-dialog {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 22px;
  background: white;
  box-shadow: 0 28px 80px rgba(0,0,0,0.34);
}

.zone-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.zone-dialog-header h2,
.zone-dialog-header p {
  margin-bottom: 0;
}

.zone-dialog-header p:last-child {
  margin-top: 5px;
  font-size: 0.82rem;
}

.modal-close {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--brand-f8faf9, #f8faf9);
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.zone-grid--dialog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zone-button--dialog {
  min-height: 104px;
  font-size: 0.95rem;
}

.zone-dialog-cancel {
  width: 100%;
  margin-top: 14px;
}

.match-hero {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(260px, auto);
}

.match-hero-actions {
  justify-content: flex-end;
}

.match-management-list {
  display: grid;
  gap: 8px;
  padding: 4px 14px 16px;
}

.match-management-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: 135px minmax(170px, 1fr) 90px auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--brand-fbfcfb, #fbfcfb);
}

.match-management-date strong,
.match-management-date span,
.match-management-opponent span,
.match-management-opponent strong,
.match-management-score span,
.match-management-score strong {
  display: block;
}

.match-management-date span,
.match-management-opponent span,
.match-management-score span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
}

.match-management-score {
  text-align: center;
}

.match-management-score strong {
  color: var(--green-900);
  font-size: 1.18rem;
}

.history-delete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border: 1px solid #ebc5c5;
  border-radius: 14px;
  background: #fff8f8;
}

.history-delete-row p {
  margin: 4px 0 0;
  font-size: 0.79rem;
}

.button--danger:hover {
  border-color: #d99292;
  background: #f8dddd;
}

@media (max-width: 1180px) {
  .live-grid--two-step {
    grid-template-columns: minmax(350px, 1.15fr) minmax(280px, 0.85fr);
  }

  .live-step--events .event-grid {
    grid-template-columns: 1fr;
  }

  .match-hero {
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .match-hero-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .live-grid--two-step {
    grid-template-columns: 1fr;
  }

  .live-player-list {
    max-height: none;
  }

  .live-step--events .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-management-row {
    grid-template-columns: 115px minmax(150px, 1fr) 82px auto;
  }
}

@media (max-width: 680px) {
  .live-match-strip {
    align-items: stretch;
  }

  .scoreboard--live {
    width: 100%;
    justify-content: center;
  }

  .live-strip-actions {
    justify-content: stretch;
  }

  .live-strip-actions .button {
    flex: 1 1 auto;
  }

  .live-step--events .event-grid,
  .zone-grid--dialog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zone-dialog {
    padding: 17px;
    border-radius: 18px;
  }

  .zone-button--dialog {
    min-height: 88px;
  }

  .match-hero {
    display: flex;
  }

  .scoreboard--hero {
    width: 100%;
    justify-content: center;
  }

  .match-hero-actions,
  .match-hero-actions .button {
    width: 100%;
  }

  .match-management-row {
    grid-template-columns: 90px minmax(0, 1fr) auto;
  }

  .match-management-score {
    display: none;
  }

  .history-delete-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.event-empty {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 18px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--brand-fafcfb, #fafcfb);
  color: var(--muted);
  text-align: center;
}
.event-empty strong { color: var(--green-900); }
.event-empty span { font-size: 0.78rem; line-height: 1.45; }

/* Version 2.2.0: 16-spelarlayout, halvlekar, tekniska fel och matchgrafer */
.event-button--technical_error .event-symbol,
.event-chip--technical_error {
  background: #f6ead5;
  color: #8a5510;
}

.live-period-bar {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid var(--brand-cfe1d6, #cfe1d6);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.period-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(108px, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--brand-eaf2ed, #eaf2ed);
}

.period-toggle-button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--green-900);
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.period-toggle-button--active {
  background: var(--green-800);
  color: white;
  box-shadow: 0 5px 14px rgba(7, 95, 60, 0.2);
}

.period-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 7px;
}

.period-quick-stats > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: var(--brand-f4f8f5, #f4f8f5);
}

.period-quick-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-quick-stats strong {
  flex: 0 0 auto;
  color: var(--green-900);
  font-size: 0.94rem;
}

.period-quick-stats .period-technical {
  background: #fbf3e6;
}

.period-quick-stats .period-technical strong {
  color: #83500f;
}

.recent-count {
  align-self: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 850;
  white-space: nowrap;
}

.recent-event-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.recent-event-meta time {
  white-space: nowrap;
}

.recent-event-score {
  min-width: 38px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.zone-dialog--technical {
  border-color: #ead2aa;
}

.zone-grid--technical {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zone-button--technical {
  border-color: #ead8b9;
  background: #fffaf1;
  color: #70440c;
}

.zone-button--technical:hover:not(:disabled) {
  border-color: #c18a3e;
  background: #fff4df;
  color: #70440c;
}

/* Alla 16 spelare ska rymmas utan intern scroll i iPad-landskap. */
.live-player-list {
  max-height: none;
  overflow: visible;
  gap: 7px;
  padding-right: 0;
}

.player-list-group {
  gap: 4px;
}

.player-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.player-list-group--outfield .player-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.live-player-list--dense .player-list-button {
  min-height: 40px;
  grid-template-columns: 42px minmax(0, 1fr) 38px;
  padding: 4px 8px;
  border-radius: 10px;
}

.live-player-list--dense .player-list-group-heading {
  min-height: 22px;
  margin-bottom: 1px;
  font-size: 0.67rem;
}

.live-player-list--dense .player-list-group-heading span {
  min-width: 21px;
  min-height: 21px;
  padding: 2px 5px;
}

.live-player-list--dense .player-list-group--goalkeepers {
  margin-top: 0;
  padding-top: 7px;
}

.live-player-list--dense .player-list-number,
.live-player-list--dense .player-list-name {
  font-size: 0.79rem;
}

.live-player-list--dense .player-list-position {
  min-width: 34px;
  padding: 3px 4px;
  font-size: 0.64rem;
}

.live-player-list--compact .player-list-button {
  min-height: 47px;
  padding: 5px 9px;
}

.live-player-list--roomy .player-list-button {
  min-height: 56px;
}

.live-step--events .event-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-step--events .event-button {
  min-height: 72px;
  padding: 8px 10px;
}

.live-step--events .event-symbol {
  width: 38px;
  height: 38px;
}

/* Matchgrafer */
.match-insights-card,
.technical-overview-card {
  overflow: hidden;
}

.match-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 16px 14px;
}

.insight-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--brand-fbfcfb, #fbfcfb);
}

.insight-card--combined {
  min-height: 176px;
  padding: 12px 14px 15px;
}

.insight-card-title {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.insight-card-title span {
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.insight-metric,
.insight-zone-pie {
  min-width: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 9px;
  text-align: center;
}

.insight-metric {
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.insight-metric > div:last-child,
.zone-pie-copy {
  width: 100%;
}

.insight-metric h3,
.insight-metric p,
.insight-card-heading h3,
.insight-card-heading p {
  margin-bottom: 0;
}

.insight-metric p,
.insight-card-heading p {
  margin-top: 4px;
  font-size: 0.75rem;
}

.donut-chart {
  --donut-color: var(--green-700);
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--donut-color) var(--donut-angle), var(--brand-e5ece8, #e5ece8) 0);
}

.insight-card--save .donut-chart {
  --donut-color: #b6781f;
}

.zone-pie {
  width: 94px;
  height: 94px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--zone-pie));
}
.zone-pie > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: white;
  text-align: center;
}
.zone-pie strong, .zone-pie small { display: block; }
.zone-pie strong { color: var(--green-900); font-size: 1.25rem; }
.zone-pie small { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; }
.zone-pie-copy { min-width: 0; }
.zone-pie-copy h3, .zone-pie-copy p { margin-bottom: 0; }
.zone-pie-copy p { margin-top: 4px; font-size: 0.75rem; }
.zone-pie-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; margin-top: 8px; text-align: left; }
.zone-pie-legend span { min-width: 0; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 5px; color: var(--muted); font-size: 0.66rem; }
.zone-pie-legend i { width: 8px; height: 8px; border-radius: 50%; }
.zone-pie-legend b { color: var(--ink); }

.donut-chart-center {
  width: 70px;
  height: 70px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: white;
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--brand-e2e9e5, #e2e9e5);
}

.donut-chart-center strong,
.donut-chart-center small {
  display: block;
}

.donut-chart-center strong {
  color: var(--green-900);
  font-size: 1.12rem;
}

.donut-chart-center small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.insight-card--bars {
  padding: 14px 15px 15px;
}

.insight-card-heading {
  margin-bottom: 11px;
}

.bar-chart {
  display: grid;
  gap: 7px;
}

.bar-chart-row {
  display: grid;
  grid-template-columns: 92px minmax(60px, 1fr) 24px 38px;
  align-items: center;
  gap: 7px;
}

.bar-chart-label {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-chart-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--brand-e7ede9, #e7ede9);
}

.bar-chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-700);
}

.insight-card--defence .bar-chart-fill {
  background: #b6781f;
}

.bar-chart-row strong,
.bar-chart-row small {
  text-align: right;
}

.bar-chart-row strong {
  color: var(--green-900);
  font-size: 0.76rem;
}

.bar-chart-row small {
  color: var(--muted);
  font-size: 0.65rem;
}

.period-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.period-summary-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--brand-cfe1d6, #cfe1d6);
  border-radius: 13px;
  background: var(--green-50);
}

.period-summary-card > span {
  color: var(--green-800);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.period-summary-card > strong {
  color: var(--green-950);
  font-size: 1.35rem;
}

.period-summary-card > small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tekniska fel */
.technical-overview-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(420px, 1.3fr);
  gap: 18px;
  padding: 16px 18px;
  border-color: #ead6b5;
  background: #fffaf2;
}

.technical-overview-total {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.technical-overview-total h2,
.technical-overview-total p {
  margin-bottom: 0;
}

.technical-overview-total p:last-child {
  margin-top: 3px;
  font-size: 0.75rem;
}

.technical-overview-total > strong {
  color: #77470b;
  font-size: 2.25rem;
  letter-spacing: -0.05em;
}

.technical-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f1dfbf;
  color: #77470b;
  font-size: 1.35rem;
  font-weight: 950;
}

.technical-category-grid {
  display: grid;
  gap: 6px;
}

.technical-category-item {
  display: grid;
  grid-template-columns: 90px minmax(60px, 1fr) 24px;
  align-items: center;
  gap: 8px;
}

.technical-category-item > span:first-child {
  font-size: 0.7rem;
  font-weight: 750;
}

.technical-category-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efe1ca;
}

.technical-category-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #bd7d25;
}

.technical-category-item strong {
  color: #77470b;
  font-size: 0.78rem;
  text-align: right;
}


@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .topbar {
    min-height: 72px;
    padding-top: 11px;
    padding-bottom: 10px;
  }

  .page {
    gap: 8px;
    padding-top: 10px;
  }

  .live-match-strip {
    min-height: 52px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .live-period-bar {
    min-height: 54px;
    gap: 9px;
    padding: 6px 9px;
  }

  .period-toggle {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }

  .period-toggle-button {
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .period-quick-stats {
    gap: 5px;
  }

  .period-quick-stats > span {
    padding: 5px 7px;
  }

  .live-grid--two-step {
    grid-template-columns: minmax(490px, 1.45fr) minmax(250px, 0.72fr);
    gap: 9px;
  }

  .live-step {
    padding: 10px;
  }

  .live-step--players,
  .live-step--events {
    min-height: 414px;
  }

  .section-heading {
    margin-bottom: 7px;
  }

  .section-heading p {
    font-size: 0.68rem;
  }

  .step-number {
    width: 27px;
    height: 27px;
  }

  .live-step--events .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-step--events .event-button {
    min-height: 68px;
  }
}

@media (max-width: 900px) {
  .live-period-bar {
    grid-template-columns: 1fr;
  }

  .period-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-player-list--dense .player-list-button {
    min-height: 48px;
  }

  .match-insights-grid,
  .period-summary-grid {
    grid-template-columns: 1fr;
  }

  .technical-overview-card {
    grid-template-columns: 1fr;
  }

  .history-summary {
    grid-template-columns: 100px minmax(150px, 1fr) repeat(3, 72px) 24px;
  }

  .history-metric--technical {
    display: none;
  }
}

@media (max-width: 680px) {
  .period-toggle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-quick-stats {
    grid-template-columns: 1fr 1fr;
  }

  .player-list {
    grid-template-columns: 1fr;
  }

  .recent-event {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .recent-event-meta {
    justify-items: end;
  }

  .recent-event-meta time {
    display: none;
  }

  .insight-card-comparison {
    grid-template-columns: 1fr;
  }

  .insight-metric {
    padding-right: 0;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bar-chart-row {
    grid-template-columns: 78px minmax(50px, 1fr) 22px 34px;
  }

  .technical-overview-total {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .technical-category-item {
    grid-template-columns: 82px minmax(50px, 1fr) 22px;
  }

  .period-summary-card {
    grid-template-columns: auto auto;
  }

  .period-summary-card small {
    grid-column: 1 / -1;
  }
}

.history-summary {
  grid-template-columns: 130px minmax(190px, 1fr) repeat(4, 82px) 28px;
}

@media (min-width: 901px) and (max-width: 1180px) {
  .history-summary {
    grid-template-columns: 106px minmax(150px, 1fr) repeat(4, 68px) 24px;
    gap: 8px;
  }
}

/* Matchtrupp: tydlig 16-spelargräns */
.roster-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.roster-selected-count {
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.roster-option--disabled {
  opacity: 0.48;
}

.roster-option--disabled:hover {
  border-color: var(--line);
  background: white;
}

/* Delbar matchrapport och individuell spelarutveckling · Demo */
.demo-badge,
.demo-inline-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.demo-badge { padding: 7px 10px; }
.demo-inline-label { margin-left: 6px; padding: 4px 6px; }
.demo-badge--light { background: rgba(255, 255, 255, 0.17); color: white; }

.history-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--brand-fbfdfc, #fbfdfc);
}

.history-report-row span > strong,
.history-report-row span > small { display: block; }
.history-report-row span > strong { color: var(--green-900); font-size: 0.78rem; }
.history-report-row span > small { margin-top: 2px; color: var(--muted); font-size: 0.72rem; }

.demo-launch-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-color: var(--brand-b8dec9, #b8dec9);
  background: linear-gradient(120deg, var(--brand-f5fcf8, #f5fcf8), white 72%);
}

.demo-launch-card h2 { margin: 8px 0 2px; }
.demo-launch-card p { margin: 0; }
.demo-launch-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--green-900);
  color: white;
  font-size: 1.5rem;
  font-weight: 900;
}

.report-page,
.data-diagnostics-launcher-card { padding: 24px; }
.data-diagnostics-launcher-card p { line-height: 1.5; }
.data-diagnostics-toggle { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90; box-shadow: 0 4px 18px #123e2726; }
.data-diagnostics-layer { z-index: 1200; }
.data-diagnostics-dialog { width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; }
.data-diagnostics-dialog p { line-height: 1.5; }
.data-diagnostics-note { color: var(--muted); font-size: .85rem; }
.data-diagnostics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.data-diagnostics-metric { background: var(--background); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.data-diagnostics-metric dt { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.data-diagnostics-metric dd { margin: 0; font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.data-diagnostics-list { list-style: none; margin: 10px 0 18px; padding: 0; }
.data-diagnostics-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.data-diagnostics-actions { flex-wrap: wrap; }
.central-usage { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 24px; }
.central-usage-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.central-usage-heading h3 { margin: 4px 0 12px; }
.central-usage-heading .button { flex-shrink: 0; }
.central-usage-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--brand-3e7560, #3e7560); border-radius: 12px; background: var(--background); }
.central-usage-card h4 { margin: 0 0 8px; }
.central-usage-card > strong { display: block; font-size: 1.45rem; overflow-wrap: anywhere; }
.central-usage-card strong small { color: var(--muted); font-size: .85rem; font-weight: 500; }
.central-usage-card > small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.central-usage-card p { margin: 6px 0; font-size: .85rem; }
.central-usage-card progress { width: 100%; height: 9px; margin-top: 12px; accent-color: var(--brand-3e7560, #3e7560); }
.central-usage-card--warning { border-left-color: #aa7309; }
.central-usage-card--high { border-left-color: #bf5a17; }
.central-usage-card--critical { border-left-color: #ba3344; }
.central-usage-card--warning progress { accent-color: #aa7309; }
.central-usage-card--high progress { accent-color: #bf5a17; }
.central-usage-card--critical progress { accent-color: #ba3344; }
.central-usage-card--unknown { border-left-color: #8b9791; }
.central-usage-notice { padding: 10px 12px; border: 1px solid #dbcba5; border-radius: 10px; background: #fff8e8; color: #715217; font-size: .85rem; }
.central-usage-identity { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.central-usage-identity > div + div { margin-top: 8px; }
.central-usage-identity dt { font-weight: 700; }
.central-usage-identity dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.central-usage-failure p { margin: 8px 0 0; overflow-wrap: anywhere; }
.central-usage-hours summary { cursor: pointer; padding: 8px 0; font-weight: 700; }
.central-usage-hours table { width: 100%; min-width: 0; table-layout: fixed; font-size: .85rem; border-collapse: collapse; }
.central-usage-hours th, .central-usage-hours td { padding: 8px; text-align: right; border-bottom: 1px solid var(--line); }
.central-usage-hours th:first-child { text-align: left; }
@media (max-width: 560px) {
  .central-usage-heading { flex-direction: column; }
  .central-usage .data-diagnostics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .data-diagnostics-toggle { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); right: 12px; }
  .data-diagnostics-dialog { padding: 18px; }
}
.development-load-card { padding: 24px; }
.development-toolbar-actions { display: grid; justify-items: start; gap: 4px; }
.development-load-card h2 { margin: 0 0 8px; }
.development-load-card p { margin: 0 0 16px; }
.development-page { display: grid; gap: 18px; }

.report-toolbar,
.development-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.report-toolbar .field { min-width: min(330px, 34vw); }
.report-toolbar-actions,
.development-selectors { display: flex; align-items: flex-end; gap: 10px; }
.development-selectors .field { min-width: 190px; }

.match-report-sheet {
  overflow: hidden;
  border: 1px solid var(--brand-cbd8d1, #cbd8d1);
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 50px rgba(5, 59, 40, 0.12);
}

.match-report-hero {
  position: relative;
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 34px 38px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 25%, rgba(255,255,255,0.13), transparent 28%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  color: white;
}

.match-report-hero::after {
  content: '';
  position: absolute;
  right: -85px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 42px solid rgba(255,255,255,0.055);
  border-radius: 50%;
}

.match-report-brand,
.match-report-meta,
.match-report-score,
.match-report-result { position: relative; z-index: 1; }
.match-report-brand { display: flex; align-items: center; gap: 14px; }
.match-report-brand p { margin: 8px 0 0; color: rgba(255,255,255,0.78); font-weight: 750; }
.match-report-logo { position: relative; width: 74px; height: 74px; overflow: hidden; flex: 0 0 74px; }
.match-report-logo img { position: absolute; top: 50%; left: 50%; width: 142px; max-width: none; height: 105px; object-fit: contain; transform: translate(-50%, -50%); filter: url(#green-logo-white); }
.match-report-meta { display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.match-report-meta span { padding: 7px 10px; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; color: rgba(255,255,255,0.85); font-size: 0.72rem; font-weight: 800; }
.match-report-score { align-self: end; display: flex; align-items: flex-end; gap: 26px; }
.match-report-score > div { min-width: 132px; }
.match-report-score > div:last-child { text-align: right; }
.match-report-score small { display: block; margin-bottom: 3px; color: rgba(255,255,255,0.74); font-size: 0.8rem; font-weight: 750; }
.match-report-score strong { font-size: clamp(3.4rem, 8vw, 6rem); letter-spacing: -0.08em; line-height: 0.9; }
.match-report-score > span { padding-bottom: 7px; color: rgba(255,255,255,0.55); font-size: 2.2rem; }
.match-report-result { align-self: end; justify-self: end; padding: 9px 14px; border-radius: 999px; font-weight: 900; }
.match-report-result--win { background: white; color: var(--green-900); }
.match-report-result--loss { background: #f8d9d9; color: #8e2525; }
.match-report-result--draw { background: var(--brand-e4ebe7, #e4ebe7); color: var(--brand-425048, #425048); }

.match-report-body { display: grid; gap: 34px; padding: 32px 38px 26px; }
.report-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.development-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.report-metric { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--brand-fbfdfc, #fbfdfc); }
.report-metric span,
.report-metric small { display: block; }
.report-metric span { color: var(--muted); font-size: 0.7rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.04em; }
.report-metric strong { display: block; margin: 7px 0 4px; color: var(--green-900); font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -0.04em; }
.report-metric small { overflow: hidden; color: var(--muted); font-size: 0.7rem; text-overflow: ellipsis; }
.development-metric { display: flex; flex-direction: column; }
.development-metric .development-comparison {
  display: block;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.development-metric .development-comparison--positive { color: var(--green-700); }
.development-metric .development-comparison--negative { color: var(--danger); }
.development-metric .development-comparison--neutral { color: var(--muted); }
.report-section { display: grid; gap: 15px; }
.report-section-heading span,
.development-section-kicker { color: var(--green-700); font-size: 0.68rem; font-weight: 950; letter-spacing: 0.09em; text-transform: uppercase; }
.report-section-heading h2 { margin-top: 5px; font-size: 1.4rem; }
.report-zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.report-zone-grid .insight-card { box-shadow: none; }
.report-performer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.report-performer { padding: 18px; border-radius: 15px; background: var(--green-50); }
.report-performer span,
.report-performer small { display: block; }
.report-performer span { color: var(--green-700); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.report-performer strong { display: block; margin: 9px 0 4px; font-size: 0.95rem; }
.report-performer small { color: var(--muted); font-size: 0.72rem; }
.report-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.report-period-grid article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; }
.report-period-grid span { color: var(--muted); font-size: 0.75rem; font-weight: 800; }
.report-period-grid strong { grid-row: span 2; font-size: 1.7rem; color: var(--green-900); }
.report-period-grid small { color: var(--muted); font-size: 0.7rem; }
.match-report-footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.demo-disclaimer { margin: 0; padding: 13px 16px; border: 1px dashed var(--brand-9dcab1, #9dcab1); border-radius: 13px; background: var(--brand-f5fcf8, #f5fcf8); font-size: 0.78rem; }
.demo-disclaimer strong { color: var(--green-900); }

.development-hero {
  min-height: 230px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px 38px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 30%),
    linear-gradient(130deg, var(--green-950), var(--brand-0a8050, #0a8050));
  color: white;
  box-shadow: 0 16px 42px rgba(5, 59, 40, 0.15);
}
.development-profile-mark { width: 104px; height: 104px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,0.24); border-radius: 50%; background: rgba(255,255,255,0.11); font-size: 2.8rem; font-weight: 950; }
.development-hero-copy p { margin: 9px 0 2px; color: rgba(255,255,255,0.72); font-size: 0.78rem; font-weight: 800; }
.development-hero-copy h1 { margin: 0 0 5px; color: white; font-size: clamp(2rem, 5vw, 3.8rem); letter-spacing: -0.055em; }
.development-hero-copy > span:last-child { color: rgba(255,255,255,0.76); font-size: 0.82rem; }
.development-hero-trend { min-width: 190px; padding: 18px; border: 1px solid rgba(255,255,255,0.16); border-radius: 16px; background: rgba(0,0,0,0.12); }
.development-hero-trend small,
.development-hero-trend span { display: block; color: rgba(255,255,255,0.68); font-size: 0.68rem; }
.development-hero-trend strong { display: block; margin: 8px 0 4px; font-size: 1.05rem; }
.development-trend--positive strong { color: var(--brand-a9f0c7, #a9f0c7); }
.development-trend--negative strong { color: #ffd0d0; }
.development-trend-card,
.development-matches-card { padding: 24px; }
.development-chart-wrap { overflow-x: auto; margin-top: 18px; }
.development-chart-legend { display: flex; justify-content: flex-end; gap: 16px; min-width: 620px; margin-bottom: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 800; }
.development-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.development-chart-key { width: 22px; height: 4px; border-radius: 999px; background: var(--green-600); }
.development-chart-key--steals { background: #c47b22; }
.development-chart { display: block; width: 100%; min-width: 620px; height: auto; overflow: visible; }
.development-chart text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.development-chart-grid { stroke: var(--brand-dce5df, #dce5df); stroke-width: 1; stroke-dasharray: 4 5; }
.development-chart-line { fill: none; stroke: var(--green-600); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.development-chart-line--steals { stroke: #c47b22; stroke-width: 3; }
.development-chart-point { fill: white; stroke: var(--green-700); stroke-width: 4; }
.development-chart-point--steals { stroke: #c47b22; stroke-width: 3; }
.development-chart-axis--steals { fill: #a56619 !important; font-weight: 850; }
.development-chart-date { font-size: 9px !important; }
.development-chart-empty { display: grid; min-height: 180px; place-items: center; margin-top: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); font-size: 0.8rem; }
.development-table { width: 100%; table-layout: fixed; border-collapse: collapse; margin-top: 14px; }
.development-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; text-align: left; text-transform: uppercase; white-space: nowrap; }
.development-table td { padding: 13px 12px; border-bottom: 1px solid var(--brand-e7ede9, #e7ede9); font-size: 0.8rem; }
.development-table td:first-child strong,
.development-table td:first-child small { display: block; }
.development-table th:first-child,
.development-table td:first-child { width: 30%; min-width: 0; }
.development-table td:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.development-table td:first-child small { margin-top: 3px; color: var(--muted); font-size: 0.68rem; }
.development-result { display: inline-flex; min-width: 48px; justify-content: center; padding: 5px 7px; border-radius: 999px; font-weight: 900; }
.development-result--win { background: var(--green-100); color: var(--green-900); }
.development-result--loss { background: var(--danger-soft); color: var(--danger); }
.development-result--draw { background: var(--brand-e9edeb, #e9edeb); color: #59645e; }

@media (max-width: 1050px) {
  .report-toolbar { align-items: stretch; flex-wrap: wrap; }
  .report-toolbar .field { flex: 1; min-width: 240px; }
  .report-toolbar-actions { margin-left: auto; }
  .report-metric-grid,
  .development-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-performer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .history-report-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .history-report-row .button { width: 100%; }
  .demo-launch-card { grid-template-columns: auto minmax(0, 1fr); }
  .demo-launch-card .button { grid-column: 1 / -1; width: 100%; }
  .report-toolbar,
  .development-toolbar { align-items: stretch; flex-direction: column; }
  .report-toolbar .field { min-width: 0; }
  .report-toolbar-actions,
  .development-selectors { align-items: stretch; flex-direction: column; }
  .report-toolbar-actions .button { flex: 1; }
  .development-selectors .field { min-width: 0; }
  .match-report-hero { min-height: 330px; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 24px; }
  .match-report-meta { justify-content: flex-start; }
  .match-report-score { gap: 17px; }
  .match-report-score > div { min-width: 95px; }
  .match-report-result { justify-self: start; }
  .match-report-body { gap: 28px; padding: 24px; }
  .report-metric-grid,
  .development-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-zone-grid,
  .report-period-grid { grid-template-columns: 1fr; }
  .development-hero { grid-template-columns: auto minmax(0, 1fr); gap: 17px; padding: 25px; }
  .development-profile-mark { width: 78px; height: 78px; font-size: 2rem; }
  .development-hero-trend { grid-column: 1 / -1; min-width: 0; }
}

@media (max-width: 520px) {
  .match-report-score strong { font-size: 3.6rem; }
  .report-metric-grid,
  .development-summary-grid,
  .report-performer-grid { grid-template-columns: 1fr; }
  .report-toolbar-actions { flex-direction: column; }
  .match-report-footer { flex-direction: column; }
  .development-table thead { display: none; }
  .development-table,
  .development-table tbody,
  .development-table tr,
  .development-table td { display: block; width: 100%; }
  .development-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .development-table td { padding: 6px 9px; border: 0; }
  .development-table td:first-child { grid-column: 1 / -1; }
  .development-table td:first-child strong { overflow: visible; white-space: normal; }
  .development-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: 0.62rem; font-weight: 850; text-transform: uppercase; }
}

@media print {
  body:has(.match-report-sheet) { background: white; }
  body:has(.match-report-sheet) .sidebar,
  body:has(.match-report-sheet) .topbar,
  body:has(.match-report-sheet) .report-toolbar,
  body:has(.match-report-sheet) .demo-disclaimer { display: none !important; }
  body:has(.match-report-sheet) .app-shell { display: block; }
  body:has(.match-report-sheet) .main-area,
  body:has(.match-report-sheet) .page,
  body:has(.match-report-sheet) .report-page { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
  body:has(.match-report-sheet) .match-report-sheet { border: 0; border-radius: 0; box-shadow: none; }
  body:has(.match-report-sheet) .match-report-hero { min-height: 235px; padding: 26px 30px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body:has(.match-report-sheet) .match-report-body { gap: 22px; padding: 24px 30px; }
  body:has(.match-report-sheet) .report-metric,
  body:has(.match-report-sheet) .report-performer,
  body:has(.match-report-sheet) .insight-card { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

@media (max-width: 680px) {
  .roster-heading-actions {
    width: 100%;
    align-items: flex-end;
    flex-direction: column;
  }
}

/* Version 2.3.0: assist, skottutfall, defensiva händelser och periodfilter */
.event-button--steal .event-symbol,
.event-chip--steal {
  background: #e7f2fb;
  color: #17618b;
}

.event-button--blocked_shot .event-symbol,
.event-chip--blocked_shot {
  background: #ece9f7;
  color: #55458d;
}

.zone-button--penalty {
  border-color: #d7b9d9;
  background: #fff8ff;
  color: #713777;
}

.zone-button--penalty:hover:not(:disabled) {
  border-color: #a96caf;
  background: #f9eafa;
  color: #5b2560;
}

.zone-dialog--steal {
  max-width: 620px;
  border-color: #b8d7ea;
}

.zone-grid--steal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zone-button--steal {
  min-height: 82px;
  border-color: #bed9ea;
  background: #f4faff;
  color: #155675;
}

.zone-button--steal:hover:not(:disabled) {
  border-color: #5d9dbf;
  background: #e6f5ff;
  color: #104b67;
}

.assist-dialog {
  width: min(760px, calc(100vw - 30px));
  max-height: min(700px, calc(100vh - 28px));
  overflow: auto;
}

.assist-none-button {
  width: 100%;
  min-height: 50px;
  margin-bottom: 12px;
  border: 2px solid var(--brand-a9c8b5, #a9c8b5);
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
}

.assist-none-button:hover,
.assist-none-button:focus-visible {
  border-color: var(--green-700);
  background: var(--green-100);
}

.assist-roster {
  display: grid;
  gap: 11px;
}

.assist-player-group {
  display: grid;
  gap: 6px;
}

.assist-player-group--goalkeepers {
  padding-top: 10px;
  border-top: 2px solid #e3d6bb;
}

.assist-player-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green-900);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.assist-player-group-heading span {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--brand-edf4ef, #edf4ef);
  text-align: center;
}

.assist-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.assist-player-button {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--brand-d5e2da, #d5e2da);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.assist-player-button span {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assist-player-button small {
  color: var(--muted);
  font-size: 0.66rem;
  white-space: nowrap;
}

.assist-player-button:hover,
.assist-player-button:focus-visible {
  border-color: var(--green-600);
  background: var(--green-50);
}

.assist-player-group--goalkeepers .assist-player-button {
  border-color: #e5d8bd;
  background: #fffcf5;
}

.shot-outcome-dialog {
  max-width: 620px;
}

.shot-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shot-outcome-button {
  min-height: 126px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 18px;
  border: 2px solid var(--brand-cfded5, #cfded5);
  border-radius: 16px;
  background: var(--brand-f8fbf9, #f8fbf9);
  color: var(--green-900);
  text-align: center;
  cursor: pointer;
}

.shot-outcome-button strong {
  font-size: 1.2rem;
}

.shot-outcome-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.shot-outcome-button--saved {
  border-color: var(--brand-b8d8c5, #b8d8c5);
  background: var(--brand-f1faf5, #f1faf5);
}

.shot-outcome-button--off_target {
  border-color: #e0c7a5;
  background: #fff9ef;
  color: #754812;
}

.shot-outcome-button:hover,
.shot-outcome-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 63, 42, 0.12);
}

.event-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.match-period-filter {
  display: grid;
  grid-template-columns: minmax(210px, 0.65fr) minmax(480px, 1.35fr);
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
}

.match-period-filter h2,
.match-period-filter p {
  margin-bottom: 0;
}

.match-period-filter p:last-child {
  margin-top: 4px;
  font-size: 0.75rem;
}

.match-period-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 5px;
  border-radius: 14px;
  background: var(--brand-eaf2ed, #eaf2ed);
}

.match-period-button {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 8px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--green-900);
  text-align: left;
  cursor: pointer;
}

.match-period-button span {
  font-size: 0.76rem;
  font-weight: 850;
}

.match-period-button strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: 1.18rem;
}

.match-period-button small {
  color: var(--muted);
  font-size: 0.63rem;
}

.match-period-button--active {
  background: var(--green-800);
  color: white;
  box-shadow: 0 7px 18px rgba(7, 95, 60, 0.18);
}

.match-period-button--active small {
  color: var(--brand-dcefe4, #dcefe4);
}

.match-hero-score {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.match-hero-score > span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-edf4ef, #edf4ef);
  color: var(--green-800);
  font-size: 0.66rem;
  font-weight: 850;
}

.creation-overview-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.28fr);
  gap: 18px;
  padding: 16px 18px;
  border-color: #c8ddeb;
  background: #f8fcff;
}

.creation-overview-metric {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.creation-overview-metric h2,
.creation-overview-metric p,
.shot-outcome-heading h2,
.shot-outcome-heading p {
  margin-bottom: 0;
}

.creation-overview-metric p:last-child {
  margin-top: 3px;
  font-size: 0.75rem;
}

.creation-overview-metric > strong,
.shot-outcome-heading > strong {
  color: #155675;
  font-size: 2.25rem;
  letter-spacing: -0.05em;
}

.creation-overview-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #dcedf7;
  color: #155675;
  font-size: 1.15rem;
  font-weight: 950;
}

.shot-outcome-overview {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid #b8d3e3;
}

.shot-outcome-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shot-outcome-overview > small {
  color: var(--muted);
  font-size: 0.68rem;
}

.shot-outcome-bars {
  display: grid;
  gap: 6px;
}

.shot-outcome-row {
  display: grid;
  grid-template-columns: 78px minmax(80px, 1fr) 28px;
  align-items: center;
  gap: 8px;
}

.shot-outcome-row > span:first-child {
  font-size: 0.72rem;
  font-weight: 800;
}

.shot-outcome-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef2;
}

.shot-outcome-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.shot-outcome-fill--saved {
  background: var(--green-700);
}

.shot-outcome-fill--outside {
  background: #bc7c2d;
}

.shot-outcome-row strong {
  color: #155675;
  text-align: right;
}

.shot-outcome-legacy {
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff6e9;
  color: #805116;
  font-size: 0.68rem;
}

.defensive-overview-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(390px, 1.22fr);
  gap: 18px;
  padding: 16px 18px;
  border-color: #c9c3e2;
  background: #faf9ff;
}

.defensive-overview-total {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.defensive-overview-total h2,
.defensive-overview-total p {
  margin-bottom: 0;
}

.defensive-overview-total p:last-child {
  margin-top: 3px;
  font-size: 0.75rem;
}

.defensive-overview-total > strong {
  color: #514284;
  font-size: 2.25rem;
  letter-spacing: -0.05em;
}

.defensive-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e7e3f5;
  color: #514284;
  font-size: 1.2rem;
  font-weight: 950;
}

.defensive-category-grid {
  display: grid;
  gap: 7px;
}

.defensive-category-item {
  display: grid;
  grid-template-columns: 92px minmax(60px, 1fr) 28px;
  align-items: center;
  gap: 8px;
}

.defensive-category-item > span:first-child {
  font-size: 0.7rem;
  font-weight: 780;
}

.defensive-category-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e2f2;
}

.defensive-category-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6c5ba0;
}

.defensive-category-item--block .defensive-category-track > span {
  background: #8872bd;
}

.defensive-category-item strong {
  color: #514284;
  text-align: right;
}

.stats-group-heading--defensive,
.defensive-stat-cell {
  background: #f5f2fc;
}

.stats-group-heading--defensive {
  border-left: 2px solid #c9c0df;
  color: #514284 !important;
}

.defensive-stat-cell--total {
  border-left: 2px solid #c9c0df;
  color: #514284;
  font-weight: 900;
}

.stats-table tbody tr:hover .defensive-stat-cell {
  background: #ebe6f7;
}

.stats-table--outfield {
  min-width: 1560px;
}

.stats-table--goalkeepers {
  min-width: 1450px;
}

@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .live-step--events .event-button {
    min-height: 62px;
    padding: 6px 8px;
  }

  .live-step--events .event-button small {
    font-size: 0.62rem;
  }

  .match-period-filter {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 13px;
  }

  .match-period-button {
    min-height: 58px;
    padding: 6px 9px;
  }

  .assist-dialog {
    max-height: calc(100vh - 20px);
  }

  .assist-player-button {
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 900px) {
  .match-period-filter,
  .creation-overview-card,
  .defensive-overview-card {
    grid-template-columns: 1fr;
  }

  .shot-outcome-overview {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid #b8d3e3;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .assist-player-grid,
  .shot-outcome-grid,
  .zone-grid--steal,
  .match-period-toggle {
    grid-template-columns: 1fr;
  }

  .event-dialog-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .match-period-button {
    min-height: 54px;
  }
}

/* Kort, utvisningar och tillgänglighet i livevyn */
.event-button--discipline .event-symbol,
.event-chip--discipline {
  background: linear-gradient(135deg, #ffe38a 0 49%, #f4d7d7 50% 100%);
  color: #7c2727;
  box-shadow: inset 0 0 0 1px rgba(124, 39, 39, 0.14);
}

.zone-dialog--discipline {
  max-width: 680px;
  border-color: #dfb8b8;
}

.zone-grid--discipline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.zone-button--discipline {
  min-height: 104px;
  font-weight: 900;
}

.zone-button--discipline-yellow_card {
  border-color: #e3c44f;
  background: #fff9d8;
  color: #695100;
}

.zone-button--discipline-yellow_card:hover:not(:disabled) {
  border-color: #b99400;
  background: #fff2ad;
  color: #584400;
}

.zone-button--discipline-two_minute {
  border-color: #e0a2a2;
  background: #fff2f2;
  color: #8d2626;
}

.zone-button--discipline-two_minute:hover:not(:disabled) {
  border-color: #bd5656;
  background: #ffe4e4;
  color: #771d1d;
}

.zone-button--discipline-red_card {
  border-color: #c93b3b;
  background: #fbe3e3;
  color: #7d1717;
}

.zone-button--discipline-red_card:hover:not(:disabled) {
  border-color: #971f1f;
  background: #f7cccc;
  color: #681010;
}

.player-list-name-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-list-name-wrap .player-list-name {
  min-width: 0;
  flex: 1 1 auto;
}

.player-discipline-indicators {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.player-discipline-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  display: inline-block;
  border-radius: 50%;
}

.player-discipline-dot--yellow {
  border: 1px solid #b58f00;
  background: #ffd938;
  box-shadow: 0 0 0 2px rgba(255, 217, 56, 0.18);
}

.player-discipline-dot--red {
  border: 1px solid #9f2222;
  background: #d83434;
  box-shadow: 0 0 0 2px rgba(216, 52, 52, 0.16), 0 0 8px rgba(216, 52, 52, 0.34);
}

.player-suspension-badge {
  min-width: 34px;
  padding: 2px 5px;
  border: 1px solid #d89a9a;
  border-radius: 999px;
  background: #fff3f3;
  color: #9a2c2c;
  font-size: 0.57rem;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.player-suspension-badge--warning {
  border-color: #bd3d3d;
  background: #ffe4e4;
  color: #811d1d;
}

.player-list-button--second-suspension,
.player-list-button--second-suspension:hover,
.player-list-button--second-suspension.player-list-button--selected {
  border-color: #c94343;
  background: linear-gradient(135deg, #fffafa, #fff0f0);
  box-shadow: inset 0 0 0 1px rgba(201, 67, 67, 0.18), 0 0 12px rgba(201, 67, 67, 0.26);
}

.player-list-button--second-suspension .player-list-name {
  color: #8f2424;
}

.player-list-button--disqualified,
.player-list-button--disqualified:hover,
.player-list-button--disqualified:disabled {
  opacity: 1;
  border-color: #bd3636;
  background: #fff0f0;
  color: #7f1f1f;
  box-shadow: inset 0 0 0 1px rgba(189, 54, 54, 0.16);
  cursor: not-allowed;
}

.player-list-button--disqualified .player-list-name {
  color: #811f1f;
  text-decoration: line-through;
  text-decoration-color: #a92525;
  text-decoration-thickness: 2px;
}

.player-list-button--disqualified .player-list-number {
  color: #9b3030;
}

.player-list-button--disqualified .player-list-position {
  background: #f1dede;
  color: #8a3434;
}

.event-empty--unavailable {
  border-color: #e1abab;
  background: #fff5f5;
}

.event-empty--unavailable strong {
  color: #8b2626;
}

.discipline-overview-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.78fr) minmax(390px, 1.22fr);
  gap: 18px;
  padding: 16px 18px;
  overflow: hidden;
  border-color: #dfbcbc;
  background: linear-gradient(135deg, #fffdf3 0 36%, #fff7f7 36% 100%);
}

.discipline-overview-total {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.discipline-overview-total h2,
.discipline-overview-total p {
  margin-bottom: 0;
}

.discipline-overview-total p:last-child {
  margin-top: 3px;
  font-size: 0.75rem;
}

.discipline-overview-total > strong {
  color: #8b2828;
  font-size: 2.25rem;
  letter-spacing: -0.05em;
}

.discipline-icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
}

.discipline-icon i,
.discipline-icon b {
  position: absolute;
  top: 7px;
  width: 22px;
  height: 32px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(60, 30, 20, 0.14);
}

.discipline-icon i {
  left: 2px;
  z-index: 2;
  border: 1px solid #b99300;
  background: #ffd83d;
  transform: rotate(-8deg);
}

.discipline-icon b {
  right: 2px;
  border: 1px solid #9e2424;
  background: #d63a3a;
  transform: rotate(8deg);
}

.discipline-category-grid {
  display: grid;
  gap: 7px;
}

.discipline-category-item,
.discipline-disqualified {
  display: grid;
  grid-template-columns: 104px minmax(60px, 1fr) 28px;
  align-items: center;
  gap: 8px;
}

.discipline-category-item > span:first-child,
.discipline-disqualified > span:first-child {
  font-size: 0.7rem;
  font-weight: 800;
}

.discipline-category-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0dddd;
}

.discipline-category-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #bd4646;
}

.discipline-category-item--yellow_card .discipline-category-track {
  background: #f1e7b7;
}

.discipline-category-item--yellow_card .discipline-category-track > span {
  background: #d4ab16;
}

.discipline-category-item--two_minute .discipline-category-track > span {
  background: #d16a6a;
}

.discipline-category-item strong,
.discipline-disqualified strong {
  color: #8b2828;
  text-align: right;
}

.discipline-disqualified {
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid #e6caca;
}

.stats-group-heading--discipline,
.discipline-stat-cell {
  background: #fff2f2;
}

.stats-group-heading--discipline {
  border-left: 2px solid #d8aaaa;
  color: #8b2828 !important;
}

.discipline-stat-cell--yellow {
  background: #fff9dc;
  color: #725a00;
}

.discipline-stat-cell--suspension {
  border-left: 2px solid #d8aaaa;
  color: #9a2c2c;
  font-weight: 850;
}

.discipline-stat-cell--red,
.discipline-stat-cell--status {
  color: #8b2828;
}

.discipline-stat-cell--out {
  background: #f7dada;
  color: #751717;
  font-weight: 950;
  text-decoration: line-through;
}

.stats-table tbody tr:hover .discipline-stat-cell {
  background: #f9e4e4;
}

.stats-table tbody tr:hover .discipline-stat-cell--yellow {
  background: #fff3bb;
}

.stats-table--outfield {
  min-width: 1820px;
}

.stats-table--goalkeepers {
  min-width: 1710px;
}

@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .player-discipline-dot {
    width: 11px;
    height: 11px;
    flex-basis: 11px;
  }

  .player-suspension-badge {
    min-width: 29px;
    padding: 2px 4px;
    font-size: 0.52rem;
  }
}

@media (max-width: 900px) {
  .discipline-overview-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .zone-grid--discipline {
    grid-template-columns: 1fr;
  }
}

.assist-player-name-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.assist-player-name-wrap > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assist-player-button--unavailable,
.assist-player-button--unavailable:hover,
.assist-player-button--unavailable:disabled {
  opacity: 1;
  border-color: #d49a9a;
  background: #fff1f1;
  color: #842424;
  cursor: not-allowed;
}

.assist-player-button--unavailable .assist-player-name-wrap > span:first-child {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

/* Version 2.5.0: grupperad matchtrupp och kompaktare livehändelser */
.roster-position-groups {
  display: grid;
  gap: 12px;
}

.roster-position-group {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--brand-f8faf9, #f8faf9);
}

.roster-position-group--mv {
  border-color: var(--brand-bcd7c8, #bcd7c8);
  background: var(--brand-f3faf6, #f3faf6);
}

.roster-position-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.roster-position-group-heading > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.roster-position-group-heading strong {
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 950;
}

.roster-position-group-heading small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.roster-position-group-heading > span {
  min-width: 25px;
  min-height: 25px;
  display: grid;
  place-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.68rem;
  font-weight: 900;
}

.roster-position-group--mv .roster-position-group-heading > span {
  background: var(--brand-dcefe4, #dcefe4);
}

.event-button--label-only strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

@media (max-width: 680px) {
  .roster-position-group {
    padding: 9px;
  }

  .roster-position-group-heading > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}

/* Version 2.6.0: liveordning, stabil matchstart och sortering i säsongsvyn */
.form-grid--match-setup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
}

.match-field--opponent {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.field input,
.field select {
  min-width: 0;
  box-sizing: border-box;
}


.stats-table--zones { min-width: 700px; table-layout: fixed; }
.stats-table--zones .zone-name-column { width: 160px; }
.stats-table--zones .zone-value-column { width: 90px; }


/* Version 2.9.1: positionssortering, nivåfilter och tydligare skottstatistik */
.season-filters {
  display: flex;
  align-items: end;
  gap: 10px;
}

.season-filters select[multiple] { min-width: 180px; }
.season-filters small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.66rem; }


.player-list-save-pct {
  display: block;
  color: var(--green-700);
  font-size: 0.62rem;
  font-weight: 850;
}

.position-column-chart {
  padding: 0 22px 18px;
}

.position-column-chart-grid {
  min-height: 198px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  align-items: end;
  gap: 16px;
  padding: 10px 18px 0;
  border-bottom: 2px solid var(--brand-c9d8d0, #c9d8d0);
  border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(to top, transparent 0 43px, rgba(61, 105, 82, 0.08) 43px 44px);
}

.position-column-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 22px 145px 32px;
  justify-items: center;
  align-items: end;
  gap: 6px;
}

.position-column-value {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.position-column-value b {
  color: var(--green-900);
}

.position-column-track {
  position: relative;
  width: min(48px, 72%);
  height: 145px;
  display: block;
}

.position-column-attempts,
.position-column-goals {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 9px 9px 2px 2px;
}

.position-column-attempts {
  background: var(--brand-dce8e0, #dce8e0);
}

.position-column-goals {
  background: linear-gradient(0deg, var(--green-700), var(--green-500, var(--brand-2aa868, #2aa868)));
}

.position-column-item > strong {
  align-self: start;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.75rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.position-column-chart > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.goal-map-coverage-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
  text-align: right;
}
.goal-map-coverage-badge strong { color: var(--green-900); font-size: 0.78rem; }
.goal-map-coverage-badge small { color: var(--muted); font-size: 0.6rem; font-weight: 800; }

@media (max-width: 680px) {
  .season-filters { width: 100%; align-items: stretch; flex-direction: column; }
  .season-filters .field { width: 100%; }
  .season-filters select[multiple] { width: 100%; }
  .position-column-chart { padding-right: 12px; padding-left: 12px; overflow-x: auto; }
  .position-column-chart-grid { min-width: 520px; gap: 12px; padding-right: 10px; padding-left: 10px; }
}

@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .match-setup-card .form-grid--match-setup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }

  .match-setup-card .form-grid--match-setup .match-field--opponent {
    grid-column: 1 / -1;
  }

  .match-setup-card .field input {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.94rem;
  }
}

/* Version 2.7.0: bestraffning och användarhantering för administratörer */
.toast--warning {
  background: #8a5a0a;
}

.admin-users-page {
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(430px, 1.08fr);
  gap: 16px;
  align-items: start;
}

.admin-users-card,
.admin-members-card {
  min-width: 0;
  overflow: hidden;
}

.admin-users-card .card-heading,
.admin-members-card .card-heading {
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-users-card .card-heading h2,
.admin-users-card .card-heading p,
.admin-members-card .card-heading h2,
.admin-members-card .card-heading p {
  margin-bottom: 0;
}

.admin-users-card .card-heading p:last-child,
.admin-members-card .card-heading p:last-child {
  margin-top: 5px;
  color: var(--muted);
}

.admin-online-badge,
.admin-member-count {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f2e8e8;
  color: #7f3131;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-online-badge--online,
.admin-member-count {
  background: var(--green-100);
  color: var(--green-900);
}

.admin-user-form {
  padding: 20px 22px 22px;
  background: var(--brand-fbfcfb, #fbfcfb);
}

.admin-team-access-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.admin-team-access-field legend { margin-bottom: 7px; color: var(--ink); font-size: 0.78rem; font-weight: 850; }
.team-access-options { display: flex; flex-wrap: wrap; gap: 7px; }
.team-access-option { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-size: 0.75rem; font-weight: 750; }
.team-access-option:has(input:checked) { border-color: var(--brand-77ad8e, #77ad8e); background: var(--green-50); color: var(--green-900); }
.team-access-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--green-700); }

.form-grid--admin-user {
  grid-template-columns: minmax(0, 1fr);
}

.admin-user-explanation {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--brand-cfe3d6, #cfe3d6);
  border-radius: 12px;
  background: var(--green-50);
  color: var(--brand-315e49, #315e49);
  font-size: 0.78rem;
  line-height: 1.45;
}

.admin-user-explanation strong {
  color: var(--green-900);
}

.admin-user-actions {
  align-items: flex-end;
}

.admin-user-actions > .form-hint {
  max-width: 430px;
  line-height: 1.4;
}

.admin-members-list {
  display: grid;
  gap: 8px;
  padding: 14px 18px 18px;
}

.admin-member {
  min-height: 64px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-fbfcfb, #fbfcfb);
}

.member-team-access { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 9px; border-top: 1px solid var(--line); }
.member-team-access > strong { width: 100%; color: var(--green-900); font-size: 0.72rem; }
.member-team-access .team-access-options { flex: 1 1 260px; }
.member-team-access--locked span { color: var(--muted); font-size: 0.72rem; }
.member-team-role { display:flex; flex:1 1 220px; min-width:0; flex-direction:column; gap:5px; color:var(--ink); font-size:0.75rem; font-weight:750; }
.member-team-role select { width:100%; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--ink); font:inherit; }
.member-team-hint { flex-basis:100%; color:var(--muted); font-size:0.72rem; }
.admin-terms { max-width:850px; padding:22px; }
.admin-terms li { margin-bottom:12px; line-height:1.6; }
.admin-terms-check { display:flex; align-items:flex-start; gap:12px; margin:18px 0; line-height:1.6; }
.admin-terms-check input { flex:0 0 22px; width:22px; height:22px; margin-top:3px; accent-color:var(--green-700); }
.admin-terms-version { color:var(--muted); font-size:0.8rem; }

.admin-member--inactive {
  opacity: 0.66;
  background: #f5f5f5;
}

.admin-member-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.admin-member-status--active {
  background: var(--brand-1f9d61, #1f9d61);
  box-shadow: 0 0 0 4px rgba(31, 157, 97, 0.12);
}

.admin-member-status--inactive {
  background: #9aa3a0;
}

.admin-member-main {
  min-width: 0;
}

.admin-member-main strong,
.admin-member-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-member-main strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.admin-member-main strong small {
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.admin-member-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.admin-member-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-role-badge,
.admin-active-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-role-badge--member {
  background: var(--brand-edf3ef, #edf3ef);
  color: var(--brand-3d5c4d, #3d5c4d);
}

.admin-role-badge--admin {
  border: 1px solid var(--brand-bcd9c7, #bcd9c7);
  background: var(--brand-e6f3eb, #e6f3eb);
  color: var(--green-900);
}

.admin-active-badge {
  background: #ededed;
  color: #6d7471;
}

.admin-active-badge--active {
  background: var(--brand-eaf6ee, #eaf6ee);
  color: var(--brand-246a45, #246a45);
}

.admin-reset-button {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.admin-users-loading {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.loading-spinner--small {
  width: 22px;
  height: 22px;
  margin: 0;
  border-width: 3px;
}

.admin-users-footnote {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .admin-users-page {
    grid-template-columns: 1fr;
  }

  .form-grid--admin-user {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .form-grid--admin-user {
    grid-template-columns: 1fr;
  }

  .admin-user-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-user-actions .button {
    width: 100%;
  }

  .admin-member {
    grid-template-columns: 10px minmax(0, 1fr) auto;
  }

  .admin-member-meta {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .admin-reset-button {
    grid-column: 2 / -1;
    grid-row: auto;
    width: 100%;
  }
}


/* Version 2.10.1: kompakt säsongsstatistik och zoncirklar */

/* Version 2.16.0: speltidsläge, matchklocka och positionsgrupper */
.live-scoreboard-stack {
  min-width: 250px;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.live-clock {
  display: grid;
  grid-template-columns: 34px auto auto;
  align-items: center;
  gap: 8px;
  min-width: 176px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: white;
}
.live-clock strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.live-clock [data-live-clock-status] { display: block; color: #fff; font-size: 0.65rem; letter-spacing: 0; }
.live-clock small { color: rgba(255, 255, 255, 0.68); font-size: 0.61rem; font-weight: 800; }
.live-clock-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--green-900);
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}
.live-clock--running { border-color: rgba(155, 239, 187, 0.62); background: rgba(0, 0, 0, 0.28); }
.live-clock--running .live-clock-button { background: var(--brand-dff7e7, #dff7e7); }
.live-clock--paused:not(.live-clock--max) {
  border-color: #ffb4ad;
  background: #721f26;
  box-shadow: 0 0 0 3px #ffb4ad;
}
.live-clock--paused:not(.live-clock--max) .live-clock-button {
  background: #fff;
  color: #8d1723;
  box-shadow: 0 0 0 2px #ffb4ad;
}
.live-clock--paused:not(.live-clock--max) [data-live-clock-status] {
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}
.live-clock--max { border-color: rgba(255, 255, 255, 0.34); background: rgba(0, 0, 0, 0.34); }
.live-clock--max .live-clock-button,
.live-clock-button:disabled { background: var(--brand-e7ece9, #e7ece9); color: #66736c; cursor: not-allowed; }

.live-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.live-mode-bar p { margin: 0; color: var(--muted); font-size: 0.76rem; }
.live-mode-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--brand-bdd3c5, #bdd3c5);
  border-radius: 10px;
  background: var(--brand-f3f7f4, #f3f7f4);
}
.live-mode-button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--brand-d3e2d8, #d3e2d8);
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}
.live-mode-button:last-child { border-right: 0; }
.live-mode-button--active { background: var(--green-800); color: white; }

.live-grid--event-first {
  grid-template-columns: minmax(270px, 0.75fr) minmax(360px, 1.25fr);
}
.live-event-cancel { margin-left: auto; white-space: nowrap; }

.player-list-group--position,
.player-list-group--goalkeepers {
  padding-top: 10px;
  border-top: 1px solid var(--brand-d5e8dc, #d5e8dc);
}
.live-player-list > .player-list-group:first-child { padding-top: 0; border-top: 0; }
.player-list-group--position .player-list { max-height: none; overflow: visible; padding-right: 0; }
.player-list-button--lineup { transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, opacity 140ms ease; }
.player-list-button--active,
.player-list-button--active:hover {
  border-color: var(--green-700);
  background: var(--team-secondary-soft, var(--brand-e0f3e7, #e0f3e7));
  box-shadow: inset 0 0 0 1px var(--green-700), 0 4px 12px rgba(7, 95, 60, 0.1);
}
.player-list-button--inactive:not(.player-list-button--event-eligible) {
  border-color: #e1e5e2;
  background: var(--brand-f3f5f4, #f3f5f4);
  color: #6f7873;
  opacity: 0.68;
  box-shadow: none;
}
.player-list-button--event-eligible {
  border-color: var(--brand-1f8a58, #1f8a58);
  background: var(--brand-e5f6eb, #e5f6eb);
  box-shadow: 0 0 0 3px rgba(31, 138, 88, 0.15);
}
.player-list-button--lineup:disabled:not(.player-list-button--disqualified) {
  cursor: not-allowed;
  opacity: 0.38;
}
.player-list-playing-time {
  display: block;
  color: var(--green-800);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}
.player-list-button--inactive .player-list-playing-time { color: #707a74; }


@media (max-width: 1100px) {
  .live-grid--event-first { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .live-mode-bar { align-items: stretch; flex-direction: column; }
  .live-mode-toggle { width: 100%; }
  .live-mode-button { flex: 1; }
  .live-scoreboard-stack { width: 100%; min-width: 0; }
}

/* Version 2.16.1: popupflöde, automatisk målvakt och låst livebanner */
.live-match-strip {
  position: sticky;
  top: 84px;
  z-index: 14;
  box-shadow: 0 10px 24px rgba(3, 42, 28, 0.2);
}

.live-mobile-utility { display: none; }

.event-player-dialog { width: min(720px, calc(100vw - 28px)); }
.event-player-roster { max-height: min(62vh, 560px); overflow-y: auto; padding-right: 3px; }
.opponent-suspension-option {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 4px 0 12px;
  padding: 12px 14px;
  border: 2px solid var(--brand-6eb18b, #6eb18b);
  border-radius: 13px;
  background: var(--brand-edf8f1, #edf8f1);
  color: var(--green-950);
  text-align: left;
  cursor: pointer;
}
.opponent-suspension-option:hover,
.opponent-suspension-option:focus-visible { border-color: var(--green-800); background: var(--brand-dff1e6, #dff1e6); }
.opponent-suspension-option-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 950;
}
.opponent-suspension-option strong,
.opponent-suspension-option small { display: block; }
.opponent-suspension-option strong { font-size: 0.9rem; }
.opponent-suspension-option small { margin-top: 2px; color: var(--muted); font-size: 0.68rem; }
.event-player-divider {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 11px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-player-divider::before,
.event-player-divider::after { content: ''; height: 1px; flex: 1; background: var(--line); }

.empty-net-dialog { width: min(520px, calc(100vw - 28px)); }
.empty-net-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

@media (min-width: 901px) and (max-width: 1180px) and (orientation: landscape) {
  .live-match-strip { top: 72px; }
}

@media (max-width: 900px) {
  .live-match-strip { top: 72px; }
}

@media (max-width: 680px) {
  .live-match-strip {
    top: 66px;
    grid-template-columns: 1fr;
    padding: 8px 10px;
  }
  .live-match-strip > .live-match-meta,
  .live-match-strip > .live-strip-actions { display: none; }
  .live-match-strip > .live-scoreboard-stack {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(128px, 1fr) auto;
    align-items: center;
    gap: 7px;
  }
  .live-match-strip .scoreboard--live {
    width: auto;
    min-width: 0;
    margin: 0;
    grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr);
    gap: 5px;
  }
  .live-match-strip .score-team small { display: none; }
  .live-match-strip .score-team strong { font-size: 1.65rem; }
  .live-match-strip .score-separator { font-size: 1.15rem; }
  .live-clock {
    min-width: 142px;
    grid-template-columns: 30px auto;
    gap: 6px;
    padding: 4px 7px;
  }
  .live-clock small { display: none; }
  .live-clock-button { width: 28px; height: 28px; }

  .live-mobile-utility {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .live-mobile-utility > div { display: flex; align-items: center; gap: 8px; }
  .live-mobile-utility > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .live-mobile-utility .live-label { color: var(--danger) !important; }
  .live-mobile-utility .pulse-dot { background: var(--danger); }
  .live-mobile-utility .button { width: 100%; }

  .empty-net-actions { grid-template-columns: 1fr; }
}

/* Version 2.16.2: rymligare spelarnamn och bytespopup */
.player-list-button {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
}

.player-list-name-wrap {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
}

.player-list-name-wrap .player-list-name {
  width: 100%;
  min-width: 0;
  line-height: 1.12;
}

.player-list-meta {
  min-width: 0;
  min-height: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  line-height: 1;
}

.player-list-meta .player-list-save-pct {
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-list-meta .player-list-playing-time { flex: 0 0 auto; }
.player-list-meta .player-discipline-indicators { margin-left: auto; }
.player-list-button .player-list-position { display: none; }

.live-player-list--dense .player-list-button {
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 5px;
}

.live-player-list--dense .player-list-name-wrap { gap: 0; }
.live-player-list--dense .player-list-meta { min-height: 11px; gap: 4px; }
.live-player-list--dense .player-list-playing-time,
.live-player-list--dense .player-list-save-pct { font-size: 0.56rem; }
.live-player-list--dense .player-suspension-badge { padding-top: 0; padding-bottom: 0; }

.lineup-swap-dialog { width: min(720px, calc(100vw - 28px)); }
.lineup-swap-roster { max-height: min(62vh, 560px); overflow-y: auto; padding-right: 3px; }


/* Version 2.16.4: kompakt livehuvud och separata straffhändelser */
.section-heading--players {
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr);
  align-items: center;
}

.section-heading-copy { min-width: 0; }
.section-heading-copy p strong { color: var(--green-800); font-variant-numeric: tabular-nums; }

.event-button--penalty_for .event-symbol,
.event-button--penalty_against .event-symbol { font-size: 0.62rem; letter-spacing: -0.04em; }
.event-grid-separator {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.event-grid-separator::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.penalty-flow-dialog { width: min(720px, calc(100vw - 28px)); }
.penalty-outcome-grid .shot-outcome-button--goal { border-color: var(--brand-78b691, #78b691); background: var(--brand-e7f5ec, #e7f5ec); }
.penalty-outcome-grid .shot-outcome-button--miss { border-color: #d7aa73; background: #fff6e8; }

@media (max-width: 520px) {
  .section-heading--players { grid-template-columns: auto minmax(58px, 1fr); gap: 6px; }
}


/* Version 2.19.0: tydlig bekräftelse innan en match tas bort */
.delete-match-dialog {
  width: min(520px, 100%);
}

.delete-match-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 15px;
  border: 1px solid #efc9bd;
  border-radius: 15px;
  background: #fff6f3;
}

.delete-match-warning-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a63726;
  color: white;
  font-size: 1.25rem;
  font-weight: 950;
}

.delete-match-summary strong {
  display: block;
  color: #64261d;
  font-size: 1rem;
}

.delete-match-summary p {
  margin: 5px 0 7px;
  color: #6f4038;
  font-size: 0.85rem;
}

.delete-match-summary small {
  display: block;
  color: #82564f;
  font-size: 0.75rem;
  line-height: 1.45;
}

.delete-match-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .delete-match-dialog { padding: 18px; }
  .delete-match-summary { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  .delete-match-warning-symbol { width: 34px; height: 34px; }
  .delete-match-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .delete-match-actions .button { width: 100%; padding-inline: 10px; }
}

/* Version 2.20.0: papperskorg och återställning av matcher */
.history-page {
  display: grid;
  gap: 12px;
}

.history-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.history-toolbar h2,
.history-toolbar p {
  margin-bottom: 0;
}

.history-toolbar > div > p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.history-deleted-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.history-deleted-toggle strong {
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--brand-dfe8e3, #dfe8e3);
  color: var(--green-900);
  font-size: 0.72rem;
}

.history-deleted-toggle--active {
  border-color: var(--green-700);
  background: var(--green-100);
}

.deleted-matches-card {
  overflow: hidden;
  border-color: var(--brand-c9d4ce, #c9d4ce);
  background: var(--brand-f7f9f8, #f7f9f8);
}

.deleted-matches-card .card-heading {
  padding: 18px 20px 12px;
}

.deleted-match-list {
  display: grid;
  padding: 0 14px 14px;
}

.deleted-match-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.75fr) minmax(170px, 1.25fr) 76px minmax(190px, 1.35fr) minmax(120px, auto);
  align-items: center;
  gap: 14px;
  padding: 13px 8px;
  border-top: 1px solid var(--brand-d6dfda, #d6dfda);
}

.deleted-match-date strong,
.deleted-match-date span,
.deleted-match-opponent span,
.deleted-match-opponent strong,
.deleted-match-score span,
.deleted-match-score strong,
.deleted-match-meta span,
.deleted-match-meta small,
.deleted-match-action small {
  display: block;
}

.deleted-match-date span,
.deleted-match-opponent span,
.deleted-match-score span,
.deleted-match-meta small,
.deleted-match-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.deleted-match-opponent,
.deleted-match-meta {
  min-width: 0;
}

.deleted-match-opponent strong {
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deleted-match-score {
  text-align: center;
}

.deleted-match-score strong {
  margin-top: 2px;
  color: var(--green-900);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.deleted-match-meta span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.deleted-match-action {
  text-align: right;
}

.deleted-match-action small {
  max-width: 170px;
}

.restore-match-dialog {
  width: min(520px, 100%);
}

.restore-match-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--brand-bfd9c9, #bfd9c9);
  border-radius: 15px;
  background: var(--brand-f1faf5, #f1faf5);
}

.restore-match-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: white;
  font-size: 1.3rem;
  font-weight: 950;
}

.restore-match-summary strong {
  display: block;
  color: var(--green-950);
  font-size: 1rem;
}

.restore-match-summary p {
  margin: 5px 0 7px;
  color: var(--green-900);
  font-size: 0.85rem;
}

.restore-match-summary small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.restore-match-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 760px) {
  .history-toolbar {
    display: grid;
    gap: 14px;
  }

  .history-deleted-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .deleted-match-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 14px 8px;
  }

  .deleted-match-date { grid-column: 1; grid-row: 1; }
  .deleted-match-score { grid-column: 2; grid-row: 1; }
  .deleted-match-opponent { grid-column: 1 / -1; grid-row: 2; }
  .deleted-match-meta { grid-column: 1; grid-row: 3; }
  .deleted-match-action { grid-column: 2; grid-row: 3; }
}

@media (max-width: 480px) {
  .history-toolbar { padding: 16px; }
  .deleted-matches-card .card-heading { align-items: flex-start; padding: 16px 14px 10px; }
  .deleted-match-list { padding-inline: 10px; }
  .deleted-match-action .button { width: 100%; }
  .restore-match-dialog { padding: 18px; }
  .restore-match-summary { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  .restore-match-symbol { width: 34px; height: 34px; }
  .restore-match-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .restore-match-actions .button { width: 100%; padding-inline: 10px; }
}

/* Version 2.22.0: säsongsfilter, strafftabell och fördjupad spelarsida */

.season-penalty-card {
  overflow: hidden;
}

.season-penalty-table {
  min-width: 760px;
}

.season-penalty-table th:first-child,
.season-penalty-table td:first-child {
  min-width: 220px;
}


.development-selected-match-card,
.development-total-card {
  padding: 24px;
}

.development-selected-match-heading,
.development-total-heading {
  align-items: flex-end;
  gap: 18px;
}

.development-selected-match-heading > div,
.development-total-heading > div {
  min-width: 0;
}

.development-selected-match-heading h2,
.development-total-heading h2 {
  margin-top: 5px;
}

.development-match-select-field {
  min-width: min(420px, 44vw);
}

.development-competition-field {
  min-width: min(280px, 34vw);
}

.development-match-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.development-match-metrics article {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--brand-fbfdfc, #fbfdfc);
}

.development-match-metrics span,
.development-match-metrics small {
  display: block;
}

.development-match-metrics span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.development-match-metrics strong {
  display: block;
  margin: 6px 0 3px;
  color: var(--green-900);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.development-match-metrics small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.development-total-card .development-summary-grid {
  margin-top: 18px;
}

.development-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 18px;
}

.development-analysis-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--brand-fbfdfc, #fbfdfc);
}

.development-analysis-heading h3 {
  margin: 4px 0 0;
  color: var(--green-950);
  font-size: 1.05rem;
}

.development-breakdown {
  margin-top: 14px;
}

.development-breakdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--green-50);
}

.development-breakdown-total span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.development-breakdown-total strong {
  color: var(--green-900);
  font-size: 1.2rem;
}

.development-breakdown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.development-breakdown-list > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--brand-e3ebe6, #e3ebe6);
  border-radius: 10px;
  background: white;
}

.development-breakdown-list small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.development-breakdown-list strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.development-breakdown-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.development-situation-scroll {
  padding: 0;
  margin-top: 10px;
}

.development-situation-table {
  min-width: 440px;
}

.development-situation-table th,
.development-situation-table td {
  padding: 9px 10px;
}

.development-situation-table th:first-child {
  text-align: left;
}

@media (max-width: 1050px) {
  .development-match-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .development-selected-match-heading,
  .development-total-heading { align-items: stretch; flex-direction: column; }
  .development-match-select-field,
  .development-competition-field { min-width: 0; width: 100%; }
  .development-analysis-grid { grid-template-columns: 1fr; }
  .development-match-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .development-match-metrics { grid-template-columns: 1fr; }
  .development-breakdown-list { grid-template-columns: 1fr; }
}

/* Version 2.25.0: clearer shot bars, opaque topbar, explicit time units and cleaner player KPIs */
.bar-chart-total {
  display: flex;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: inherit;
}

.bar-chart-segment {
  display: block;
  height: 100%;
  min-width: 0;
}

.insight-card--attack .bar-chart-segment--success { background: var(--green-700); }
.insight-card--attack .bar-chart-segment--miss { background: var(--brand-a8cfb8, #a8cfb8); }
.insight-card--defence .bar-chart-segment--success { background: #a76a16; }
.insight-card--defence .bar-chart-segment--miss { background: #ead9bb; }


.timeout-trigger { white-space: nowrap; }

.timeout-overlay {
  position: fixed;
  inset: 0;
  z-index: 2600;
  overflow-y: auto;
  padding: 14px;
  background: rgba(8, 24, 17, 0.72);
  backdrop-filter: blur(5px);
}

.timeout-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 28px);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--brand-b8d1c1, #b8d1c1);
  border-radius: 20px;
  background: var(--brand-f7faf8, #f7faf8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.timeout-header,
.timeout-footer,
.timeout-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.timeout-header {
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--line);
}

.timeout-header h2 {
  margin: 3px 0 0;
  color: var(--green-950);
  font-size: 1.55rem;
}

.timeout-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--brand-bfd3c6, #bfd3c6);
  border-radius: 50%;
  background: white;
  color: var(--green-900);
  font: inherit;
  font-size: 1.5rem;
  cursor: pointer;
}

.timeout-close:hover,
.timeout-close:focus-visible { background: var(--green-50); border-color: var(--green-700); }

.timeout-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.timeout-kpi {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--brand-d3e1d8, #d3e1d8);
  border-radius: 12px;
  background: white;
}

.timeout-kpi small,
.timeout-kpi span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeout-kpi strong {
  display: block;
  margin: 3px 0 1px;
  overflow: hidden;
  color: var(--green-950);
  font-size: 1.18rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeout-chart-grid,
.timeout-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.timeout-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--brand-d4e1d8, #d4e1d8);
  border-radius: 14px;
  background: white;
}

.timeout-panel-heading { align-items: flex-end; margin-bottom: 8px; }
.timeout-panel-heading h3 { margin: 2px 0 0; color: var(--green-950); font-size: 1rem; }
.timeout-panel-heading > small { color: var(--muted); font-size: 0.62rem; text-align: right; }
.timeout-panel-kicker { color: var(--green-700); font-size: 0.6rem; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }

.timeout-signal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.timeout-signal {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--brand-dce5df, #dce5df);
  border-radius: 10px;
  background: var(--brand-fafcfb, #fafcfb);
}
.timeout-signal--warning { border-color: #ecd3ab; background: #fff9ef; }
.timeout-signal--positive { border-color: var(--brand-badcc8, #badcc8); background: var(--brand-f2faf5, #f2faf5); }
.timeout-signal-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-eef3f0, #eef3f0);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 950;
}
.timeout-signal--warning .timeout-signal-icon { background: #f3dfbd; color: #7a4a0d; }
.timeout-signal--positive .timeout-signal-icon { background: var(--brand-d7eee0, #d7eee0); color: var(--green-900); }
.timeout-signal strong,
.timeout-signal small { display: block; min-width: 0; }
.timeout-signal strong { color: var(--ink); font-size: 0.72rem; line-height: 1.2; }
.timeout-signal small { margin-top: 2px; color: var(--muted); font-size: 0.6rem; line-height: 1.25; }


.timeout-empty {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px dashed var(--brand-cfdad3, #cfdad3);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.68rem;
}
.timeout-empty strong { color: var(--ink); font-size: 0.75rem; }
.timeout-empty--compact { padding: 8px 10px; }

.timeout-chart-grid .insight-card {
  margin: 0;
  min-width: 0;
  box-shadow: none;
}
.timeout-chart-grid .insight-card--compact { padding: 10px 12px 11px; }
.timeout-chart-grid .insight-card-heading { margin-bottom: 7px; }
.timeout-chart-grid .insight-card-heading h3 { font-size: 0.93rem; }
.timeout-chart-grid .insight-card-heading p { font-size: 0.62rem; }
.timeout-chart-grid .bar-chart { gap: 4px; }
.timeout-chart-grid .bar-chart-row { grid-template-columns: 82px minmax(80px, 1fr) 30px 34px; gap: 6px; }
.timeout-chart-grid .bar-chart-label { font-size: 0.64rem; }
.timeout-chart-grid .bar-chart-track { height: 8px; }
.timeout-chart-grid .bar-chart-row strong { font-size: 0.68rem; }
.timeout-chart-grid .bar-chart-row small { font-size: 0.6rem; }

.timeout-breakdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: 9px;
  background: var(--green-50);
}
.timeout-breakdown-total span { color: var(--muted); font-size: 0.66rem; font-weight: 800; }
.timeout-breakdown-total strong { color: var(--green-900); font-size: 1rem; }
.timeout-breakdown-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
.timeout-breakdown-list > span,
.timeout-defence-kpis > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--brand-e0e8e3, #e0e8e3);
  border-radius: 8px;
}
.timeout-breakdown-list small,
.timeout-defence-kpis small { overflow: hidden; color: var(--muted); font-size: 0.6rem; text-overflow: ellipsis; white-space: nowrap; }
.timeout-breakdown-list strong,
.timeout-defence-kpis strong { color: var(--ink); font-size: 0.72rem; }
.timeout-defence-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.timeout-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.timeout-footer > span { color: var(--muted); font-size: 0.65rem; }


@media (max-width: 980px) {
  .timeout-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .timeout-overlay { padding: 0; }
  .timeout-shell { min-height: 100vh; border: 0; border-radius: 0; }
  .timeout-chart-grid,
  .timeout-bottom-grid { grid-template-columns: 1fr; }
  .timeout-signal-list { grid-template-columns: 1fr; }
  .timeout-footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 520px) {
  .timeout-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeout-breakdown-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .live-mobile-utility .timeout-trigger { grid-column: 1 / -1; }
}


/* Season phase/zone groups and richer player KPIs */
.stats-table--zones .stats-zone-group-row th {
  border-bottom: 1px solid var(--line);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stats-table--zones .stats-zone-group--attack {
  background: var(--brand-eef8f1, #eef8f1);
  color: var(--green-800);
}
.stats-table--zones .stats-zone-group--goalkeeper {
  border-left: 3px solid #9fb7c5;
  background: #eef4f7;
  color: #31586a;
}
.stats-table--zones .stats-zone-goalkeeper-start {
  border-left: 3px solid #b7c9d3;
}
.stats-table--zones tbody td:nth-child(n+5) {
  background: #f8fbfc;
}

.development-assist-metric {
  min-width: 0;
}
.development-assist-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 7px 0 8px;
}
.development-assist-breakdown > span {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  width: auto;
  padding: 4px 7px;
  border: 1px solid var(--brand-d5e5da, #d5e5da);
  border-radius: 999px;
  background: var(--brand-f0f8f3, #f0f8f3);
  color: var(--green-800) !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1.15;
  text-transform: none !important;
}
.development-assist-breakdown > span b {
  font-weight: 750;
}
.development-assist-breakdown > span strong {
  display: inline !important;
  margin: 0 !important;
  color: var(--green-900);
  font-size: 0.67rem !important;
  letter-spacing: 0 !important;
}
.development-assist-breakdown--empty {
  margin: 7px 0 8px;
  color: var(--muted);
  font-size: 0.66rem;
}
.development-playing-time-metric strong {
  font-variant-numeric: tabular-nums;
}


/* Version 2.26.0: clearer player KPIs, non-sticky header and goalkeeper player analysis */
.topbar {
  position: static;
  top: auto;
  z-index: auto;
  background: var(--background);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.development-match-metrics {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.development-summary-grid.development-summary-grid--outfield {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.development-summary-grid.development-summary-grid--goalkeeper {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.development-goal-efficiency {
  color: var(--green-800) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
}

.development-shot-outcome-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.development-shot-outcome-breakdown > span {
  min-width: 0;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--brand-cfe1d6, #cfe1d6);
  border-radius: 9px;
  background: var(--brand-eef7f1, #eef7f1);
  color: var(--green-900) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.development-shot-outcome-breakdown > span > strong {
  display: inline !important;
  margin: 0 !important;
  color: var(--green-950);
  font-size: 0.92rem !important;
  letter-spacing: -0.02em !important;
}

.development-shot-outcome-breakdown > span > small {
  display: inline !important;
  overflow: visible !important;
  color: var(--green-800) !important;
  font-size: 0.66rem !important;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: clip !important;
  white-space: nowrap;
}

.development-goalkeeper-scoring-metric > strong {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.development-goalkeeper-shot-map {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--brand-fbfdfc, #fbfdfc);
}

.development-goalkeeper-shot-map-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.development-goalkeeper-shot-map-heading h3,
.development-goalkeeper-shot-map-heading p {
  margin-bottom: 0;
}

.development-goalkeeper-shot-map-heading p {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-align: right;
}

.development-goalkeeper-shot-map-layout {
  margin-top: 10px;
}

.development-goalkeeper-locations-card {
  padding-bottom: 20px;
}

.development-goalkeeper-locations-heading {
  align-items: flex-end;
}

.development-goalkeeper-map-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(170px, 1fr);
  gap: 10px;
  width: min(520px, 100%);
}

.development-goalkeeper-locations-card > .development-goalkeeper-shot-map,
.development-goalkeeper-locations-card > .defence-origin-card {
  margin: 12px 22px 0;
}

@media (max-width: 900px) {
  .development-summary-grid.development-summary-grid--outfield { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .development-summary-grid.development-summary-grid--goalkeeper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .development-goalkeeper-shot-map-heading { align-items: flex-start; flex-direction: column; }
  .development-goalkeeper-shot-map-heading p { text-align: left; }
  .development-goalkeeper-locations-heading { align-items: stretch; flex-direction: column; }
  .development-goalkeeper-map-filters { width: 100%; }
}

@media (max-width: 600px) {
  .development-summary-grid.development-summary-grid--outfield,
  .development-summary-grid.development-summary-grid--goalkeeper { grid-template-columns: 1fr; }
  .development-match-metrics { grid-template-columns: 1fr; }
  .development-goalkeeper-map-filters { grid-template-columns: 1fr; }
  .development-goalkeeper-locations-card > .development-goalkeeper-shot-map,
  .development-goalkeeper-locations-card > .defence-origin-card { margin-left: 14px; margin-right: 14px; }
}

/* Keep the sticky match strip below the iOS status area when the app scrolls. */
.live-match-strip { top: var(--app-safe-top); }

/* Older standalone iOS versions can report a zero inset despite drawing a status-bar overlay. */
@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone) {
    :root { --app-safe-top: max(env(safe-area-inset-top, 0px), 20px); }
  }
}

/* Version 2.27.0: opaque app edge, goalkeeper lineup colours and clock limit */
.player-list-group--goalkeepers .player-list-button--active,
.player-list-group--goalkeepers .player-list-button--active:hover {
  border-color: var(--goalkeeper-700);
  background: var(--goalkeeper-100);
  box-shadow: inset 0 0 0 1px var(--goalkeeper-700), 0 4px 12px rgba(182, 47, 104, 0.13);
}

.player-list-group--goalkeepers .player-list-button--inactive:not(.player-list-button--event-eligible) {
  border-color: var(--goalkeeper-200);
  background: var(--goalkeeper-50);
  color: #77656d;
  opacity: 0.72;
}

.player-list-group--goalkeepers .player-list-button--event-eligible {
  border-color: var(--goalkeeper-700);
  background: #fbd6e4;
  box-shadow: 0 0 0 3px rgba(182, 47, 104, 0.18);
}

.player-list-group--goalkeepers .player-list-button--active .player-list-number,
.player-list-group--goalkeepers .player-list-button--active .player-list-playing-time,
.player-list-group--goalkeepers .player-list-button--active .player-list-save-pct {
  color: #8f1f4f;
}

.player-list-group--goalkeepers .player-list-button--inactive .player-list-number,
.player-list-group--goalkeepers .player-list-button--inactive .player-list-playing-time,
.player-list-group--goalkeepers .player-list-button--inactive .player-list-save-pct {
  color: #8c6f7b;
}

/* Version 2.29.0: richer analysis and focused table views */
.match-overview-tabs,
.development-section-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  gap: 7px;
  margin: 12px 0;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(15, 64, 48, 0.07);
}

.match-overview-tab,
.development-section-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.match-overview-tab--active,
.development-section-tab--active {
  border-color: var(--green-700);
  background: var(--green-700);
  color: #fff;
}

.match-coach-signals,
.season-trend-card,
.season-executive-preview,
.development-per30-card,
.development-findings-card,
.development-focus-card,
.development-defence-profile,
.development-discipline-profile,
.development-penalty-profile {
  margin-top: 12px;
}

.match-coach-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 20px;
}

.match-coach-signals > .timeout-empty {
  margin: 0 22px 20px;
}

.match-coach-signal {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft, var(--brand-f4f7f5, #f4f7f5));
}

.match-coach-signal > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 900;
}

.match-coach-signal strong,
.match-coach-signal small { display: block; }
.match-coach-signal strong { font-size: 0.8rem; }
.match-coach-signal small { margin-top: 4px; color: var(--muted); font-size: 0.68rem; line-height: 1.4; }
.match-coach-signal--warning { border-color: #e7c98e; background: #fff9ee; }
.match-coach-signal--positive { border-color: var(--brand-b9dfc8, #b9dfc8); background: var(--green-50); }

.situation-outcome-list { display: grid; gap: 12px; padding: 0 22px; }
.situation-outcome-row {
  display: grid;
  grid-template-columns: minmax(90px, 140px) 1fr minmax(96px, auto);
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
}
.situation-outcome-row > i {
  display: flex;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft, var(--brand-f4f7f5, #f4f7f5));
}
.situation-outcome-row b { display: block; height: 100%; }
.situation-outcome-goal { background: var(--green-700); }
.situation-outcome-saved { background: #70a7d4; }
.situation-outcome-outside { background: #d3a44c; }
.situation-outcome-unknown { background: var(--brand-dfe7e2, #dfe7e2); }
.situation-outcome-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 15px; padding: 0 22px 20px; color: var(--muted); font-size: 0.7rem; }
.situation-outcome-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; }

.season-result-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.season-result-cards article {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.season-result-cards span,
.season-result-cards small { display: block; color: var(--muted); font-size: 0.68rem; font-weight: 750; }
.season-result-cards strong { display: block; margin: 5px 0; color: var(--green-900); font-size: 1.45rem; }

.season-filters--chips { align-items: flex-end; }
.season-competition-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.season-filter-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--green-800);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.season-filter-chip--active { border-color: var(--green-700); background: var(--green-700); color: #fff; }

.season-analysis-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.compact-analysis-list { display: grid; gap: 10px; padding: 0 22px 20px; }
.compact-analysis-list > span { display: grid; grid-template-columns: 85px 1fr 28px; align-items: center; gap: 9px; font-size: 0.72rem; }
.compact-analysis-list i { height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface-soft, var(--brand-f4f7f5, #f4f7f5)); }
.compact-analysis-list b { display: block; height: 100%; background: var(--green-600); }
.penalty-balance-grid,
.development-per30-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; padding: 0 22px 20px; }
.penalty-balance-grid span,
.development-per30-grid span { padding: 12px; border-radius: 12px; background: var(--surface-soft, var(--brand-f4f7f5, #f4f7f5)); }
.penalty-balance-grid small,
.penalty-balance-grid strong,
.development-per30-grid small,
.development-per30-grid strong { display: block; }
.penalty-balance-grid small,
.development-per30-grid small { color: var(--muted); font-size: 0.66rem; font-weight: 750; }
.penalty-balance-grid strong,
.development-per30-grid strong { margin-top: 5px; color: var(--green-900); font-size: 1.15rem; }


.development-findings-card ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 22px 20px; list-style: none; }
.development-findings-card li { padding: 13px; border: 1px solid var(--brand-b9dfc8, #b9dfc8); border-radius: 13px; background: var(--green-50); }
.development-findings-card li strong,
.development-findings-card li span { display: block; }
.development-findings-card li strong { font-size: 0.78rem; }
.development-findings-card li span { margin-top: 5px; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }

.development-focus-card > .development-analysis-grid {
  margin: 6px 22px 20px;
}

.development-focus-card > .development-situation-scroll {
  width: auto;
  margin: 6px 22px 20px;
}

.development-discipline-profile > .development-breakdown {
  margin: 0 22px 20px;
}

.defence-origin-layout {
  padding: 0 22px 20px;
}

.defence-origin-card--season .defence-phase-summary strong {
  max-width: 72%;
  font-size: 0.7rem;
  line-height: 1.25;
  text-align: right;
}


@media (max-width: 1000px) {
  .match-coach-signal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .development-findings-card ul { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .match-overview-tabs,
  .development-section-tabs { top: 0; margin-inline: -2px; }
  .match-coach-signal-grid,
  .season-result-cards,
  .season-analysis-pair,
  .penalty-balance-grid,
  .development-per30-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .situation-outcome-row { grid-template-columns: 78px 1fr; }
  .situation-outcome-row strong { grid-column: 2; font-size: 0.68rem; }
  .match-coach-signal-grid,
  .compact-analysis-list,
  .penalty-balance-grid,
  .development-per30-grid,
  .development-findings-card ul,
  .defence-origin-layout { padding-left: 14px; padding-right: 14px; }
  .situation-outcome-list { padding-inline: 14px; }
  .situation-outcome-legend { padding-left: 14px; padding-right: 14px; }
  .development-focus-card > .development-analysis-grid,
  .development-focus-card > .development-situation-scroll,
  .development-discipline-profile > .development-breakdown { margin-left: 14px; margin-right: 14px; }
}

@media (display-mode: standalone) {
  .match-overview-tabs,
  .development-section-tabs { top: var(--app-safe-top); }
}

@media (max-width: 430px) {
  .match-coach-signal-grid,
  .season-result-cards,
  .season-analysis-pair,
  .penalty-balance-grid,
  .development-per30-grid { grid-template-columns: 1fr; }
}

/* Analysis drill-down keeps the existing period selection and touch targets. */
.stat-card--link { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.stat-card--link:hover { border-color: var(--green-700); background: var(--green-50); }
.stat-card--link:focus-visible, .coach-evidence-button:focus-visible, .match-analysis-details > summary:focus-visible { outline: 3px solid var(--green-700); outline-offset: 3px; }
.coach-evidence-button { display: block; min-height: 44px; margin-top: 6px; text-align: left; }
.evidence-controls { padding: 0 18px 18px; flex-wrap: wrap; }
.match-reading-body { padding: 0 20px 20px; }
.match-reading-outcomes { display: flex; height: 18px; overflow: hidden; border-radius: 6px; margin: 14px 0; }
.match-reading-goal { background: var(--brand-087449, #087449); }
.match-reading-saved { background: #729bc6; }
.match-reading-outside { background: #c49332; }
.match-reading-unknown { background: #89918d; }
.match-reading-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: .8rem; }
.match-reading-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.match-reading-legend i { width: 10px; height: 10px; border-radius: 50%; }
.match-reading-errors { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.match-reading-errors small { display: block; margin-top: 4px; color: var(--muted); }
.match-reading-errors button { min-height: 44px; }
.match-reading-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; padding: 0 20px 20px; }
.match-reading-distribution { min-width: 0; }
.match-reading-distribution--attack { padding-right: 20px; }
.match-reading-distribution--defence { border-left: 2px solid var(--line); padding-left: 20px; }
.match-reading-distribution-heading { padding: 12px 14px; border-radius: 10px; margin-bottom: 10px; }
.match-reading-distribution--attack .match-reading-distribution-heading { background: var(--green-50); color: var(--green-900); }
.match-reading-distribution--defence .match-reading-distribution-heading { background: #edf5fc; color: #245371; }
.match-reading-distribution-heading p { font-size: .78rem; margin: 6px 0 0; }
.match-reading-distribution .table-scroll { padding: 4px 0 12px; }
.match-reading-table { width: 100%; min-width: 0; table-layout: auto; }
.match-reading-table th, .match-reading-table td { padding: 10px 6px; white-space: normal; font-size: .75rem; text-align: right; }
.match-reading-table th { overflow-wrap: normal; }
.match-reading-table th:first-child, .match-reading-table td:first-child { text-align: left; }
.match-reading-table th:first-child { min-width: 44px; overflow-wrap: normal; }
.match-reading-table tbody th { font-weight: 400; color: inherit; text-transform: none; letter-spacing: normal; background: transparent; }
.match-reading-share { display: inline-flex; flex-direction: column; gap: 4px; min-width: 48px; }
.match-reading-share i { height: 4px; background: var(--line); }
.match-reading-share b { display: block; height: 100%; background: var(--green-700); }
.match-reading-distribution--defence .match-reading-share b { background: #397ba6; }
.match-reading-empty-net { padding: 0 20px 20px; color: var(--muted); font-size: .8rem; }
@media (max-width: 1150px) {
  .match-reading-columns { grid-template-columns: 1fr; gap: 20px; }
  .match-reading-distribution--attack { padding-right: 0; }
  .match-reading-distribution--defence { border-left: 0; border-top: 2px solid var(--line); padding: 20px 0 0; }
}
.match-event-list, .situation-outcome-card, .goalkeeper-shot-map-card, .technical-overview-card, .defensive-overview-card, .match-coach-signals { scroll-margin-top: calc(var(--app-safe-top, 0px) + 90px); }

/* Compact overview: preserve the registration grid and iOS safe-area offset. */
.live-match-strip { grid-template-columns: minmax(120px, 1fr) auto auto; padding: 14px 18px; gap: 14px; }
.live-match-strip > .live-match-meta { flex-direction: column; align-items: flex-start; gap: 4px; }
.live-match-strip > .live-scoreboard-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-width: 0; }
.live-strip-actions { flex-direction: column; align-items: stretch; gap: 6px; }
.live-last-registration { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.live-last-registration > div { flex: 1 1 200px; min-width: 0; }
.live-last-registration small, .live-last-registration strong { display: block; }
.live-last-registration small { color: var(--muted); font-size: 0.68rem; }
.live-last-registration strong { font-size: 0.8rem; overflow-wrap: anywhere; }
.live-last-registration button { flex-shrink: 0; }
.live-quick-overview {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.live-quick-overview-heading { flex: 0 0 auto; color: var(--green-900); font-size: 0.84rem; }
.live-quick-overview [data-live-coach] { flex: 1; min-width: 0; }
.live-quick-overview .live-coach-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: normal;
}
.live-quick-overview .live-coach-strip > .live-coach-metric {
  min-width: 0;
  min-height: 44px;
  padding: 2px 10px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.live-quick-overview .live-coach-strip > .live-coach-metric:last-child { border-right: 0; }
.live-quick-overview .live-coach-metric:hover:not(:disabled),
.live-quick-overview .live-coach-metric:focus-visible { background: var(--green-50); }
.live-quick-overview .live-coach-metric:disabled { cursor: default; }
.live-quick-overview .live-coach-strip small,
.live-quick-overview .live-coach-strip em {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-quick-overview .live-coach-strip strong { color: var(--green-950); font-size: 1rem; line-height: 1.15; }
.live-coach-trend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  max-width: 100%;
  margin: 4px 10px 0;
  padding: 4px 8px;
  border: 1px solid var(--brand-c8e7d5, #c8e7d5);
  border-radius: 8px;
  background: var(--brand-f1faf5, #f1faf5);
  color: var(--green-900);
  font-size: 0.68rem;
  text-align: left;
  cursor: pointer;
}
.live-coach-trend--warning { border-color: #f0d9b7; background: #fff8ed; color: #865309; }
.live-coach-trend strong { font-size: 0.72rem; }
.live-coach-trend:hover, .live-coach-trend:focus-visible { text-decoration: underline; }
.timeout-panel--signals,
.timeout-panel--lineup { margin-top: 10px; }
.timeout-panel--quiet { padding: 8px 12px; }
.timeout-attack { margin-top: 10px; }
.timeout-attack-metrics { display: flex; flex-wrap: wrap; gap: 6px; }
.timeout-attack-metric { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1 1 125px; min-width: 0; min-height: 44px; padding: 6px 10px; border: 1px solid var(--brand-d3e1d8, #d3e1d8); border-radius: 8px; background: var(--brand-f4faf6, #f4faf6); color: var(--green-950); font: inherit; cursor: pointer; }
.timeout-attack-metric span { font-size: 0.72rem; font-weight: 750; }
.timeout-attack-metric strong { font-size: 1.1rem; }
.timeout-attack-metric--saved { background: #edf5fc; border-color: #b8d3e9; color: #285d83; }
.timeout-attack-metric--off-target { background: #fdf6e7; border-color: #ead6a7; color: #805b14; }
.timeout-attack-metric--technical { background: #fbf0ed; border-color: #e7c7bd; color: #884834; }
.timeout-attack-metric--unknown { background: #f3f4f4; border-color: #d7dcda; color: var(--brand-54635c, #54635c); }
.timeout-attack-metric:disabled { cursor: default; opacity: 0.65; }
.timeout-attack-metric:not(:disabled):hover, .timeout-attack-metric:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.timeout-attack-comparison { display: block; width: 100%; margin-top: 7px; padding: 5px 0; border: 0; background: transparent; color: var(--green-900); text-align: left; font: inherit; font-size: 0.72rem; cursor: pointer; }
.timeout-attack-comparison span { white-space: nowrap; text-decoration: underline; }
@media (max-width: 680px) {
  .timeout-attack .timeout-panel-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .timeout-attack .timeout-panel-heading > small { text-align: left; }
  .timeout-attack-metric { flex-basis: calc(50% - 6px); }
}
.timeout-quiet { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; }
.timeout-quiet strong { color: var(--ink); font-size: 0.76rem; }
.timeout-quiet small { color: var(--muted); font-size: 0.66rem; }
.match-actions-menu { position: relative; }
.match-actions-menu summary { cursor: pointer; list-style: none; }
.match-actions-menu summary::after { content: ' ▾'; }
.match-actions-menu > div { display: grid; gap: 8px; position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: 210px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #0002; }
@media (max-width: 1100px) {
  .live-match-strip { grid-template-columns: minmax(100px, 1fr) auto; }
  .live-match-strip > .live-strip-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 900px) {
  .live-quick-overview { align-items: flex-start; flex-direction: column; gap: 3px; }
  .live-quick-overview [data-live-coach] { width: 100%; }
}
@media (max-width: 680px) {
  .live-match-strip { grid-template-columns: 1fr; padding: 8px 10px; }
  .live-match-strip > .live-scoreboard-stack { display: grid; grid-template-columns: minmax(100px, 1fr) auto; gap: 6px; }
  .live-mobile-utility .timeout-trigger { grid-column: auto; }
  .live-clock { grid-template-columns: 32px auto; min-width: 0; border-radius: 14px; }
  .live-clock small { display: block; grid-column: 2; font-size: 0.6rem; }
  .live-clock-button { grid-row: 1 / 3; width: 32px; height: 44px; }
  .section-heading--players { grid-template-columns: auto 1fr; }
  .live-quick-overview .live-coach-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 7px; }
  .live-quick-overview .live-coach-strip > .live-coach-metric:nth-child(2) { border-right: 0; }
  .match-actions-menu > div { position: static; margin-top: 8px; width: 100%; }
}
.match-data-loading, .history-summary-migration { padding: 24px; }
.match-data-loading p, .history-summary-migration p { color: var(--muted); }
.history-summary-migration { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.history-summary-migration > div { flex: 1 1 280px; }
.history-result--unknown { background: var(--background); color: var(--muted); }
.match-roster-dialog { width: min(820px, 100%); }
.match-roster-dialog .roster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match-roster-dialog .roster-option { min-width: 0; }
.match-roster-dialog .roster-option small { white-space: normal; }
.match-roster-footer { position: sticky; bottom: -22px; background: white; padding: 16px 0 8px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 550px) { .match-roster-dialog .roster-grid { grid-template-columns: 1fr; } }
/* A waiting release must not crowd the live clock on tablet/mobile. */
.update-button:disabled {
  max-width: 250px;
  white-space: normal;
  line-height: 1.3;
  cursor: default;
}
.profixio-live-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  font-size: 11px;
  color: var(--brand-d4e5df, #d4e5df);
}
.profixio-clock-note {
  display: block;
  margin-top: 4px;
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff0bd;
  color: #5a4100;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}
.live-scoreboard-result { display: grid; gap: 3px; align-self: center; min-width: 0; }
.live-mobile-utility .profixio-mobile-link { grid-column: 1 / -1; }
.profixio-player-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.profixio-player-grid button { display: flex; flex-direction: column; min-height: 62px; gap: 5px; padding: 10px 7px; }
.profixio-player-grid strong { font-size: 1.1rem; }
.profixio-player-grid button[aria-pressed="true"] { outline: 2px solid var(--brand-08764f, #08764f); }
.profixio-player-grid small { white-space: normal; overflow-wrap: anywhere; font-size: .72rem; line-height: 1.2; }
.profixio-link-list { display: grid; gap: 8px; }
.profixio-link-list button { padding: 12px; border: 1px solid var(--brand-d4e5df, #d4e5df); border-radius: 10px; background: var(--brand-f5f9f7, #f5f9f7); text-align: left; cursor: pointer; }
.profixio-link-list span, .profixio-link-list strong { display: block; overflow-wrap: anywhere; }
.profixio-link-list strong { margin-top: 5px; }
.profixio-links-dialog { max-height: 85dvh; overflow-y: auto; }

/* Four compact columns keep opponent counts readable on a phone. */
.profixio-analysis > p { margin: 0 20px 14px; font-size: 0.86rem; }
.profixio-analysis .stats-table { min-width: 0; table-layout: fixed; }
.profixio-analysis .stats-table th,
.profixio-analysis .stats-table td { white-space: normal; overflow-wrap: anywhere; padding: 12px 6px; }
.profixio-analysis .stats-table th:first-child { width: 38%; }
.profixio-analysis .stats-table tfoot { font-weight: 800; border-top: 1px solid var(--line); }
.profixio-analysis .stats-table thead th { font-size: 0.62rem; letter-spacing: 0; }
.profixio-analysis abbr { white-space: nowrap; text-decoration: none; }

/* Read-only opponent card: its filters never change the underlying match view. */
.opponent-card-open {
  border: 0; background: transparent; color: var(--primary, var(--brand-185b3c, #185b3c)); padding: 7px 0;
  min-height: 44px; text-align: left; font: inherit; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.opponent-card-open:focus-visible { outline: 3px solid var(--brand-31805b, #31805b); outline-offset: 3px; border-radius: 3px; }
.opponent-player-card {
  position: relative; z-index: 1; width: min(920px, calc(100vw - 24px));
  max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 24px 22px; border: 1px solid var(--brand-d7e3db, #d7e3db); border-radius: 22px;
  background: #fff; color: var(--brand-183b2d, #183b2d); box-shadow: 0 16px 48px #183b2d26;
}
.opponent-card-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px;
  padding: 20px 0 14px; background: #fff;
}
.opponent-card-shirt {
  flex: 0 0 54px; height: 54px; display: grid; place-items: center;
  background: var(--brand-174b36, #174b36); color: #fff; border-radius: 16px; font-weight: 800; font-size: 23px;
}
.opponent-card-header > div:nth-child(2) { flex: 1; min-width: 0; }
.opponent-card-header h2 { font-size: 25px; margin: 0; overflow-wrap: anywhere; }
.opponent-card-header p { margin: 4px 0 0; color: var(--brand-66776c, #66776c); font-size: 13px; }
.opponent-card-header .modal-close { position: static; flex-shrink: 0; margin-left: auto; }
.opponent-card-periods { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.opponent-card-periods button, .opponent-card-origins button, .opponent-card-selection button {
  border: 1px solid var(--brand-d7e3db, #d7e3db); background: #fff; padding: 10px 13px; min-height: 44px;
  border-radius: 9px; color: var(--brand-214b37, #214b37); font: inherit; font-weight: 700; cursor: pointer;
}
.opponent-card-periods button[aria-pressed="true"], .opponent-card-origins button[aria-pressed="true"] { background: var(--brand-24583f, #24583f); color: #fff; }
.opponent-card-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.opponent-card-metrics > div { padding: 12px; background: var(--brand-f3f7f4, #f3f7f4); border-radius: 12px; }
.opponent-card-metrics strong { font-size: 28px; display: block; }
.opponent-card-metrics span { font-size: 12px; color: var(--brand-52675a, #52675a); }
.opponent-card-maps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.opponent-card-maps > section { min-width: 0; }
.opponent-card-maps h3 { font-size: 18px; margin: 0 0 5px; }
.opponent-card-hint { font-size: 12px; color: var(--brand-617366, #617366); line-height: 1.5; margin: 0 0 12px; }
.opponent-card-origins { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 9px 0; }
.opponent-card-origins button { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; text-align: left; padding: 7px; }
.opponent-card-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.opponent-card-selection button { font-size: 12px; }
.opponent-card-coverage { margin: 18px 0 0; padding: 11px 13px; border-radius: 9px; background: #fbf5e5; color: #655320; font-size: 12px; line-height: 1.5; }
.opponent-player-card .goal-map-visual { padding: 0; }
.opponent-player-card .goal-map-posts { width: 100%; }
.opponent-player-card .defence-court-wrap { margin: 0; }
@media (max-width: 600px) {
  .opponent-player-card { padding: 0 16px 16px; border-radius: 16px; max-height: 92dvh; }
  .opponent-card-header { gap: 10px; padding-top: 16px; }
  .opponent-card-header h2 { font-size: 20px; }
  .opponent-card-shirt { flex-basis: 44px; height: 44px; font-size: 19px; }
  .opponent-card-maps { grid-template-columns: minmax(0, 1fr); }
  .opponent-card-metrics { gap: 6px; }
  .opponent-card-metrics > div { padding: 9px; }
  .opponent-card-metrics strong { font-size: 24px; }
  .opponent-card-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opponent-card-periods button { padding: 8px 6px; font-size: 13px; }
}

/* Matchläge: full-match player data, with the registered lineup first. */
.timeout-player-overview { margin-top: 10px; }
.timeout-player-overview .timeout-panel { margin-top: 0; }
.timeout-player-overview .timeout-panel--bench { margin-top: 12px; }
.timeout-player-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.timeout-player-card { min-width: 0; padding: 11px; border: 1px solid var(--brand-dbe5de, #dbe5de); border-radius: 12px; background: var(--brand-fafcfb, #fafcfb); }
.timeout-player-card--active { border-color: var(--brand-8eb59d, #8eb59d); background: #fff; box-shadow: inset 0 3px var(--brand-2f7850, #2f7850); }
.timeout-player-card > header { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.timeout-player-number { height: 29px; min-width: 29px; display: grid; place-items: center; background: var(--brand-e4eee7, #e4eee7); border-radius: 8px; font-weight: 900; font-size: 14px; }
.timeout-player-card--active .timeout-player-number { background: var(--brand-225e3e, #225e3e); color: #fff; }
.timeout-player-card h4 { min-width: 0; margin: 0; font-size: 15px; color: var(--brand-183b2d, #183b2d); overflow-wrap: anywhere; }
.timeout-player-position { margin-left: auto; color: var(--brand-4d6f59, #4d6f59); font-size: 11px; font-weight: 800; padding: 3px 5px; background: var(--brand-edf3ee, #edf3ee); border-radius: 5px; }
.timeout-player-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.timeout-player-metrics > div { min-width: 0; padding: 7px 6px; background: var(--team-secondary-faint, var(--brand-f1f6f2, #f1f6f2)); border-radius: 7px; }
.timeout-player-metrics small { display: block; font-size: 10px; color: var(--brand-526c5c, #526c5c); }
.timeout-player-metrics strong { display: block; font-size: 23px; line-height: 1.35; color: var(--brand-183b2d, #183b2d); white-space: nowrap; }
.timeout-player-metrics .timeout-player-technical { background: #fbf3e6; }
.timeout-player-technical strong { color: #76552b; }
.timeout-player-card > footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--brand-e3eae5, #e3eae5); font-size: 11px; color: var(--brand-627367, #627367); }
.timeout-player-card > footer b { color: var(--brand-234b35, #234b35); font-size: 13px; white-space: nowrap; }
.timeout-player-note { margin: 9px 0 0; font-size: 12px; color: var(--brand-637569, #637569); line-height: 1.5; }
.timeout-panel--lineup > .timeout-player-note { margin: 0 0 10px; }
@media (max-width: 900px) { .timeout-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .timeout-player-grid { grid-template-columns: minmax(0, 1fr); }
  .timeout-player-overview .timeout-panel-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .timeout-player-overview .timeout-panel-heading > small { text-align: left; }
}
