/* ========================================================================
   MK Vision Coach — iOS-first mobile webapp layer (v4)
   Loaded after the desktop and React shell styles. Everything is phone-only.
   ======================================================================== */
.sx-mobile-app-layer { display: none; }

@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  :root {
    --sx-ios-blue: #007aff;
    --sx-ios-blue-2: #0a84ff;
    --sx-ios-indigo: #5856d6;
    --sx-ios-purple: #af52de;
    --sx-ios-pink: #ff2d55;
    --sx-ios-red: #ff3b30;
    --sx-ios-orange: #ff9500;
    --sx-ios-yellow: #ffcc00;
    --sx-ios-green: #34c759;
    --sx-ios-teal: #30b0c7;
    --sx-ios-cyan: #32ade6;
    --sx-ios-bg: #f2f2f7;
    --sx-ios-surface: #ffffff;
    --sx-ios-surface-2: #f9f9fb;
    --sx-ios-label: #111114;
    --sx-ios-secondary: rgba(60, 60, 67, .68);
    --sx-ios-tertiary: rgba(60, 60, 67, .44);
    --sx-ios-separator: rgba(60, 60, 67, .16);
    --sx-ios-fill: rgba(120, 120, 128, .12);
    --sx-mobile-nav-h: 86px;
    --sx-mobile-page-pad: 16px;
  }

  html[data-theme="dark"] {
    --sx-ios-bg: #000000;
    --sx-ios-surface: #1c1c1e;
    --sx-ios-surface-2: #2c2c2e;
    --sx-ios-label: #ffffff;
    --sx-ios-secondary: rgba(235, 235, 245, .68);
    --sx-ios-tertiary: rgba(235, 235, 245, .42);
    --sx-ios-separator: rgba(84, 84, 88, .58);
    --sx-ios-fill: rgba(118, 118, 128, .24);
  }

  html.sx-phone-webapp,
  html.sx-phone-webapp body {
    min-height: 100%;
    background: var(--sx-ios-bg) !important;
    color: var(--sx-ios-label);
    overscroll-behavior-y: none;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  html.sx-phone-webapp body,
  html.sx-phone-webapp button,
  html.sx-phone-webapp input,
  html.sx-phone-webapp select,
  html.sx-phone-webapp textarea {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, Arial, sans-serif !important;
  }

  html.sx-phone-webapp * { -webkit-tap-highlight-color: transparent; }
  html.sx-phone-webapp button { touch-action: manipulation; }
  body.sx-mobile-more-open { overflow: hidden !important; }

  /* ---------------------------- App shell ----------------------------- */
  html.sx-phone-webapp .sx-layout {
    display: block;
    min-height: 100dvh;
    background: var(--sx-ios-bg) !important;
  }
  html.sx-phone-webapp .sx-layout .sx-sidebar,
  html.sx-phone-webapp .sx-layout .sx-scrim { display: none !important; }
  html.sx-phone-webapp .sx-main {
    display: block;
    min-height: 100dvh;
    width: 100%;
    overflow: visible;
    padding: 0 !important;
    background: var(--sx-ios-bg) !important;
  }
  html.sx-phone-webapp .sx-view {
    min-width: 0;
    padding: 14px var(--sx-mobile-page-pad)
      calc(var(--sx-mobile-nav-h) + env(safe-area-inset-bottom) + 22px) !important;
  }

  /* Native iOS-like navigation bar. */
  html.sx-phone-webapp .sx-topbar {
    position: sticky;
    top: 0;
    z-index: 150;
    min-height: calc(58px + env(safe-area-inset-top));
    margin: 0 !important;
    padding: calc(9px + env(safe-area-inset-top)) 16px 9px !important;
    gap: 10px;
    border: 0 !important;
    border-bottom: .5px solid var(--sx-ios-separator) !important;
    border-radius: 0 !important;
    background: color-mix(in srgb, var(--sx-ios-surface) 84%, transparent) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    transform: none !important;
    transition: none !important;
  }
  html.sx-phone-webapp .sx-topbar.is-hidden { transform: none !important; }
  html.sx-phone-webapp .sx-topbar-left { gap: 0; min-width: 0; flex: 1 1 auto; }
  html.sx-phone-webapp .sx-topbar-right { gap: 8px; flex: 0 0 auto; }
  html.sx-phone-webapp .sx-hamburger,
  html.sx-phone-webapp .sx-page-ico,
  html.sx-phone-webapp .sx-season-picker { display: none !important; }
  html.sx-phone-webapp .sx-page-title {
    max-width: min(67vw, 290px);
    font-size: 20px !important;
    line-height: 1.12;
    font-weight: 760 !important;
    letter-spacing: -.032em !important;
    color: var(--sx-ios-label) !important;
  }
  html.sx-phone-webapp .sx-topbar-right > .sx-icon-btn:not(.sx-notif) { display: none !important; }
  html.sx-phone-webapp .sx-icon-btn,
  html.sx-phone-webapp .sx-notif {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border: 0 !important;
    border-radius: 50% !important;
    color: var(--sx-ios-blue) !important;
    background: var(--sx-ios-fill) !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .sx-icon-btn svg { width: 20px; height: 20px; }
  html.sx-phone-webapp .sx-notif-panel {
    position: fixed;
    top: calc(62px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 84px - env(safe-area-inset-top));
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb, var(--sx-ios-surface) 95%, transparent) !important;
    box-shadow: 0 26px 76px rgba(0,0,0,.2) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
  }

  /* ------------------------ Screen transitions ------------------------ */
  html.sx-phone-webapp #legacy-view.sx-ios-page-in {
    animation: sx-ios-page-push .32s cubic-bezier(.2,.72,.2,1) both;
    transform-origin: center;
  }
  html.sx-phone-webapp .sx-topbar.sx-ios-title-in .sx-page-title {
    animation: sx-ios-title-in .28s cubic-bezier(.2,.72,.2,1) both;
  }
  @keyframes sx-ios-page-push {
    0% { opacity: .34; transform: translate3d(22px,0,0) scale(.992); }
    58% { opacity: 1; }
    100% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  }
  @keyframes sx-ios-title-in {
    from { opacity: 0; transform: translate3d(10px,0,0); }
    to { opacity: 1; transform: none; }
  }

  /* ------------------------- Bottom tab bar --------------------------- */
  .sx-mobile-app-layer { display: block; }
  .sx-mobile-bottom-nav {
    position: fixed;
    z-index: 240;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(var(--sx-mobile-nav-h) + env(safe-area-inset-bottom));
    padding: 7px 9px max(7px, env(safe-area-inset-bottom));
    border-top: .5px solid var(--sx-ios-separator);
    background: color-mix(in srgb, var(--sx-ios-surface) 86%, transparent);
    box-shadow: 0 -1px 0 rgba(255,255,255,.36), 0 -16px 42px rgba(0,0,0,.055);
    -webkit-backdrop-filter: saturate(190%) blur(30px);
    backdrop-filter: saturate(190%) blur(30px);
  }
  .sx-mobile-bottom-inner {
    display: grid;
    grid-template-columns: repeat(var(--sx-mobile-tabs, 5), minmax(0, 1fr));
    align-items: end;
    max-width: 620px;
    margin: 0 auto;
  }
  .sx-mobile-bottom-item {
    position: relative;
    appearance: none;
    min-width: 0;
    min-height: 65px;
    padding: 5px 1px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--sx-ios-secondary);
    font: inherit;
  }
  .sx-mobile-bottom-icon {
    position: relative;
    display: grid;
    width: 40px;
    height: 32px;
    place-items: center;
    border-radius: 13px;
    transition: color .18s ease, transform .22s cubic-bezier(.2,.8,.2,1), background .18s ease;
  }
  .sx-ios-icon { width: 24px; height: 24px; }
  .sx-mobile-bottom-icon .sx-ios-icon { width: 25px; height: 25px; }
  .sx-mobile-bottom-label {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.2px;
    font-weight: 560;
    line-height: 1.05;
    letter-spacing: -.018em;
  }
  .sx-mobile-bottom-item.is-active { color: var(--sx-ios-blue); }
  .sx-mobile-bottom-item.is-active .sx-mobile-bottom-icon {
    background: color-mix(in srgb, var(--sx-ios-blue) 10%, transparent);
    transform: translateY(-1px);
  }
  .sx-mobile-bottom-item.is-active .sx-mobile-bottom-label { font-weight: 690; }
  .sx-mobile-bottom-item:active .sx-mobile-bottom-icon { transform: scale(.88); }
  .sx-mobile-bottom-badge {
    position: absolute;
    top: 0;
    left: calc(50% + 9px);
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid var(--sx-ios-surface);
    border-radius: 999px;
    background: var(--sx-ios-red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
  }

  /* ---------------------------- More menu ----------------------------- */
  .sx-mobile-more {
    position: fixed;
    inset: 0;
    z-index: 320;
    pointer-events: none;
    visibility: hidden;
  }
  .sx-mobile-more.is-open { pointer-events: auto; visibility: visible; }
  .sx-mobile-more-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(0,0,0,.34);
    opacity: 0;
    -webkit-backdrop-filter: blur(8px) saturate(115%);
    backdrop-filter: blur(8px) saturate(115%);
  }
  .sx-mobile-more.is-open .sx-mobile-more-backdrop { animation: sx-ios-backdrop-in .34s ease forwards; }
  .sx-mobile-more.is-closing .sx-mobile-more-backdrop { animation: sx-ios-backdrop-out .33s ease forwards; }
  .sx-mobile-more-panel {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 0;
    height: min(94dvh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
    border: .5px solid rgba(255,255,255,.36);
    border-bottom: 0;
    border-radius: 34px 34px 0 0;
    background:
      radial-gradient(90% 48% at 100% 0%, rgba(10,132,255,.10), transparent 70%),
      radial-gradient(85% 42% at 0% 8%, rgba(88,86,214,.08), transparent 72%),
      color-mix(in srgb, var(--sx-ios-bg) 92%, transparent);
    box-shadow: 0 -28px 90px rgba(0,0,0,.24);
    -webkit-backdrop-filter: blur(38px) saturate(180%);
    backdrop-filter: blur(38px) saturate(180%);
    transform: translate3d(0,105%,0) scale(.985);
    transform-origin: 50% 100%;
    will-change: transform, opacity;
  }
  .sx-mobile-more.is-open .sx-mobile-more-panel { animation: sx-ios-sheet-in .42s cubic-bezier(.2,.78,.18,1) forwards; }
  .sx-mobile-more.is-closing .sx-mobile-more-panel { animation: sx-ios-sheet-out .33s cubic-bezier(.4,0,.85,.25) forwards; }
  @keyframes sx-ios-sheet-in {
    0% { opacity: .45; transform: translate3d(0,105%,0) scale(.985); }
    72% { opacity: 1; transform: translate3d(0,-5px,0) scale(1); }
    100% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  }
  @keyframes sx-ios-sheet-out {
    from { opacity: 1; transform: translate3d(0,0,0) scale(1); }
    to { opacity: .65; transform: translate3d(0,105%,0) scale(.985); }
  }
  @keyframes sx-ios-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes sx-ios-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
  .sx-mobile-more-handle {
    width: 38px;
    height: 5px;
    flex: 0 0 auto;
    margin: 9px auto 2px;
    border-radius: 99px;
    background: var(--sx-ios-tertiary);
    opacity: .55;
  }
  .sx-mobile-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 17px 12px;
  }
  .sx-mobile-more-kicker {
    display: block;
    margin-bottom: 1px;
    color: var(--sx-ios-secondary);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .025em;
  }
  .sx-mobile-more-head h1 {
    margin: 0;
    color: var(--sx-ios-label);
    font-size: 29px;
    line-height: 1.05;
    font-weight: 790;
    letter-spacing: -.046em;
  }
  .sx-mobile-round-btn {
    display: grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--sx-ios-fill);
    color: var(--sx-ios-secondary);
  }
  .sx-mobile-round-btn .sx-ios-icon { width: 20px; height: 20px; }
  .sx-mobile-round-btn:active { transform: scale(.9); }
  .sx-mobile-more-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 13px 28px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sx-mobile-more-scroll::-webkit-scrollbar { display: none; }

  .sx-ios-account-card {
    position: relative;
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 54px minmax(0,1fr) 20px;
    align-items: center;
    gap: 12px;
    margin: 2px 0 18px;
    padding: 11px 13px;
    overflow: hidden;
    border: .5px solid rgba(255,255,255,.4);
    border-radius: 23px;
    color: #fff;
    text-align: left;
    background:
      radial-gradient(circle at 12% 0%, rgba(255,255,255,.25), transparent 35%),
      linear-gradient(135deg, #0b2a63 0%, #1169d5 52%, #5a56d6 120%);
    box-shadow: 0 15px 34px rgba(11,42,99,.22);
  }
  .sx-mobile-account-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.48);
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
    font-size: 14px;
    font-weight: 800;
  }
  .sx-mobile-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .sx-mobile-account-copy { display: grid; gap: 3px; min-width: 0; }
  .sx-mobile-account-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 740; }
  .sx-mobile-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.72); font-size: 11.5px; font-weight: 520; }
  .sx-ios-account-chevron { color: rgba(255,255,255,.7); }
  .sx-ios-account-chevron .sx-ios-icon { width: 18px; height: 18px; }

  .sx-ios-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 5px 8px;
    color: var(--sx-ios-secondary);
  }
  .sx-ios-section-title span { font-size: 13px; font-weight: 680; }
  .sx-ios-section-title small { font-size: 10px; font-weight: 520; color: var(--sx-ios-tertiary); }
  .sx-ios-quick-section { margin-bottom: 20px; }
  .sx-ios-quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .sx-ios-quick {
    position: relative;
    min-width: 0;
    min-height: 91px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 3px 7px;
    border: .5px solid var(--sx-ios-separator);
    border-radius: 20px;
    background: color-mix(in srgb, var(--sx-ios-surface) 90%, transparent);
    color: var(--sx-ios-label);
    box-shadow: 0 6px 18px rgba(0,0,0,.035);
  }
  .sx-ios-quick:active { transform: scale(.95); }
  .sx-ios-quick-icon,
  .sx-ios-menu-icon {
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 4px 10px rgba(0,0,0,.10);
  }
  .sx-ios-quick-icon { width: 42px; height: 42px; border-radius: 13px; }
  .sx-ios-quick-icon .sx-ios-icon { width: 22px; height: 22px; }
  .sx-ios-quick strong {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10.6px;
    font-weight: 640;
    letter-spacing: -.015em;
    text-align: center;
  }
  .sx-ios-quick-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--sx-ios-surface);
    border-radius: 99px;
    background: var(--sx-ios-red);
    color: white;
    font-size: 8px;
    font-weight: 800;
  }

  [data-tone="blue"] > .sx-ios-quick-icon,
  [data-tone="blue"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#5ac8fa,#007aff); }
  [data-tone="cyan"] > .sx-ios-quick-icon,
  [data-tone="cyan"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#64d2ff,#30b0c7); }
  [data-tone="indigo"] > .sx-ios-quick-icon,
  [data-tone="indigo"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#7d7aff,#5856d6); }
  [data-tone="violet"] > .sx-ios-quick-icon,
  [data-tone="violet"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#bf5af2,#8e44cc); }
  [data-tone="green"] > .sx-ios-quick-icon,
  [data-tone="green"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#63e67d,#30b958); }
  [data-tone="orange"] > .sx-ios-quick-icon,
  [data-tone="orange"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#ffb340,#ff8a00); }
  [data-tone="pink"] > .sx-ios-quick-icon,
  [data-tone="pink"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#ff6482,#ff2d55); }
  [data-tone="teal"] > .sx-ios-quick-icon,
  [data-tone="teal"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#5dd6c0,#14998c); }
  [data-tone="red"] > .sx-ios-quick-icon,
  [data-tone="red"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#ff6961,#ff3b30); }
  [data-tone="graphite"] > .sx-ios-quick-icon,
  [data-tone="graphite"] > .sx-ios-menu-icon { background: linear-gradient(145deg,#8e8e93,#4c4c4e); }

  .sx-ios-menu-section { margin: 0 0 18px; }
  .sx-ios-menu-section h2 {
    margin: 0 6px 7px;
    color: var(--sx-ios-secondary);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 620;
    letter-spacing: -.005em;
    text-transform: none;
  }
  .sx-ios-menu-list {
    overflow: hidden;
    border: .5px solid var(--sx-ios-separator);
    border-radius: 19px;
    background: color-mix(in srgb, var(--sx-ios-surface) 94%, transparent);
  }
  .sx-ios-menu-row {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) auto 18px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--sx-ios-label);
    text-align: left;
  }
  .sx-ios-menu-row::after {
    content: "";
    position: absolute;
    left: 56px;
    right: 0;
    bottom: 0;
    height: .5px;
    background: var(--sx-ios-separator);
  }
  .sx-ios-menu-row:last-child::after { display: none; }
  .sx-ios-menu-row:active { background: var(--sx-ios-fill); }
  .sx-ios-menu-row.is-current { background: color-mix(in srgb, var(--sx-ios-blue) 6%, transparent); }
  .sx-ios-menu-icon { width: 32px; height: 32px; border-radius: 9px; }
  .sx-ios-menu-icon .sx-ios-icon { width: 18px; height: 18px; }
  .sx-ios-menu-copy { min-width: 0; }
  .sx-ios-menu-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 540; letter-spacing: -.012em; }
  .sx-ios-menu-row.is-current .sx-ios-menu-copy strong { color: var(--sx-ios-blue); font-weight: 620; }
  .sx-ios-menu-chevron { color: var(--sx-ios-tertiary); }
  .sx-ios-menu-chevron .sx-ios-icon { width: 15px; height: 15px; stroke-width: 2.3; }
  .sx-ios-menu-badge { min-width: 24px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; background: var(--sx-ios-red); color: #fff; font-size: 10px; font-weight: 760; }
  .sx-ios-menu-row.is-danger .sx-ios-menu-copy strong { color: var(--sx-ios-red); }
  .sx-ios-menu-footer { padding: 2px 0 12px; color: var(--sx-ios-tertiary); font-size: 10px; text-align: center; }
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-account-card,
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-quick-section,
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-menu-section {
    animation: sx-ios-menu-content .42s cubic-bezier(.2,.72,.2,1) both;
  }
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-quick-section { animation-delay: .035s; }
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-menu-section:nth-of-type(3) { animation-delay: .06s; }
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-menu-section:nth-of-type(4) { animation-delay: .085s; }
  .sx-mobile-more.is-open:not(.is-closing) .sx-ios-menu-section:nth-of-type(5) { animation-delay: .11s; }
  @keyframes sx-ios-menu-content { from { opacity: 0; transform: translate3d(0,13px,0); } to { opacity:1; transform:none; } }

  /* --------------------- iOS cards / grouped content ------------------- */
  html.sx-phone-webapp .sx-view .card,
  html.sx-phone-webapp .sx-view .sx-dash-card,
  html.sx-phone-webapp .sx-view .sx-parent-welcome,
  html.sx-phone-webapp .sx-view .sx-admin-comms,
  html.sx-phone-webapp .sx-view .sx-request-card {
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 20px !important;
    background: var(--sx-ios-surface) !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.035) !important;
  }
  html.sx-phone-webapp .sx-view .card-primary { background: var(--sx-ios-surface) !important; }
  html.sx-phone-webapp .sx-view .card-header {
    padding: 15px 15px 12px !important;
    border-bottom-color: var(--sx-ios-separator) !important;
  }
  html.sx-phone-webapp .sx-view .card-body { padding: 14px 15px !important; }
  html.sx-phone-webapp .card-title { font-size: 17px !important; font-weight: 730 !important; letter-spacing: -.025em; }
  html.sx-phone-webapp .card-subtitle { margin-top: 3px; color: var(--sx-ios-secondary) !important; font-size: 11.5px !important; line-height: 1.35; }
  html.sx-phone-webapp .divider { border-color: var(--sx-ios-separator) !important; opacity: .75; }
  html.sx-phone-webapp .muted { color: var(--sx-ios-secondary) !important; }

  /* Buttons feel like controls, not Bootstrap/admin controls. */
  html.sx-phone-webapp .btn,
  html.sx-phone-webapp .sx-btn {
    min-height: 43px;
    padding: 9px 14px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 13px !important;
    background: var(--sx-ios-fill) !important;
    color: var(--sx-ios-label) !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.1;
    font-weight: 620 !important;
    letter-spacing: -.012em;
  }
  html.sx-phone-webapp .btn.small,
  html.sx-phone-webapp .sx-btn.small { min-height: 38px; padding: 7px 11px !important; font-size: 12px !important; }
  html.sx-phone-webapp .btn.primary,
  html.sx-phone-webapp .btn.is-primary,
  html.sx-phone-webapp .sx-btn.is-primary,
  html.sx-phone-webapp button.primary {
    border-color: transparent !important;
    background: linear-gradient(180deg,#148cff,#007aff) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 12px rgba(0,122,255,.18) !important;
  }
  html.sx-phone-webapp .btn.danger,
  html.sx-phone-webapp .sx-btn.is-danger { color: var(--sx-ios-red) !important; background: color-mix(in srgb, var(--sx-ios-red) 8%, var(--sx-ios-surface)) !important; }
  html.sx-phone-webapp .btn:active,
  html.sx-phone-webapp .sx-btn:active { transform: scale(.975); }
  html.sx-phone-webapp .btn.btn-icon,
  html.sx-phone-webapp .sx-ios-close-control {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: var(--sx-ios-fill) !important;
  }
  html.sx-phone-webapp .btn.btn-icon svg { width: 18px; height: 18px; }

  html.sx-phone-webapp input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  html.sx-phone-webapp select,
  html.sx-phone-webapp textarea,
  html.sx-phone-webapp .input,
  html.sx-phone-webapp .inp,
  html.sx-phone-webapp .select,
  html.sx-phone-webapp .textarea {
    min-height: 46px;
    max-width: 100%;
    padding: 10px 12px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 12px !important;
    outline: 0 !important;
    background: var(--sx-ios-surface-2) !important;
    color: var(--sx-ios-label) !important;
    box-shadow: none !important;
    font-size: 16px !important; /* prevents iOS zoom */
  }
  html.sx-phone-webapp input:focus,
  html.sx-phone-webapp select:focus,
  html.sx-phone-webapp textarea:focus {
    border-color: color-mix(in srgb, var(--sx-ios-blue) 60%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--sx-ios-blue) 12%, transparent) !important;
  }
  html.sx-phone-webapp .meta > span,
  html.sx-phone-webapp label.meta > span { color: var(--sx-ios-secondary) !important; font-size: 11px !important; font-weight: 620 !important; }

  /* ----------------------------- Dashboard ---------------------------- */
  html.sx-phone-webapp .sx-dash { gap: 15px; }
  html.sx-phone-webapp .sx-dash-title { font-size: 29px !important; font-weight: 780 !important; letter-spacing: -.045em !important; }
  html.sx-phone-webapp .sx-dash-sub { margin-top: 4px; color: var(--sx-ios-secondary); font-size: 12px; }
  html.sx-phone-webapp .sx-dash-actions { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
  html.sx-phone-webapp .sx-dash-action {
    min-height: 94px;
    padding: 13px !important;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 9px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 19px !important;
    background: var(--sx-ios-surface) !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .sx-dash-action-ico { width: 42px; height: 42px; border-radius: 13px; color: white !important; background: linear-gradient(145deg,#5ac8fa,#007aff) !important; }
  html.sx-phone-webapp .sx-dash-action:nth-child(2) .sx-dash-action-ico { background: linear-gradient(145deg,#63e67d,#30b958) !important; }
  html.sx-phone-webapp .sx-dash-action:nth-child(3) .sx-dash-action-ico { background: linear-gradient(145deg,#ffb340,#ff8a00) !important; }
  html.sx-phone-webapp .sx-dash-action:nth-child(4) .sx-dash-action-ico { background: linear-gradient(145deg,#7d7aff,#5856d6) !important; }
  html.sx-phone-webapp .sx-dash-action-ico svg { width: 20px; height: 20px; }
  html.sx-phone-webapp .sx-dash-action-text { align-items: flex-start; width: 100%; }
  html.sx-phone-webapp .sx-dash-action-label { font-size: 13px; font-weight: 650; letter-spacing: -.018em; }
  html.sx-phone-webapp .sx-dash-action-sub { display: none !important; }
  html.sx-phone-webapp .sx-dash-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  html.sx-phone-webapp .sx-dash-card { overflow: hidden; }
  html.sx-phone-webapp .sx-dash-card-head { padding: 14px 15px 10px; }
  html.sx-phone-webapp .sx-dash-card-head h2 { font-size: 15px; font-weight: 700; }
  html.sx-phone-webapp .sx-dash-list { padding: 0 8px 8px; }
  html.sx-phone-webapp .sx-dash-row { padding: 12px 8px; border-radius: 13px; }
  html.sx-phone-webapp .sx-dash-row + .sx-dash-row { border-top: .5px solid var(--sx-ios-separator); }
  html.sx-phone-webapp .sx-chart-card { border-radius: 20px !important; background: var(--sx-ios-surface) !important; box-shadow: none !important; }

  /* -------------------- Tables become grouped iOS rows ---------------- */
  html.sx-phone-webapp table.table.sx-mobile-card-table {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    white-space: normal !important;
    background: transparent !important;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table thead { display: none !important; }
  html.sx-phone-webapp table.table.sx-mobile-card-table tbody { display: grid !important; gap: 10px; width: 100% !important; }
  html.sx-phone-webapp table.table.sx-mobile-card-table tr {
    display: block !important;
    width: 100% !important;
    overflow: hidden;
    border: .5px solid var(--sx-ios-separator);
    border-radius: 18px;
    background: var(--sx-ios-surface);
    box-shadow: none;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table td {
    display: grid !important;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100% !important;
    min-height: 45px;
    padding: 9px 12px !important;
    border: 0 !important;
    border-bottom: .5px solid var(--sx-ios-separator) !important;
    white-space: normal !important;
    text-align: left !important;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table td:last-child { border-bottom: 0 !important; }
  html.sx-phone-webapp table.table.sx-mobile-card-table td::before {
    content: attr(data-mobile-label);
    color: var(--sx-ios-secondary);
    font-size: 10.5px;
    font-weight: 570;
    letter-spacing: 0;
    text-transform: none;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table td[data-mobile-label=""]::before { display: none; }
  html.sx-phone-webapp table.table.sx-mobile-card-table td[data-mobile-label=""] { grid-template-columns: 1fr; }
  html.sx-phone-webapp .table-responsive,
  html.sx-phone-webapp .sx-admin-comms-table,
  html.sx-phone-webapp table.table:not(.sx-mobile-card-table) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  /* --------------------------- Modals/sheets -------------------------- */
  html.sx-phone-webapp .modal-backdrop,
  html.sx-phone-webapp .modal.open .modal-backdrop,
  html.sx-phone-webapp .sx-modal-layer {
    padding: 0 !important;
    align-items: flex-end !important;
    place-items: end center !important;
    background: rgba(0,0,0,.32) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  html.sx-phone-webapp .modal-card,
  html.sx-phone-webapp .sx-modal,
  html.sx-phone-webapp .sx-player-modal {
    width: 100% !important;
    max-width: none !important;
    max-height: 94dvh !important;
    margin: 0 !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-bottom: 0 !important;
    border-radius: 28px 28px 0 0 !important;
    background: var(--sx-ios-surface) !important;
    box-shadow: 0 -24px 72px rgba(0,0,0,.2) !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
    animation: sx-ios-modal-in .34s cubic-bezier(.2,.75,.2,1) both;
  }
  @keyframes sx-ios-modal-in { from { opacity:.5; transform:translateY(40px); } to { opacity:1; transform:none; } }
  html.sx-phone-webapp .modal-header,
  html.sx-phone-webapp .sx-modal-head,
  html.sx-phone-webapp .sx-player-modal-head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: color-mix(in srgb, var(--sx-ios-surface) 92%, transparent) !important;
    border-radius: 28px 28px 0 0 !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
  html.sx-phone-webapp .sx-modal-actions,
  html.sx-phone-webapp .sx-player-modal-actions {
    background: color-mix(in srgb, var(--sx-ios-surface) 92%, transparent) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }

  /* ------------------------- Training: planning ----------------------- */
  body[data-sx-mobile-nav="training_planning"] .card.card-primary,
  body[data-sx-mobile-nav="training_exercises"] .card.card-primary,
  body[data-sx-mobile-nav="training"] .card.card-primary {
    overflow: visible;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  body[data-sx-mobile-nav^="training"] .card.card-primary > .card-header,
  body[data-sx-mobile-nav="training"] .card.card-primary > .card-header {
    margin-bottom: 10px;
    padding: 2px 2px 8px !important;
    border: 0 !important;
    background: transparent !important;
  }
  body[data-sx-mobile-nav^="training"] .card.card-primary > .card-body,
  body[data-sx-mobile-nav="training"] .card.card-primary > .card-body { padding: 0 !important; }
  html.sx-phone-webapp .training-tabs.segmented {
    position: relative;
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: var(--sx-ios-fill) !important;
  }
  html.sx-phone-webapp .training-tabs .seg-btn {
    min-height: 34px !important;
    padding: 6px 9px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--sx-ios-secondary) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  html.sx-phone-webapp .training-tabs .seg-btn.active {
    background: var(--sx-ios-surface) !important;
    color: var(--sx-ios-label) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  }
  html.sx-phone-webapp .training-tabs .tab-icon { display: none !important; }
  html.sx-phone-webapp .planning-list-head { align-items: flex-end; gap: 8px; padding: 4px 2px 8px; }
  html.sx-phone-webapp .planning-list-head .section-title { margin: 0; font-size: 19px; font-weight: 740; letter-spacing: -.03em; }
  html.sx-phone-webapp .planning-list-head p { margin: 3px 0 0; color: var(--sx-ios-secondary); font-size: 11px; line-height: 1.35; }
  html.sx-phone-webapp .planning-result-count { color: var(--sx-ios-secondary); font-size: 10px; white-space: nowrap; }
  html.sx-phone-webapp .planning-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    margin-bottom: 12px;
    padding: 10px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 17px !important;
    background: var(--sx-ios-surface) !important;
  }
  html.sx-phone-webapp .planning-view-tabs { width: 100%; display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border-radius: 11px; background: var(--sx-ios-fill); }
  html.sx-phone-webapp .planning-view-tabs button {
    min-height: 34px;
    padding: 6px 7px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: var(--sx-ios-secondary) !important;
    font-size: 10.5px !important;
  }
  html.sx-phone-webapp .planning-view-tabs button.active { background: var(--sx-ios-surface) !important; color: var(--sx-ios-label) !important; box-shadow: 0 2px 7px rgba(0,0,0,.07); }
  html.sx-phone-webapp .planning-period,
  html.sx-phone-webapp .planning-date { width: 100%; }
  html.sx-phone-webapp .list { display: grid; gap: 10px; }
  html.sx-phone-webapp .list > .list-item {
    padding: 13px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 18px !important;
    background: var(--sx-ios-surface) !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .list-item .li-title { font-size: 13px; font-weight: 670; line-height: 1.3; }
  html.sx-phone-webapp .list-item .li-sub { margin-top: 5px; color: var(--sx-ios-secondary); font-size: 11px; line-height: 1.4; }
  html.sx-phone-webapp .li-actions { display: flex !important; gap: 6px !important; margin-top: 11px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  html.sx-phone-webapp .li-actions::-webkit-scrollbar { display:none; }
  html.sx-phone-webapp .li-actions .btn { flex: 0 0 auto; min-height: 34px !important; border-radius: 10px !important; font-size: 10.5px !important; }
  html.sx-phone-webapp .planning-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; color:var(--sx-ios-secondary); font-size:10px; }

  /* Planning editor as an actual app sheet. */
  html.sx-phone-webapp .training-plan-editor.modal-card { height: 94dvh; }
  html.sx-phone-webapp .training-plan-editor .grid-3 { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  html.sx-phone-webapp .training-plan-editor .grid-3 > label:nth-child(4),
  html.sx-phone-webapp .training-plan-editor .grid-3 > label:nth-child(5) { grid-column: 1 / -1; }
  html.sx-phone-webapp .dual-ex { display: grid !important; grid-template-columns: 1fr !important; gap: 9px !important; }
  html.sx-phone-webapp .dual-ex-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  html.sx-phone-webapp #plan-ex-all,
  html.sx-phone-webapp #plan-ex-selected { min-height: 154px; }
  html.sx-phone-webapp .plan-ex-filters { grid-template-columns: 1fr !important; }
  html.sx-phone-webapp .ex-order-list { border-radius: 14px; overflow: hidden; }

  /* ---------------------- Training: exercise library ------------------ */
  html.sx-phone-webapp .table-toolbar { margin-bottom: 12px; padding: 10px !important; border: .5px solid var(--sx-ios-separator); border-radius: 17px; background: var(--sx-ios-surface); }
  html.sx-phone-webapp .table-toolbar > div { display: grid !important; grid-template-columns: 1fr !important; gap: 9px !important; }
  html.sx-phone-webapp #training-filter-search { min-width: 0 !important; width: 100%; }
  html.sx-phone-webapp .cat-tags { display: flex !important; gap: 6px !important; overflow-x: auto; padding: 2px 0 3px; scrollbar-width:none; }
  html.sx-phone-webapp .cat-tags::-webkit-scrollbar { display:none; }
  html.sx-phone-webapp .cat-tag {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 999px !important;
    background: var(--sx-ios-fill) !important;
    color: var(--sx-ios-secondary) !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
  }
  html.sx-phone-webapp .cat-tag.active { border-color: transparent !important; background: var(--sx-ios-blue) !important; color: white !important; }
  html.sx-phone-webapp .exercise-cards { display: grid !important; grid-template-columns: 1fr !important; gap: 12px !important; }
  html.sx-phone-webapp .exercise-card {
    overflow: hidden;
    padding: 14px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 20px !important;
    background: var(--sx-ios-surface) !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .exercise-card .ex-title { font-size: 17px !important; font-weight: 730 !important; letter-spacing: -.028em; }
  html.sx-phone-webapp .exercise-card .ex-badges { margin-top: 7px; }
  html.sx-phone-webapp .exercise-card .ex-badge { border: 0 !important; border-radius: 999px !important; background: color-mix(in srgb, var(--sx-ios-blue) 10%, transparent) !important; color: var(--sx-ios-blue) !important; font-size: 9.5px !important; font-weight: 650 !important; }
  html.sx-phone-webapp .exercise-card .ex-sub { margin: 8px 0 10px; color: var(--sx-ios-secondary) !important; font-size: 11.5px !important; line-height: 1.45; }
  html.sx-phone-webapp .exercise-card .ex-thumb { width: 100%; min-height: 0 !important; aspect-ratio: 16 / 10; overflow: hidden; border: 0 !important; border-radius: 15px !important; background: #173b24 !important; }
  html.sx-phone-webapp .exercise-card .ex-bottom { display: grid !important; gap: 10px; margin-top: 10px; }
  html.sx-phone-webapp .need-mini { display: flex !important; gap: 5px !important; overflow-x:auto; scrollbar-width:none; }
  html.sx-phone-webapp .need-mini .n { flex: 0 0 auto; min-height: 30px; border-radius: 9px; background: var(--sx-ios-fill); }
  html.sx-phone-webapp .ex-actions { display: grid !important; grid-template-columns: 1fr auto; gap: 7px; }

  /* Exercise editor becomes a mobile workspace. */
  html.sx-phone-webapp .training-editor { display: grid; gap: 10px; }
  html.sx-phone-webapp .training-editor-head {
    padding: 12px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 18px !important;
    background: var(--sx-ios-surface) !important;
  }
  html.sx-phone-webapp .training-name-row { display: flex !important; gap: 8px !important; }
  html.sx-phone-webapp #training-name { flex: 1; font-size: 17px !important; font-weight: 680; }
  html.sx-phone-webapp .training-meta { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 9px !important; margin-top: 10px; }
  html.sx-phone-webapp .training-meta > .meta-share { align-self: end; }
  html.sx-phone-webapp .training-meta > #training-save,
  html.sx-phone-webapp .training-meta > #training-fullscreen-mobile { align-self: end; }
  html.sx-phone-webapp .training-meta > #training-rotate-field,
  html.sx-phone-webapp .training-meta > #training-export-jpg,
  html.sx-phone-webapp .training-meta > #training-export-svg,
  html.sx-phone-webapp .training-meta > #training-archive { min-height: 38px; }
  html.sx-phone-webapp #training-rotate-field { display: none !important; }
  html.sx-phone-webapp .autosave-indicator { grid-column: 1 / -1; }
  html.sx-phone-webapp .training-tools { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
  html.sx-phone-webapp .training-tools .tool-accordion {
    padding: 0 !important;
    overflow: hidden;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 17px !important;
    background: var(--sx-ios-surface) !important;
  }
  html.sx-phone-webapp .training-tools .acc-head { min-height: 50px; padding: 0 13px !important; border: 0 !important; background: transparent !important; color: var(--sx-ios-label) !important; font-size: 13px !important; font-weight: 650 !important; }
  html.sx-phone-webapp .training-tools .acc-body { padding: 10px !important; border-top: .5px solid var(--sx-ios-separator) !important; background: var(--sx-ios-surface-2) !important; }
  html.sx-phone-webapp .training-tools .acc-body .btn,
  html.sx-phone-webapp .training-tools .training-palette-item { min-height: 39px !important; border-radius: 11px !important; }
  html.sx-phone-webapp .training-board-wrap { margin-top: 0 !important; }
  html.sx-phone-webapp .training-board-split { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  html.sx-phone-webapp .training-board-col { min-width: 0; overflow: hidden; border-radius: 19px; background: #0b1c13; }
  html.sx-phone-webapp .training-board-fs { overflow: hidden; border-radius: 19px; }
  html.sx-phone-webapp .training-steps-panel { border: .5px solid var(--sx-ios-separator) !important; border-radius: 18px !important; background: var(--sx-ios-surface) !important; }
  html.sx-phone-webapp .training-equip { border: .5px solid var(--sx-ios-separator) !important; border-radius: 18px !important; background: var(--sx-ios-surface) !important; }

  /* --------------------------- Tactics view --------------------------- */
  body[data-sx-mobile-nav="tactics"] .sx-view { padding-inline: 8px !important; }
  html.sx-phone-webapp .tactics-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    overflow: visible !important;
    padding: 8px !important;
    border: .5px solid var(--sx-ios-separator) !important;
    border-radius: 20px !important;
    background: var(--sx-ios-surface) !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .tactics-toolbar-group,
  html.sx-phone-webapp .tactics-tool-group {
    width: 100%;
    padding: 9px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--sx-ios-surface-2) !important;
  }
  html.sx-phone-webapp .tactics-group-label,
  html.sx-phone-webapp .tactics-tool-group > span { color: var(--sx-ios-secondary) !important; font-size: 10px !important; font-weight: 620 !important; letter-spacing: 0 !important; text-transform: none !important; }
  html.sx-phone-webapp .tactics-toolbar .tactics-tools { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; padding: 0 !important; }
  html.sx-phone-webapp .tactics-tool-group > div { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; }
  html.sx-phone-webapp .tactics-pitch-card { border-radius: 20px !important; overflow: hidden; }
  html.sx-phone-webapp #tactics-fullscreen-mobile { background: linear-gradient(180deg,#148cff,#007aff) !important; color:#fff !important; border-color:transparent !important; }

  /* ------------- Fullscreen/focus: portrait first, no rotation needed --------
     The device stays portrait. The FIELD itself rotates inside the portrait
     viewport, leaving a native glass tool shelf at the bottom. */
  body.tactics-field-focus-body,
  body.training-field-focus-body { overflow: hidden !important; background: #02070d !important; }
  body.tactics-field-focus-body .sx-mobile-bottom-nav,
  body.training-field-focus-body .sx-mobile-bottom-nav,
  body.tactics-field-focus-body .sx-topbar,
  body.training-field-focus-body .sx-topbar { display: none !important; }
  body.tactics-field-focus-body .sx-view,
  body.training-field-focus-body .sx-view { padding: 0 !important; }

  #tactics-pitch-fs:fullscreen,
  #tactics-pitch-fs:-webkit-full-screen,
  body.tactics-field-focus-body #tactics-pitch-fs,
  #training-board-fs:fullscreen,
  #training-board-fs:-webkit-full-screen,
  body.training-field-focus-body #training-board-fs {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    background:
      radial-gradient(circle at 50% 25%, rgba(25,90,58,.28), transparent 44%),
      linear-gradient(180deg,#07110d,#020609) !important;
  }

  @media (orientation: portrait) {
    #tactics-pitch-fs:fullscreen #tactics-pitch,
    #tactics-pitch-fs:-webkit-full-screen #tactics-pitch,
    body.tactics-field-focus-body #tactics-pitch {
      --fs-len: min(calc(100dvh - 205px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc((100vw - 12px) * 5 / 3));
      position: absolute !important;
      left: 50% !important;
      top: calc(50% - 58px) !important;
      width: var(--fs-len) !important;
      min-width: var(--fs-len) !important;
      max-width: var(--fs-len) !important;
      height: calc(var(--fs-len) * 3 / 5) !important;
      min-height: calc(var(--fs-len) * 3 / 5) !important;
      max-height: calc(var(--fs-len) * 3 / 5) !important;
      margin: 0 !important;
      aspect-ratio: auto !important;
      border-radius: 13px !important;
      transform: translate(-50%,-50%) rotate(90deg) !important;
      transform-origin: center !important;
      box-shadow: 0 20px 55px rgba(0,0,0,.34) !important;
    }
    #training-board-fs:fullscreen #training-board,
    #training-board-fs:-webkit-full-screen #training-board,
    body.training-field-focus-body #training-board-fs #training-board {
      --fs-len: min(calc(100dvh - 205px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc((100vw - 12px) * 5 / 4));
      position: absolute !important;
      left: 50% !important;
      top: calc(50% - 58px) !important;
      width: var(--fs-len) !important;
      min-width: var(--fs-len) !important;
      max-width: var(--fs-len) !important;
      height: calc(var(--fs-len) * 4 / 5) !important;
      min-height: calc(var(--fs-len) * 4 / 5) !important;
      max-height: calc(var(--fs-len) * 4 / 5) !important;
      margin: 0 !important;
      aspect-ratio: auto !important;
      border-radius: 13px !important;
      transform: translate(-50%,-50%) rotate(90deg) !important;
      transform-origin: center !important;
      box-shadow: 0 20px 55px rgba(0,0,0,.34) !important;
    }
    body.tactics-field-focus-body #tactics-pitch .player-token,
    #tactics-pitch-fs:fullscreen #tactics-pitch .player-token,
    #tactics-pitch-fs:-webkit-full-screen #tactics-pitch .player-token { transform: translate(-50%,-50%) rotate(-90deg) !important; }
  }

  /* Landscape still works, but portrait is fully usable and never required to rotate. */
  @media (orientation: landscape) {
    #tactics-pitch-fs:fullscreen #tactics-pitch,
    #tactics-pitch-fs:-webkit-full-screen #tactics-pitch,
    body.tactics-field-focus-body #tactics-pitch {
      --fs-w: min(calc(100vw - 180px), calc((100dvh - 18px) * 5 / 3));
      position:absolute !important; left:calc(50% - 54px) !important; top:50% !important;
      width:var(--fs-w) !important; height:calc(var(--fs-w) * 3 / 5) !important;
      min-width:0 !important; min-height:0 !important; max-width:none !important; max-height:calc(100dvh - 14px) !important;
      transform:translate(-50%,-50%) !important; border-radius:13px !important;
    }
    #training-board-fs:fullscreen #training-board,
    #training-board-fs:-webkit-full-screen #training-board,
    body.training-field-focus-body #training-board-fs #training-board {
      --fs-w: min(calc(100vw - 180px), calc((100dvh - 18px) * 5 / 4));
      position:absolute !important; left:calc(50% - 54px) !important; top:50% !important;
      width:var(--fs-w) !important; height:calc(var(--fs-w) * 4 / 5) !important;
      min-width:0 !important; min-height:0 !important; max-width:none !important; max-height:calc(100dvh - 14px) !important;
      transform:translate(-50%,-50%) !important; border-radius:13px !important;
    }
  }

  /* Keep the React board controls on mobile and turn them into an iOS glass shelf. */
  #tactics-pitch-fs:fullscreen [data-sx-board-tools],
  #tactics-pitch-fs:-webkit-full-screen [data-sx-board-tools],
  body.tactics-field-focus-body #tactics-pitch-fs [data-sx-board-tools],
  #training-board-fs:fullscreen [data-sx-board-tools],
  #training-board-fs:-webkit-full-screen [data-sx-board-tools],
  body.training-field-focus-body #training-board-fs [data-sx-board-tools] {
    display: block !important;
    position: fixed !important;
    z-index: 10036 !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    pointer-events: auto !important;
  }
  #tactics-pitch-fs .sx-fs-dock,
  #training-board-fs .sx-fs-dock,
  body.tactics-field-focus-body .sx-fs-dock,
  body.training-field-focus-body .sx-fs-dock {
    display: flex !important;
    width: 100% !important;
    max-height: 154px !important;
    flex-direction: column !important;
    gap: 7px !important;
    padding: 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: .5px solid rgba(255,255,255,.18) !important;
    border-radius: 24px !important;
    color: #fff !important;
    background: rgba(25,25,28,.70) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.34) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    transform: none !important;
  }
  #tactics-pitch-fs .sx-fs-dock-title,
  #training-board-fs .sx-fs-dock-title { min-height: 25px; gap: 7px; font-size: 12px; font-weight: 680; cursor: default !important; }
  #tactics-pitch-fs .sx-fs-drag-hint { display:none !important; }
  #tactics-pitch-fs .sx-fs-collapse { margin-left:auto; width:28px; height:28px; border:0; border-radius:50%; background:rgba(255,255,255,.12); }
  #tactics-pitch-fs .sx-fs-dock:not(.is-collapsed) > .sx-fs-group,
  #training-board-fs .sx-fs-dock > .sx-fs-group {
    flex-wrap: nowrap !important;
    flex: 0 0 auto;
    gap: 6px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
  }
  #tactics-pitch-fs .sx-fs-group::-webkit-scrollbar,
  #training-board-fs .sx-fs-group::-webkit-scrollbar { display:none; }
  #tactics-pitch-fs .sx-fs-group-label,
  #training-board-fs .sx-fs-group-label { display:none !important; }
  #tactics-pitch-fs .sx-fs-tool,
  #training-board-fs .sx-fs-tool {
    flex: 0 0 auto;
    min-height: 36px !important;
    padding: 7px 10px !important;
    border: .5px solid rgba(255,255,255,.15) !important;
    border-radius: 11px !important;
    background: rgba(255,255,255,.10) !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-weight: 620 !important;
  }
  #tactics-pitch-fs .sx-fs-tool.is-active,
  #training-board-fs .sx-fs-tool.is-active { border-color: transparent !important; background: var(--sx-ios-blue) !important; }
  #tactics-pitch-fs .sx-fs-tool.is-danger,
  #training-board-fs .sx-fs-tool.is-danger { color: #ff8b84 !important; }
  #tactics-pitch-fs .sx-fs-select,
  #training-board-fs .sx-fs-select { flex:0 0 auto !important; gap:5px; color:rgba(255,255,255,.72); font-size:9px; }
  #tactics-pitch-fs .sx-fs-select select,
  #training-board-fs .sx-fs-select select { min-height:35px !important; padding:5px 24px 5px 8px !important; border:.5px solid rgba(255,255,255,.15) !important; border-radius:10px !important; background:rgba(255,255,255,.10) !important; color:#fff !important; font-size:11px !important; }

  /* Big, obvious native close controls above the fields. */
  #tactics-pitch-fs:fullscreen .tactics-exit-focus,
  #tactics-pitch-fs:-webkit-full-screen .tactics-exit-focus,
  body.tactics-field-focus-body .tactics-exit-focus,
  #training-board-fs:fullscreen .training-exit-focus,
  #training-board-fs:-webkit-full-screen .training-exit-focus,
  body.training-field-focus-body .training-exit-focus {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 10px) !important;
    right: 10px !important;
    left: auto !important;
    z-index: 10045 !important;
    display: grid !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    place-items: center !important;
    padding: 0 !important;
    border: .5px solid rgba(255,255,255,.18) !important;
    border-radius: 50% !important;
    background: rgba(25,25,28,.72) !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.28) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
  .tactics-exit-focus > span { display:none !important; }
  .tactics-exit-focus svg,
  .training-exit-focus svg { width:20px !important; height:20px !important; margin:0 !important; }

  /* Old experimental phone chrome must never overlap the iOS shell. */
  html.sx-phone-webapp .mobile-tabbar,
  html.sx-phone-webapp .mobile-header,
  html.sx-phone-webapp .mobile-fabs,
  html.sx-phone-webapp .mobile-user-fab,
  html.sx-phone-webapp .mobile-quick-fab,
  html.sx-phone-webapp #ptr { display: none !important; }
}

@media (max-width: 390px) {
  :root { --sx-mobile-page-pad: 12px; }
  .sx-mobile-bottom-label { font-size: 10.4px; }
  .sx-mobile-bottom-icon .sx-ios-icon { width: 24px; height: 24px; }
  .sx-ios-quick-grid { gap: 6px; }
  .sx-ios-quick { min-height: 84px; }
  .sx-ios-quick-icon { width: 39px; height: 39px; }
  html.sx-phone-webapp .training-meta { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 820px), (prefers-reduced-motion: reduce) and (any-pointer: coarse) and (max-width: 1600px) {
  .sx-mobile-more-panel,
  .sx-mobile-more-backdrop,
  .sx-ios-account-card,
  .sx-ios-quick-section,
  .sx-ios-menu-section,
  #legacy-view.sx-ios-page-in,
  .sx-topbar.sx-ios-title-in .sx-page-title { animation: none !important; transition: none !important; }
}

/* ========================================================================
   v3 polish — iOS/Facebook-style chrome, scroll repair & strict containment
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* The v2 JS pull guard was intentionally removed. Keep native bidirectional
     scrolling and only suppress browser overscroll at the boundary. */
  html.sx-phone-webapp,
  html.sx-phone-webapp body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
    overscroll-behavior-y: contain;
  }
  html.sx-phone-webapp body:not(.sx-mobile-more-open):not(.tactics-field-focus-body):not(.training-field-focus-body) {
    overflow-y: auto !important;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  /* A layered app background instead of the flat admin-dashboard grey. */
  html.sx-phone-webapp body,
  html.sx-phone-webapp .sx-layout,
  html.sx-phone-webapp .sx-main {
    background:
      radial-gradient(110% 58% at 8% -6%, rgba(0,122,255,.19) 0%, rgba(0,122,255,0) 62%),
      radial-gradient(86% 48% at 104% 9%, rgba(88,86,214,.17) 0%, rgba(88,86,214,0) 66%),
      radial-gradient(76% 38% at 38% 42%, rgba(50,173,230,.085) 0%, rgba(50,173,230,0) 72%),
      linear-gradient(180deg, #f7f9ff 0%, #f2f5fb 36%, #f2f2f7 100%) !important;
    background-attachment: fixed !important;
  }
  html[data-theme="dark"].sx-phone-webapp body,
  html[data-theme="dark"].sx-phone-webapp .sx-layout,
  html[data-theme="dark"].sx-phone-webapp .sx-main {
    background:
      radial-gradient(105% 54% at 6% -5%, rgba(10,132,255,.26) 0%, rgba(10,132,255,0) 63%),
      radial-gradient(88% 46% at 103% 10%, rgba(94,92,230,.24) 0%, rgba(94,92,230,0) 66%),
      radial-gradient(82% 42% at 40% 44%, rgba(48,176,199,.09) 0%, rgba(48,176,199,0) 72%),
      linear-gradient(180deg, #0b101b 0%, #080b12 42%, #000 100%) !important;
  }

  /* Facebook/iOS-inspired top app bar: brand on the left, round action icons. */
  html.sx-phone-webapp .sx-topbar {
    min-height: calc(66px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px !important;
    border-bottom: .5px solid rgba(60,60,67,.13) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,255,.78)) !important;
    box-shadow: 0 8px 28px rgba(24,39,75,.055) !important;
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    backdrop-filter: blur(30px) saturate(190%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-topbar {
    border-bottom-color: rgba(255,255,255,.08) !important;
    background: linear-gradient(180deg, rgba(18,22,32,.88), rgba(13,16,24,.78)) !important;
  }
  html.sx-phone-webapp .sx-page-title {
    max-width: min(52vw, 240px);
    font-size: 22px !important;
    font-weight: 790 !important;
    letter-spacing: -.042em !important;
  }
  html.sx-phone-webapp .sx-page-title.sx-ios-brand-title {
    font-size: clamp(24px, 7vw, 30px) !important;
    font-weight: 830 !important;
    letter-spacing: -.055em !important;
    background: linear-gradient(115deg, #087cff 0%, #4169e1 54%, #7167e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
  }
  html.sx-phone-webapp .sx-topbar-right { gap: 7px !important; }
  html.sx-phone-webapp .sx-mobile-top-profile,
  html.sx-phone-webapp .sx-mobile-top-more,
  html.sx-phone-webapp .sx-season-btn,
  html.sx-phone-webapp .sx-notif {
    position: relative;
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    place-items: center;
    padding: 0 !important;
    border: .5px solid rgba(255,255,255,.8) !important;
    border-radius: 50% !important;
    color: #1c1c1e !important;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(235,239,248,.92)) !important;
    box-shadow: 0 6px 18px rgba(28,39,72,.10), inset 0 1px 0 rgba(255,255,255,.82) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-top-profile,
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-top-more,
  html[data-theme="dark"].sx-phone-webapp .sx-season-btn,
  html[data-theme="dark"].sx-phone-webapp .sx-notif {
    border-color: rgba(255,255,255,.10) !important;
    color: #fff !important;
    background: linear-gradient(180deg, rgba(54,58,70,.92), rgba(35,38,48,.90)) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
  html.sx-phone-webapp .sx-mobile-top-profile { overflow: hidden; }
  html.sx-phone-webapp .sx-mobile-top-profile img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
  html.sx-phone-webapp .sx-mobile-top-profile .sx-ios-icon,
  html.sx-phone-webapp .sx-mobile-top-more .sx-ios-icon,
  html.sx-phone-webapp .sx-notif .sx-ios-icon { width: 21px; height: 21px; }
  html.sx-phone-webapp .sx-mobile-top-more { color: #fff !important; border-color: rgba(92,101,230,.22) !important; background: linear-gradient(145deg,#188cff,#5b5ce2 70%,#7b61ff) !important; }
  html.sx-phone-webapp .sx-season-btn { color: #087cff !important; }
  html.sx-phone-webapp .sx-notif-dot { top: -4px !important; right: -4px !important; border: 2px solid var(--sx-ios-surface) !important; }

  /* Dashboard starts like an app home/menu instead of an admin landing page. */
  .sx-ios-home-launcher {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 16px;
  }
  .sx-ios-home-welcome {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 116px;
    padding: 18px 18px 18px 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.66);
    border-radius: 27px;
    color: #fff;
    background:
      radial-gradient(72% 130% at 8% -20%, rgba(255,255,255,.28), transparent 62%),
      radial-gradient(72% 100% at 103% 110%, rgba(120,81,255,.46), transparent 64%),
      linear-gradient(125deg,#0785ff 0%,#3375ee 42%,#5856d6 100%);
    box-shadow: 0 18px 42px rgba(49,91,197,.22), inset 0 1px 0 rgba(255,255,255,.28);
  }
  .sx-ios-home-welcome::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 150px;
    height: 150px;
    right: -46px;
    top: -62px;
    border-radius: 50%;
    border: 25px solid rgba(255,255,255,.10);
  }
  .sx-ios-home-welcome-copy { display: grid; gap: 1px; min-width: 0; }
  .sx-ios-home-welcome-copy > span { font-size: 12px; line-height: 1.2; font-weight: 650; color: rgba(255,255,255,.78); }
  .sx-ios-home-welcome-copy > strong { margin-top: 2px; font-size: 29px; line-height: 1.05; font-weight: 810; letter-spacing: -.048em; }
  .sx-ios-home-welcome-copy > small { margin-top: 5px; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 590; color: rgba(255,255,255,.72); }
  .sx-ios-home-menu-button {
    display: grid;
    width: 52px;
    height: 52px;
    min-width: 52px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }
  .sx-ios-home-menu-button .sx-ios-icon { width: 24px; height: 24px; }
  .sx-ios-home-shortcuts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 4px 2px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .sx-ios-home-shortcuts::-webkit-scrollbar { display: none; }
  .sx-ios-home-shortcut {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 7px;
    min-width: 0;
    padding: 3px 1px 4px;
    border: 0;
    background: transparent;
    color: var(--sx-ios-label);
    scroll-snap-align: start;
  }
  .sx-ios-home-shortcut > span:last-child { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 650; letter-spacing: -.01em; }
  .sx-ios-home-shortcut-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: .5px solid rgba(255,255,255,.82);
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg,#208fff,#376cf4);
    box-shadow: 0 9px 22px rgba(40,70,130,.15), inset 0 1px 0 rgba(255,255,255,.20);
  }
  .sx-ios-home-shortcut[data-tone="green"] .sx-ios-home-shortcut-icon { background: linear-gradient(145deg,#4dd780,#17a85b); }
  .sx-ios-home-shortcut[data-tone="orange"] .sx-ios-home-shortcut-icon { background: linear-gradient(145deg,#ffb44f,#ff7a1a); }
  .sx-ios-home-shortcut[data-tone="cyan"] .sx-ios-home-shortcut-icon { background: linear-gradient(145deg,#4ccaf3,#168fc9); }
  .sx-ios-home-shortcut[data-tone="indigo"] .sx-ios-home-shortcut-icon { background: linear-gradient(145deg,#7776ed,#5150c8); }
  .sx-ios-home-shortcut .sx-ios-icon { width: 25px; height: 25px; stroke-width: 1.9; }
  .sx-ios-home-shortcut-badge {
    position: absolute;
    top: -2px;
    right: 4px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    padding: 0 5px;
    border: 2px solid var(--sx-ios-bg);
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
  }

  /* Strict mobile width containment. No table/card may widen the page itself. */
  html.sx-phone-webapp .sx-view,
  html.sx-phone-webapp .sx-ios-content,
  html.sx-phone-webapp .card,
  html.sx-phone-webapp .card-body,
  html.sx-phone-webapp .sx-table-host,
  html.sx-phone-webapp .table-responsive,
  html.sx-phone-webapp .sx-admin-comms-table,
  html.sx-phone-webapp .training-page,
  html.sx-phone-webapp .training-editor,
  html.sx-phone-webapp .training-board-wrap,
  html.sx-phone-webapp .training-board-split,
  html.sx-phone-webapp .training-board-col,
  html.sx-phone-webapp .tactics-view,
  html.sx-phone-webapp .tactics-layout,
  html.sx-phone-webapp .tactics-pitch-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html.sx-phone-webapp .table-responsive,
  html.sx-phone-webapp .sx-table-host,
  html.sx-phone-webapp .sx-admin-comms-table {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: visible;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  html.sx-phone-webapp .table-responsive::-webkit-scrollbar,
  html.sx-phone-webapp .sx-table-host::-webkit-scrollbar,
  html.sx-phone-webapp .sx-admin-comms-table::-webkit-scrollbar { display: none; }
  html.sx-phone-webapp .table-responsive > table.table:not(.sx-mobile-card-table),
  html.sx-phone-webapp .sx-table-host > table.table:not(.sx-mobile-card-table),
  html.sx-phone-webapp table.table[data-mobile-dense="true"] {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html.sx-phone-webapp .sx-view img,
  html.sx-phone-webapp .sx-view svg:not(.sx-ios-icon),
  html.sx-phone-webapp .sx-view canvas { max-width: 100%; }

  /* Field focus is portrait-first, but the pitch itself NEVER stretches.
     Tactics is 5:3 in layout space -> exactly 3:5 visible after the 90deg turn. */
  @media (orientation: portrait) {
    body.tactics-field-focus-body #tactics-pitch-fs,
    body.training-field-focus-body #training-board-fs {
      contain: layout paint size;
    }
    #tactics-pitch-fs:fullscreen #tactics-pitch,
    #tactics-pitch-fs:-webkit-full-screen #tactics-pitch,
    body.tactics-field-focus-body #tactics-pitch-fs #tactics-pitch {
      --sx-field-cross: min(calc(100vw - 20px), 41dvh);
      position: absolute !important;
      left: 50% !important;
      top: calc(50% - 66px) !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: none !important;
      height: var(--sx-field-cross) !important;
      min-height: var(--sx-field-cross) !important;
      max-height: var(--sx-field-cross) !important;
      margin: 0 !important;
      aspect-ratio: 5 / 3 !important;
      border-radius: 15px !important;
      transform: translate(-50%,-50%) rotate(90deg) !important;
      transform-origin: center center !important;
      box-shadow: 0 22px 60px rgba(0,0,0,.34) !important;
      --player-size: clamp(36px, 10.5vw, 44px) !important;
    }
    #training-board-fs:fullscreen #training-board,
    #training-board-fs:-webkit-full-screen #training-board,
    body.training-field-focus-body #training-board-fs #training-board {
      --sx-training-cross: min(calc(100vw - 20px), 46dvh);
      position: absolute !important;
      left: 50% !important;
      top: calc(50% - 66px) !important;
      width: auto !important;
      min-width: 0 !important;
      max-width: none !important;
      height: var(--sx-training-cross) !important;
      min-height: var(--sx-training-cross) !important;
      max-height: var(--sx-training-cross) !important;
      margin: 0 !important;
      aspect-ratio: 5 / 4 !important;
      border-radius: 15px !important;
      transform: translate(-50%,-50%) rotate(90deg) !important;
      transform-origin: center center !important;
      box-shadow: 0 22px 60px rgba(0,0,0,.34) !important;
    }
    body.tactics-field-focus-body #tactics-pitch-fs #tactics-pitch .player-token,
    #tactics-pitch-fs:fullscreen #tactics-pitch .player-token,
    #tactics-pitch-fs:-webkit-full-screen #tactics-pitch .player-token {
      transform: translate(-50%,-50%) rotate(-90deg) !important;
    }
  }

  /* Give the field a clean iOS focus stage and keep controls fully outside it. */
  body.tactics-field-focus-body #tactics-pitch-fs,
  body.training-field-focus-body #training-board-fs {
    background:
      radial-gradient(74% 42% at 50% 30%, rgba(31,156,96,.18), transparent 70%),
      radial-gradient(62% 40% at 15% 5%, rgba(0,122,255,.10), transparent 72%),
      linear-gradient(180deg,#08100d 0%,#040807 62%,#010203 100%) !important;
  }
  #tactics-pitch-fs .sx-fs-dock,
  #training-board-fs .sx-fs-dock,
  body.tactics-field-focus-body .sx-fs-dock,
  body.training-field-focus-body .sx-fs-dock {
    max-height: 132px !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg,rgba(36,37,42,.80),rgba(20,21,25,.74)) !important;
  }
}
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-topbar.sx-ios-home-topbar .sx-season-btn { display: none !important; }
}

/* ========================================================================
   v4 native iOS shell — dark-mode sync, contained scrolling & glass chrome
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  :root {
    --sx-ios-glass-light: rgba(248,250,255,.66);
    --sx-ios-glass-strong-light: rgba(255,255,255,.76);
    --sx-ios-glass-dark: rgba(16,19,28,.66);
    --sx-ios-glass-strong-dark: rgba(27,30,39,.76);
  }

  /* The page itself no longer scrolls behind the fixed app chrome. The React
     view is the native-style scrolling surface, so content always remains
     between the top app bar and bottom tab bar. */
  html.sx-phone-webapp,
  html.sx-phone-webapp body {
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden !important;
    overscroll-behavior: none;
  }
  html.sx-phone-webapp .sx-layout {
    width: 100%;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }
  html.sx-phone-webapp .sx-main {
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }
  html.sx-phone-webapp .sx-topbar {
    position: relative !important;
    top: auto !important;
    flex: 0 0 auto;
  }
  html.sx-phone-webapp .sx-view {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-x: none;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: none;
  }
  html.sx-phone-webapp .sx-view::-webkit-scrollbar { display: none; }

  /* More pronounced, but still soft, iOS gradient canvas. */
  html.sx-phone-webapp body,
  html.sx-phone-webapp .sx-layout,
  html.sx-phone-webapp .sx-main,
  html.sx-phone-webapp .sx-view {
    background:
      radial-gradient(100% 62% at 3% -8%, rgba(41,171,255,.24) 0%, rgba(41,171,255,0) 62%),
      radial-gradient(88% 54% at 103% 2%, rgba(102,92,255,.22) 0%, rgba(102,92,255,0) 64%),
      radial-gradient(82% 44% at 52% 55%, rgba(102,207,255,.10) 0%, rgba(102,207,255,0) 72%),
      linear-gradient(180deg,#f8fbff 0%,#edf4ff 38%,#f2f2f7 100%) !important;
    background-attachment: scroll !important;
  }
  html[data-theme="dark"].sx-phone-webapp body,
  html[data-theme="dark"].sx-phone-webapp .sx-layout,
  html[data-theme="dark"].sx-phone-webapp .sx-main,
  html[data-theme="dark"].sx-phone-webapp .sx-view,
  body[data-theme="dark"] html.sx-phone-webapp .sx-view {
    background:
      radial-gradient(105% 62% at 0% -8%, rgba(10,132,255,.32) 0%, rgba(10,132,255,0) 61%),
      radial-gradient(92% 54% at 104% 3%, rgba(105,92,255,.30) 0%, rgba(105,92,255,0) 65%),
      radial-gradient(74% 40% at 50% 58%, rgba(48,176,199,.10) 0%, rgba(48,176,199,0) 74%),
      linear-gradient(180deg,#0b1020 0%,#070a12 42%,#000 100%) !important;
  }

  /* Compact two-line brand lockup so it never ellipsizes next to the four
     iOS action buttons. */
  html.sx-phone-webapp .sx-topbar {
    min-height: calc(68px + env(safe-area-inset-top));
    padding: calc(10px + env(safe-area-inset-top)) 13px 9px !important;
    gap: 8px !important;
    border-bottom: .5px solid rgba(255,255,255,.50) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.72),rgba(246,249,255,.58)) !important;
    box-shadow: 0 8px 28px rgba(42,58,100,.07), inset 0 -1px 0 rgba(255,255,255,.22) !important;
    -webkit-backdrop-filter: blur(38px) saturate(200%);
    backdrop-filter: blur(38px) saturate(200%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-topbar,
  body[data-theme="dark"] .sx-topbar {
    border-bottom-color: rgba(255,255,255,.08) !important;
    background: linear-gradient(180deg,rgba(25,29,40,.72),rgba(12,15,23,.60)) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.22), inset 0 -1px 0 rgba(255,255,255,.035) !important;
  }
  html.sx-phone-webapp .sx-topbar-left {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: 132px;
  }
  html.sx-phone-webapp .sx-page-title.sx-ios-brand-lockup {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: 128px !important;
    margin: 0;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    background: none !important;
    color: inherit !important;
    line-height: 1 !important;
  }
  .sx-ios-brand-primary {
    display: block;
    max-width: 100%;
    font-size: 21px;
    line-height: 1.02;
    font-weight: 830;
    letter-spacing: -.052em;
    white-space: nowrap;
    background: linear-gradient(112deg,#087cff 0%,#3c70ef 48%,#665fe3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .sx-ios-brand-secondary {
    display: block;
    margin-top: 3px;
    padding-left: 1px;
    color: var(--sx-ios-secondary);
    font-size: 10.5px;
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: .015em;
    white-space: nowrap;
  }
  html.sx-phone-webapp .sx-topbar-right {
    flex: 0 0 auto !important;
    gap: 5px !important;
    min-width: 0;
  }
  html.sx-phone-webapp .sx-mobile-top-profile,
  html.sx-phone-webapp .sx-mobile-top-more,
  html.sx-phone-webapp .sx-season-btn,
  html.sx-phone-webapp .sx-notif {
    width: 39px !important;
    height: 39px !important;
    min-width: 39px !important;
    border-color: rgba(255,255,255,.72) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.70),rgba(242,246,255,.50)) !important;
    box-shadow: 0 5px 16px rgba(42,58,100,.08), inset 0 1px 0 rgba(255,255,255,.70) !important;
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    backdrop-filter: blur(22px) saturate(190%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-top-profile,
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-top-more,
  html[data-theme="dark"].sx-phone-webapp .sx-season-btn,
  html[data-theme="dark"].sx-phone-webapp .sx-notif,
  body[data-theme="dark"] .sx-mobile-top-profile,
  body[data-theme="dark"] .sx-mobile-top-more,
  body[data-theme="dark"] .sx-season-btn,
  body[data-theme="dark"] .sx-notif {
    border-color: rgba(255,255,255,.09) !important;
    color: #fff !important;
    background: linear-gradient(180deg,rgba(70,74,86,.60),rgba(40,43,54,.48)) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }
  html.sx-phone-webapp .sx-mobile-top-more {
    color: #fff !important;
    border-color: rgba(126,129,255,.30) !important;
    background: linear-gradient(145deg,rgba(22,143,255,.92),rgba(88,86,214,.92) 70%,rgba(128,89,255,.92)) !important;
  }

  /* Frosted iOS tab bar. */
  .sx-mobile-bottom-nav {
    border-top-color: rgba(255,255,255,.52) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.66),rgba(246,248,253,.72)) !important;
    box-shadow: 0 -12px 38px rgba(39,54,89,.08), inset 0 1px 0 rgba(255,255,255,.60) !important;
    -webkit-backdrop-filter: blur(38px) saturate(205%);
    backdrop-filter: blur(38px) saturate(205%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-bottom-nav,
  body[data-theme="dark"] .sx-mobile-bottom-nav {
    border-top-color: rgba(255,255,255,.07) !important;
    background: linear-gradient(180deg,rgba(25,28,37,.68),rgba(12,14,20,.76)) !important;
    box-shadow: 0 -14px 42px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.05) !important;
  }

  /* The already-approved More menu gets a more transparent iOS material,
     without changing its information architecture. */
  .sx-mobile-more-backdrop {
    background: rgba(8,12,22,.27) !important;
    -webkit-backdrop-filter: blur(13px) saturate(130%) !important;
    backdrop-filter: blur(13px) saturate(130%) !important;
  }
  .sx-mobile-more-panel {
    border-color: rgba(255,255,255,.55) !important;
    background:
      radial-gradient(86% 40% at 102% 0%,rgba(20,132,255,.16),transparent 70%),
      radial-gradient(82% 40% at -4% 8%,rgba(100,88,230,.13),transparent 72%),
      linear-gradient(180deg,rgba(249,251,255,.72),rgba(241,245,252,.64)) !important;
    box-shadow: 0 -30px 90px rgba(13,21,44,.23), inset 0 1px 0 rgba(255,255,255,.55) !important;
    -webkit-backdrop-filter: blur(48px) saturate(210%) !important;
    backdrop-filter: blur(48px) saturate(210%) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-more-panel,
  body[data-theme="dark"] .sx-mobile-more-panel {
    border-color: rgba(255,255,255,.08) !important;
    background:
      radial-gradient(88% 40% at 102% 0%,rgba(10,132,255,.20),transparent 70%),
      radial-gradient(84% 42% at -4% 7%,rgba(94,92,230,.18),transparent 72%),
      linear-gradient(180deg,rgba(27,31,42,.72),rgba(11,14,22,.68)) !important;
    box-shadow: 0 -32px 96px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05) !important;
  }
  .sx-ios-quick,
  .sx-ios-menu-list {
    border-color: rgba(255,255,255,.58) !important;
    background: rgba(255,255,255,.56) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 7px 18px rgba(42,58,100,.04) !important;
    -webkit-backdrop-filter: blur(24px) saturate(185%);
    backdrop-filter: blur(24px) saturate(185%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-ios-quick,
  html[data-theme="dark"].sx-phone-webapp .sx-ios-menu-list,
  body[data-theme="dark"] .sx-ios-quick,
  body[data-theme="dark"] .sx-ios-menu-list {
    border-color: rgba(255,255,255,.07) !important;
    background: rgba(49,52,62,.48) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 8px 20px rgba(0,0,0,.12) !important;
  }
  .sx-mobile-round-btn {
    border: .5px solid rgba(255,255,255,.54) !important;
    background: rgba(255,255,255,.46) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45) !important;
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    backdrop-filter: blur(22px) saturate(185%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-round-btn,
  body[data-theme="dark"] .sx-mobile-round-btn {
    border-color: rgba(255,255,255,.08) !important;
    background: rgba(58,61,71,.48) !important;
  }
  .sx-ios-menu-copy small {
    display: block;
    margin-top: 2px;
    color: var(--sx-ios-secondary);
    font-size: 10px;
    line-height: 1.1;
    font-weight: 520;
  }
  .sx-ios-theme-row { grid-template-columns: 34px minmax(0,1fr) auto !important; }
  .sx-ios-theme-switch {
    position: relative;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: rgba(120,120,128,.24);
    box-shadow: inset 0 0 0 .5px rgba(60,60,67,.08);
    transition: background .22s ease;
  }
  .sx-ios-theme-switch i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.22);
    transition: transform .24s cubic-bezier(.2,.8,.2,1);
  }
  .sx-ios-theme-switch.is-on { background: #34c759; }
  .sx-ios-theme-switch.is-on i { transform: translateX(18px); }

  /* Dark mode must be complete, including the custom training surfaces. */
  html[data-theme="dark"].sx-phone-webapp .card,
  html[data-theme="dark"].sx-phone-webapp .planning-toolbar,
  html[data-theme="dark"].sx-phone-webapp .list > .list-item,
  html[data-theme="dark"].sx-phone-webapp .table-toolbar,
  html[data-theme="dark"].sx-phone-webapp .training-editor-head,
  html[data-theme="dark"].sx-phone-webapp .exercise-card,
  body[data-theme="dark"] .sx-phone-webapp .card,
  body[data-theme="dark"] .planning-toolbar,
  body[data-theme="dark"] .list > .list-item,
  body[data-theme="dark"] .table-toolbar,
  body[data-theme="dark"] .training-editor-head,
  body[data-theme="dark"] .exercise-card {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(28,28,30,.78) !important;
    color: #fff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .training-tabs .seg-btn.active,
  html[data-theme="dark"].sx-phone-webapp .planning-view-tabs button.active,
  body[data-theme="dark"] .training-tabs .seg-btn.active,
  body[data-theme="dark"] .planning-view-tabs button.active {
    background: rgba(70,70,74,.72) !important;
    color: #fff !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.22) !important;
  }
  html[data-theme="dark"].sx-phone-webapp input,
  html[data-theme="dark"].sx-phone-webapp select,
  html[data-theme="dark"].sx-phone-webapp textarea,
  html[data-theme="dark"].sx-phone-webapp .inp,
  html[data-theme="dark"].sx-phone-webapp .select,
  html[data-theme="dark"].sx-phone-webapp .textarea,
  body[data-theme="dark"] .sx-phone-webapp input,
  body[data-theme="dark"] .sx-phone-webapp select,
  body[data-theme="dark"] .sx-phone-webapp textarea {
    border-color: rgba(255,255,255,.08) !important;
    background-color: rgba(44,44,46,.78) !important;
    color: #fff !important;
  }

  /* Every horizontal strip stays inside its own card. The page never grows
     wider than the viewport; users can swipe the strip itself for extra actions. */
  html.sx-phone-webapp .card,
  html.sx-phone-webapp .card-body,
  html.sx-phone-webapp .list,
  html.sx-phone-webapp .list-item,
  html.sx-phone-webapp .planning-toolbar,
  html.sx-phone-webapp .planning-list-head {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html.sx-phone-webapp .card,
  html.sx-phone-webapp .card-body,
  html.sx-phone-webapp .list-item { overflow-x: hidden !important; }
  html.sx-phone-webapp .li-title,
  html.sx-phone-webapp .li-sub { min-width: 0 !important; max-width: 100% !important; }
  html.sx-phone-webapp .li-actions,
  html.sx-phone-webapp .cat-tags,
  html.sx-phone-webapp .need-mini,
  html.sx-phone-webapp .sx-ios-home-shortcuts {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  html.sx-phone-webapp .li-actions {
    padding: 1px 13px 4px 0 !important;
    scroll-padding-right: 13px;
  }
  html.sx-phone-webapp .li-actions::after {
    content: "";
    flex: 0 0 6px;
  }

  @media (max-width: 365px) {
    html.sx-phone-webapp .sx-topbar-left { max-width: 110px; }
    html.sx-phone-webapp .sx-page-title.sx-ios-brand-lockup { max-width: 106px !important; }
    .sx-ios-brand-primary { font-size: 19px; }
    html.sx-phone-webapp .sx-mobile-top-profile,
    html.sx-phone-webapp .sx-mobile-top-more,
    html.sx-phone-webapp .sx-season-btn,
    html.sx-phone-webapp .sx-notif { width: 36px !important; height: 36px !important; min-width: 36px !important; }
  }
}

/* ========================================================================
   v5 iOS glass pass — stronger blur, more visible canvas, lighter materials
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Richer app canvas so the translucent chrome has something to refract. */
  html.sx-phone-webapp body,
  html.sx-phone-webapp .sx-layout,
  html.sx-phone-webapp .sx-main,
  html.sx-phone-webapp .sx-view {
    background:
      radial-gradient(112% 68% at -4% -12%, rgba(27,158,255,.31) 0%, rgba(27,158,255,0) 61%),
      radial-gradient(94% 60% at 108% 0%, rgba(112,91,255,.28) 0%, rgba(112,91,255,0) 64%),
      radial-gradient(78% 48% at 54% 43%, rgba(83,184,255,.15) 0%, rgba(83,184,255,0) 72%),
      radial-gradient(72% 44% at 5% 92%, rgba(106,213,238,.10) 0%, rgba(106,213,238,0) 74%),
      linear-gradient(180deg,#f7fbff 0%,#eaf3ff 34%,#eef1fb 68%,#f2f2f7 100%) !important;
  }
  html[data-theme="dark"].sx-phone-webapp body,
  html[data-theme="dark"].sx-phone-webapp .sx-layout,
  html[data-theme="dark"].sx-phone-webapp .sx-main,
  html[data-theme="dark"].sx-phone-webapp .sx-view,
  body[data-theme="dark"] html.sx-phone-webapp .sx-view {
    background:
      radial-gradient(112% 68% at -5% -12%, rgba(0,122,255,.40) 0%, rgba(0,122,255,0) 60%),
      radial-gradient(96% 60% at 108% -1%, rgba(111,92,255,.36) 0%, rgba(111,92,255,0) 64%),
      radial-gradient(78% 46% at 54% 46%, rgba(48,176,199,.13) 0%, rgba(48,176,199,0) 72%),
      linear-gradient(180deg,#0c1326 0%,#080c17 38%,#05070d 72%,#000 100%) !important;
  }

  /* Top chrome: substantially more translucent with stronger iOS blur. */
  html.sx-phone-webapp .sx-topbar {
    border-bottom-color: rgba(255,255,255,.42) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.50),rgba(245,249,255,.38)) !important;
    box-shadow: 0 10px 34px rgba(40,58,100,.055), inset 0 1px 0 rgba(255,255,255,.56), inset 0 -1px 0 rgba(255,255,255,.16) !important;
    -webkit-backdrop-filter: blur(56px) saturate(225%) brightness(1.035) !important;
    backdrop-filter: blur(56px) saturate(225%) brightness(1.035) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-topbar,
  body[data-theme="dark"] .sx-topbar {
    border-bottom-color: rgba(255,255,255,.065) !important;
    background: linear-gradient(180deg,rgba(25,30,43,.48),rgba(10,14,23,.38)) !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.065), inset 0 -1px 0 rgba(255,255,255,.025) !important;
    -webkit-backdrop-filter: blur(58px) saturate(220%) brightness(.90) !important;
    backdrop-filter: blur(58px) saturate(220%) brightness(.90) !important;
  }

  /* Top actions should read as floating pieces of the same glass, not white circles. */
  html.sx-phone-webapp .sx-mobile-top-profile,
  html.sx-phone-webapp .sx-season-btn,
  html.sx-phone-webapp .sx-notif {
    border-color: rgba(255,255,255,.54) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.48),rgba(238,245,255,.30)) !important;
    box-shadow: 0 5px 17px rgba(42,58,100,.055), inset 0 1px 0 rgba(255,255,255,.60) !important;
    -webkit-backdrop-filter: blur(34px) saturate(210%) !important;
    backdrop-filter: blur(34px) saturate(210%) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-top-profile,
  html[data-theme="dark"].sx-phone-webapp .sx-season-btn,
  html[data-theme="dark"].sx-phone-webapp .sx-notif,
  body[data-theme="dark"] .sx-mobile-top-profile,
  body[data-theme="dark"] .sx-season-btn,
  body[data-theme="dark"] .sx-notif {
    border-color: rgba(255,255,255,.075) !important;
    background: linear-gradient(180deg,rgba(73,78,92,.40),rgba(32,37,49,.29)) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.075) !important;
  }

  /* Bottom tab bar: clearer frosted material and more of the canvas visible through it. */
  .sx-mobile-bottom-nav {
    border-top-color: rgba(255,255,255,.46) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.43),rgba(246,249,255,.49)) !important;
    box-shadow: 0 -14px 42px rgba(39,54,89,.065), inset 0 1px 0 rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(58px) saturate(225%) brightness(1.035) !important;
    backdrop-filter: blur(58px) saturate(225%) brightness(1.035) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-bottom-nav,
  body[data-theme="dark"] .sx-mobile-bottom-nav {
    border-top-color: rgba(255,255,255,.06) !important;
    background: linear-gradient(180deg,rgba(27,31,42,.43),rgba(9,12,19,.49)) !important;
    box-shadow: 0 -14px 44px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.055) !important;
    -webkit-backdrop-filter: blur(60px) saturate(220%) brightness(.90) !important;
    backdrop-filter: blur(60px) saturate(220%) brightness(.90) !important;
  }

  /* More menu: keep the approved structure, make the sheet and grouped lists more translucent. */
  .sx-mobile-more-backdrop {
    background: rgba(7,11,21,.20) !important;
    -webkit-backdrop-filter: blur(19px) saturate(145%) !important;
    backdrop-filter: blur(19px) saturate(145%) !important;
  }
  .sx-mobile-more-panel {
    border-color: rgba(255,255,255,.47) !important;
    background:
      radial-gradient(90% 44% at 103% -2%,rgba(20,132,255,.19),transparent 70%),
      radial-gradient(88% 44% at -5% 8%,rgba(100,88,230,.16),transparent 72%),
      linear-gradient(180deg,rgba(249,252,255,.54),rgba(239,245,253,.43)) !important;
    box-shadow: 0 -34px 100px rgba(13,21,44,.20), inset 0 1px 0 rgba(255,255,255,.54) !important;
    -webkit-backdrop-filter: blur(68px) saturate(230%) brightness(1.025) !important;
    backdrop-filter: blur(68px) saturate(230%) brightness(1.025) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-more-panel,
  body[data-theme="dark"] .sx-mobile-more-panel {
    border-color: rgba(255,255,255,.065) !important;
    background:
      radial-gradient(90% 44% at 103% -2%,rgba(10,132,255,.23),transparent 70%),
      radial-gradient(88% 44% at -5% 8%,rgba(94,92,230,.20),transparent 72%),
      linear-gradient(180deg,rgba(28,33,46,.53),rgba(8,12,20,.43)) !important;
    box-shadow: 0 -36px 104px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.045) !important;
    -webkit-backdrop-filter: blur(70px) saturate(225%) brightness(.90) !important;
    backdrop-filter: blur(70px) saturate(225%) brightness(.90) !important;
  }
  .sx-ios-quick,
  .sx-ios-menu-list {
    border-color: rgba(255,255,255,.48) !important;
    background: linear-gradient(180deg,rgba(255,255,255,.43),rgba(255,255,255,.34)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 8px 20px rgba(42,58,100,.035) !important;
    -webkit-backdrop-filter: blur(36px) saturate(205%) !important;
    backdrop-filter: blur(36px) saturate(205%) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-ios-quick,
  html[data-theme="dark"].sx-phone-webapp .sx-ios-menu-list,
  body[data-theme="dark"] .sx-ios-quick,
  body[data-theme="dark"] .sx-ios-menu-list {
    border-color: rgba(255,255,255,.06) !important;
    background: linear-gradient(180deg,rgba(59,64,77,.34),rgba(37,42,54,.27)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 22px rgba(0,0,0,.10) !important;
  }
  .sx-mobile-round-btn {
    border-color: rgba(255,255,255,.46) !important;
    background: rgba(255,255,255,.34) !important;
    -webkit-backdrop-filter: blur(34px) saturate(205%) !important;
    backdrop-filter: blur(34px) saturate(205%) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-round-btn,
  body[data-theme="dark"] .sx-mobile-round-btn {
    border-color: rgba(255,255,255,.065) !important;
    background: rgba(59,64,77,.31) !important;
  }
}


/* v6 — live iOS notification count badge. Keep it outside the frosted bell
   surface so it reads like a native iOS app badge instead of a web counter. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-notif-wrap,
  html.sx-phone-webapp .sx-notif {
    overflow: visible !important;
  }
  html.sx-phone-webapp .sx-notif-wrap {
    position: relative !important;
    isolation: isolate;
  }
  html.sx-phone-webapp .sx-notif-dot {
    position: absolute !important;
    top: -7px !important;
    right: -8px !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 5.5px !important;
    border: 2px solid rgba(255,255,255,.96) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg,#ff453a 0%,#ff2d55 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(255,45,85,.34), 0 0 0 .5px rgba(162,12,35,.18) !important;
    font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",sans-serif !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -.015em !important;
    font-variant-numeric: tabular-nums !important;
    pointer-events: none !important;
    transform-origin: center !important;
    animation: sxIosNotifBadgeIn .30s cubic-bezier(.18,.89,.32,1.28) both;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-notif-dot,
  body[data-theme="dark"] .sx-notif-dot {
    border-color: rgba(24,27,36,.96) !important;
    box-shadow: 0 2px 9px rgba(255,45,85,.42), 0 0 0 .5px rgba(255,255,255,.10) !important;
  }
  html.sx-phone-webapp .sx-notif.has-unread .sx-ios-icon {
    transform: scale(.96);
  }
  @keyframes sxIosNotifBadgeIn {
    0% { opacity: 0; transform: scale(.55); }
    72% { opacity: 1; transform: scale(1.10); }
    100% { opacity: 1; transform: scale(1); }
  }
}

/* ========================================================================
   v7 match action sheet — compact native iOS sizing inside app chrome
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Match logging is a child flow of the current match, not a new full-screen
     page. Keep it physically between the measured navigation bars. */
  html.sx-phone-webapp .sx-ma-sheet {
    top: calc(var(--sx-app-top-inset, calc(76px + env(safe-area-inset-top))) + 8px) !important;
    right: 0 !important;
    bottom: calc(var(--sx-app-bottom-inset, calc(var(--sx-mobile-nav-h) + env(safe-area-inset-bottom))) + 8px) !important;
    left: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }

  html.sx-phone-webapp .sx-ma-scrim {
    inset: 0 !important;
    border-radius: 24px 24px 0 0;
    background: rgba(14,18,29,.18) !important;
    -webkit-backdrop-filter: blur(12px) saturate(145%) !important;
    backdrop-filter: blur(12px) saturate(145%) !important;
  }

  html.sx-phone-webapp .sx-ma-panel {
    top: auto !important;
    right: 9px !important;
    bottom: 0 !important;
    left: 9px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    border: .5px solid rgba(255,255,255,.56) !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg,rgba(255,255,255,.76),rgba(247,250,255,.66)) !important;
    box-shadow: 0 24px 70px rgba(29,42,72,.18), inset 0 1px 0 rgba(255,255,255,.72) !important;
    -webkit-backdrop-filter: blur(46px) saturate(215%) !important;
    backdrop-filter: blur(46px) saturate(215%) !important;
    animation: sx-ma-ios-sheet-in .30s cubic-bezier(.2,.8,.2,1) both !important;
  }

  @keyframes sx-ma-ios-sheet-in {
    from { opacity: .45; transform: translate3d(0,24px,0) scale(.985); }
    to { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  }

  html[data-theme="dark"].sx-phone-webapp .sx-ma-panel,
  body[data-theme="dark"] .sx-ma-panel {
    border-color: rgba(255,255,255,.085) !important;
    background: linear-gradient(180deg,rgba(39,43,54,.74),rgba(17,21,31,.67)) !important;
    box-shadow: 0 26px 76px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.07) !important;
  }

  html.sx-phone-webapp .sx-ma-head {
    flex: 0 0 auto !important;
    padding: 15px 16px 12px !important;
    gap: 11px !important;
    border-bottom: .5px solid var(--sx-ios-separator) !important;
    background: transparent !important;
  }
  html.sx-phone-webapp .sx-ma-head h2 {
    margin-top: 1px !important;
    font-size: 20px !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
  }
  html.sx-phone-webapp .sx-ma-back {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-color: rgba(255,255,255,.48) !important;
    background: rgba(120,120,128,.12) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }

  /* Do not let an empty step stretch the sheet to full height. Long player
     lists still scroll inside this body and can use the full safe area. */
  html.sx-phone-webapp .sx-ma-body {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: min(56dvh, 520px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 14px 16px 18px !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  html.sx-phone-webapp .sx-ma-empty {
    margin: 0 !important;
    min-height: 120px;
    display: grid;
    place-items: center;
    padding: 24px 12px 30px;
    color: var(--sx-ios-secondary) !important;
    font-size: 15px !important;
    line-height: 1.4;
  }
  html.sx-phone-webapp .sx-ma-foot {
    flex: 0 0 auto !important;
    padding: 11px 16px 13px !important;
    border-top: .5px solid var(--sx-ios-separator) !important;
    background: rgba(255,255,255,.20) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    backdrop-filter: blur(24px) saturate(190%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-ma-foot,
  body[data-theme="dark"] .sx-ma-foot { background: rgba(0,0,0,.12) !important; }

  @media (prefers-reduced-motion: reduce) {
    html.sx-phone-webapp .sx-ma-panel { animation: none !important; }
  }
}

/* ========================================================================
   v8 — Full-screen native iOS exercise editor
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Entering an exercise is a real app route/workspace, not a card in Training. */
  body.sx-training-editor-open {
    overflow: hidden !important;
    touch-action: manipulation;
  }
  body.sx-training-editor-open > #sx-mobile-app-layer,
  body.sx-training-editor-open .sx-topbar {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.sx-phone-webapp .training-page.is-editing {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2600 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background:
      radial-gradient(80% 42% at 0% 0%, rgba(50,173,230,.20), transparent 68%),
      radial-gradient(76% 40% at 100% 6%, rgba(88,86,214,.17), transparent 68%),
      linear-gradient(180deg, #f5fbff 0%, #f2f5ff 34%, #f2f2f7 100%) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing,
  body[data-theme="dark"].sx-training-editor-open .training-page.is-editing {
    background:
      radial-gradient(80% 42% at 0% 0%, rgba(10,132,255,.18), transparent 66%),
      radial-gradient(76% 40% at 100% 6%, rgba(94,92,230,.18), transparent 68%),
      linear-gradient(180deg, #0a0d13 0%, #07090e 42%, #000 100%) !important;
  }

  html.sx-phone-webapp .training-page.is-editing .training-editor {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 100dvh !important;
    padding: 0 14px calc(30px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
  }

  /* Own iOS navigation bar for the editor. */
  html.sx-phone-webapp .training-mobile-editor-bar {
    order: 0;
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: calc(58px + env(safe-area-inset-top));
    margin: 0 -14px 2px !important;
    padding: calc(8px + env(safe-area-inset-top)) 14px 8px !important;
    border-bottom: .5px solid rgba(60,60,67,.12);
    background: linear-gradient(180deg, rgba(249,252,255,.68), rgba(244,248,255,.52)) !important;
    -webkit-backdrop-filter: saturate(190%) blur(34px) !important;
    backdrop-filter: saturate(190%) blur(34px) !important;
    box-shadow: 0 8px 30px rgba(48,74,126,.06);
  }
  html[data-theme="dark"].sx-phone-webapp .training-mobile-editor-bar,
  body[data-theme="dark"] .training-mobile-editor-bar {
    border-bottom-color: rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(24,27,36,.68), rgba(14,17,24,.50)) !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.18);
  }
  html.sx-phone-webapp .training-mobile-editor-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: .5px solid rgba(60,60,67,.10);
    border-radius: 50%;
    background: rgba(255,255,255,.52);
    color: var(--sx-ios-blue);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
  html[data-theme="dark"].sx-phone-webapp .training-mobile-editor-close,
  body[data-theme="dark"] .training-mobile-editor-close {
    border-color: rgba(255,255,255,.08);
    background: rgba(70,70,74,.42);
    color: #0a84ff;
  }
  html.sx-phone-webapp .training-mobile-editor-close .btn-ico {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.2;
  }
  html.sx-phone-webapp .training-mobile-editor-title {
    min-width: 0;
    text-align: center;
    line-height: 1.12;
  }
  html.sx-phone-webapp .training-mobile-editor-title > span {
    display: block;
    margin-bottom: 2px;
    color: var(--sx-ios-secondary);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .01em;
  }
  html.sx-phone-webapp .training-mobile-editor-title > strong {
    display: block;
    overflow: hidden;
    color: var(--sx-ios-label);
    font-size: 15px;
    font-weight: 730;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html.sx-phone-webapp .training-mobile-editor-save {
    min-width: 68px;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(180deg,#168dff,#007aff);
    color: #fff;
    font-size: 13px;
    font-weight: 720;
    box-shadow: 0 7px 18px rgba(0,122,255,.20), inset 0 1px 0 rgba(255,255,255,.28);
    transition: transform .16s ease, opacity .16s ease;
  }
  html.sx-phone-webapp .training-mobile-editor-save:active { transform: scale(.96); }
  html.sx-phone-webapp .training-mobile-editor-save:disabled { opacity: .45; box-shadow: none; }
  html.sx-phone-webapp .training-mobile-editor-save.is-saving { opacity: .62; }

  /* Details card: deliberately looks like an iOS grouped form. */
  html.sx-phone-webapp .training-page.is-editing .training-editor-head {
    order: 1;
    position: relative;
    display: block !important;
    margin: 2px 0 0 !important;
    padding: 14px !important;
    overflow: visible !important;
    border: .5px solid rgba(60,60,67,.12) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.66) !important;
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    backdrop-filter: blur(28px) saturate(170%);
    box-shadow: 0 8px 28px rgba(57,77,112,.055) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing .training-editor-head,
  body[data-theme="dark"] .training-page.is-editing .training-editor-head {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(28,28,30,.64) !important;
    box-shadow: 0 10px 32px rgba(0,0,0,.13) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-editor-head::before {
    content: "Oefening details";
    display: block;
    margin: 0 2px 8px;
    color: var(--sx-ios-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
  }
  html.sx-phone-webapp .training-page.is-editing .training-name-row {
    display: block !important;
  }
  html.sx-phone-webapp .training-page.is-editing #training-name {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(120,120,128,.10) !important;
    color: var(--sx-ios-label) !important;
    font-size: 18px !important;
    font-weight: 720 !important;
    letter-spacing: -.026em;
    box-shadow: inset 0 0 0 .5px rgba(60,60,67,.08) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .lock-badge { margin-top: 7px; }
  html.sx-phone-webapp .training-page.is-editing .training-meta {
    display: grid !important;
    grid-template-columns: 92px minmax(0,1fr) !important;
    gap: 9px !important;
    margin-top: 10px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-meta .meta > span {
    color: var(--sx-ios-secondary) !important;
    font-size: 10px !important;
    font-weight: 650 !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-meta input,
  html.sx-phone-webapp .training-page.is-editing .training-meta select,
  html.sx-phone-webapp .training-page.is-editing .training-meta .ms-btn {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 42px !important;
    border: .5px solid rgba(60,60,67,.10) !important;
    border-radius: 12px !important;
    background: rgba(120,120,128,.09) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-meta > .meta-share {
    grid-column: 1 / -1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px;
    padding: 0 11px;
    border-radius: 12px;
    background: rgba(120,120,128,.08);
  }
  html.sx-phone-webapp .training-page.is-editing .training-meta > #training-save { display: none !important; }
  html.sx-phone-webapp .training-page.is-editing .autosave-indicator {
    grid-column: 1 / -1 !important;
    min-height: 0 !important;
    color: var(--sx-ios-secondary) !important;
    font-size: 10px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-meta > button:not(#training-save) {
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    border: .5px solid rgba(60,60,67,.11) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.52) !important;
    color: var(--sx-ios-label) !important;
    font-size: 11px !important;
    font-weight: 680 !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .training-page.is-editing #training-fullscreen-mobile {
    background: linear-gradient(180deg,#168dff,#007aff) !important;
    color: #fff !important;
    border-color: transparent !important;
  }
  html.sx-phone-webapp .training-page.is-editing #training-archive {
    color: #ff3b30 !important;
    background: rgba(255,59,48,.08) !important;
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing .training-meta > button:not(#training-save),
  body[data-theme="dark"] .training-page.is-editing .training-meta > button:not(#training-save) {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(70,70,74,.48) !important;
    color: #fff !important;
  }

  /* Field before tool configuration: mobile-first editing flow. */
  html.sx-phone-webapp .training-page.is-editing .training-board-wrap { order: 2; }
  html.sx-phone-webapp .training-page.is-editing .training-tools { order: 3; }
  html.sx-phone-webapp .training-page.is-editing .training-equip { order: 4; }

  html.sx-phone-webapp .training-page.is-editing .training-board-split {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 12px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-board-col {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: .5px solid rgba(255,255,255,.12) !important;
    border-radius: 23px !important;
    background: #0b1c13 !important;
    box-shadow: 0 14px 34px rgba(20,53,35,.16);
  }
  html.sx-phone-webapp .training-page.is-editing .training-board-fs {
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }
  html.sx-phone-webapp .training-page.is-editing #training-board:not(.rotated) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 5 / 4 !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-trash {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    max-width: calc(100% - 24px);
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(28,28,30,.72);
    color: #fff;
    font-size: 10px;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  /* Steps are a grouped iOS section directly below the field. */
  html.sx-phone-webapp .training-page.is-editing .training-steps-panel {
    padding: 13px !important;
    border: .5px solid rgba(60,60,67,.11) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.64) !important;
    -webkit-backdrop-filter: blur(25px) saturate(165%);
    backdrop-filter: blur(25px) saturate(165%);
    box-shadow: none !important;
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing .training-steps-panel,
  body[data-theme="dark"] .training-page.is-editing .training-steps-panel {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(28,28,30,.62) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .steps-panel-head { margin-bottom: 9px; }
  html.sx-phone-webapp .training-page.is-editing .steps-title { font-size: 14px !important; font-weight: 730 !important; }
  html.sx-phone-webapp .training-page.is-editing .steps-sub { color: var(--sx-ios-secondary) !important; font-size: 10px !important; line-height: 1.35; }
  html.sx-phone-webapp .training-page.is-editing .steps-panel-list { display: grid !important; gap: 7px !important; }
  html.sx-phone-webapp .training-page.is-editing .step-row {
    display: grid !important;
    grid-template-columns: 34px minmax(0,1fr) !important;
    align-items: center;
    gap: 8px;
    padding: 7px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(120,120,128,.08) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .step-badge {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--sx-ios-blue) !important;
    color: white !important;
    font-size: 11px;
    font-weight: 750;
  }
  html.sx-phone-webapp .training-page.is-editing .step-input {
    min-width: 0 !important;
    min-height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp .training-page.is-editing .steps-desc { margin-top: 10px !important; }
  html.sx-phone-webapp .training-page.is-editing #training-description {
    width: 100% !important;
    min-height: 96px !important;
    padding: 11px !important;
    border: .5px solid rgba(60,60,67,.10) !important;
    border-radius: 14px !important;
    background: rgba(120,120,128,.08) !important;
    color: var(--sx-ios-label) !important;
  }

  /* Tools become compact touch palettes instead of desktop accordions. */
  html.sx-phone-webapp .training-page.is-editing .training-tools {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 10px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-tools .tool-accordion {
    overflow: hidden !important;
    border: .5px solid rgba(60,60,67,.11) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(25px) saturate(165%);
    backdrop-filter: blur(25px) saturate(165%);
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing .training-tools .tool-accordion,
  body[data-theme="dark"] .training-page.is-editing .training-tools .tool-accordion {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(28,28,30,.60) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-tools .acc-head {
    min-height: 48px !important;
    padding: 0 13px !important;
    font-size: 13px !important;
    font-weight: 720 !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-tools .acc-body {
    padding: 10px !important;
    border-top: .5px solid rgba(60,60,67,.10) !important;
    background: rgba(120,120,128,.055) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .tool-accordion.open[data-acc="items"] .acc-body {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .tool-accordion[data-acc="items"] .tool-visual {
    display: flex !important;
    min-width: 0 !important;
    min-height: 70px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 7px 4px !important;
    border: .5px solid rgba(60,60,67,.09) !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.60) !important;
    color: var(--sx-ios-label) !important;
    font-size: 9px !important;
    font-weight: 650 !important;
    line-height: 1.12;
    text-align: center;
  }
  html.sx-phone-webapp .training-page.is-editing .tool-accordion[data-acc="items"] .tool-visual svg {
    width: 28px !important;
    height: 26px !important;
    max-width: 32px !important;
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing .tool-accordion[data-acc="items"] .tool-visual,
  body[data-theme="dark"] .training-page.is-editing .tool-accordion[data-acc="items"] .tool-visual {
    border-color: rgba(255,255,255,.06) !important;
    background: rgba(70,70,74,.42) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .tool-accordion.open[data-acc="lines"] .acc-body {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .tool-accordion[data-acc="lines"] .tool-label {
    grid-column: 1 / -1;
    color: var(--sx-ios-secondary);
    font-size: 10px;
    font-weight: 650;
  }
  html.sx-phone-webapp .training-page.is-editing .tool-accordion[data-acc="lines"] .btn,
  html.sx-phone-webapp .training-page.is-editing .tool-accordion[data-acc="lines"] .select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    border-radius: 13px !important;
    font-size: 11px !important;
  }
  html.sx-phone-webapp .training-page.is-editing .goal-rot {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: auto auto minmax(0,1fr) auto auto !important;
    gap: 5px !important;
  }

  /* Equipment is a horizontally scrollable native-looking chip rail. */
  html.sx-phone-webapp .training-page.is-editing .training-equip {
    padding: 12px !important;
    overflow: hidden !important;
    border: .5px solid rgba(60,60,67,.11) !important;
    border-radius: 22px !important;
    background: rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(25px) saturate(165%);
    backdrop-filter: blur(25px) saturate(165%);
  }
  html[data-theme="dark"].sx-phone-webapp .training-page.is-editing .training-equip,
  body[data-theme="dark"] .training-page.is-editing .training-equip {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(28,28,30,.60) !important;
  }
  html.sx-phone-webapp .training-page.is-editing .equip-title {
    margin: 0 2px 9px !important;
    font-size: 13px !important;
    font-weight: 720 !important;
  }
  html.sx-phone-webapp .training-page.is-editing .equip-grid-inline {
    display: flex !important;
    gap: 7px !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  html.sx-phone-webapp .training-page.is-editing .equip-grid-inline::-webkit-scrollbar { display:none; }
  html.sx-phone-webapp .training-page.is-editing .equip-chip {
    flex: 0 0 auto !important;
    min-width: 88px !important;
    min-height: 62px !important;
    padding: 8px !important;
    border: .5px solid rgba(60,60,67,.09) !important;
    border-radius: 15px !important;
    background: rgba(120,120,128,.07) !important;
  }

  /* The old Training page chrome is behind the fullscreen workspace and must not peek through. */
  body.sx-training-editor-open .card.card-primary > .card-header,
  body.sx-training-editor-open .card.card-primary > .card-body > .training-tabs,
  body.sx-training-editor-open .card.card-primary > .card-body > .divider {
    pointer-events: none !important;
  }
}

/* ========================================================================
   v9 hotfix — keep exercise loading on the proven core flow
   Fullscreen is applied at the mobile shell/view level, never inside core render.
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  body.sx-training-editor-open #legacy-view {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2550 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    animation: none !important;
    transform: none !important;
    background:
      radial-gradient(78% 40% at 0% 0%, rgba(50,173,230,.21), transparent 68%),
      radial-gradient(75% 40% at 100% 7%, rgba(88,86,214,.18), transparent 68%),
      linear-gradient(180deg, #f5fbff 0%, #f2f5ff 36%, #f2f2f7 100%) !important;
  }
  html[data-theme="dark"] body.sx-training-editor-open #legacy-view,
  body[data-theme="dark"].sx-training-editor-open #legacy-view {
    background:
      radial-gradient(78% 40% at 0% 0%, rgba(10,132,255,.18), transparent 66%),
      radial-gradient(75% 40% at 100% 7%, rgba(94,92,230,.18), transparent 68%),
      linear-gradient(180deg, #0a0d13 0%, #07090e 44%, #000 100%) !important;
  }

  /* Strip the regular Training page chrome only while the editor route is open. */
  body.sx-training-editor-open #legacy-view > .card.card-primary {
    width: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  body.sx-training-editor-open #legacy-view > .card.card-primary > .card-header,
  body.sx-training-editor-open #legacy-view > .card.card-primary > .card-body > .seg-control,
  body.sx-training-editor-open #legacy-view > .card.card-primary > .card-body > .divider {
    display: none !important;
  }
  body.sx-training-editor-open #legacy-view > .card.card-primary > .card-body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }

  /* v8 used a nested fixed element. That could be clipped by shell ancestors on iOS.
     Keep the editor in normal flow inside the fixed #legacy-view instead. */
  html.sx-phone-webapp .training-page.is-editing {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
  }
  html.sx-phone-webapp .training-page.is-editing .training-editor {
    min-height: 100dvh !important;
    padding-bottom: calc(30px + env(safe-area-inset-bottom)) !important;
  }

  /* Injected mobile nav is intentionally independent of app.js core. */
  html.sx-phone-webapp .training-mobile-editor-bar {
    display: grid !important;
  }
}

/* ========================================================================
   v10 mobile stability + real table scroll + 5-message pagination
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* All data grids remain normal tables on mobile. The table itself can be
     wider; only its own wrapper scrolls. Nothing may widen the app viewport. */
  html.sx-phone-webapp .sx-mobile-table-scroll,
  html.sx-phone-webapp .table-responsive,
  html.sx-phone-webapp .sx-admin-comms-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    box-sizing: border-box !important;
  }
  html.sx-phone-webapp .sx-mobile-table-scroll::-webkit-scrollbar,
  html.sx-phone-webapp .table-responsive::-webkit-scrollbar,
  html.sx-phone-webapp .sx-admin-comms-table::-webkit-scrollbar { display: none; }

  html.sx-phone-webapp .sx-mobile-table-scroll > table,
  html.sx-phone-webapp .table-responsive > table,
  html.sx-phone-webapp .sx-admin-comms-table > table,
  html.sx-phone-webapp table.table.sx-mobile-card-table,
  html.sx-phone-webapp table.table.responsive-cards {
    display: table !important;
    width: auto !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
    border-spacing: 0 !important;
    overflow: visible !important;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table thead,
  html.sx-phone-webapp table.table.responsive-cards thead { display: table-header-group !important; }
  html.sx-phone-webapp table.table.sx-mobile-card-table tbody,
  html.sx-phone-webapp table.table.responsive-cards tbody { display: table-row-group !important; }
  html.sx-phone-webapp table.table.sx-mobile-card-table tr,
  html.sx-phone-webapp table.table.responsive-cards tr {
    display: table-row !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table th,
  html.sx-phone-webapp table.table.sx-mobile-card-table td,
  html.sx-phone-webapp table.table.responsive-cards th,
  html.sx-phone-webapp table.table.responsive-cards td,
  html.sx-phone-webapp .sx-admin-comms-table th,
  html.sx-phone-webapp .sx-admin-comms-table td {
    display: table-cell !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-align: left !important;
  }
  html.sx-phone-webapp table.table.sx-mobile-card-table td::before,
  html.sx-phone-webapp table.table.responsive-cards td::before { content: none !important; display: none !important; }

  /* React's generic table toolbar is intentionally not mounted on phones in
     v10. Hide any stale cached host while the new JS takes over. */
  html.sx-phone-webapp .sx-table-host:empty { display: none !important; }

  /* Messages: exactly five rows per mobile page. */
  html.sx-phone-webapp .sx-message-list,
  html.sx-phone-webapp .msg-rows {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  html.sx-phone-webapp .sx-message-list > button[hidden],
  html.sx-phone-webapp .msg-rows > button[hidden] { display: none !important; }
  html.sx-phone-webapp .sx-mobile-message-pagination {
    display: grid;
    grid-template-columns: 44px minmax(72px, auto) 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 12px 8px;
    border-top: .5px solid rgba(60,60,67,.16);
    box-sizing: border-box;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-message-pagination,
  body[data-theme="dark"] .sx-mobile-message-pagination { border-top-color: rgba(255,255,255,.10); }
  html.sx-phone-webapp .sx-mobile-message-pagination > span {
    display: flex;
    align-items: baseline;
    justify-content: center;
    min-width: 72px;
    color: rgba(60,60,67,.72);
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
  }
  html.sx-phone-webapp .sx-mobile-message-pagination strong {
    color: var(--sx-ios-text, #111318);
    font-size: 14px;
    font-weight: 800;
  }
  html.sx-phone-webapp .sx-mobile-message-pagination em { margin-left: 3px; font-style: normal; }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-message-pagination > span,
  body[data-theme="dark"] .sx-mobile-message-pagination > span { color: rgba(235,235,245,.58); }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-message-pagination strong,
  body[data-theme="dark"] .sx-mobile-message-pagination strong { color: #fff; }
  html.sx-phone-webapp .sx-mobile-page-btn {
    display: grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    place-items: center;
    padding: 0 !important;
    border: .5px solid rgba(255,255,255,.55) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.48) !important;
    color: #087dff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.66), 0 5px 18px rgba(41,70,120,.08) !important;
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    font: 700 25px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif !important;
  }
  html.sx-phone-webapp .sx-mobile-page-btn:active:not(:disabled) { transform: scale(.92); }
  html.sx-phone-webapp .sx-mobile-page-btn:disabled { opacity: .28; }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-page-btn,
  body[data-theme="dark"] .sx-mobile-page-btn {
    border-color: rgba(255,255,255,.10) !important;
    background: rgba(44,44,46,.48) !important;
    color: #55a8ff !important;
  }
}

@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-react-message-pagination {
    display: grid;
    grid-template-columns: 44px minmax(72px, auto) 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 12px 8px;
    border-top: .5px solid rgba(60,60,67,.16);
    box-sizing: border-box;
  }
  html.sx-phone-webapp .sx-react-message-pagination > span {
    display: flex; align-items: baseline; justify-content: center;
    min-width: 72px; color: rgba(60,60,67,.72);
    font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums;
  }
  html.sx-phone-webapp .sx-react-message-pagination strong { color: var(--sx-ios-text,#111318); font-size:14px; font-weight:800; }
  html.sx-phone-webapp .sx-react-message-pagination em { margin-left:3px; font-style:normal; }
  html.sx-phone-webapp .sx-react-message-pagination button {
    display:grid; width:40px; height:40px; min-width:40px; place-items:center; padding:0!important;
    border:.5px solid rgba(255,255,255,.55)!important; border-radius:50%!important;
    background:rgba(255,255,255,.48)!important; color:#087dff!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.66),0 5px 18px rgba(41,70,120,.08)!important;
    -webkit-backdrop-filter:blur(24px) saturate(160%); backdrop-filter:blur(24px) saturate(160%);
    font:700 25px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif!important;
  }
  html.sx-phone-webapp .sx-react-message-pagination button:active:not(:disabled){transform:scale(.92)}
  html.sx-phone-webapp .sx-react-message-pagination button:disabled{opacity:.28}
  html[data-theme="dark"].sx-phone-webapp .sx-react-message-pagination,
  body[data-theme="dark"] .sx-react-message-pagination { border-top-color:rgba(255,255,255,.10); }
  html[data-theme="dark"].sx-phone-webapp .sx-react-message-pagination > span,
  body[data-theme="dark"] .sx-react-message-pagination > span { color:rgba(235,235,245,.58); }
  html[data-theme="dark"].sx-phone-webapp .sx-react-message-pagination strong,
  body[data-theme="dark"] .sx-react-message-pagination strong { color:#fff; }
  html[data-theme="dark"].sx-phone-webapp .sx-react-message-pagination button,
  body[data-theme="dark"] .sx-react-message-pagination button {
    border-color:rgba(255,255,255,.10)!important; background:rgba(44,44,46,.48)!important; color:#55a8ff!important;
  }
}


/* v11 — larger, touch-friendly comments under Mededelingen. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-announcement-comments {
    gap: 10px !important;
    margin-top: 14px !important;
  }
  html.sx-phone-webapp .sx-announcement-comments > div {
    position: relative;
    padding: 13px 14px !important;
    border: .5px solid rgba(60,60,67,.11);
    border-radius: 17px !important;
    background: color-mix(in srgb, var(--sx-ios-surface) 72%, transparent) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    backdrop-filter: blur(24px) saturate(170%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-announcement-comments > div {
    border-color: rgba(255,255,255,.08);
    background: color-mix(in srgb, var(--sx-ios-surface) 66%, transparent) !important;
  }
  html.sx-phone-webapp .sx-announcement-comments strong {
    display: block;
    padding-right: 72px;
    color: var(--sx-ios-label) !important;
    font-size: 13.5px !important;
    line-height: 1.25 !important;
    font-weight: 720 !important;
    letter-spacing: -.012em;
  }
  html.sx-phone-webapp .sx-announcement-comments p {
    margin: 5px 0 0 !important;
    padding: 0 !important;
    color: var(--sx-ios-label) !important;
    font-size: 15px !important;
    line-height: 1.48 !important;
    letter-spacing: -.012em;
  }
  html.sx-phone-webapp .sx-announcement-comments small {
    top: 13px !important;
    right: 14px !important;
    color: var(--sx-ios-tertiary) !important;
    font-size: 10px !important;
    font-weight: 560 !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-form {
    grid-template-columns: minmax(0,1fr) 46px !important;
    gap: 9px !important;
    margin-top: 11px !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-form input {
    height: 46px !important;
    padding: 10px 14px !important;
    border-radius: 15px !important;
    font-size: 15px !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-form .sx-icon-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }
}

/* v12 — Mededelingen has its own parent tab on mobile; comments use user photos. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs {
    display:flex !important;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    justify-content:flex-start !important;
    gap:7px !important;
    padding:4px 2px 8px !important;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs::-webkit-scrollbar{display:none}
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs > button{
    flex:0 0 auto !important;
    min-width:max-content !important;
    scroll-snap-align:start;
  }
  html.sx-phone-webapp .sx-parent-announcements-tab{
    min-width:0;
    width:100%;
  }
  html.sx-phone-webapp .sx-parent-announcements-tab .sx-announcement-list{
    width:100%;
    min-width:0;
  }
  html.sx-phone-webapp .sx-announcement-comments > .sx-announcement-comment{
    grid-template-columns:42px minmax(0,1fr) !important;
    gap:11px !important;
    padding:13px 14px !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-avatar{
    width:42px !important;
    height:42px !important;
    border:2px solid color-mix(in srgb,var(--sx-ios-surface) 82%,transparent);
    box-shadow:0 4px 14px rgba(34,57,94,.10);
    font-size:14px !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy{
    min-width:0;
    padding-right:0 !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy strong{
    padding-right:66px !important;
    font-size:14px !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy p{
    margin:5px 0 0 !important;
    font-size:15.5px !important;
    line-height:1.5 !important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy small{
    top:0 !important;
    right:0 !important;
  }
}

/* v12 runtime parent portal tab + real user avatars in comments. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs {
    display:flex !important;
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    justify-content:flex-start !important;
    gap:7px !important;
    padding:4px 2px 9px !important;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs::-webkit-scrollbar{display:none}
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs > button{
    flex:0 0 auto !important;
    min-width:max-content !important;
    scroll-snap-align:start;
  }
  html.sx-phone-webapp .sx-mobile-parent-announcements-tab .sx-ios-icon{
    width:16px;height:16px;
  }
  html.sx-phone-webapp .sx-parent-portal:not(.sx-parent-mobile-announcements-mode) .sx-parent-dashboard > .sx-announcement-list{
    display:none !important;
  }
  html.sx-phone-webapp .sx-parent-portal.sx-parent-mobile-announcements-mode .sx-parent-dashboard > .sx-parent-kpis{
    display:none !important;
  }
  html.sx-phone-webapp .sx-parent-portal.sx-parent-mobile-announcements-mode .sx-parent-dashboard > .sx-announcement-list{
    display:grid !important;
    grid-column:1/-1;
    width:100%;
    min-width:0;
  }
  html.sx-phone-webapp .sx-parent-portal.sx-parent-mobile-announcements-mode .sx-parent-dashboard{
    display:block !important;
  }

  html.sx-phone-webapp .sx-announcement-comments > div.sx-comment-has-avatar{
    display:grid !important;
    grid-template-columns:42px minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    column-gap:11px !important;
    row-gap:4px !important;
    align-items:start;
    padding:13px 14px !important;
  }
  html.sx-phone-webapp .sx-announcement-comments > div.sx-comment-has-avatar::before{
    content:attr(data-sx-comment-initial);
    grid-column:1;
    grid-row:1/3;
    display:grid;
    width:42px;
    height:42px;
    place-items:center;
    overflow:hidden;
    border:2px solid color-mix(in srgb,var(--sx-ios-surface) 82%,transparent);
    border-radius:50%;
    background:linear-gradient(145deg,rgba(0,122,255,.18),rgba(88,86,214,.13));
    background-image:var(--sx-comment-avatar,linear-gradient(145deg,rgba(0,122,255,.18),rgba(88,86,214,.13)));
    background-size:cover;
    background-position:center;
    color:var(--sx-ios-blue);
    box-shadow:0 4px 14px rgba(34,57,94,.10);
    font-size:14px;
    font-weight:800;
  }
  html.sx-phone-webapp .sx-announcement-comments > div.sx-comment-has-photo::before{content:""}
  html.sx-phone-webapp .sx-announcement-comments > div.sx-comment-has-avatar > strong{
    position:static !important;
    grid-column:2;
    grid-row:1;
    padding-right:0 !important;
    font-size:14px !important;
  }
  html.sx-phone-webapp .sx-announcement-comments > div.sx-comment-has-avatar > p{
    grid-column:2/4;
    grid-row:2;
    margin:0 !important;
    font-size:15.5px !important;
    line-height:1.5 !important;
  }
  html.sx-phone-webapp .sx-announcement-comments > div.sx-comment-has-avatar > small{
    position:static !important;
    grid-column:3;
    grid-row:1;
    justify-self:end;
    align-self:center;
    white-space:nowrap;
    font-size:10px !important;
  }
}

/* ========================================================================
   v13 — sport-style fixtures, weather, announcements main tab + parent post
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-mobile-bottom-label{font-size:9.8px;letter-spacing:-.02em}

  /* Matches are a deliberate app view (not the old generic table-to-card hack).
     Desktop keeps the actual table untouched. */
  html.sx-phone-webapp body[data-sx-mobile-nav="matches"] .sx-desktop-match-table{display:none!important}
  html.sx-phone-webapp .sx-mobile-fixture-list{display:grid;gap:14px;width:100%;min-width:0}
  html.sx-phone-webapp .sx-mobile-fixture-card{
    position:relative;overflow:hidden;width:100%;min-width:0;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 72%,transparent);
    border-radius:24px;
    background:
      radial-gradient(120% 95% at 100% 0%,rgba(85,111,255,.14),transparent 55%),
      linear-gradient(150deg,color-mix(in srgb,var(--sx-ios-surface) 84%,transparent),color-mix(in srgb,var(--sx-ios-surface) 66%,transparent));
    box-shadow:0 14px 38px rgba(38,58,110,.10),inset 0 1px rgba(255,255,255,.58);
    -webkit-backdrop-filter:blur(34px) saturate(155%);backdrop-filter:blur(34px) saturate(155%);
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-fixture-card,
  body[data-theme="dark"] .sx-mobile-fixture-card{
    background:radial-gradient(120% 95% at 100% 0%,rgba(84,105,255,.2),transparent 55%),linear-gradient(150deg,rgba(28,30,42,.82),rgba(18,20,30,.66));
    border-color:rgba(255,255,255,.09);box-shadow:0 18px 45px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.08)
  }
  html.sx-phone-webapp .sx-mobile-fixture-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px 7px}
  html.sx-phone-webapp .sx-mobile-fixture-date{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:720;letter-spacing:.025em;color:var(--sx-ios-secondary)}
  html.sx-phone-webapp .sx-mobile-fixture-date b{color:var(--sx-ios-blue);font-weight:820}
  html.sx-phone-webapp .sx-mobile-fixture-kind{padding:5px 9px;border-radius:99px;background:color-mix(in srgb,var(--sx-ios-blue) 10%,transparent);color:var(--sx-ios-blue);font-size:10px;font-weight:760}
  html.sx-phone-webapp .sx-mobile-fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);align-items:start;gap:7px;padding:7px 14px 14px}
  html.sx-phone-webapp .sx-mobile-fixture-team{min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
  html.sx-phone-webapp .sx-mobile-fixture-team img,
  html.sx-phone-webapp .sx-mobile-fixture-fallback{width:58px;height:58px;object-fit:contain;border-radius:17px;padding:5px;background:rgba(255,255,255,.7);box-shadow:0 7px 18px rgba(42,60,105,.1)}
  html.sx-phone-webapp .sx-mobile-fixture-fallback{display:grid;place-items:center;padding:0;background:linear-gradient(145deg,#5ac8fa,#5362d5);color:#fff;font-size:22px;font-weight:850}
  html.sx-phone-webapp .sx-mobile-fixture-team strong{width:100%;font-size:12.5px;line-height:1.2;font-weight:760;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  html.sx-phone-webapp .sx-mobile-fixture-kick{display:flex;flex-direction:column;align-items:center;padding-top:15px}
  html.sx-phone-webapp .sx-mobile-fixture-kick strong{font-size:19px;line-height:1;font-weight:790;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
  html.sx-phone-webapp .sx-mobile-fixture-kick span{margin-top:5px;color:var(--sx-ios-tertiary);font-size:9px;font-weight:650}
  html.sx-phone-webapp .sx-mobile-fixture-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 12px;padding:10px 11px;border-radius:16px;background:color-mix(in srgb,var(--sx-ios-fill) 60%,transparent);border:1px solid color-mix(in srgb,var(--sx-ios-separator) 48%,transparent)}
  html.sx-phone-webapp .sx-mobile-fixture-location{display:flex;align-items:center;gap:7px;min-width:0;color:var(--sx-ios-secondary);font-size:11px;font-weight:600}
  html.sx-phone-webapp .sx-mobile-fixture-location .btn-ico{width:15px;height:15px;flex:0 0 auto;color:var(--sx-ios-blue)}
  html.sx-phone-webapp .sx-mobile-fixture-location span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.sx-phone-webapp .sx-mobile-weather{display:flex;align-items:center;gap:6px;min-width:82px;justify-content:flex-end;color:var(--sx-ios-secondary)}
  html.sx-phone-webapp .sx-mobile-weather .sx-weather-icon{display:grid;place-items:center;width:27px;height:27px;color:#ff9f0a;font-style:normal}
  html.sx-phone-webapp .sx-mobile-weather.is-rain .sx-weather-icon,
  html.sx-phone-webapp .sx-mobile-weather.is-cloudy .sx-weather-icon,
  html.sx-phone-webapp .sx-mobile-weather.is-fog .sx-weather-icon{color:#7f8da6}
  html.sx-phone-webapp .sx-mobile-weather.is-wind .sx-weather-icon{color:#5ac8fa}
  html.sx-phone-webapp .sx-weather-svg{width:27px;height:27px}
  html.sx-phone-webapp .sx-mobile-weather>span{display:flex;flex-direction:column;align-items:flex-end;line-height:1}
  html.sx-phone-webapp .sx-mobile-weather>strong,
  html.sx-phone-webapp .sx-mobile-weather>span>strong{color:var(--sx-ios-label);font-size:17px;font-weight:780;letter-spacing:-.04em}
  html.sx-phone-webapp .sx-mobile-weather small{max-width:92px;margin-top:3px;color:var(--sx-ios-tertiary);font-size:8.7px;font-weight:610;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html.sx-phone-webapp .sx-mobile-fixture-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 42px;gap:7px;padding:11px 12px 12px}
  html.sx-phone-webapp .sx-mobile-fixture-actions a,
  html.sx-phone-webapp .sx-mobile-fixture-actions button{min-width:0;height:39px;border:0;border-radius:12px;display:flex;align-items:center;justify-content:center;text-decoration:none;font:inherit;font-size:10.5px;font-weight:720;color:var(--sx-ios-label);background:color-mix(in srgb,var(--sx-ios-fill) 76%,transparent)}
  html.sx-phone-webapp .sx-mobile-fixture-actions .sx-mobile-fixture-open{color:#fff;background:linear-gradient(135deg,#6675f6,#5362d5);box-shadow:0 6px 16px rgba(83,98,213,.22)}
  html.sx-phone-webapp .sx-mobile-fixture-actions .sx-mobile-fixture-more .btn-ico{width:17px;height:17px}

  /* Parent fixture: same visual language as the coach fixture list while the
     attendance controls and squad information remain directly below it. */
  html.sx-phone-webapp .sx-parent-event.sx-parent-match-ios{padding:0 13px 14px!important;overflow:hidden;border-radius:24px!important;background:linear-gradient(150deg,color-mix(in srgb,var(--sx-ios-surface) 84%,transparent),color-mix(in srgb,var(--sx-ios-surface) 68%,transparent))!important;-webkit-backdrop-filter:blur(30px) saturate(150%);backdrop-filter:blur(30px) saturate(150%)}
  html.sx-phone-webapp .sx-parent-match-ios>.sx-parent-event-logo,
  html.sx-phone-webapp .sx-parent-match-ios>.sx-parent-date,
  html.sx-phone-webapp .sx-parent-match-ios>div:nth-of-type(3){display:none!important}
  html.sx-phone-webapp .sx-parent-fixture-summary{margin:0 -13px 12px;padding:12px 13px 11px;border-bottom:1px solid color-mix(in srgb,var(--sx-ios-separator) 55%,transparent);background:radial-gradient(120% 120% at 100% 0%,rgba(83,98,213,.13),transparent 58%)}
  html.sx-phone-webapp .sx-parent-fixture-date{display:flex;justify-content:center;gap:5px;color:var(--sx-ios-secondary);font-size:10px;font-weight:730;letter-spacing:.025em}
  html.sx-phone-webapp .sx-parent-fixture-date b{color:var(--sx-ios-blue)}
  html.sx-phone-webapp .sx-parent-fixture-versus{display:grid;grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr);align-items:start;gap:5px;margin-top:9px}
  html.sx-phone-webapp .sx-parent-fixture-team{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0}
  html.sx-phone-webapp .sx-parent-fixture-team img,
  html.sx-phone-webapp .sx-parent-fixture-team>span{display:grid;place-items:center;width:54px;height:54px;object-fit:contain;border-radius:16px;padding:5px;background:rgba(255,255,255,.72);font-size:20px;font-weight:800;color:#fff}
  html.sx-phone-webapp .sx-parent-fixture-team>span{padding:0;background:linear-gradient(145deg,#5ac8fa,#5362d5)}
  html.sx-phone-webapp .sx-parent-fixture-team strong{font-size:11.5px;line-height:1.18;font-weight:760;letter-spacing:-.02em}
  html.sx-phone-webapp .sx-parent-fixture-time{display:flex;flex-direction:column;align-items:center;padding-top:13px}
  html.sx-phone-webapp .sx-parent-fixture-time strong{font-size:18px;line-height:1;font-weight:790;letter-spacing:-.035em}
  html.sx-phone-webapp .sx-parent-fixture-time small{margin-top:4px;color:var(--sx-ios-tertiary);font-size:8.5px}
  html.sx-phone-webapp .sx-parent-fixture-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:10px;padding:8px 10px;border-radius:14px;background:color-mix(in srgb,var(--sx-ios-fill) 62%,transparent)}
  html.sx-phone-webapp .sx-parent-fixture-place{min-width:0;color:var(--sx-ios-secondary);font-size:10px;font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

  /* Parent post composer */
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:3px 0 12px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--sx-ios-separator) 60%,transparent);border-radius:18px;background:linear-gradient(145deg,rgba(98,117,255,.12),color-mix(in srgb,var(--sx-ios-surface) 68%,transparent));-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%)}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar>div{display:flex;align-items:center;gap:9px;min-width:0}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#7d7aff,#5362d5);color:#fff;box-shadow:0 5px 13px rgba(83,98,213,.2)}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar .sx-ios-icon{width:18px;height:18px}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar p{display:flex;flex-direction:column;margin:0;min-width:0}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar strong{font-size:12px;font-weight:760}.sx-mobile-announcement-compose-bar small{font-size:9px;color:var(--sx-ios-tertiary)}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar>button{height:34px;padding:0 11px;border:0;border-radius:11px;display:flex;align-items:center;gap:4px;background:var(--sx-ios-blue);color:#fff;font:inherit;font-size:10px;font-weight:760}
  html.sx-phone-webapp .sx-mobile-announcement-compose-bar>button .sx-ios-icon{width:14px;height:14px}

  .sx-parent-compose-layer{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:flex-end;opacity:0;pointer-events:none;transition:opacity .22s ease}
  .sx-parent-compose-layer.is-open{opacity:1;pointer-events:auto}.sx-parent-compose-layer.is-closing{opacity:0}
  .sx-parent-compose-backdrop{position:absolute;inset:0;border:0;background:rgba(10,15,28,.22);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
  .sx-parent-compose-sheet{position:relative;width:100%;max-height:calc(100dvh - max(58px,var(--sx-app-top-inset,58px)));overflow:auto;padding:8px 15px calc(18px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;border:1px solid rgba(255,255,255,.36);background:rgba(248,250,255,.82);box-shadow:0 -18px 55px rgba(20,34,76,.18);-webkit-backdrop-filter:blur(58px) saturate(175%);backdrop-filter:blur(58px) saturate(175%);transform:translate3d(0,25px,0) scale(.985);transition:transform .34s cubic-bezier(.2,.82,.2,1)}
  .sx-parent-compose-layer.is-open .sx-parent-compose-sheet{transform:none}
  html[data-theme="dark"] .sx-parent-compose-sheet,body[data-theme="dark"] .sx-parent-compose-sheet{background:rgba(22,24,34,.82);border-color:rgba(255,255,255,.09);box-shadow:0 -18px 55px rgba(0,0,0,.4)}
  .sx-parent-compose-handle{width:38px;height:5px;margin:0 auto 7px;border-radius:99px;background:rgba(120,120,128,.25)}
  .sx-parent-compose-sheet>header{position:sticky;top:-8px;z-index:2;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 0 11px;background:linear-gradient(to bottom,color-mix(in srgb,var(--sx-ios-surface) 92%,transparent) 70%,transparent)}
  .sx-parent-compose-sheet header>div{text-align:center}.sx-parent-compose-sheet header small{display:block;color:var(--sx-ios-tertiary);font-size:9px;font-weight:650}.sx-parent-compose-sheet h2{margin:2px 0 0;font-size:17px;line-height:1.1;letter-spacing:-.035em}
  .sx-parent-compose-close{width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--sx-ios-fill) 82%,transparent);color:var(--sx-ios-label)}
  .sx-parent-compose-close .sx-ios-icon{width:18px;height:18px}.sx-parent-compose-send{height:36px;padding:0 12px;border:0;border-radius:11px;background:var(--sx-ios-blue);color:#fff;font:inherit;font-size:11px;font-weight:780}
  .sx-parent-compose-send:disabled{opacity:.55}
  #sx-parent-compose-form{display:grid;gap:11px;padding-top:5px}
  #sx-parent-compose-form label{display:grid;gap:6px;padding:10px 11px;border-radius:16px;background:color-mix(in srgb,var(--sx-ios-fill) 56%,transparent)}
  #sx-parent-compose-form label>span{font-size:10px;color:var(--sx-ios-secondary);font-weight:680}
  #sx-parent-compose-form input,#sx-parent-compose-form select,#sx-parent-compose-form textarea{width:100%;min-width:0;border:0!important;background:transparent!important;color:var(--sx-ios-label)!important;font:inherit;font-size:15px;outline:0;resize:none}
  #sx-parent-compose-form textarea{line-height:1.45;min-height:128px}
  #sx-parent-compose-form .sx-parent-compose-photo{position:relative;min-height:56px}.sx-parent-compose-photo input{position:absolute!important;inset:0;opacity:0}.sx-parent-compose-photo em{font-style:normal;font-size:13px;font-weight:690;color:var(--sx-ios-blue)}
  .sx-parent-compose-note{margin:0 4px;color:var(--sx-ios-tertiary);font-size:10px;line-height:1.35}
}

@media (min-width: 821px) and (pointer: fine) {
  html:not(.sx-phone-webapp) .sx-mobile-fixture-list{display:none!important}
}

/* v13.1 fixture finishing: sport-app scoreboard hierarchy */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-mobile-fixture-kick.has-score strong{font-size:21px;letter-spacing:-.055em}
  html.sx-phone-webapp .sx-mobile-fixture-kick.has-score span{color:#34c759;font-weight:760;text-transform:uppercase;letter-spacing:.06em}
  html.sx-phone-webapp .sx-parent-fixture-time.is-live strong{font-size:19px;color:var(--sx-ios-label)}
  html.sx-phone-webapp .sx-parent-fixture-time.is-live small{padding:3px 6px;border-radius:99px;color:#fff;background:#ff3b30;font-size:7.5px;font-weight:840;letter-spacing:.08em}
  html.sx-phone-webapp .sx-mobile-fixture-card:before{content:"";position:absolute;inset:0 0 auto;height:48%;pointer-events:none;background:linear-gradient(180deg,rgba(98,117,255,.055),transparent)}
  html.sx-phone-webapp .sx-mobile-fixture-card>*{position:relative;z-index:1}
  html.sx-phone-webapp .sx-mobile-fixture-meta{border-top:1px solid color-mix(in srgb,var(--sx-ios-separator) 38%,transparent);border-bottom:1px solid color-mix(in srgb,var(--sx-ios-separator) 38%,transparent)}
  html.sx-phone-webapp .sx-mobile-weather.is-ready{padding:5px 7px;border-radius:11px;background:color-mix(in srgb,var(--sx-ios-fill) 54%,transparent)}
}
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-admin-announcements.sx-mobile-announcements-focus{scroll-margin-top:calc(var(--sx-app-top-inset,70px) + 10px)}
}

/* ========================================================================
   v14 — full-width parent match summary + weather on training cards
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Parent match: scoreboard/weather owns a complete row. The native pills,
     attendance and squad info follow beneath it instead of sitting beside it. */
  html.sx-phone-webapp .sx-parent-event.sx-parent-match-ios{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios>.sx-parent-fixture-summary{
    grid-column:1/-1!important;
    width:auto!important;
    min-width:0!important;
    margin:0 -13px 13px!important;
    padding:13px 15px 12px!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios>div:has(>h3){
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    padding:1px 2px 11px!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios>div:has(>h3)>h3{
    margin:0 0 9px!important;
    font-size:16px!important;
    line-height:1.18!important;
    letter-spacing:-.035em!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios .sx-parent-when{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:7px!important;
    margin:0!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios .sx-when-chip{
    min-height:32px!important;
    padding:6px 10px!important;
    border-radius:999px!important;
    font-size:11px!important;
    font-weight:730!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios .sx-when-place{
    flex:1 0 100%!important;
    display:flex!important;
    align-items:center!important;
    min-width:0!important;
    padding:2px 3px 0!important;
    color:var(--sx-ios-secondary)!important;
    font-size:11px!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios>.sx-parent-attendance,
  html.sx-phone-webapp .sx-parent-match-ios>.sx-live,
  html.sx-phone-webapp .sx-parent-match-ios>.sx-squad,
  html.sx-phone-webapp .sx-parent-match-ios>.sx-squad-empty,
  html.sx-phone-webapp .sx-parent-match-ios>.sx-report-open{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
  html.sx-phone-webapp .sx-parent-fixture-info{
    grid-template-columns:minmax(0,1fr) minmax(118px,auto)!important;
    width:100%!important;
    min-height:48px!important;
    margin-top:12px!important;
    padding:8px 11px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 42%,transparent)!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,color-mix(in srgb,var(--sx-ios-fill) 66%,transparent),rgba(83,98,213,.055))!important;
  }
  html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather{
    min-width:118px!important;
    justify-content:flex-end!important;
  }
  html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather>span{
    align-items:flex-end!important;
  }
  html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather>span>strong,
  html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather>strong{
    font-size:19px!important;
  }

  /* Coach training planning: same forecast language as match cards. */
  html.sx-phone-webapp .sx-training-plan-weather-card{
    width:100%!important;
    min-width:0!important;
  }
  html.sx-phone-webapp .sx-training-weather-row,
  html.sx-phone-webapp .sx-parent-training-weather-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    margin:10px 0 2px!important;
    padding:9px 11px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 45%,transparent)!important;
    border-radius:15px!important;
    background:linear-gradient(135deg,color-mix(in srgb,var(--sx-ios-fill) 61%,transparent),rgba(83,98,213,.06))!important;
    -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
    backdrop-filter:blur(22px) saturate(145%)!important;
  }
  html.sx-phone-webapp .sx-training-weather-place,
  html.sx-phone-webapp .sx-parent-training-weather-place{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    min-width:0!important;
    color:var(--sx-ios-secondary)!important;
    font-size:10.5px!important;
    font-weight:650!important;
  }
  html.sx-phone-webapp .sx-training-weather-place .btn-ico,
  html.sx-phone-webapp .sx-parent-training-weather-place .sx-ios-icon{
    width:16px!important;
    height:16px!important;
    flex:0 0 auto!important;
    color:var(--sx-ios-blue)!important;
  }
  html.sx-phone-webapp .sx-training-weather-place>span,
  html.sx-phone-webapp .sx-parent-training-weather-place>span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather,
  html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather{
    min-width:112px!important;
  }
  html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather small,
  html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather small{
    max-width:110px!important;
  }

  /* React parent training cards remain one-column and receive the weather row
     immediately before the attendance controls. */
  html.sx-phone-webapp .sx-parent-event.sx-parent-training-ios{
    grid-template-columns:minmax(0,1fr)!important;
    align-items:stretch!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
  }
  html.sx-phone-webapp .sx-parent-training-ios>.sx-parent-event-logo{
    display:none!important;
  }
  /* Keep the training date visible in the parent portal on phones. */
  html.sx-phone-webapp .sx-parent-training-ios>.sx-parent-date{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    width:max-content!important;
    max-width:100%!important;
    margin:0!important;
    color:var(--sx-ios-blue,#5362d5)!important;
    font-size:12px!important;
    font-weight:750!important;
    line-height:1.2!important;
  }
  html.sx-phone-webapp .sx-parent-training-ios>.sx-parent-date .sx-ios-icon,
  html.sx-phone-webapp .sx-parent-training-ios>.sx-parent-date svg{
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
  }
  html.sx-phone-webapp .sx-parent-training-ios>div:has(>h3),
  html.sx-phone-webapp .sx-parent-training-ios>.sx-parent-attendance,
  html.sx-phone-webapp .sx-parent-training-ios>.sx-squad,
  html.sx-phone-webapp .sx-parent-training-ios>.sx-squad-empty{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
  }
  html.sx-phone-webapp .sx-parent-training-ios>div:has(>h3)>h3{
    font-size:16px!important;
    letter-spacing:-.03em!important;
  }

  html[data-theme="dark"].sx-phone-webapp .sx-training-weather-row,
  html[data-theme="dark"].sx-phone-webapp .sx-parent-training-weather-row,
  body[data-theme="dark"] .sx-training-weather-row,
  body[data-theme="dark"] .sx-parent-training-weather-row{
    background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(83,98,213,.10))!important;
    border-color:rgba(255,255,255,.08)!important;
  }
}

/* Desktop never exposes the mobile-only training forecast row. */
@media (min-width: 821px) and (pointer: fine) {
  html:not(.sx-phone-webapp) .sx-training-weather-row{display:none!important}
}

/* ========================================================================
   v15 — Heemskerk weather source + personal fixture story
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-mobile-fixture-story,
  html.sx-phone-webapp .sx-parent-fixture-story{
    margin:2px 15px 5px!important;
    padding:9px 11px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 38%,transparent)!important;
    border-radius:14px!important;
    background:linear-gradient(135deg,rgba(83,98,213,.085),color-mix(in srgb,var(--sx-ios-fill) 48%,transparent))!important;
    color:var(--sx-ios-label)!important;
    font-size:12px!important;
    line-height:1.35!important;
    font-weight:650!important;
    letter-spacing:-.018em!important;
    -webkit-backdrop-filter:blur(24px) saturate(145%)!important;
    backdrop-filter:blur(24px) saturate(145%)!important;
  }
  html.sx-phone-webapp .sx-parent-fixture-story{
    margin:8px 0 4px!important;
    text-align:center!important;
  }
  html[data-theme="dark"].sx-phone-webapp .sx-mobile-fixture-story,
  html[data-theme="dark"].sx-phone-webapp .sx-parent-fixture-story,
  body[data-theme="dark"] .sx-mobile-fixture-story,
  body[data-theme="dark"] .sx-parent-fixture-story{
    background:linear-gradient(135deg,rgba(83,98,213,.16),rgba(255,255,255,.045))!important;
    border-color:rgba(255,255,255,.08)!important;
  }
}

/* v16 — overview upcoming match hero + Apple Weather-like forecast backgrounds */
html.sx-phone-webapp .sx-parent-overview-match,
body.sx-phone-webapp .sx-parent-overview-match{
  margin:14px 0 2px;
  border:1px solid color-mix(in srgb,var(--sx-ios-separator) 54%,transparent);
  border-radius:26px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-surface) 92%,rgba(255,255,255,.76)),color-mix(in srgb,var(--sx-ios-surface) 97%,rgba(255,255,255,.72)));
  box-shadow:0 18px 36px rgba(15,23,42,.09);
  overflow:hidden;
}
html.sx-phone-webapp .sx-overview-match-head,
body.sx-phone-webapp .sx-overview-match-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px 8px;
}
html.sx-phone-webapp .sx-overview-match-head>span,
body.sx-phone-webapp .sx-overview-match-head>span{font-size:13px;font-weight:800;letter-spacing:-.03em;color:var(--sx-ios-label)}
html.sx-phone-webapp .sx-overview-match-head>small,
body.sx-phone-webapp .sx-overview-match-head>small{font-size:10px;font-weight:760;letter-spacing:.06em;text-transform:uppercase;color:var(--sx-ios-blue)}
html.sx-phone-webapp .sx-overview-match-hero,
body.sx-phone-webapp .sx-overview-match-hero,
html.sx-phone-webapp .sx-parent-fixture-info,
html.sx-phone-webapp .sx-training-weather-row,
html.sx-phone-webapp .sx-parent-training-weather-row,
body.sx-phone-webapp .sx-parent-fixture-info,
body.sx-phone-webapp .sx-training-weather-row,
body.sx-phone-webapp .sx-parent-training-weather-row{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
html.sx-phone-webapp .sx-overview-match-hero,
body.sx-phone-webapp .sx-overview-match-hero{
  margin:0 12px;
  padding:16px 14px 14px;
  border-radius:23px;
  color:#fff;
  background:linear-gradient(180deg,#86bff9 0%,#5d8ef0 45%,#4f77da 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 12px 24px rgba(83,98,213,.18);
}
html.sx-phone-webapp .sx-overview-match-hero::before,
html.sx-phone-webapp .sx-parent-fixture-info::before,
html.sx-phone-webapp .sx-training-weather-row::before,
html.sx-phone-webapp .sx-parent-training-weather-row::before,
body.sx-phone-webapp .sx-overview-match-hero::before,
body.sx-phone-webapp .sx-parent-fixture-info::before,
body.sx-phone-webapp .sx-training-weather-row::before,
body.sx-phone-webapp .sx-parent-training-weather-row::before{
  content:"";
  position:absolute;
  inset:auto -10% 44% auto;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.34),rgba(255,255,255,.06) 55%,transparent 72%);
  pointer-events:none;
  z-index:-1;
}
html.sx-phone-webapp .sx-overview-match-hero::after,
html.sx-phone-webapp .sx-parent-fixture-info::after,
html.sx-phone-webapp .sx-training-weather-row::after,
html.sx-phone-webapp .sx-parent-training-weather-row::after,
body.sx-phone-webapp .sx-overview-match-hero::after,
body.sx-phone-webapp .sx-parent-fixture-info::after,
body.sx-phone-webapp .sx-training-weather-row::after,
body.sx-phone-webapp .sx-parent-training-weather-row::after{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-38%;
  height:68%;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(255,255,255,.14),transparent 70%);
  pointer-events:none;
  z-index:-1;
}
html.sx-phone-webapp .sx-overview-story,
body.sx-phone-webapp .sx-overview-story{
  margin:0 0 13px;
  color:rgba(255,255,255,.96)!important;
  font-size:15px!important;
  line-height:1.34!important;
  font-weight:760!important;
  text-wrap:balance;
}
html.sx-phone-webapp .sx-overview-versus,
body.sx-phone-webapp .sx-overview-versus{
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr);
  align-items:center;
  gap:8px;
}
html.sx-phone-webapp .sx-overview-team,
body.sx-phone-webapp .sx-overview-team{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;min-width:0}
html.sx-phone-webapp .sx-overview-team img,
html.sx-phone-webapp .sx-overview-team>span,
body.sx-phone-webapp .sx-overview-team img,
body.sx-phone-webapp .sx-overview-team>span{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;object-fit:contain;padding:6px;background:rgba(255,255,255,.92);box-shadow:inset 0 1px 0 rgba(255,255,255,.72)}
html.sx-phone-webapp .sx-overview-team>span,
body.sx-phone-webapp .sx-overview-team>span{padding:0;background:rgba(255,255,255,.2);color:#fff;font-size:20px;font-weight:850}
html.sx-phone-webapp .sx-overview-team strong,
body.sx-phone-webapp .sx-overview-team strong{font-size:12.5px;line-height:1.22;font-weight:780;letter-spacing:-.03em;color:#fff}
html.sx-phone-webapp .sx-overview-center,
body.sx-phone-webapp .sx-overview-center{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:68px}
html.sx-phone-webapp .sx-overview-center strong,
body.sx-phone-webapp .sx-overview-center strong{font-size:24px;line-height:1;font-weight:860;letter-spacing:-.05em;color:#fff}
html.sx-phone-webapp .sx-overview-center small,
body.sx-phone-webapp .sx-overview-center small{margin-top:5px;font-size:9px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:rgba(255,255,255,.82)}
html.sx-phone-webapp .sx-overview-center.is-live small,
body.sx-phone-webapp .sx-overview-center.is-live small{padding:3px 7px;border-radius:999px;background:#ff453a;color:#fff;letter-spacing:.08em}
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:14px;padding:11px 12px;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.16)}
html.sx-phone-webapp .sx-overview-weather-main,
body.sx-phone-webapp .sx-overview-weather-main{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
html.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather,
body.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather{min-width:0;justify-content:flex-start;color:#fff}
html.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather .sx-weather-icon,
body.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather .sx-weather-icon{width:34px;height:34px;color:#fff}
html.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather>span,
body.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather>span{align-items:flex-start}
html.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather>span>strong,
html.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather>strong,
body.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather>span>strong,
body.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather>strong{font-size:27px;color:#fff}
html.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather small,
body.sx-phone-webapp .sx-overview-weather-band .sx-mobile-weather small{max-width:none;margin-top:4px;font-size:10px;color:rgba(255,255,255,.9)}
html.sx-phone-webapp .sx-overview-weather-main p,
body.sx-phone-webapp .sx-overview-weather-main p{margin:0;font-size:12px;line-height:1.45;font-weight:700;color:rgba(255,255,255,.96)}
html.sx-phone-webapp .sx-overview-weather-location,
body.sx-phone-webapp .sx-overview-weather-location{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:720;color:rgba(255,255,255,.92)}
html.sx-phone-webapp .sx-overview-weather-location .sx-ios-icon,
body.sx-phone-webapp .sx-overview-weather-location .sx-ios-icon{width:15px;height:15px;opacity:.96}
html.sx-phone-webapp .sx-overview-match-pills,
body.sx-phone-webapp .sx-overview-match-pills{display:flex;flex-wrap:wrap;gap:8px;padding:13px 12px 14px}
html.sx-phone-webapp .sx-overview-match-pills .sx-when-chip,
body.sx-phone-webapp .sx-overview-match-pills .sx-when-chip{min-height:36px;padding:7px 12px;border-radius:999px;font-size:11.5px;font-weight:760}

html.sx-phone-webapp .sx-parent-fixture-info,
html.sx-phone-webapp .sx-training-weather-row,
html.sx-phone-webapp .sx-parent-training-weather-row,
body.sx-phone-webapp .sx-parent-fixture-info,
body.sx-phone-webapp .sx-training-weather-row,
body.sx-phone-webapp .sx-parent-training-weather-row{color:#fff!important}
html.sx-phone-webapp .sx-parent-fixture-info .sx-parent-fixture-place,
html.sx-phone-webapp .sx-training-weather-place,
html.sx-phone-webapp .sx-parent-training-weather-place,
html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather,
html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather,
html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather,
html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather>span>strong,
html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather small,
html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather>span>strong,
html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather small,
html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather>span>strong,
html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather small,
body.sx-phone-webapp .sx-parent-fixture-info .sx-parent-fixture-place,
body.sx-phone-webapp .sx-training-weather-place,
body.sx-phone-webapp .sx-parent-training-weather-place,
body.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather,
body.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather,
body.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather,
body.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather>span>strong,
body.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather small,
body.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather>span>strong,
body.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather small,
body.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather>span>strong,
body.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather small{color:#fff!important}
html.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather small,
html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather small,
html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather small,
body.sx-phone-webapp .sx-parent-fixture-info .sx-mobile-weather small,
body.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather small,
body.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather small{opacity:.92}
html.sx-phone-webapp .sx-parent-fixture-info .sx-weather-icon,
html.sx-phone-webapp .sx-training-weather-row .sx-weather-icon,
html.sx-phone-webapp .sx-parent-training-weather-row .sx-weather-icon,
body.sx-phone-webapp .sx-parent-fixture-info .sx-weather-icon,
body.sx-phone-webapp .sx-training-weather-row .sx-weather-icon,
body.sx-phone-webapp .sx-parent-training-weather-row .sx-weather-icon{color:#fff!important}

html.sx-phone-webapp .sx-weather-theme-clear-day,
body.sx-phone-webapp .sx-weather-theme-clear-day{background:linear-gradient(180deg,#8fd3ff 0%,#6ca8ff 42%,#4f7ff3 100%)!important}
html.sx-phone-webapp .sx-weather-theme-partly-day,
body.sx-phone-webapp .sx-weather-theme-partly-day{background:linear-gradient(180deg,#7fc6ff 0%,#6e9dfd 46%,#6070ea 100%)!important}
html.sx-phone-webapp .sx-weather-theme-cloudy,
body.sx-phone-webapp .sx-weather-theme-cloudy{background:linear-gradient(180deg,#98b7d8 0%,#7891ba 48%,#647aa0 100%)!important}
html.sx-phone-webapp .sx-weather-theme-rain,
body.sx-phone-webapp .sx-weather-theme-rain{background:linear-gradient(180deg,#7d95bb 0%,#60749e 44%,#475a80 100%)!important}
html.sx-phone-webapp .sx-weather-theme-wind,
body.sx-phone-webapp .sx-weather-theme-wind{background:linear-gradient(180deg,#89c5d9 0%,#5fb0d0 42%,#4b8fba 100%)!important}
html.sx-phone-webapp .sx-weather-theme-fog,
body.sx-phone-webapp .sx-weather-theme-fog{background:linear-gradient(180deg,#b8c3d6 0%,#9aa8c0 44%,#7e90a8 100%)!important}
html.sx-phone-webapp .sx-weather-theme-snow,
body.sx-phone-webapp .sx-weather-theme-snow{background:linear-gradient(180deg,#dfeeff 0%,#c0d7fb 46%,#93b6ef 100%)!important}
html.sx-phone-webapp .sx-weather-theme-storm,
body.sx-phone-webapp .sx-weather-theme-storm{background:linear-gradient(180deg,#59658f 0%,#424f78 42%,#2d375d 100%)!important}
html.sx-phone-webapp .sx-weather-theme-clear-night,
body.sx-phone-webapp .sx-weather-theme-clear-night{background:linear-gradient(180deg,#2d447a 0%,#25355d 44%,#18223d 100%)!important}
html.sx-phone-webapp .sx-weather-theme-partly-night,
body.sx-phone-webapp .sx-weather-theme-partly-night{background:linear-gradient(180deg,#42598e 0%,#334872 42%,#223458 100%)!important}
html.sx-phone-webapp .sx-weather-theme-unavailable,
body.sx-phone-webapp .sx-weather-theme-unavailable{background:linear-gradient(180deg,#95a2b8 0%,#7f8ca3 45%,#69758a 100%)!important}

html.sx-phone-webapp .sx-weather-theme-clear-day::before,
html.sx-phone-webapp .sx-weather-theme-partly-day::before,
body.sx-phone-webapp .sx-weather-theme-clear-day::before,
body.sx-phone-webapp .sx-weather-theme-partly-day::before{background:radial-gradient(circle at 50% 50%,rgba(255,246,196,.96),rgba(255,238,165,.3) 42%,transparent 68%)!important}
html.sx-phone-webapp .sx-weather-theme-clear-night::before,
html.sx-phone-webapp .sx-weather-theme-partly-night::before,
body.sx-phone-webapp .sx-weather-theme-clear-night::before,
body.sx-phone-webapp .sx-weather-theme-partly-night::before{background:radial-gradient(circle at 50% 50%,rgba(248,250,255,.96),rgba(248,250,255,.22) 38%,transparent 68%)!important}
html.sx-phone-webapp .sx-weather-theme-rain::after,
html.sx-phone-webapp .sx-weather-theme-storm::after,
body.sx-phone-webapp .sx-weather-theme-rain::after,
body.sx-phone-webapp .sx-weather-theme-storm::after{background:linear-gradient(115deg,transparent 0 40%,rgba(255,255,255,.14) 40% 43%,transparent 43% 49%,rgba(255,255,255,.1) 49% 52%,transparent 52% 100%),radial-gradient(ellipse at center,rgba(255,255,255,.08),transparent 75%)!important}
html.sx-phone-webapp .sx-weather-theme-cloudy::before,
html.sx-phone-webapp .sx-weather-theme-fog::before,
body.sx-phone-webapp .sx-weather-theme-cloudy::before,
body.sx-phone-webapp .sx-weather-theme-fog::before{background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.45),rgba(255,255,255,.16) 44%,transparent 68%)!important}
html.sx-phone-webapp .sx-weather-theme-wind::after,
body.sx-phone-webapp .sx-weather-theme-wind::after{background:linear-gradient(100deg,transparent 0 30%,rgba(255,255,255,.13) 30% 34%,transparent 34% 38%,rgba(255,255,255,.1) 38% 42%,transparent 42% 100%),radial-gradient(ellipse at center,rgba(255,255,255,.09),transparent 70%)!important}

html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match,
body[data-theme="dark"] .sx-parent-overview-match{background:linear-gradient(180deg,rgba(17,25,40,.92),rgba(12,18,31,.96));box-shadow:0 18px 36px rgba(0,0,0,.28)}
html[data-theme="dark"].sx-phone-webapp .sx-overview-match-head>span,
body[data-theme="dark"] .sx-overview-match-head>span{color:#f8fbff}
html[data-theme="dark"].sx-phone-webapp .sx-overview-match-pills .sx-when-chip,
body[data-theme="dark"] .sx-overview-match-pills .sx-when-chip{box-shadow:none}

/* v17 — animated Apple Weather-like weather backgrounds */
@keyframes sxWeatherSkyDrift {
  0% { background-position: 0% 0%, 50% 0%, 50% 100%; }
  50% { background-position: 100% 18%, 34% 8%, 58% 100%; }
  100% { background-position: 0% 0%, 50% 0%, 50% 100%; }
}
@keyframes sxWeatherOrbFloat {
  0% { transform: translate3d(0,0,0) scale(1); opacity: .78; }
  50% { transform: translate3d(-10px,8px,0) scale(1.08); opacity: .98; }
  100% { transform: translate3d(0,0,0) scale(1); opacity: .78; }
}
@keyframes sxWeatherCloudDrift {
  0% { transform: translate3d(-8%,0,0); opacity: .32; }
  50% { transform: translate3d(6%,4%,0); opacity: .48; }
  100% { transform: translate3d(-8%,0,0); opacity: .32; }
}
@keyframes sxWeatherRainFall {
  0% { transform: translate3d(0,-8px,0); background-position: 0 0, 0 0; opacity: .30; }
  100% { transform: translate3d(0,8px,0); background-position: 0 28px, 0 0; opacity: .48; }
}
@keyframes sxWeatherWindMove {
  0% { transform: translate3d(-10px,0,0); opacity: .28; }
  50% { transform: translate3d(10px,-4px,0); opacity: .42; }
  100% { transform: translate3d(-10px,0,0); opacity: .28; }
}
@keyframes sxWeatherLightningFlash {
  0%, 42%, 100% { opacity: .18; }
  43%, 45% { opacity: .60; }
  46%, 48% { opacity: .12; }
  49%, 50% { opacity: .55; }
}

html.sx-phone-webapp .sx-overview-match-hero,
html.sx-phone-webapp .sx-parent-fixture-info,
html.sx-phone-webapp .sx-training-weather-row,
html.sx-phone-webapp .sx-parent-training-weather-row,
body.sx-phone-webapp .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-fixture-info,
body.sx-phone-webapp .sx-training-weather-row,
body.sx-phone-webapp .sx-parent-training-weather-row{
  background-size: 170% 170%, 190% 190%, auto !important;
  animation: sxWeatherSkyDrift 18s ease-in-out infinite;
  will-change: background-position;
}
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band{
  background-size: 160% 160%, 180% 180%, auto !important;
  animation: sxWeatherSkyDrift 20s ease-in-out infinite;
  will-change: background-position;
}

html.sx-phone-webapp .sx-weather-theme-clear-day,
html.sx-phone-webapp .sx-weather-theme-partly-day,
body.sx-phone-webapp .sx-weather-theme-clear-day,
body.sx-phone-webapp .sx-weather-theme-partly-day{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.34), transparent 26%),
    linear-gradient(180deg, rgba(165,221,255,.92) 0%, rgba(102,163,255,.94) 48%, rgba(70,116,227,.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-cloudy,
html.sx-phone-webapp .sx-weather-theme-fog,
body.sx-phone-webapp .sx-weather-theme-cloudy,
body.sx-phone-webapp .sx-weather-theme-fog{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(180deg, rgba(164,190,219,.95) 0%, rgba(121,146,185,.96) 50%, rgba(89,108,142,.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-rain,
body.sx-phone-webapp .sx-weather-theme-rain{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(180deg, rgba(121,149,194,.96) 0%, rgba(88,111,154,.98) 50%, rgba(61,77,116,.99) 100%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-wind,
body.sx-phone-webapp .sx-weather-theme-wind{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.18), transparent 25%),
    linear-gradient(180deg, rgba(136,212,226,.94) 0%, rgba(84,171,205,.96) 47%, rgba(58,129,177,.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-snow,
body.sx-phone-webapp .sx-weather-theme-snow{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.28), transparent 24%),
    linear-gradient(180deg, rgba(236,245,255,.96) 0%, rgba(188,213,250,.96) 47%, rgba(140,179,233,.98) 100%),
    linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-storm,
body.sx-phone-webapp .sx-weather-theme-storm{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(180deg, rgba(93,105,145,.98) 0%, rgba(56,69,108,.99) 45%, rgba(32,39,67,1) 100%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-clear-night,
html.sx-phone-webapp .sx-weather-theme-partly-night,
body.sx-phone-webapp .sx-weather-theme-clear-night,
body.sx-phone-webapp .sx-weather-theme-partly-night{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(180deg, rgba(56,83,140,.98) 0%, rgba(36,54,96,.99) 45%, rgba(18,28,54,1) 100%),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}
html.sx-phone-webapp .sx-weather-theme-unavailable,
body.sx-phone-webapp .sx-weather-theme-unavailable{
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.14), transparent 24%),
    linear-gradient(180deg, rgba(151,164,185,.96) 0%, rgba(121,134,156,.98) 45%, rgba(88,99,118,.99) 100%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,0));
}

html.sx-phone-webapp .sx-weather-theme-clear-day::before,
html.sx-phone-webapp .sx-weather-theme-partly-day::before,
body.sx-phone-webapp .sx-weather-theme-clear-day::before,
body.sx-phone-webapp .sx-weather-theme-partly-day::before{
  top: 12px;
  right: 14px;
  left: auto;
  bottom: auto;
  width: 132px;
  height: 132px;
  opacity: .95;
  filter: blur(0px);
  animation: sxWeatherOrbFloat 8s ease-in-out infinite;
}
html.sx-phone-webapp .sx-weather-theme-clear-night::before,
html.sx-phone-webapp .sx-weather-theme-partly-night::before,
body.sx-phone-webapp .sx-weather-theme-clear-night::before,
body.sx-phone-webapp .sx-weather-theme-partly-night::before{
  top: 14px;
  right: 16px;
  left: auto;
  bottom: auto;
  width: 108px;
  height: 108px;
  opacity: .86;
  animation: sxWeatherOrbFloat 10s ease-in-out infinite;
}
html.sx-phone-webapp .sx-weather-theme-cloudy::before,
html.sx-phone-webapp .sx-weather-theme-fog::before,
html.sx-phone-webapp .sx-weather-theme-rain::before,
html.sx-phone-webapp .sx-weather-theme-storm::before,
html.sx-phone-webapp .sx-weather-theme-snow::before,
body.sx-phone-webapp .sx-weather-theme-cloudy::before,
body.sx-phone-webapp .sx-weather-theme-fog::before,
body.sx-phone-webapp .sx-weather-theme-rain::before,
body.sx-phone-webapp .sx-weather-theme-storm::before,
body.sx-phone-webapp .sx-weather-theme-snow::before{
  top: 14px;
  right: 14px;
  left: auto;
  bottom: auto;
  width: 154px;
  height: 86px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 58%, rgba(255,255,255,.84) 0 17px, transparent 18px),
    radial-gradient(circle at 44% 44%, rgba(255,255,255,.95) 0 26px, transparent 27px),
    radial-gradient(circle at 64% 56%, rgba(255,255,255,.86) 0 20px, transparent 21px),
    radial-gradient(circle at 82% 62%, rgba(255,255,255,.74) 0 14px, transparent 15px);
  filter: blur(.15px);
  opacity: .95;
  animation: sxWeatherCloudDrift 14s ease-in-out infinite;
}
html.sx-phone-webapp .sx-weather-theme-partly-day::after,
html.sx-phone-webapp .sx-weather-theme-partly-night::after,
body.sx-phone-webapp .sx-weather-theme-partly-day::after,
body.sx-phone-webapp .sx-weather-theme-partly-night::after{
  left: auto;
  right: 14px;
  top: 38px;
  bottom: auto;
  width: 146px;
  height: 72px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 58%, rgba(255,255,255,.82) 0 14px, transparent 15px),
    radial-gradient(circle at 46% 42%, rgba(255,255,255,.92) 0 22px, transparent 23px),
    radial-gradient(circle at 68% 58%, rgba(255,255,255,.78) 0 16px, transparent 17px),
    radial-gradient(circle at 84% 60%, rgba(255,255,255,.66) 0 12px, transparent 13px);
  opacity: .84;
  animation: sxWeatherCloudDrift 16s ease-in-out infinite reverse;
}
html.sx-phone-webapp .sx-weather-theme-rain::after,
body.sx-phone-webapp .sx-weather-theme-rain::after{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.15) 40% 42%, transparent 42% 48%, rgba(255,255,255,.10) 48% 50%, transparent 50% 100%),
    repeating-linear-gradient(100deg, transparent 0 10px, rgba(255,255,255,.18) 10px 12px, transparent 12px 22px);
  opacity: .42;
  animation: sxWeatherRainFall 1.4s linear infinite;
}
html.sx-phone-webapp .sx-weather-theme-storm::after,
body.sx-phone-webapp .sx-weather-theme-storm::after{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 40%, rgba(255,255,255,.10) 40% 42%, transparent 42% 48%, rgba(255,255,255,.08) 48% 50%, transparent 50% 100%),
    linear-gradient(120deg, transparent 56%, rgba(255,243,160,.92) 57% 59%, transparent 60%) right 28% top 18% / 44px 58px no-repeat;
  opacity: .30;
  animation: sxWeatherLightningFlash 4.6s ease-in-out infinite;
}
html.sx-phone-webapp .sx-weather-theme-wind::after,
body.sx-phone-webapp .sx-weather-theme-wind::after{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(100deg, transparent 0 24%, rgba(255,255,255,.16) 24% 28%, transparent 28% 32%, rgba(255,255,255,.10) 32% 36%, transparent 36% 100%),
    linear-gradient(180deg, transparent 0 58%, rgba(255,255,255,.08) 58% 61%, transparent 61% 100%);
  opacity: .34;
  animation: sxWeatherWindMove 2.8s ease-in-out infinite;
}
html.sx-phone-webapp .sx-weather-theme-fog::after,
body.sx-phone-webapp .sx-weather-theme-fog::after{
  top: auto;
  bottom: 10px;
  left: -8%;
  right: -8%;
  height: 52%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.12) 18%, rgba(255,255,255,.20) 45%, rgba(255,255,255,.08) 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 5px, rgba(255,255,255,.14) 5px 9px, rgba(255,255,255,.05) 9px 14px);
  opacity: .58;
  animation: sxWeatherCloudDrift 12s ease-in-out infinite;
}
html.sx-phone-webapp .sx-weather-theme-snow::after,
body.sx-phone-webapp .sx-weather-theme-snow::after{
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.8) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 36% 42%, rgba(255,255,255,.72) 0 1.3px, transparent 1.5px),
    radial-gradient(circle at 64% 24%, rgba(255,255,255,.78) 0 1.6px, transparent 1.8px),
    radial-gradient(circle at 82% 54%, rgba(255,255,255,.75) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 58% 70%, rgba(255,255,255,.72) 0 1.2px, transparent 1.4px);
  opacity: .56;
  animation: sxWeatherRainFall 3.2s linear infinite;
}

html.sx-phone-webapp .sx-overview-match-hero,
body.sx-phone-webapp .sx-overview-match-hero{
  min-height: 238px;
}
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band,
html.sx-phone-webapp .sx-parent-fixture-info,
body.sx-phone-webapp .sx-parent-fixture-info,
html.sx-phone-webapp .sx-training-weather-row,
body.sx-phone-webapp .sx-training-weather-row,
html.sx-phone-webapp .sx-parent-training-weather-row,
body.sx-phone-webapp .sx-parent-training-weather-row{
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}

/* v17.1 — theme selector + slightly higher weather band */
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band{
  margin-top:10px;
  transform:translateY(-2px);
}
html.sx-phone-webapp .sx-overview-match-pills,
body.sx-phone-webapp .sx-overview-match-pills{
  padding-top:10px;
}
html.sx-phone-webapp .sx-ios-theme-choice,
body.sx-phone-webapp .sx-ios-theme-choice{
  border-bottom:0!important;
  padding-bottom:8px!important;
}
html.sx-phone-webapp .sx-ios-theme-segment,
body.sx-phone-webapp .sx-ios-theme-segment{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  margin:0 10px 10px;
  padding:4px;
  border:1px solid color-mix(in srgb,var(--sx-ios-separator) 52%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--sx-ios-fill) 56%,transparent);
  -webkit-backdrop-filter:blur(28px) saturate(165%);
  backdrop-filter:blur(28px) saturate(165%);
}
html.sx-phone-webapp .sx-ios-theme-segment button,
body.sx-phone-webapp .sx-ios-theme-segment button{
  min-width:0;
  min-height:34px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--sx-ios-secondary);
  font:700 11.5px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  letter-spacing:-.015em;
}
html.sx-phone-webapp .sx-ios-theme-segment button.is-active,
body.sx-phone-webapp .sx-ios-theme-segment button.is-active{
  color:var(--sx-ios-label);
  background:color-mix(in srgb,var(--sx-ios-surface) 88%,transparent);
  box-shadow:0 1px 4px rgba(15,23,42,.12),inset 0 1px 0 rgba(255,255,255,.38);
}
html[data-theme="dark"].sx-phone-webapp .sx-ios-theme-segment button.is-active,
body[data-theme="dark"] .sx-ios-theme-segment button.is-active{
  background:rgba(255,255,255,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09);
}

@media (prefers-reduced-motion: reduce){
  html.sx-phone-webapp .sx-overview-match-hero,
  html.sx-phone-webapp .sx-overview-weather-band,
  html.sx-phone-webapp .sx-parent-fixture-info,
  html.sx-phone-webapp .sx-training-weather-row,
  html.sx-phone-webapp .sx-parent-training-weather-row,
  body.sx-phone-webapp .sx-overview-match-hero,
  body.sx-phone-webapp .sx-overview-weather-band,
  body.sx-phone-webapp .sx-parent-fixture-info,
  body.sx-phone-webapp .sx-training-weather-row,
  body.sx-phone-webapp .sx-parent-training-weather-row,
  html.sx-phone-webapp [class*="sx-weather-theme-"]::before,
  html.sx-phone-webapp [class*="sx-weather-theme-"]::after,
  body.sx-phone-webapp [class*="sx-weather-theme-"]::before,
  body.sx-phone-webapp [class*="sx-weather-theme-"]::after{animation:none!important}
}

/* v18 — overview placement + refined animated weather */
html.sx-phone-webapp .sx-parent-overview-match,
body.sx-phone-webapp .sx-parent-overview-match{
  margin:12px 0 12px !important;
  border:0 !important;
  box-shadow:0 14px 32px rgba(15,23,42,.08) !important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-surface) 96%,rgba(255,255,255,.76)),color-mix(in srgb,var(--sx-ios-surface) 98%,rgba(255,255,255,.72))) !important;
}
html.sx-phone-webapp .sx-overview-match-hero,
body.sx-phone-webapp .sx-overview-match-hero{
  margin:0 12px !important;
  padding:14px 14px 10px !important;
  min-height:224px !important;
  border-radius:23px !important;
}
html.sx-phone-webapp .sx-overview-story,
body.sx-phone-webapp .sx-overview-story{
  margin:0 0 10px !important;
}
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band{
  margin-top:8px !important;
  padding:10px 12px 9px !important;
  border:0 !important;
  box-shadow:none !important;
  background-color:rgba(255,255,255,.10) !important;
  background-blend-mode:normal !important;
}
html.sx-phone-webapp .sx-overview-weather-main p,
body.sx-phone-webapp .sx-overview-weather-main p{
  font-size:11.5px !important;
  line-height:1.35 !important;
}
html.sx-phone-webapp .sx-overview-weather-location,
body.sx-phone-webapp .sx-overview-weather-location{
  margin-top:1px !important;
}
html.sx-phone-webapp .sx-overview-match-pills,
body.sx-phone-webapp .sx-overview-match-pills{
  padding:11px 12px 14px !important;
}
html.sx-phone-webapp .sx-parent-fixture-info,
html.sx-phone-webapp .sx-training-weather-row,
html.sx-phone-webapp .sx-parent-training-weather-row,
body.sx-phone-webapp .sx-parent-fixture-info,
body.sx-phone-webapp .sx-training-weather-row,
body.sx-phone-webapp .sx-parent-training-weather-row{
  border:0 !important;
  box-shadow:none !important;
}

/* keep weather visuals identical in dark mode */
html[data-theme="dark"].sx-phone-webapp .sx-overview-match-hero,
html[data-theme="dark"].sx-phone-webapp .sx-overview-weather-band,
html[data-theme="dark"].sx-phone-webapp .sx-parent-fixture-info,
html[data-theme="dark"].sx-phone-webapp .sx-training-weather-row,
html[data-theme="dark"].sx-phone-webapp .sx-parent-training-weather-row,
body[data-theme="dark"] .sx-overview-match-hero,
body[data-theme="dark"] .sx-overview-weather-band,
body[data-theme="dark"] .sx-parent-fixture-info,
body[data-theme="dark"] .sx-training-weather-row,
body[data-theme="dark"] .sx-parent-training-weather-row{
  filter:none !important;
}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match,
body[data-theme="dark"] .sx-parent-overview-match{
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-surface) 96%,rgba(255,255,255,.76)),color-mix(in srgb,var(--sx-ios-surface) 98%,rgba(255,255,255,.72))) !important;
  box-shadow:0 14px 32px rgba(15,23,42,.08) !important;
}

/* refine animated weather overlays so rain etc are subtler */
html.sx-phone-webapp .sx-weather-theme-clear-day::before,
html.sx-phone-webapp .sx-weather-theme-partly-day::before,
body.sx-phone-webapp .sx-weather-theme-clear-day::before,
body.sx-phone-webapp .sx-weather-theme-partly-day::before{
  width:120px !important;
  height:120px !important;
}
html.sx-phone-webapp .sx-weather-theme-cloudy::before,
html.sx-phone-webapp .sx-weather-theme-fog::before,
html.sx-phone-webapp .sx-weather-theme-rain::before,
html.sx-phone-webapp .sx-weather-theme-storm::before,
html.sx-phone-webapp .sx-weather-theme-snow::before,
body.sx-phone-webapp .sx-weather-theme-cloudy::before,
body.sx-phone-webapp .sx-weather-theme-fog::before,
body.sx-phone-webapp .sx-weather-theme-rain::before,
body.sx-phone-webapp .sx-weather-theme-storm::before,
body.sx-phone-webapp .sx-weather-theme-snow::before{
  width:132px !important;
  height:74px !important;
  opacity:.90 !important;
}
html.sx-phone-webapp .sx-weather-theme-rain::after,
body.sx-phone-webapp .sx-weather-theme-rain::after{
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.07) 44% 45%, transparent 45% 100%),
    repeating-linear-gradient(102deg, transparent 0 14px, rgba(255,255,255,.10) 14px 15px, transparent 15px 29px) !important;
  opacity:.24 !important;
  animation:sxWeatherRainFall 1.8s linear infinite !important;
}
html.sx-phone-webapp .sx-weather-theme-storm::after,
body.sx-phone-webapp .sx-weather-theme-storm::after{
  background:
    linear-gradient(115deg, transparent 0 44%, rgba(255,255,255,.05) 44% 45%, transparent 45% 100%),
    linear-gradient(120deg, transparent 60%, rgba(255,243,160,.72) 61% 62%, transparent 63%) right 24% top 20% / 28px 42px no-repeat !important;
  opacity:.22 !important;
}
html.sx-phone-webapp .sx-weather-theme-wind::after,
body.sx-phone-webapp .sx-weather-theme-wind::after{
  opacity:.24 !important;
}
html.sx-phone-webapp .sx-weather-theme-fog::after,
body.sx-phone-webapp .sx-weather-theme-fog::after{
  opacity:.42 !important;
}
html.sx-phone-webapp .sx-weather-theme-snow::after,
body.sx-phone-webapp .sx-weather-theme-snow::after{
  opacity:.38 !important;
}
@media (prefers-reduced-motion: reduce){
  html.sx-phone-webapp .sx-overview-match-hero,
  html.sx-phone-webapp .sx-overview-weather-band,
  html.sx-phone-webapp .sx-parent-fixture-info,
  html.sx-phone-webapp .sx-training-weather-row,
  html.sx-phone-webapp .sx-parent-training-weather-row,
  body.sx-phone-webapp .sx-overview-match-hero,
  body.sx-phone-webapp .sx-overview-weather-band,
  body.sx-phone-webapp .sx-parent-fixture-info,
  body.sx-phone-webapp .sx-training-weather-row,
  body.sx-phone-webapp .sx-parent-training-weather-row{
    animation:none !important;
  }
}

/* v19 — gameday, coach sport cards and refined Apple-weather motion */
@keyframes sxGameDayEnter{0%{opacity:0;transform:scale(.92)}55%{opacity:1;transform:scale(1.025)}100%{opacity:1;transform:scale(1)}}
@keyframes sxGameDayCard{0%{opacity:0;transform:translate3d(0,34px,0) scale(.9) rotate(-1.5deg)}65%{opacity:1;transform:translate3d(0,-3px,0) scale(1.02) rotate(.3deg)}100%{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes sxGameDayBall{0%{transform:translateY(-2px) rotate(-10deg) scale(.9)}50%{transform:translateY(4px) rotate(12deg) scale(1.06)}100%{transform:translateY(-2px) rotate(-10deg) scale(.9)}}
@keyframes sxGameDayStreak{0%{transform:translateX(-22%) rotate(-8deg);opacity:.18}50%{opacity:.5}100%{transform:translateX(22%) rotate(-8deg);opacity:.18}}
html.sx-phone-webapp .sx-gameday-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:24px;background:rgba(8,16,37,.36);-webkit-backdrop-filter:blur(22px) saturate(145%);backdrop-filter:blur(22px) saturate(145%);opacity:0;transition:opacity .28s ease}
html.sx-phone-webapp .sx-gameday-overlay.is-visible{opacity:1;animation:sxGameDayEnter .42s cubic-bezier(.2,.9,.2,1) both}
html.sx-phone-webapp .sx-gameday-overlay.is-leaving{opacity:0}
html.sx-phone-webapp .sx-gameday-card{position:relative;isolation:isolate;overflow:hidden;width:min(100%,330px);padding:26px 22px 24px;border-radius:30px;text-align:center;color:#fff;background:radial-gradient(circle at 82% 5%,rgba(255,255,255,.35),transparent 27%),linear-gradient(155deg,#7f8cff 0%,#5362d5 48%,#2648a8 100%);box-shadow:0 28px 70px rgba(18,35,95,.38),inset 0 1px 0 rgba(255,255,255,.36);animation:sxGameDayCard .64s cubic-bezier(.16,1,.3,1) both}
html.sx-phone-webapp .sx-gameday-ball{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 13px;border-radius:20px;background:rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.24);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);animation:sxGameDayBall 1.8s ease-in-out infinite}
html.sx-phone-webapp .sx-gameday-ball .sx-ios-icon{width:31px;height:31px}
html.sx-phone-webapp .sx-gameday-card small{display:block;font-size:12px;font-weight:760;letter-spacing:.04em;color:rgba(255,255,255,.86)}
html.sx-phone-webapp .sx-gameday-card strong{display:block;margin:2px 0 7px;font-size:38px;line-height:1;font-weight:900;letter-spacing:-.065em}
html.sx-phone-webapp .sx-gameday-card p{margin:0;font-size:13px;line-height:1.45;font-weight:690;color:rgba(255,255,255,.91)}
html.sx-phone-webapp .sx-gameday-streaks{position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(100deg,transparent 0 18px,rgba(255,255,255,.08) 18px 19px,transparent 19px 42px);animation:sxGameDayStreak 3.6s ease-in-out infinite}

html.sx-phone-webapp .sx-coach-today-match{margin:2px 0 18px!important}
html.sx-phone-webapp .sx-coach-today-match+.sx-dash-actions{margin-top:0!important}
html.sx-phone-webapp .sx-coach-match-card{padding:0!important;overflow:hidden!important;border-radius:24px!important}
html.sx-phone-webapp .sx-coach-fixture-summary{margin:0!important;padding:13px 13px 8px!important;border:0!important;background:transparent!important}
html.sx-phone-webapp .sx-mobile-fixture-weather-panel{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin:10px 0 0!important;padding:13px 13px 11px!important;min-height:90px!important;border:0!important;border-radius:20px!important;overflow:hidden!important;color:#fff!important}
html.sx-phone-webapp .sx-mobile-fixture-weather-copy{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
html.sx-phone-webapp .sx-mobile-fixture-weather-copy>p{margin:0;color:rgba(255,255,255,.95);font-size:11.5px;line-height:1.36;font-weight:690}
html.sx-phone-webapp .sx-mobile-fixture-weather-panel .sx-parent-fixture-place{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,.92)!important;font-size:10.5px!important;font-weight:720!important;white-space:normal!important}
html.sx-phone-webapp .sx-mobile-fixture-weather-panel .btn-ico{width:14px;height:14px;color:#fff!important}
html.sx-phone-webapp .sx-coach-fixture-pills{display:flex;flex-wrap:wrap;gap:7px;padding:3px 13px 4px}
html.sx-phone-webapp .sx-coach-fixture-pills .sx-when-chip{min-height:34px;padding:6px 10px;border-radius:999px;font-size:10.5px}
html.sx-phone-webapp .sx-coach-match-card .sx-mobile-fixture-actions{padding-top:9px}

/* Weather is one continuous scene: no panel border, no separate flat blend. */
html.sx-phone-webapp .sx-overview-match-hero,body.sx-phone-webapp .sx-overview-match-hero{padding-bottom:8px!important;min-height:235px!important}
html.sx-phone-webapp .sx-overview-weather-band,body.sx-phone-webapp .sx-overview-weather-band{position:relative;margin:3px -4px 0!important;padding:11px 4px 4px!important;min-height:94px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;overflow:visible!important}
html.sx-phone-webapp .sx-overview-weather-main,body.sx-phone-webapp .sx-overview-weather-main{align-items:center;min-height:58px}
html.sx-phone-webapp .sx-overview-weather-band::before,html.sx-phone-webapp .sx-overview-weather-band::after,body.sx-phone-webapp .sx-overview-weather-band::before,body.sx-phone-webapp .sx-overview-weather-band::after{display:none!important}
html.sx-phone-webapp .sx-overview-weather-location,body.sx-phone-webapp .sx-overview-weather-location{margin-top:2px;padding-top:5px;border-top:0!important}

/* smaller, denser weather particles – no oversized drops */
html.sx-phone-webapp .sx-weather-theme-rain::after,body.sx-phone-webapp .sx-weather-theme-rain::after{background:repeating-linear-gradient(105deg,transparent 0 20px,rgba(255,255,255,.105) 20px 21px,transparent 21px 41px)!important;background-size:48px 48px!important;opacity:.24!important;filter:blur(.15px);animation:sxWeatherRainFall 1.25s linear infinite!important}
html.sx-phone-webapp .sx-weather-theme-snow::after,body.sx-phone-webapp .sx-weather-theme-snow::after{background-size:70px 70px!important;opacity:.32!important}
html.sx-phone-webapp .sx-weather-theme-cloudy::before,html.sx-phone-webapp .sx-weather-theme-fog::before,html.sx-phone-webapp .sx-weather-theme-rain::before,html.sx-phone-webapp .sx-weather-theme-storm::before,html.sx-phone-webapp .sx-weather-theme-snow::before,body.sx-phone-webapp .sx-weather-theme-cloudy::before,body.sx-phone-webapp .sx-weather-theme-fog::before,body.sx-phone-webapp .sx-weather-theme-rain::before,body.sx-phone-webapp .sx-weather-theme-storm::before,body.sx-phone-webapp .sx-weather-theme-snow::before{width:118px!important;height:64px!important;top:11px!important;right:8px!important;opacity:.82!important}
html.sx-phone-webapp .sx-weather-theme-clear-day::before,html.sx-phone-webapp .sx-weather-theme-partly-day::before,body.sx-phone-webapp .sx-weather-theme-clear-day::before,body.sx-phone-webapp .sx-weather-theme-partly-day::before{width:104px!important;height:104px!important;top:8px!important;right:8px!important}

/* Weather colours stay forecast-driven, never theme-driven. */
html[data-theme="dark"].sx-phone-webapp .sx-weather-theme-clear-day,body[data-theme="dark"] .sx-weather-theme-clear-day{background-image:radial-gradient(circle at 20% 16%,rgba(255,255,255,.34),transparent 26%),linear-gradient(180deg,rgba(165,221,255,.92) 0%,rgba(102,163,255,.94) 48%,rgba(70,116,227,.98) 100%),linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,0))!important}
html[data-theme="dark"].sx-phone-webapp .sx-weather-theme-partly-day,body[data-theme="dark"] .sx-weather-theme-partly-day{background-image:radial-gradient(circle at 20% 16%,rgba(255,255,255,.28),transparent 26%),linear-gradient(180deg,rgba(145,207,255,.94) 0%,rgba(104,157,246,.96) 48%,rgba(83,106,222,.98) 100%),linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,0))!important}
html[data-theme="dark"].sx-phone-webapp .sx-weather-theme-cloudy,body[data-theme="dark"] .sx-weather-theme-cloudy{background-image:radial-gradient(circle at 20% 16%,rgba(255,255,255,.22),transparent 28%),linear-gradient(180deg,rgba(164,190,219,.95) 0%,rgba(121,146,185,.96) 50%,rgba(89,108,142,.98) 100%),linear-gradient(135deg,rgba(255,255,255,.13),rgba(255,255,255,0))!important}
html[data-theme="dark"].sx-phone-webapp .sx-weather-theme-rain,body[data-theme="dark"] .sx-weather-theme-rain{background-image:radial-gradient(circle at 20% 16%,rgba(255,255,255,.16),transparent 24%),linear-gradient(180deg,rgba(121,149,194,.96) 0%,rgba(88,111,154,.98) 50%,rgba(61,77,116,.99) 100%),linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,0))!important}
html[data-theme="dark"].sx-phone-webapp .sx-weather-theme-wind,body[data-theme="dark"] .sx-weather-theme-wind{background-image:radial-gradient(circle at 20% 16%,rgba(255,255,255,.18),transparent 25%),linear-gradient(180deg,rgba(136,212,226,.94) 0%,rgba(84,171,205,.96) 47%,rgba(58,129,177,.98) 100%),linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,0))!important}
html[data-theme="dark"].sx-phone-webapp .sx-weather-theme-storm,body[data-theme="dark"] .sx-weather-theme-storm{background-image:radial-gradient(circle at 20% 16%,rgba(255,255,255,.10),transparent 24%),linear-gradient(180deg,rgba(93,105,145,.98) 0%,rgba(56,69,108,.99) 45%,rgba(32,39,67,1) 100%),linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,0))!important}

@media(prefers-reduced-motion:reduce){html.sx-phone-webapp .sx-gameday-card,html.sx-phone-webapp .sx-gameday-ball,html.sx-phone-webapp .sx-gameday-streaks{animation:none!important}}

/* v19.1 richer weather scene: small moving particles instead of giant pseudo drops */
@keyframes sxWxCloudA{0%,100%{transform:translate3d(-5px,0,0) scale(1)}50%{transform:translate3d(9px,3px,0) scale(1.025)}}
@keyframes sxWxCloudB{0%,100%{transform:translate3d(8px,1px,0) scale(.92)}50%{transform:translate3d(-8px,-2px,0) scale(.96)}}
@keyframes sxWxSun{0%,100%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(-5px,5px,0) scale(1.045)}}
@keyframes sxWxDrop{0%{transform:translate3d(0,-18px,0) rotate(12deg);opacity:0}18%{opacity:.34}100%{transform:translate3d(-5px,116px,0) rotate(12deg);opacity:0}}
@keyframes sxWxSnow{0%{transform:translate3d(0,-12px,0) rotate(0);opacity:0}15%{opacity:.62}100%{transform:translate3d(14px,112px,0) rotate(210deg);opacity:0}}
@keyframes sxWxWind{0%{transform:translateX(-120%);opacity:0}20%{opacity:.34}72%{opacity:.2}100%{transform:translateX(170%);opacity:0}}
@keyframes sxWxFog{0%,100%{transform:translateX(-5%);opacity:.22}50%{transform:translateX(5%);opacity:.4}}
@keyframes sxWxFlash{0%,40%,100%{opacity:0}41%{opacity:.65}43%{opacity:.08}45%{opacity:.42}47%{opacity:0}}
@keyframes sxWxStar{0%,100%{opacity:.28;transform:scale(.8)}50%{opacity:.82;transform:scale(1.12)}}
html.sx-phone-webapp [data-sx-weather-hero]::before,html.sx-phone-webapp [data-sx-weather-hero]::after,
html.sx-phone-webapp .sx-parent-fixture-info::before,html.sx-phone-webapp .sx-parent-fixture-info::after,
html.sx-phone-webapp .sx-training-weather-row::before,html.sx-phone-webapp .sx-training-weather-row::after,
html.sx-phone-webapp .sx-parent-training-weather-row::before,html.sx-phone-webapp .sx-parent-training-weather-row::after,
body.sx-phone-webapp [data-sx-weather-hero]::before,body.sx-phone-webapp [data-sx-weather-hero]::after,
body.sx-phone-webapp .sx-parent-fixture-info::before,body.sx-phone-webapp .sx-parent-fixture-info::after,
body.sx-phone-webapp .sx-training-weather-row::before,body.sx-phone-webapp .sx-training-weather-row::after,
body.sx-phone-webapp .sx-parent-training-weather-row::before,body.sx-phone-webapp .sx-parent-training-weather-row::after{display:none!important}
html.sx-phone-webapp .sx-weather-scene{position:absolute!important;inset:0!important;z-index:0!important;overflow:hidden!important;pointer-events:none!important;border-radius:inherit!important}
html.sx-phone-webapp [data-sx-weather-hero]>*:not(.sx-weather-scene),html.sx-phone-webapp .sx-parent-fixture-info>*:not(.sx-weather-scene),html.sx-phone-webapp .sx-training-weather-row>*:not(.sx-weather-scene),html.sx-phone-webapp .sx-parent-training-weather-row>*:not(.sx-weather-scene){position:relative;z-index:2}
html.sx-phone-webapp .sx-wx-sun{position:absolute;right:-8px;top:-14px;width:104px;height:104px;border-radius:50%;background:radial-gradient(circle,#fffbd6 0 24%,#ffe78f 42%,rgba(255,223,108,.18) 66%,transparent 72%);filter:drop-shadow(0 0 18px rgba(255,225,122,.28));animation:sxWxSun 8s ease-in-out infinite}
html.sx-phone-webapp .sx-wx-moon{position:absolute;right:13px;top:6px;width:68px;height:68px;border-radius:50%;background:radial-gradient(circle at 38% 34%,#fff 0 25%,#e7eefc 54%,#cad5ed 72%);box-shadow:-11px 8px 0 2px rgba(37,57,101,.56),0 0 24px rgba(226,237,255,.18);animation:sxWxSun 10s ease-in-out infinite}
html.sx-phone-webapp .sx-wx-star{position:absolute;width:3px;height:3px;border-radius:50%;background:#fff;animation:sxWxStar 2.8s ease-in-out infinite}.sx-wx-star.s1{right:94px;top:24px}.sx-wx-star.s2{right:118px;top:50px;animation-delay:-1s}.sx-wx-star.s3{right:76px;top:76px;animation-delay:-1.7s}
html.sx-phone-webapp .sx-wx-cloud{position:absolute;width:84px;height:28px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(229,239,252,.78));filter:drop-shadow(0 8px 10px rgba(35,62,102,.08));opacity:.88}
html.sx-phone-webapp .sx-wx-cloud::before,html.sx-phone-webapp .sx-wx-cloud::after{content:"";position:absolute;border-radius:50%;background:inherit}.sx-wx-cloud::before{width:38px;height:38px;left:15px;bottom:5px}.sx-wx-cloud::after{width:29px;height:29px;right:13px;bottom:4px}
html.sx-phone-webapp .sx-wx-cloud.c1{right:11px;top:23px;animation:sxWxCloudA 13s ease-in-out infinite}.sx-wx-cloud.c2{right:82px;top:54px;width:66px;height:23px;opacity:.58;animation:sxWxCloudB 17s ease-in-out infinite}.sx-wx-cloud.c3{left:-24px;top:25px;width:74px;height:25px;opacity:.35;animation:sxWxCloudA 19s ease-in-out infinite reverse}
html.sx-phone-webapp .sx-wx-partly-day .c1,html.sx-phone-webapp .sx-wx-day .c1{top:51px}.sx-wx-partly-night .c1{top:52px}
html.sx-phone-webapp .sx-wx-drop{position:absolute;left:var(--x);top:42px;width:1.4px;height:9px;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(215,235,255,.56));animation:sxWxDrop var(--dur) linear var(--delay) infinite}
html.sx-phone-webapp .sx-wx-snow{position:absolute;left:var(--x);top:38px;width:var(--size);height:var(--size);border-radius:50%;background:rgba(255,255,255,.82);box-shadow:0 0 5px rgba(255,255,255,.25);animation:sxWxSnow var(--dur) linear var(--delay) infinite}
html.sx-phone-webapp .sx-wx-wind{position:absolute;left:-25%;height:1px;border-radius:99px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.44),transparent);animation:sxWxWind 3.8s ease-in-out infinite}.sx-wx-wind.w1{top:34%;width:50%;animation-delay:-.5s}.sx-wx-wind.w2{top:49%;width:68%;animation-delay:-1.9s}.sx-wx-wind.w3{top:66%;width:40%;animation-delay:-2.6s}.sx-wx-wind.w4{top:76%;width:55%;animation-delay:-.9s}
html.sx-phone-webapp .sx-wx-fog{position:absolute;left:-12%;width:124%;height:18px;border-radius:999px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.25),rgba(255,255,255,.11),transparent);filter:blur(5px);animation:sxWxFog 9s ease-in-out infinite}.sx-wx-fog.f1{bottom:12%;}.sx-wx-fog.f2{bottom:29%;animation-delay:-3s}.sx-wx-fog.f3{bottom:46%;animation-delay:-5.5s}
html.sx-phone-webapp .sx-wx-lightning{position:absolute;right:42px;top:58px;width:34px;height:58px;clip-path:polygon(52% 0,100% 0,69% 38%,92% 38%,22% 100%,40% 54%,14% 54%);background:linear-gradient(180deg,#fff7bc,#ffe36e);filter:drop-shadow(0 0 8px rgba(255,229,117,.62));animation:sxWxFlash 4.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){html.sx-phone-webapp .sx-weather-scene *{animation:none!important}}

/* v20 weather refinement: separate Apple-style weather slab below the versus block */
html.sx-phone-webapp .sx-overview-match-hero,
body.sx-phone-webapp .sx-overview-match-hero{
  min-height:auto!important;
  padding:18px 16px 12px!important;
  border-radius:24px 24px 22px 22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(246,249,255,.72))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92)!important;
}
html.sx-phone-webapp .sx-overview-story,
body.sx-phone-webapp .sx-overview-story{margin-bottom:10px!important}
/* v24 readability: this block is deliberately a LIGHT match summary. All
   text above the actual animated weather slab therefore uses dark iOS ink. */
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-match-hero,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-match-hero,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-match-hero{
  color:var(--sx-ios-label)!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-surface) 98%,rgba(83,98,213,.04)),color-mix(in srgb,var(--sx-ios-surface-2) 96%,rgba(83,98,213,.035)))!important;
}
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-story,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-story,
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-team strong,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-team strong,
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-center strong,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-center strong,
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-center small,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-center small,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-story,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-story,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-team strong,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-team strong,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-center strong,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-center strong,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-center small,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-center small{
  color:var(--sx-ios-label)!important;
  text-shadow:none!important;
}
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-center.is-live small,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-center.is-live small,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-center.is-live small,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-center.is-live small{color:#fff!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-team>span,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-team>span,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-team>span,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-team>span{
  background:rgba(83,98,213,.12)!important;
  color:#4267d9!important;
}
/* Weather remains white-on-colour and is intentionally theme independent. */
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band,
html.sx-phone-webapp .sx-overview-weather-band *,
body.sx-phone-webapp .sx-overview-weather-band *{color:#fff!important}
html.sx-phone-webapp .sx-overview-weather-band,
body.sx-phone-webapp .sx-overview-weather-band{
  position:relative!important;
  margin:8px 0 0!important;
  padding:14px 16px 16px!important;
  min-height:214px!important;
  border:0!important;
  border-radius:28px!important;
  overflow:hidden!important;
  box-shadow:0 14px 30px rgba(28,56,112,.18), inset 0 1px 0 rgba(255,255,255,.18)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html.sx-phone-webapp .sx-overview-weather-rich,
body.sx-phone-webapp .sx-overview-weather-rich{
  position:relative;
  z-index:2;
  display:grid;
  justify-items:center;
  align-content:start;
  text-align:center;
  gap:7px;
  min-height:184px;
}
html.sx-phone-webapp .sx-weather-proxy,
body.sx-phone-webapp .sx-weather-proxy{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none!important;
  overflow:hidden!important;
}
html.sx-phone-webapp .sx-overview-weather-head,
body.sx-phone-webapp .sx-overview-weather-head{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color:rgba(255,255,255,.94);
}
html.sx-phone-webapp .sx-overview-weather-head small,
body.sx-phone-webapp .sx-overview-weather-head small{
  font-size:11px;
  font-weight:760;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(255,255,255,.88);
}
html.sx-phone-webapp .sx-overview-weather-head span,
body.sx-phone-webapp .sx-overview-weather-head span{
  font-size:11.5px;
  font-weight:640;
  color:rgba(255,255,255,.84);
}
html.sx-phone-webapp .sx-overview-weather-city,
body.sx-phone-webapp .sx-overview-weather-city{
  display:block;
  font-size:clamp(33px,8vw,50px);
  line-height:.95;
  font-weight:400;
  letter-spacing:-.055em;
  color:#fff;
  text-shadow:0 2px 16px rgba(8,20,54,.08);
}
html.sx-phone-webapp .sx-overview-weather-tempbox,
body.sx-phone-webapp .sx-overview-weather-tempbox{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  margin-top:-4px;
  color:#fff;
}
html.sx-phone-webapp .sx-overview-weather-tempbox strong,
body.sx-phone-webapp .sx-overview-weather-tempbox strong{
  font-size:clamp(86px,19vw,126px);
  line-height:.82;
  font-weight:260;
  letter-spacing:-.085em;
}
html.sx-phone-webapp .sx-overview-weather-tempbox em,
body.sx-phone-webapp .sx-overview-weather-tempbox em{
  font-style:normal;
  font-size:42px;
  line-height:1;
  margin-top:10px;
  opacity:.95;
}
html.sx-phone-webapp .sx-overview-weather-meta,
body.sx-phone-webapp .sx-overview-weather-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 14px;
  max-width:280px;
  color:rgba(239,245,255,.95);
  font-size:12px;
  line-height:1.35;
  font-weight:670;
}
html.sx-phone-webapp .sx-overview-weather-meta span,
body.sx-phone-webapp .sx-overview-weather-meta span{white-space:nowrap}
html.sx-phone-webapp .sx-overview-weather-meta b,
body.sx-phone-webapp .sx-overview-weather-meta b{font-weight:800;color:#fff}
html.sx-phone-webapp .sx-overview-weather-rich p,
body.sx-phone-webapp .sx-overview-weather-rich p{
  margin:1px auto 0;
  max-width:270px;
  color:rgba(255,255,255,.93);
  font-size:12px;
  line-height:1.42;
  font-weight:680;
}
html.sx-phone-webapp .sx-overview-match-pills .sx-when-chip.is-place,
body.sx-phone-webapp .sx-overview-match-pills .sx-when-chip.is-place{
  width:100%;
  justify-content:flex-start;
  white-space:normal;
  border-radius:18px;
}
html.sx-phone-webapp .sx-overview-match-pills .sx-when-chip.is-place span,
body.sx-phone-webapp .sx-overview-match-pills .sx-when-chip.is-place span{line-height:1.35}

/* Scene tuning: slightly taller and calmer in the large weather slab */
html.sx-phone-webapp .sx-overview-weather-band .sx-weather-scene,
body.sx-phone-webapp .sx-overview-weather-band .sx-weather-scene{border-radius:inherit!important}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-sun,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-sun{right:-6px;top:-8px;width:118px;height:118px;filter:drop-shadow(0 0 22px rgba(255,224,122,.32))}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-moon,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-moon{right:12px;top:4px;width:76px;height:76px}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud.c1,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud.c1{top:26px;right:14px;width:92px;height:31px}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud.c2,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud.c2{top:58px;right:92px;width:72px;height:24px;opacity:.5}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud.c3,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud.c3{top:32px;left:-18px;width:82px;height:27px;opacity:.26}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-drop,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-drop{top:58px;width:1.2px;height:8px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(223,240,255,.62));animation-duration:1.45s}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-snow,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-snow{top:56px}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-lightning,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-lightning{right:48px;top:64px}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-wind.w1,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-wind.w1{top:38%}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-wind.w2,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-wind.w2{top:54%}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-wind.w3,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-wind.w3{top:67%}

@media (max-width: 380px){
  html.sx-phone-webapp .sx-overview-weather-band,
  body.sx-phone-webapp .sx-overview-weather-band{min-height:196px!important;padding:13px 14px 14px!important}
  html.sx-phone-webapp .sx-overview-weather-city,
  body.sx-phone-webapp .sx-overview-weather-city{font-size:30px}
  html.sx-phone-webapp .sx-overview-weather-tempbox strong,
  body.sx-phone-webapp .sx-overview-weather-tempbox strong{font-size:78px}
}

/* v21 — richer weather, live weekend score, photo cropper and mobile match flow */
html.sx-phone-webapp .sx-overview-weather-details,
body.sx-phone-webapp .sx-overview-weather-details{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px 9px;
  max-width:310px;
  margin-top:1px;
}
html.sx-phone-webapp .sx-overview-weather-details span,
body.sx-phone-webapp .sx-overview-weather-details span{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  color:rgba(255,255,255,.88);
  font-size:10px;
  line-height:1;
  font-weight:680;
  -webkit-backdrop-filter:blur(12px) saturate(120%);
  backdrop-filter:blur(12px) saturate(120%);
}
html.sx-phone-webapp .sx-overview-weather-details b,
body.sx-phone-webapp .sx-overview-weather-details b{color:#fff;font-weight:820}
html.sx-phone-webapp .sx-overview-weather-details [hidden],
body.sx-phone-webapp .sx-overview-weather-details [hidden]{display:none!important}

/* Softer Apple-like clouds: layered, translucent and slowly drifting. */
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud{
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(225,235,249,.62));
  box-shadow:0 10px 22px rgba(25,48,92,.09),inset 0 1px 0 rgba(255,255,255,.7);
  filter:blur(.2px) drop-shadow(0 10px 14px rgba(31,57,98,.08));
}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud::before,
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud::after,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud::before,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-cloud::after{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(226,236,250,.66));
}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-drop,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-drop{
  width:1px!important;
  height:6px!important;
  opacity:.62;
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(222,240,255,.62))!important;
  filter:blur(.05px);
}
html.sx-phone-webapp .sx-overview-weather-band .sx-wx-rain,
body.sx-phone-webapp .sx-overview-weather-band .sx-wx-rain{opacity:.82}
html.sx-phone-webapp .sx-overview-weather-band .sx-weather-scene::after,
body.sx-phone-webapp .sx-overview-weather-band .sx-weather-scene::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(255,255,255,.04),transparent 30%,rgba(12,27,60,.05));
  pointer-events:none;
}

/* Live / halftime / finished score presentation */
html.sx-phone-webapp .sx-overview-center small,
body.sx-phone-webapp .sx-overview-center small{display:flex;align-items:center;justify-content:center;gap:5px}
html.sx-phone-webapp .sx-overview-center.is-halftime small,
body.sx-phone-webapp .sx-overview-center.is-halftime small{
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,159,10,.18);
  color:#a95800;
  letter-spacing:.07em;
}
html[data-theme="dark"].sx-phone-webapp .sx-overview-center.is-halftime small,
body[data-theme="dark"] .sx-overview-center.is-halftime small{color:#ffd28c}
html.sx-phone-webapp .sx-overview-center.is-final small,
body.sx-phone-webapp .sx-overview-center.is-final small{color:var(--sx-ios-secondary);letter-spacing:.06em}
html.sx-phone-webapp .sx-live-dot-inline,
body.sx-phone-webapp .sx-live-dot-inline{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#ff453a;
  box-shadow:0 0 0 0 rgba(255,69,58,.42);
  animation:sxLiveScorePulse 1.45s ease-out infinite;
}
@keyframes sxLiveScorePulse{0%{box-shadow:0 0 0 0 rgba(255,69,58,.42)}70%{box-shadow:0 0 0 8px rgba(255,69,58,0)}100%{box-shadow:0 0 0 0 rgba(255,69,58,0)}}
html.sx-phone-webapp .sx-overview-goals,
body.sx-phone-webapp .sx-overview-goals{
  display:grid;
  grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);
  gap:11px;
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid color-mix(in srgb,var(--sx-ios-separator) 48%,transparent);
}
html.sx-phone-webapp .sx-overview-goals>i,
body.sx-phone-webapp .sx-overview-goals>i{width:1px;background:color-mix(in srgb,var(--sx-ios-separator) 52%,transparent)}
html.sx-phone-webapp .sx-overview-goals>div,
body.sx-phone-webapp .sx-overview-goals>div{display:grid;gap:5px;align-content:start}
html.sx-phone-webapp .sx-goal-line,
body.sx-phone-webapp .sx-goal-line{display:flex;align-items:flex-start;gap:5px;font-size:10.5px;line-height:1.25;color:var(--sx-ios-secondary)}
html.sx-phone-webapp .sx-overview-goals>div:last-child .sx-goal-line,
body.sx-phone-webapp .sx-overview-goals>div:last-child .sx-goal-line{flex-direction:row-reverse;text-align:right}
html.sx-phone-webapp .sx-goal-line b,
body.sx-phone-webapp .sx-goal-line b{flex:0 0 auto;color:var(--sx-ios-blue);font-size:10px;font-weight:850}
html.sx-phone-webapp .sx-goal-line em,
body.sx-phone-webapp .sx-goal-line em{font-style:normal;font-weight:720;color:var(--sx-ios-label)}
html.sx-phone-webapp .sx-goal-line small,
body.sx-phone-webapp .sx-goal-line small{display:block;margin-top:1px;color:var(--sx-ios-tertiary);font-size:8.5px;font-weight:600}

/* Parent gameday: child welcome first, then the match card where the large rules action normally dominates. */
html.sx-phone-webapp .sx-parent-gameday-home .sx-parent-welcome-main>.sx-btn,
body.sx-phone-webapp .sx-parent-gameday-home .sx-parent-welcome-main>.sx-btn{display:none!important}
html.sx-phone-webapp .sx-parent-gameday-greeting,
body.sx-phone-webapp .sx-parent-gameday-greeting{
  margin:12px 0 -2px;
  padding:0 2px;
  color:var(--sx-ios-label);
  font-size:24px;
  line-height:1.05;
  font-weight:840;
  letter-spacing:-.045em;
}
html.sx-phone-webapp .sx-parent-welcome>.sx-parent-overview-match,
body.sx-phone-webapp .sx-parent-welcome>.sx-parent-overview-match{margin-top:12px!important}

/* Direct profile photo cropper */
.sx-photo-crop-layer{position:fixed;inset:0;z-index:12050;display:grid;align-items:end;opacity:0;transition:opacity .22s ease}
.sx-photo-crop-layer.is-open{opacity:1}
.sx-photo-crop-backdrop{position:absolute;inset:0;border:0;background:rgba(7,13,25,.42);-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%)}
.sx-photo-crop-sheet{position:relative;z-index:1;width:min(560px,calc(100vw - 24px));margin:0 auto max(12px,env(safe-area-inset-bottom));padding:12px 14px 16px;border:1px solid color-mix(in srgb,var(--sx-ios-separator) 40%,transparent);border-radius:30px;background:color-mix(in srgb,var(--sx-ios-surface) 88%,transparent);box-shadow:0 26px 70px rgba(4,10,25,.28);-webkit-backdrop-filter:blur(44px) saturate(165%);backdrop-filter:blur(44px) saturate(165%)}
.sx-photo-crop-sheet header{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:10px;padding:2px 0 12px}.sx-photo-crop-sheet header>button{display:grid;min-width:44px;height:44px;place-items:center;border:0;border-radius:15px;background:var(--sx-ios-fill);color:var(--sx-ios-label);font-weight:750}.sx-photo-crop-sheet header>button.is-save{padding:0 14px;background:var(--sx-ios-blue);color:#fff}.sx-photo-crop-sheet header small{display:block;color:var(--sx-ios-secondary);font-size:10px;font-weight:760;text-transform:uppercase;letter-spacing:.08em}.sx-photo-crop-sheet h2{margin:1px 0 0;color:var(--sx-ios-label);font-size:19px;line-height:1.1;letter-spacing:-.035em}
.sx-photo-crop-stage{position:relative;width:min(100%,410px);aspect-ratio:1;margin:auto;overflow:hidden;border-radius:28px;background:#0b1220;touch-action:none}.sx-photo-crop-stage canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}.sx-photo-crop-stage canvas:active{cursor:grabbing}.sx-photo-crop-ring{position:absolute;inset:7%;border:2px solid rgba(255,255,255,.9);border-radius:50%;box-shadow:0 0 0 999px rgba(0,0,0,.19);pointer-events:none}
.sx-photo-crop-tools{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin-top:13px}.sx-photo-crop-tools button{min-height:44px;padding:0 13px;border:0;border-radius:14px;background:var(--sx-ios-fill);color:var(--sx-ios-label);font-weight:740}.sx-photo-crop-tools button .btn-ico{width:17px;height:17px}.sx-photo-crop-tools label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;color:var(--sx-ios-secondary);font-size:11px;font-weight:700}.sx-photo-crop-tools input{width:100%}.sx-photo-crop-sheet>p{margin:10px 2px 0;color:var(--sx-ios-secondary);font-size:11px;line-height:1.4;text-align:center}

/* Mobile match workflow: important controls/stats first, tactics board collapsed at the bottom. */
html.sx-phone-webapp .sx-mobile-match-flow,
body.sx-phone-webapp .sx-mobile-match-flow{display:flex!important;flex-direction:column!important;gap:12px!important}
html.sx-phone-webapp .sx-mobile-match-flow>.tactics-events-card,
body.sx-phone-webapp .sx-mobile-match-flow>.tactics-events-card{order:1!important}
html.sx-phone-webapp .sx-mobile-match-flow>.sx-mobile-tactics-toggle,
body.sx-phone-webapp .sx-mobile-match-flow>.sx-mobile-tactics-toggle{order:2!important}
html.sx-phone-webapp .sx-mobile-match-flow>.tactics-pitch-card,
body.sx-phone-webapp .sx-mobile-match-flow>.tactics-pitch-card{order:3!important}
html.sx-phone-webapp .sx-mobile-match-quickbar,
body.sx-phone-webapp .sx-mobile-match-quickbar{position:sticky;top:0;z-index:6;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border-radius:20px;background:color-mix(in srgb,var(--sx-ios-surface) 82%,transparent);-webkit-backdrop-filter:blur(28px) saturate(160%);backdrop-filter:blur(28px) saturate(160%)}
html.sx-phone-webapp .sx-mobile-match-quickbar .btn,
body.sx-phone-webapp .sx-mobile-match-quickbar .btn{min-height:46px!important;border-radius:15px!important;font-size:12px!important}
html.sx-phone-webapp .sx-mobile-match-quickbar .btn:first-child,
body.sx-phone-webapp .sx-mobile-match-quickbar .btn:first-child{grid-column:1/-1;min-height:52px!important;font-size:14px!important}
html.sx-phone-webapp .sx-mobile-match-stats-first,
body.sx-phone-webapp .sx-mobile-match-stats-first{margin:10px 0 14px;padding:13px;border-radius:20px;background:color-mix(in srgb,var(--sx-ios-surface) 92%,transparent);border:1px solid color-mix(in srgb,var(--sx-ios-separator) 42%,transparent)}
html.sx-phone-webapp .sx-mobile-match-stats-first>header,
body.sx-phone-webapp .sx-mobile-match-stats-first>header{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}html.sx-phone-webapp .sx-mobile-match-stats-first>header span,body.sx-phone-webapp .sx-mobile-match-stats-first>header span{font-size:15px;font-weight:820;color:var(--sx-ios-label)}html.sx-phone-webapp .sx-mobile-match-stats-first>header small,body.sx-phone-webapp .sx-mobile-match-stats-first>header small{font-size:9px;color:var(--sx-ios-tertiary);font-weight:650;text-align:right}
html.sx-phone-webapp .sx-mobile-tactics-toggle,
body.sx-phone-webapp .sx-mobile-tactics-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border:0;border-radius:20px;background:color-mix(in srgb,var(--sx-ios-surface) 88%,transparent);color:var(--sx-ios-label);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-separator) 42%,transparent);-webkit-backdrop-filter:blur(28px) saturate(150%);backdrop-filter:blur(28px) saturate(150%)}
html.sx-phone-webapp .sx-mobile-tactics-toggle>span,
body.sx-phone-webapp .sx-mobile-tactics-toggle>span{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;text-align:left;align-items:center}html.sx-phone-webapp .sx-mobile-tactics-toggle .sx-ios-icon,body.sx-phone-webapp .sx-mobile-tactics-toggle .sx-ios-icon{grid-row:1/3;width:22px;height:22px;color:var(--sx-ios-blue)}html.sx-phone-webapp .sx-mobile-tactics-toggle b,body.sx-phone-webapp .sx-mobile-tactics-toggle b{font-size:14px;line-height:1.1}html.sx-phone-webapp .sx-mobile-tactics-toggle small,body.sx-phone-webapp .sx-mobile-tactics-toggle small{margin-top:3px;color:var(--sx-ios-secondary);font-size:10px}html.sx-phone-webapp .sx-mobile-tactics-toggle>i,body.sx-phone-webapp .sx-mobile-tactics-toggle>i{display:grid;place-items:center;transition:transform .22s ease}html.sx-phone-webapp .sx-mobile-tactics-toggle.is-open>i,body.sx-phone-webapp .sx-mobile-tactics-toggle.is-open>i{transform:rotate(180deg)}
html.sx-phone-webapp .tactics-pitch-card.sx-mobile-tactics-collapsed,
body.sx-phone-webapp .tactics-pitch-card.sx-mobile-tactics-collapsed{display:none!important}
@media(prefers-reduced-motion:reduce){.sx-live-dot-inline{animation:none!important}.sx-photo-crop-layer{transition:none!important}}

html.sx-phone-webapp .sx-gameday-rules-link,
body.sx-phone-webapp .sx-gameday-rules-link{
  width:100%!important;
  min-height:42px!important;
  margin:8px 0 2px!important;
  justify-content:center!important;
  border-radius:14px!important;
  background:color-mix(in srgb,var(--sx-ios-fill) 74%,transparent)!important;
  color:var(--sx-ios-secondary)!important;
}

html.sx-phone-webapp .sx-mobile-fixture-weather-panel,
body.sx-phone-webapp .sx-mobile-fixture-weather-panel{
  position:relative!important;
  display:block!important;
  min-height:214px!important;
  margin:10px 0 0!important;
  padding:14px 16px 16px!important;
  border:0!important;
  border-radius:26px!important;
  overflow:hidden!important;
  box-shadow:0 12px 26px rgba(28,56,112,.16),inset 0 1px 0 rgba(255,255,255,.16)!important;
  color:#fff!important;
}
html.sx-phone-webapp .sx-coach-fixture-pills .sx-when-chip.is-place,
body.sx-phone-webapp .sx-coach-fixture-pills .sx-when-chip.is-place{
  width:100%;
  justify-content:flex-start;
  white-space:normal;
  border-radius:16px;
}

html.sx-phone-webapp .tactics-match-group,
body.sx-phone-webapp .tactics-match-group{
  order:-1;
  padding:12px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--sx-ios-blue) 10%,var(--sx-ios-surface)),var(--sx-ios-surface-2))!important;
}
html.sx-phone-webapp .tactics-match-group .tactics-timer,
body.sx-phone-webapp .tactics-match-group .tactics-timer{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:10px!important;
  padding:11px!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 84%,transparent)!important;
}
html.sx-phone-webapp .tactics-match-group .tactics-timer-label,
body.sx-phone-webapp .tactics-match-group .tactics-timer-label{
  font-size:30px!important;
  line-height:1!important;
  font-weight:790!important;
  letter-spacing:-.055em!important;
  font-variant-numeric:tabular-nums!important;
}
html.sx-phone-webapp .tactics-match-group [data-timer="toggle"],
body.sx-phone-webapp .tactics-match-group [data-timer="toggle"]{
  min-height:45px!important;
  border-radius:14px!important;
  padding-inline:14px!important;
}

/* v22 — tablet remains app-mode, with roomier iPad spacing */
@media (min-width:821px) and (max-width:1600px) and (any-pointer:coarse) {
  html.sx-phone-webapp.sx-tablet-webapp {
    --sx-mobile-nav-h: 94px;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-topbar {
    padding-inline:max(28px,env(safe-area-inset-left)) max(28px,env(safe-area-inset-right))!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-view {
    width:min(100%,1040px)!important;
    max-width:1040px!important;
    margin-inline:auto!important;
    padding-inline:30px!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-mobile-bottom-inner {
    max-width:760px!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-mobile-bottom-nav {
    padding-inline:max(24px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-right))!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-mobile-more-panel {
    width:min(720px,calc(100vw - 40px))!important;
    left:50%!important;
    right:auto!important;
    translate:-50% 0;
    border-radius:34px 34px 0 0!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-parent-overview-match,
  html.sx-phone-webapp.sx-tablet-webapp .sx-coach-today-match {
    max-width:780px!important;
    margin-inline:auto!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-overview-weather-band.sx-mobile-fixture-weather-panel {
    min-height:242px!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-overview-weather-tempbox strong {
    font-size:118px!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-view .card,
  html.sx-phone-webapp.sx-tablet-webapp .sx-view .sx-dash-card,
  html.sx-phone-webapp.sx-tablet-webapp .sx-view .sx-parent-welcome {
    border-radius:24px!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-dash-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html.sx-phone-webapp.sx-tablet-webapp .sx-dash-grid>.sx-dash-card:only-child {
    grid-column:1/-1;
  }
}

/* Parent overview weather deliberately uses the exact same working weather
   surface as coach match cards. This avoids the light/faded parent-only layer. */
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-weather-band.sx-mobile-fixture-weather-panel,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-weather-band.sx-mobile-fixture-weather-panel {
  position:relative!important;
  display:block!important;
  min-height:214px!important;
  margin:10px 0 0!important;
  padding:14px 16px 16px!important;
  border:0!important;
  border-radius:26px!important;
  overflow:hidden!important;
  box-shadow:0 12px 26px rgba(28,56,112,.16),inset 0 1px 0 rgba(255,255,255,.16)!important;
  color:#fff!important;
  opacity:1!important;
}

/* Google-style live minute is visually the primary match state. */
html.sx-phone-webapp .sx-overview-center.is-live small,
body.sx-phone-webapp .sx-overview-center.is-live small {
  font-variant-numeric:tabular-nums;
  font-weight:850!important;
  letter-spacing:.02em!important;
}

/* v22 parent weather: force the exact same forecast backgrounds as the working coach cards. */
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-clear-day,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-clear-day{background:linear-gradient(180deg,#8fd3ff 0%,#6ca8ff 42%,#4f7ff3 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-partly-day,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-partly-day{background:linear-gradient(180deg,#7fc6ff 0%,#6e9dfd 46%,#6070ea 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-cloudy,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-cloudy{background:linear-gradient(180deg,#98b7d8 0%,#7891ba 48%,#647aa0 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-rain,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-rain{background:linear-gradient(180deg,#7d95bb 0%,#60749e 44%,#475a80 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-wind,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-wind{background:linear-gradient(180deg,#89c5d9 0%,#5fb0d0 42%,#4b8fba 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-fog,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-fog{background:linear-gradient(180deg,#b8c3d6 0%,#9aa8c0 44%,#7e90a8 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-snow,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-snow{background:linear-gradient(180deg,#dfeeff 0%,#c0d7fb 46%,#93b6ef 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-storm,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-storm{background:linear-gradient(180deg,#59658f 0%,#424f78 42%,#2d375d 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-clear-night,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-clear-night{background:linear-gradient(180deg,#2d447a 0%,#25355d 44%,#18223d 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-partly-night,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-partly-night{background:linear-gradient(180deg,#42598e 0%,#334872 42%,#223458 100%)!important}
html.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-unavailable,
body.sx-phone-webapp .sx-parent-overview-match .sx-mobile-fixture-weather-panel.sx-weather-theme-unavailable{background:linear-gradient(180deg,#95a2b8 0%,#7f8ca3 45%,#69758a 100%)!important}

/* v23 — coach match flow + parent gameday/weather hardening */
html.sx-phone-webapp .sx-mobile-match-flow,
body.sx-phone-webapp .sx-mobile-match-flow{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  width:100%!important;
}
html.sx-phone-webapp .sx-mobile-toolbar-reflowed,
body.sx-phone-webapp .sx-mobile-toolbar-reflowed,
html.sx-phone-webapp .sx-mobile-legacy-events-hidden,
body.sx-phone-webapp .sx-mobile-legacy-events-hidden{display:none!important}

html.sx-phone-webapp .sx-mobile-clock-card,
body.sx-phone-webapp .sx-mobile-clock-card{
  width:100%!important;
  margin:0!important;
  order:auto!important;
  padding:13px!important;
  border:0!important;
  border-radius:22px!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 94%,var(--sx-ios-blue) 6%)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-separator) 46%,transparent),0 8px 20px rgba(15,23,42,.05)!important;
}
html.sx-phone-webapp .sx-mobile-clock-card>.tactics-group-label,
body.sx-phone-webapp .sx-mobile-clock-card>.tactics-group-label{display:block!important;margin:0 0 8px!important;font-size:11px!important;font-weight:820!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--sx-ios-secondary)!important}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-group-content,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-group-content{display:grid!important;gap:9px!important}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-phase,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-phase{display:none!important}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-score,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-score{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  padding:7px 10px!important;border-radius:14px!important;background:color-mix(in srgb,var(--sx-ios-fill) 58%,transparent)!important;
  color:var(--sx-ios-secondary)!important;font-size:11px!important;font-weight:720!important
}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-score input,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-score input{width:48px!important;min-height:36px!important;padding:5px!important;border-radius:11px!important;text-align:center!important;font-size:18px!important;font-weight:780!important}

html.sx-phone-webapp .sx-mobile-event-actions-host,
body.sx-phone-webapp .sx-mobile-event-actions-host{width:100%!important;min-width:0!important}
html.sx-phone-webapp .sx-ma,
body.sx-phone-webapp .sx-ma{display:block!important;margin:0!important}
html.sx-phone-webapp .sx-ma-section-title,
body.sx-phone-webapp .sx-ma-section-title,
html.sx-phone-webapp .sx-mobile-match-stats-first>header,
body.sx-phone-webapp .sx-mobile-match-stats-first>header,
html.sx-phone-webapp .sx-mobile-match-timeline>header,
body.sx-phone-webapp .sx-mobile-match-timeline>header,
html.sx-phone-webapp .sx-mobile-match-tools>header,
body.sx-phone-webapp .sx-mobile-match-tools>header{
  display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:10px!important;margin:0 2px 8px!important
}
html.sx-phone-webapp .sx-ma-section-title>span,
body.sx-phone-webapp .sx-ma-section-title>span,
html.sx-phone-webapp .sx-mobile-match-stats-first>header>span,
body.sx-phone-webapp .sx-mobile-match-stats-first>header>span,
html.sx-phone-webapp .sx-mobile-match-timeline>header>span,
body.sx-phone-webapp .sx-mobile-match-timeline>header>span,
html.sx-phone-webapp .sx-mobile-match-tools>header>span,
body.sx-phone-webapp .sx-mobile-match-tools>header>span{font-size:15px!important;line-height:1.15!important;font-weight:820!important;letter-spacing:-.025em!important;color:var(--sx-ios-label)!important}
html.sx-phone-webapp .sx-ma-section-title>small,
body.sx-phone-webapp .sx-ma-section-title>small,
html.sx-phone-webapp .sx-mobile-match-stats-first>header>small,
body.sx-phone-webapp .sx-mobile-match-stats-first>header>small,
html.sx-phone-webapp .sx-mobile-match-timeline>header>small,
body.sx-phone-webapp .sx-mobile-match-timeline>header>small,
html.sx-phone-webapp .sx-mobile-match-tools>header>small,
body.sx-phone-webapp .sx-mobile-match-tools>header>small{font-size:9.5px!important;font-weight:650!important;color:var(--sx-ios-tertiary)!important;text-align:right!important}
html.sx-phone-webapp .sx-ma-bar,
body.sx-phone-webapp .sx-ma-bar{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html.sx-phone-webapp .sx-ma-act,
body.sx-phone-webapp .sx-ma-act{
  flex:1 1 calc(50% - 4px)!important;min-width:132px!important;min-height:48px!important;padding:8px 12px!important;
  border:1px solid color-mix(in srgb,var(--sx-ios-separator) 52%,transparent)!important;border-radius:999px!important;
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 92%,transparent)!important;color:var(--sx-ios-label)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3)!important;font-size:12px!important;font-weight:760!important
}
html.sx-phone-webapp .sx-ma-act .sx-ico,
body.sx-phone-webapp .sx-ma-act .sx-ico{display:grid!important;place-items:center!important;flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:50%!important;color:#fff!important;background:var(--sx-ios-blue)!important}
html.sx-phone-webapp .sx-ma-act .sx-ico svg,
body.sx-phone-webapp .sx-ma-act .sx-ico svg{width:15px!important;height:15px!important}
html.sx-phone-webapp .sx-ma-act.is-goal .sx-ico,body.sx-phone-webapp .sx-ma-act.is-goal .sx-ico{background:#30b86e!important}
html.sx-phone-webapp .sx-ma-act.is-against .sx-ico,body.sx-phone-webapp .sx-ma-act.is-against .sx-ico{background:#ff5964!important}
html.sx-phone-webapp .sx-ma-act.is-yellow .sx-ico,body.sx-phone-webapp .sx-ma-act.is-yellow .sx-ico{background:#f2b827!important}
html.sx-phone-webapp .sx-ma-act.is-red .sx-ico,body.sx-phone-webapp .sx-ma-act.is-red .sx-ico{background:#e3424f!important}
html.sx-phone-webapp .sx-ma-act.is-sub .sx-ico,body.sx-phone-webapp .sx-ma-act.is-sub .sx-ico{background:#4b7df2!important}
html.sx-phone-webapp .sx-ma-act.is-other .sx-ico,body.sx-phone-webapp .sx-ma-act.is-other .sx-ico{background:#7a7f8d!important}

html.sx-phone-webapp .sx-mobile-match-stats-first,
body.sx-phone-webapp .sx-mobile-match-stats-first,
html.sx-phone-webapp .sx-mobile-match-timeline,
body.sx-phone-webapp .sx-mobile-match-timeline,
html.sx-phone-webapp .sx-mobile-match-tools,
body.sx-phone-webapp .sx-mobile-match-tools{
  padding:13px!important;border-radius:22px!important;background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-separator) 44%,transparent)!important;min-width:0!important
}
html.sx-phone-webapp .sx-mobile-match-stat-grid,
body.sx-phone-webapp .sx-mobile-match-stat-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
html.sx-phone-webapp .sx-mobile-match-stat-grid>div,
body.sx-phone-webapp .sx-mobile-match-stat-grid>div{display:grid!important;justify-items:center!important;gap:2px!important;padding:10px 5px!important;border-radius:15px!important;background:color-mix(in srgb,var(--sx-ios-fill) 58%,transparent)!important;text-align:center!important}
html.sx-phone-webapp .sx-mobile-match-stat-grid strong,
body.sx-phone-webapp .sx-mobile-match-stat-grid strong{font-size:20px!important;line-height:1!important;font-weight:820!important;color:var(--sx-ios-label)!important;font-variant-numeric:tabular-nums!important}
html.sx-phone-webapp .sx-mobile-match-stat-grid span,
body.sx-phone-webapp .sx-mobile-match-stat-grid span{font-size:9px!important;line-height:1.1!important;font-weight:680!important;color:var(--sx-ios-secondary)!important}
html.sx-phone-webapp .sx-mobile-match-timeline>.list,
body.sx-phone-webapp .sx-mobile-match-timeline>.list{display:grid!important;gap:7px!important}
html.sx-phone-webapp .sx-mobile-match-timeline .list-row,
body.sx-phone-webapp .sx-mobile-match-timeline .list-row{padding:9px 10px!important;border-radius:14px!important;background:color-mix(in srgb,var(--sx-ios-fill) 46%,transparent)!important;border:0!important}
html.sx-phone-webapp .sx-mobile-match-tools .tactics-tools,
body.sx-phone-webapp .sx-mobile-match-tools .tactics-tools{display:grid!important;gap:9px!important;margin:0!important;padding:0!important}
html.sx-phone-webapp .sx-mobile-match-tools .tactics-tool-group,
body.sx-phone-webapp .sx-mobile-match-tools .tactics-tool-group{padding:9px!important;border-radius:15px!important;background:color-mix(in srgb,var(--sx-ios-fill) 45%,transparent)!important}
html.sx-phone-webapp .sx-mobile-match-tools .tactics-tool-group>div,
body.sx-phone-webapp .sx-mobile-match-tools .tactics-tool-group>div{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
html.sx-phone-webapp .sx-mobile-match-tools .btn,
body.sx-phone-webapp .sx-mobile-match-tools .btn{border-radius:999px!important;min-height:38px!important;padding:7px 11px!important}

html.sx-phone-webapp .sx-mobile-tactics-panel,
body.sx-phone-webapp .sx-mobile-tactics-panel{display:grid!important;gap:10px!important;min-width:0!important}
html.sx-phone-webapp .sx-mobile-tactics-panel.sx-mobile-tactics-collapsed,
body.sx-phone-webapp .sx-mobile-tactics-panel.sx-mobile-tactics-collapsed{display:none!important}
html.sx-phone-webapp .sx-mobile-tactics-panel .tactics-context-group,
body.sx-phone-webapp .sx-mobile-tactics-panel .tactics-context-group,
html.sx-phone-webapp .sx-mobile-tactics-panel .tactics-view-group,
body.sx-phone-webapp .sx-mobile-tactics-panel .tactics-view-group{padding:11px!important;border-radius:17px!important;background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-separator) 44%,transparent)!important}

/* Event sheet: clear the iOS topbar and, critically, stop above bottom navigation. */
html.sx-phone-webapp .sx-ma-sheet,
body.sx-phone-webapp .sx-ma-sheet{position:fixed!important;inset:0!important;z-index:2147483000!important}
html.sx-phone-webapp .sx-ma-panel,
body.sx-phone-webapp .sx-ma-panel{
  position:absolute!important;
  top:calc(var(--sx-app-top-inset,calc(64px + env(safe-area-inset-top))) + 10px)!important;
  right:10px!important;
  bottom:calc(var(--sx-mobile-nav-h,86px) + env(safe-area-inset-bottom) + 10px)!important;
  left:10px!important;
  width:auto!important;height:auto!important;max-height:none!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  padding:0!important;margin:0!important;border-radius:24px!important;
  background:var(--sx-ios-surface)!important;
  box-shadow:0 18px 56px rgba(8,18,45,.28)!important;
  animation:sxMaV23Rise .24s cubic-bezier(.22,1,.36,1)!important
}
@keyframes sxMaV23Rise{from{transform:translateY(12px);opacity:.55}to{transform:none;opacity:1}}
html.sx-phone-webapp .sx-ma-head,
body.sx-phone-webapp .sx-ma-head{flex:0 0 auto!important;padding:14px 14px 10px!important;border-bottom:1px solid color-mix(in srgb,var(--sx-ios-separator) 42%,transparent)!important}
html.sx-phone-webapp .sx-ma-body,
body.sx-phone-webapp .sx-ma-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;padding:12px 14px 18px!important}
html.sx-phone-webapp .sx-ma-foot,
body.sx-phone-webapp .sx-ma-foot{
  position:relative!important;z-index:2!important;flex:0 0 auto!important;display:flex!important;gap:8px!important;
  padding:10px 14px max(12px,env(safe-area-inset-bottom))!important;
  border-top:1px solid color-mix(in srgb,var(--sx-ios-separator) 42%,transparent)!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;
  -webkit-backdrop-filter:blur(22px) saturate(150%)!important;backdrop-filter:blur(22px) saturate(150%)!important
}
html.sx-phone-webapp .sx-ma-foot .sx-btn,
body.sx-phone-webapp .sx-ma-foot .sx-btn{min-height:46px!important;border-radius:14px!important;flex:1 1 0!important;justify-content:center!important}
html.sx-phone-webapp .sx-ma-player-pills,
body.sx-phone-webapp .sx-ma-player-pills,
html.sx-phone-webapp .sx-ma-chips,
body.sx-phone-webapp .sx-ma-chips{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:8px!important}
html.sx-phone-webapp .sx-ma-player-pills>button,
body.sx-phone-webapp .sx-ma-player-pills>button,
html.sx-phone-webapp .sx-ma-chips>button,
body.sx-phone-webapp .sx-ma-chips>button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-height:40px!important;width:auto!important;max-width:100%!important;padding:8px 12px!important;
  border:1px solid color-mix(in srgb,var(--sx-ios-separator) 64%,transparent)!important;border-radius:999px!important;
  background:color-mix(in srgb,var(--sx-ios-fill) 48%,transparent)!important;color:var(--sx-ios-label)!important;
  font:inherit!important;font-size:12px!important;line-height:1.1!important;font-weight:720!important;text-align:center!important
}
html.sx-phone-webapp .sx-ma-player-pills>button.is-picked,
body.sx-phone-webapp .sx-ma-player-pills>button.is-picked,
html.sx-phone-webapp .sx-ma-chips>button.is-picked,
body.sx-phone-webapp .sx-ma-chips>button.is-picked{border-color:var(--sx-ios-blue)!important;background:color-mix(in srgb,var(--sx-ios-blue) 14%,var(--sx-ios-surface))!important;color:var(--sx-ios-blue)!important}
html.sx-phone-webapp .sx-ma-player-pills>button:disabled,
body.sx-phone-webapp .sx-ma-player-pills>button:disabled{opacity:.34!important}
html.sx-phone-webapp .sx-ma-pill-number,
body.sx-phone-webapp .sx-ma-pill-number{display:inline-grid!important;place-items:center!important;min-width:21px!important;height:21px!important;padding:0 4px!important;border-radius:999px!important;background:color-mix(in srgb,var(--sx-ios-blue) 12%,transparent)!important;color:inherit!important;font-size:9px!important;font-weight:850!important}
html.sx-phone-webapp .sx-ma-hint,
body.sx-phone-webapp .sx-ma-hint{margin:0 0 10px!important;color:var(--sx-ios-secondary)!important;font-size:11.5px!important;line-height:1.4!important}
html.sx-phone-webapp .sx-ma-selection-count,
body.sx-phone-webapp .sx-ma-selection-count{margin-top:11px!important;padding:8px 10px!important;border-radius:12px!important;background:color-mix(in srgb,var(--sx-ios-fill) 50%,transparent)!important;color:var(--sx-ios-secondary)!important;font-size:11px!important;font-weight:720!important}
html.sx-phone-webapp .sx-ma-selection-count.is-complete,
body.sx-phone-webapp .sx-ma-selection-count.is-complete{color:#168b50!important;background:rgba(48,184,110,.10)!important}
html.sx-phone-webapp .sx-ma-phase-badge,
body.sx-phone-webapp .sx-ma-phase-badge{margin:0 0 10px!important;padding:9px 11px!important;border-radius:13px!important;background:rgba(75,125,242,.10)!important;color:var(--sx-ios-blue)!important;font-size:11px!important;font-weight:760!important}

/* Parent: everything ABOVE the real weather scene is on a light surface and must be dark. */
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head>span,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head>span{color:var(--sx-ios-label)!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-hero{color:var(--sx-ios-label)!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-story,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-story,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-team strong,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-team strong,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center strong,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center strong,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center small,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center small{color:var(--sx-ios-label)!important;text-shadow:none!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center.is-live small,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center.is-live small{color:#fff!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-team>span,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-team>span{background:color-mix(in srgb,var(--sx-ios-blue) 12%,var(--sx-ios-surface))!important;color:var(--sx-ios-blue)!important}
/* Only the actual animated weather slab remains white-on-colour, regardless of app theme. */
html.sx-phone-webapp .sx-parent-portal .sx-overview-weather-band,
body.sx-phone-webapp .sx-parent-portal .sx-overview-weather-band,
html.sx-phone-webapp .sx-parent-portal .sx-overview-weather-band *,
body.sx-phone-webapp .sx-parent-portal .sx-overview-weather-band *{color:#fff}

@media (min-width:700px) and (max-width:1600px) {
  html.sx-phone-webapp .sx-ma-act,body.sx-phone-webapp .sx-ma-act{flex-basis:calc(33.333% - 6px)!important}
  html.sx-phone-webapp .sx-ma-panel,body.sx-phone-webapp .sx-ma-panel{left:50%!important;right:auto!important;width:min(720px,calc(100vw - 48px))!important;transform:translateX(-50%)!important}
  @keyframes sxMaV23Rise{from{transform:translate(-50%,12px);opacity:.55}to{transform:translate(-50%,0);opacity:1}}
  html.sx-phone-webapp .sx-mobile-match-stat-grid,body.sx-phone-webapp .sx-mobile-match-stat-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){html.sx-phone-webapp .sx-ma-panel,body.sx-phone-webapp .sx-ma-panel{animation:none!important}}

/* v23 event sheet fundamentals are repeated here so iPad gets the same sheet
   even though the legacy React sheet CSS was phone-only. */
html.sx-phone-webapp .sx-ma-scrim,
body.sx-phone-webapp .sx-ma-scrim{position:absolute!important;inset:0!important;background:rgba(2,6,23,.48)!important;-webkit-backdrop-filter:blur(3px)!important;backdrop-filter:blur(3px)!important}
html.sx-phone-webapp .sx-ma-head,
body.sx-phone-webapp .sx-ma-head{display:flex!important;align-items:center!important;gap:11px!important}
html.sx-phone-webapp .sx-ma-headtext,
body.sx-phone-webapp .sx-ma-headtext{flex:1 1 auto!important;min-width:0!important}
html.sx-phone-webapp .sx-ma-head h2,
body.sx-phone-webapp .sx-ma-head h2{margin:2px 0 0!important;font-size:20px!important;line-height:1.15!important;font-weight:800!important;letter-spacing:-.035em!important;color:var(--sx-ios-label)!important}
html.sx-phone-webapp .sx-ma-progress,
body.sx-phone-webapp .sx-ma-progress{display:block!important;font-size:9.5px!important;font-weight:760!important;letter-spacing:.07em!important;text-transform:uppercase!important;color:var(--sx-ios-tertiary)!important}
html.sx-phone-webapp .sx-ma-steps,
body.sx-phone-webapp .sx-ma-steps{display:flex!important;gap:5px!important;margin:0 0 7px!important}
html.sx-phone-webapp .sx-ma-steps i,
body.sx-phone-webapp .sx-ma-steps i{display:block!important;flex:1 1 0!important;height:3px!important;border-radius:99px!important;background:color-mix(in srgb,var(--sx-ios-separator) 72%,transparent)!important}
html.sx-phone-webapp .sx-ma-steps i.is-done,
body.sx-phone-webapp .sx-ma-steps i.is-done{background:var(--sx-ios-blue)!important}
html.sx-phone-webapp .sx-ma-back,
body.sx-phone-webapp .sx-ma-back{display:grid!important;place-items:center!important;flex:0 0 38px!important;width:38px!important;height:38px!important;padding:0!important;border:0!important;border-radius:50%!important;background:color-mix(in srgb,var(--sx-ios-fill) 70%,transparent)!important;color:var(--sx-ios-label)!important}
html.sx-phone-webapp .sx-ma-back .sx-ios-icon,
body.sx-phone-webapp .sx-ma-back .sx-ios-icon{width:18px!important;height:18px!important}
html.sx-phone-webapp .sx-ma-field,
body.sx-phone-webapp .sx-ma-field{display:block!important;margin-top:12px!important}
html.sx-phone-webapp .sx-ma-field>span,
body.sx-phone-webapp .sx-ma-field>span{display:block!important;margin:0 0 6px!important;font-size:10px!important;font-weight:760!important;letter-spacing:.055em!important;text-transform:uppercase!important;color:var(--sx-ios-secondary)!important}
html.sx-phone-webapp .sx-ma-field>span em,
body.sx-phone-webapp .sx-ma-field>span em{font-style:normal!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;color:var(--sx-ios-tertiary)!important}
html.sx-phone-webapp .sx-ma-field input,
html.sx-phone-webapp .sx-ma-field textarea,
body.sx-phone-webapp .sx-ma-field input,
body.sx-phone-webapp .sx-ma-field textarea{display:block!important;width:100%!important;box-sizing:border-box!important;min-height:46px!important;padding:11px 12px!important;border:1px solid color-mix(in srgb,var(--sx-ios-separator) 62%,transparent)!important;border-radius:14px!important;background:color-mix(in srgb,var(--sx-ios-fill) 42%,var(--sx-ios-surface))!important;color:var(--sx-ios-label)!important;font:inherit!important;font-size:16px!important;outline:none!important}
html.sx-phone-webapp .sx-ma-field textarea,
body.sx-phone-webapp .sx-ma-field textarea{min-height:92px!important;resize:vertical!important}
html.sx-phone-webapp .sx-ma-minute input,
body.sx-phone-webapp .sx-ma-minute input{max-width:132px!important;text-align:center!important;font-variant-numeric:tabular-nums!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head>span,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-story,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-team strong,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center strong,
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center small,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head>span,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-story,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-team strong,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center strong,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center small{color:var(--sx-ios-label)!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head>small,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-match-head>small{color:#4267d9!important}
html.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center.is-live small,
body.sx-phone-webapp .sx-parent-portal .sx-parent-overview-match .sx-overview-center.is-live small{color:#fff!important}


/* v24 — event sheet safe-area hardening for iPhone/iPad browser chrome + app tabbar. */
html.sx-phone-webapp .sx-ma-panel,body.sx-phone-webapp .sx-ma-panel{
  top:max(calc(var(--sx-app-top-inset,72px) + 14px),calc(env(safe-area-inset-top) + 76px))!important;
  bottom:max(calc(var(--sx-app-bottom-inset,82px) + 10px),calc(env(safe-area-inset-bottom) + 86px))!important;
  max-height:none!important;
}
html.sx-phone-webapp .sx-ma-foot,body.sx-phone-webapp .sx-ma-foot{
  padding-bottom:max(14px,env(safe-area-inset-bottom))!important;
}

/* v25 — finished matches remain visibly saved in coach app-mode */
html.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary{
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:center!important;
  gap:2px 12px!important;
  margin:0!important;
  padding:12px 14px!important;
  border:0!important;
  border-radius:16px!important;
  background:color-mix(in srgb,#34c759 12%,var(--sx-ios-surface))!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,#34c759 22%,transparent)!important;
}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary>span,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary>span{
  grid-column:1!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
  color:#248a3d!important;
}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary>strong,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary>strong{
  grid-column:2!important;
  grid-row:1 / span 2!important;
  font-size:25px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:-.035em!important;
  font-variant-numeric:tabular-nums!important;
  color:var(--sx-ios-label)!important;
}
html.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary>small,
body.sx-phone-webapp .sx-mobile-clock-card .tactics-final-summary>small{
  grid-column:1!important;
  font-size:12px!important;
  color:var(--sx-ios-secondary)!important;
}
html.sx-phone-webapp .sx-mobile-clock-card [data-match-save-final],
body.sx-phone-webapp .sx-mobile-clock-card [data-match-save-final]{
  min-height:45px!important;
  border-radius:14px!important;
  padding-inline:14px!important;
}


/* v26 — final score + match outcome directly in mobile fixture lists */
html.sx-phone-webapp .sx-parent-fixture-time.is-final strong,
body.sx-phone-webapp .sx-parent-fixture-time.is-final strong{
  color:var(--sx-ios-label)!important;
  font-size:20px!important;
  font-variant-numeric:tabular-nums;
}
html.sx-phone-webapp .sx-mobile-result-badge,
body.sx-phone-webapp .sx-mobile-result-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:21px;
  margin-top:6px;
  padding:3px 7px;
  border-radius:999px;
  font-size:7.5px;
  line-height:1;
  font-weight:850;
  letter-spacing:.055em;
  white-space:nowrap;
}
html.sx-phone-webapp .sx-mobile-result-badge .btn-ico,
html.sx-phone-webapp .sx-mobile-result-badge .sx-ios-icon,
body.sx-phone-webapp .sx-mobile-result-badge .btn-ico,
body.sx-phone-webapp .sx-mobile-result-badge .sx-ios-icon{width:11px;height:11px;flex:0 0 auto}
html.sx-phone-webapp .sx-mobile-result-badge i,
body.sx-phone-webapp .sx-mobile-result-badge i{font-style:normal;font-size:11px;line-height:1;font-weight:900}
html.sx-phone-webapp .sx-mobile-result-badge b,
body.sx-phone-webapp .sx-mobile-result-badge b{font:inherit;color:inherit}
html.sx-phone-webapp .sx-mobile-result-badge.is-win,
body.sx-phone-webapp .sx-mobile-result-badge.is-win{color:#1f7a38;background:rgba(52,199,89,.16);box-shadow:inset 0 0 0 1px rgba(52,199,89,.22)}
html.sx-phone-webapp .sx-mobile-result-badge.is-draw,
body.sx-phone-webapp .sx-mobile-result-badge.is-draw{color:var(--sx-ios-secondary);background:color-mix(in srgb,var(--sx-ios-fill) 78%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-separator) 55%,transparent)}
html.sx-phone-webapp .sx-mobile-result-badge.is-loss,
body.sx-phone-webapp .sx-mobile-result-badge.is-loss{color:#c9342f;background:rgba(255,69,58,.12);box-shadow:inset 0 0 0 1px rgba(255,69,58,.18)}
html[data-theme="dark"].sx-phone-webapp .sx-mobile-result-badge.is-win,
body[data-theme="dark"] .sx-mobile-result-badge.is-win{color:#69db84}
html[data-theme="dark"].sx-phone-webapp .sx-mobile-result-badge.is-loss,
body[data-theme="dark"] .sx-mobile-result-badge.is-loss{color:#ff827a}

/* v26 — rich final result + parent public match moments, theme-safe in light/dark */
html.sx-phone-webapp .sx-parent-fixture-summary,
body.sx-phone-webapp .sx-parent-fixture-summary,
html.sx-phone-webapp .sx-parent-overview-match .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-overview-match .sx-overview-match-hero,
html.sx-phone-webapp .sx-coach-today-match .sx-overview-match-hero,
body.sx-phone-webapp .sx-coach-today-match .sx-overview-match-hero{
  color:var(--sx-ios-label)!important;
}
html.sx-phone-webapp .sx-parent-fixture-story,
body.sx-phone-webapp .sx-parent-fixture-story,
html.sx-phone-webapp .sx-parent-fixture-team strong,
body.sx-phone-webapp .sx-parent-fixture-team strong,
html.sx-phone-webapp .sx-parent-fixture-time strong,
body.sx-phone-webapp .sx-parent-fixture-time strong{
  color:var(--sx-ios-label)!important;
  text-shadow:none!important;
}
html.sx-phone-webapp .sx-parent-fixture-time small,
body.sx-phone-webapp .sx-parent-fixture-time small{
  color:var(--sx-ios-secondary)!important;
}
html.sx-phone-webapp .sx-parent-fixture-time.is-live small,
body.sx-phone-webapp .sx-parent-fixture-time.is-live small{color:#fff!important}

html.sx-phone-webapp .sx-parent-match-moments,
body.sx-phone-webapp .sx-parent-match-moments{
  margin-top:13px;
  padding-top:12px;
  border-top:1px solid color-mix(in srgb,var(--sx-ios-separator) 58%,transparent);
  color:var(--sx-ios-label);
}
html.sx-phone-webapp .sx-parent-match-moments>header,
body.sx-phone-webapp .sx-parent-match-moments>header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 1px 8px;
}
html.sx-phone-webapp .sx-parent-match-moments>header>strong,
body.sx-phone-webapp .sx-parent-match-moments>header>strong{
  color:var(--sx-ios-label)!important;
  font-size:11.5px;
  line-height:1.2;
  font-weight:790;
  letter-spacing:-.018em;
}
html.sx-phone-webapp .sx-parent-match-moments>header>small,
body.sx-phone-webapp .sx-parent-match-moments>header>small{
  color:var(--sx-ios-tertiary)!important;
  font-size:8.5px;
  line-height:1.2;
  font-weight:650;
}
html.sx-phone-webapp .sx-parent-match-moment-list,
body.sx-phone-webapp .sx-parent-match-moment-list{display:grid;gap:6px}
html.sx-phone-webapp .sx-parent-moment,
body.sx-phone-webapp .sx-parent-moment{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:8px 9px;
  border:1px solid color-mix(in srgb,var(--sx-ios-separator) 48%,transparent);
  border-radius:14px;
  background:color-mix(in srgb,var(--sx-ios-fill) 46%,transparent);
}
html.sx-phone-webapp .sx-parent-moment-icon,
body.sx-phone-webapp .sx-parent-moment-icon{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  background:color-mix(in srgb,var(--sx-ios-surface) 82%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-separator) 42%,transparent);
}
html.sx-phone-webapp .sx-parent-moment.is-goal .sx-parent-moment-icon,
body.sx-phone-webapp .sx-parent-moment.is-goal .sx-parent-moment-icon{
  background:color-mix(in srgb,var(--sx-ios-green) 11%,var(--sx-ios-surface));
}
html.sx-phone-webapp .sx-parent-moment-ball,
body.sx-phone-webapp .sx-parent-moment-ball{font-size:16px;line-height:1;filter:none}
html.sx-phone-webapp .sx-parent-moment-card,
body.sx-phone-webapp .sx-parent-moment-card{
  display:block;
  width:12px;
  height:17px;
  border-radius:3px;
  box-shadow:0 1px 2px rgba(0,0,0,.12),inset 0 0 0 1px rgba(0,0,0,.08);
}
html.sx-phone-webapp .sx-parent-moment.is-yellow .sx-parent-moment-card,
body.sx-phone-webapp .sx-parent-moment.is-yellow .sx-parent-moment-card{background:#ffd60a}
html.sx-phone-webapp .sx-parent-moment.is-red .sx-parent-moment-card,
body.sx-phone-webapp .sx-parent-moment.is-red .sx-parent-moment-card{background:#ff453a}
html.sx-phone-webapp .sx-parent-moment-copy,
body.sx-phone-webapp .sx-parent-moment-copy{display:block;min-width:0}
html.sx-phone-webapp .sx-parent-moment-copy>strong,
body.sx-phone-webapp .sx-parent-moment-copy>strong{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--sx-ios-label)!important;
  font-size:11px;
  line-height:1.2;
  font-weight:770;
}
html.sx-phone-webapp .sx-parent-moment-copy>small,
body.sx-phone-webapp .sx-parent-moment-copy>small{
  display:block;
  margin-top:1px;
  color:var(--sx-ios-tertiary)!important;
  font-size:8px;
  line-height:1.2;
  font-weight:620;
}
html.sx-phone-webapp .sx-parent-moment-copy>em,
body.sx-phone-webapp .sx-parent-moment-copy>em{
  display:flex;
  flex-wrap:wrap;
  gap:4px 5px;
  margin-top:5px;
  font-style:normal;
}
html.sx-phone-webapp .sx-parent-moment-detail,
body.sx-phone-webapp .sx-parent-moment-detail,
html.sx-phone-webapp .sx-parent-moment-assist,
body.sx-phone-webapp .sx-parent-moment-assist,
html.sx-phone-webapp .sx-parent-moment-note,
body.sx-phone-webapp .sx-parent-moment-note{
  display:inline-flex;
  align-items:center;
  min-height:19px;
  max-width:100%;
  padding:3px 6px;
  border-radius:999px;
  background:color-mix(in srgb,var(--sx-ios-fill) 70%,transparent);
  color:var(--sx-ios-secondary)!important;
  font-size:8px;
  line-height:1.15;
  font-weight:680;
}
html.sx-phone-webapp .sx-parent-moment.is-goal .sx-parent-moment-detail,
body.sx-phone-webapp .sx-parent-moment.is-goal .sx-parent-moment-detail{
  background:color-mix(in srgb,var(--sx-ios-green) 10%,transparent);
  color:color-mix(in srgb,var(--sx-ios-green) 76%,var(--sx-ios-label))!important;
}
html.sx-phone-webapp .sx-parent-moment-assist,
body.sx-phone-webapp .sx-parent-moment-assist{
  background:color-mix(in srgb,var(--sx-ios-blue) 10%,transparent);
  color:var(--sx-ios-blue)!important;
}
html.sx-phone-webapp .sx-parent-moment-minute,
body.sx-phone-webapp .sx-parent-moment-minute{
  align-self:start;
  min-width:28px;
  padding-top:2px;
  color:var(--sx-ios-secondary)!important;
  font-size:10px;
  line-height:1.2;
  font-weight:830;
  font-variant-numeric:tabular-nums;
  text-align:right;
}

/* Result badge is deliberately readable on both the dark app surface and the
   light result card. The win badge keeps the requested green positive cue. */
html.sx-phone-webapp .sx-mobile-result-badge.is-win,
body.sx-phone-webapp .sx-mobile-result-badge.is-win{
  color:color-mix(in srgb,#168b50 82%,var(--sx-ios-label))!important;
  background:color-mix(in srgb,#34c759 15%,transparent)!important;
}
html[data-theme="dark"].sx-phone-webapp .sx-mobile-result-badge.is-win,
body[data-theme="dark"] .sx-mobile-result-badge.is-win{color:#73df8c!important;background:rgba(52,199,89,.18)!important}
html[data-theme="dark"].sx-phone-webapp .sx-mobile-result-badge.is-draw,
body[data-theme="dark"] .sx-mobile-result-badge.is-draw{color:rgba(235,235,245,.78)!important}
html[data-theme="dark"].sx-phone-webapp .sx-mobile-result-badge.is-loss,
body[data-theme="dark"] .sx-mobile-result-badge.is-loss{color:#ff8a83!important;background:rgba(255,69,58,.16)!important}

@media (min-width:700px) and (max-width:1600px){
  html.sx-phone-webapp .sx-parent-match-moment-list,
  body.sx-phone-webapp .sx-parent-match-moment-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}



/* v27 — post-match dashboard state: result copy, outcome tint, dark-safe text. */
html.sx-phone-webapp .sx-mobile-result-badge.is-draw,
body.sx-phone-webapp .sx-mobile-result-badge.is-draw{
  color:#8a5400!important;
  background:rgba(255,159,10,.16)!important;
  box-shadow:inset 0 0 0 1px rgba(255,159,10,.25)!important;
}
html.sx-phone-webapp .sx-parent-overview-match.sx-result-win,
body.sx-phone-webapp .sx-parent-overview-match.sx-result-win{
  --sx-result-ink:#185d2b;
  background:#eaf8ee!important;
  border-color:#bfe7c9!important;
}
html.sx-phone-webapp .sx-parent-overview-match.sx-result-loss,
body.sx-phone-webapp .sx-parent-overview-match.sx-result-loss{
  --sx-result-ink:#8b2924;
  background:#fff0ef!important;
  border-color:#f3c6c2!important;
}
html.sx-phone-webapp .sx-parent-overview-match.sx-result-draw,
body.sx-phone-webapp .sx-parent-overview-match.sx-result-draw{
  --sx-result-ink:#7b4a00;
  background:#fff4df!important;
  border-color:#f1d49c!important;
}
html.sx-phone-webapp .sx-parent-overview-match.sx-result-win .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-overview-match.sx-result-win .sx-overview-match-hero{
  background:linear-gradient(145deg,#effaf2,#dff5e5)!important;
  box-shadow:inset 0 0 0 1px rgba(52,199,89,.16)!important;
}
html.sx-phone-webapp .sx-parent-overview-match.sx-result-loss .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-overview-match.sx-result-loss .sx-overview-match-hero{
  background:linear-gradient(145deg,#fff4f3,#ffe5e2)!important;
  box-shadow:inset 0 0 0 1px rgba(255,69,58,.13)!important;
}
html.sx-phone-webapp .sx-parent-overview-match.sx-result-draw .sx-overview-match-hero,
body.sx-phone-webapp .sx-parent-overview-match.sx-result-draw .sx-overview-match-hero{
  background:linear-gradient(145deg,#fff8ea,#ffedc8)!important;
  box-shadow:inset 0 0 0 1px rgba(255,159,10,.15)!important;
}
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-match-head>span,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-match-head>small,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-story,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-team strong,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-center strong,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-center small,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-match-head>span,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-match-head>small,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-story,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-team strong,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-center strong,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-center small{
  color:var(--sx-result-ink)!important;
  text-shadow:none!important;
}
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-fixture-story,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-fixture-story{
  color:var(--sx-result-ink)!important;
  background:rgba(255,255,255,.54)!important;
  border-color:color-mix(in srgb,var(--sx-result-ink) 13%,transparent)!important;
}
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments strong,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments small,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments em,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments b,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments strong,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments small,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments em,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-match-moments b{
  color:var(--sx-result-ink)!important;
}
/* Weather remains a weather scene after the result; never inherit outcome ink. */
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-weather-band,
html.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-weather-band *,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-weather-band,
body.sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-overview-weather-band *{
  color:#fff!important;
}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match.sx-result-win,
body[data-theme="dark"] .sx-parent-overview-match.sx-result-win{
  --sx-result-ink:#a9efb9;
  background:#10271a!important;
  border-color:#285b37!important;
}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match.sx-result-loss,
body[data-theme="dark"] .sx-parent-overview-match.sx-result-loss{
  --sx-result-ink:#ffaaa4;
  background:#311817!important;
  border-color:#63302d!important;
}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match.sx-result-draw,
body[data-theme="dark"] .sx-parent-overview-match.sx-result-draw{
  --sx-result-ink:#ffd18b;
  background:#312414!important;
  border-color:#664a22!important;
}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match.sx-result-win .sx-overview-match-hero,
body[data-theme="dark"] .sx-parent-overview-match.sx-result-win .sx-overview-match-hero{background:linear-gradient(145deg,#173621,#10291a)!important}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match.sx-result-loss .sx-overview-match-hero,
body[data-theme="dark"] .sx-parent-overview-match.sx-result-loss .sx-overview-match-hero{background:linear-gradient(145deg,#411e1c,#2e1615)!important}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match.sx-result-draw .sx-overview-match-hero,
body[data-theme="dark"] .sx-parent-overview-match.sx-result-draw .sx-overview-match-hero{background:linear-gradient(145deg,#3c2c18,#2a2013)!important}
html[data-theme="dark"].sx-phone-webapp .sx-parent-overview-match[class*="sx-result-"] .sx-parent-fixture-story,
body[data-theme="dark"] .sx-parent-overview-match[class*="sx-result-"] .sx-parent-fixture-story{
  background:rgba(0,0,0,.13)!important;
}

/* v28 supporter portal + followed team cards stay native-app sized on phone/tablet */
html.sx-phone-webapp .sx-supporter-portal,body.sx-phone-webapp .sx-supporter-portal{padding:0 2px 18px}
html.sx-phone-webapp .sx-supporter-portal>.sx-tabs,body.sx-phone-webapp .sx-supporter-portal>.sx-tabs{position:sticky;top:var(--sx-app-top-inset,72px);z-index:8;display:flex;gap:6px;overflow-x:auto;padding:8px 0;background:var(--sx-ios-bg);scrollbar-width:none}
html.sx-phone-webapp .sx-supporter-match,body.sx-phone-webapp .sx-supporter-match,html.sx-phone-webapp .sx-follow-panel,body.sx-phone-webapp .sx-follow-panel{border-color:var(--sx-ios-separator);background:var(--sx-ios-surface);color:var(--sx-ios-label);box-shadow:none}
html.sx-phone-webapp .sx-supporter-score span,body.sx-phone-webapp .sx-supporter-score span,html.sx-phone-webapp .sx-supporter-score strong,body.sx-phone-webapp .sx-supporter-score strong{color:var(--sx-ios-label)}
html.sx-phone-webapp .sx-follow-panel p,body.sx-phone-webapp .sx-follow-panel p,html.sx-phone-webapp .sx-supporter-match>footer,body.sx-phone-webapp .sx-supporter-match>footer{color:var(--sx-ios-secondary-label)}
html.sx-tablet-webapp .sx-supporter-list{grid-template-columns:repeat(2,minmax(0,1fr))}html.sx-tablet-webapp .sx-follow-panel{grid-column:1/-1}

/* v30 parent match report */
.sx-parent-report{margin-top:14px;padding:14px;border-radius:20px;background:var(--sx-ios-card,#fff);border:1px solid rgba(148,163,184,.2);box-shadow:0 8px 22px rgba(15,23,42,.05);color:var(--text-main)}
.sx-parent-report>header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.sx-parent-report>header>span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:rgba(83,98,213,.11);font-size:18px}.sx-parent-report>header>div{display:grid}.sx-parent-report>header strong{font-size:14px}.sx-parent-report>header small{font-size:11.5px;color:var(--text-muted)}.sx-parent-report>p{margin:0;white-space:pre-line;font-size:13.5px;line-height:1.58;color:var(--text-main)}.sx-parent-report>footer{margin-top:12px;padding-top:10px;border-top:1px solid rgba(148,163,184,.18);font-size:11.5px;color:var(--text-muted)}
.sx-parent-report-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px}.sx-parent-report-photos img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px}.sx-parent-report-photos img:first-child:nth-last-child(odd){grid-column:1/-1;aspect-ratio:16/9}
.sx-parent-report-subs{margin-top:12px;padding-top:10px;border-top:1px solid rgba(148,163,184,.16)}.sx-parent-report-subs header,.sx-parent-report-tactics header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.sx-parent-report-subs header strong,.sx-parent-report-tactics header strong{font-size:12.5px}.sx-parent-report-subs header small,.sx-parent-report-tactics header small{font-size:11px;color:var(--text-muted)}.sx-parent-report-subs>div{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:8px;padding:7px 0;font-size:12px}.sx-parent-report-subs>div+div{border-top:1px solid rgba(148,163,184,.12)}.sx-parent-report-subs b{font-weight:650}.sx-parent-report-subs em{font-style:normal;color:var(--text-muted);font-variant-numeric:tabular-nums}
.sx-parent-report-tactics{margin-top:12px;padding-top:10px;border-top:1px solid rgba(148,163,184,.16)}.sx-parent-mini-pitch{position:relative;min-height:260px;aspect-ratio:3/5;max-width:220px;margin:0 auto;border-radius:18px;overflow:hidden;background:linear-gradient(90deg,rgba(255,255,255,.06) 50%,transparent 50%),linear-gradient(#2f9f66,#268a58);background-size:50% 100%,100% 100%;border:2px solid rgba(255,255,255,.75);box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)}.sx-parent-mini-pitch:before{content:"";position:absolute;inset:8px;border:1px solid rgba(255,255,255,.72);border-radius:10px}.sx-parent-mini-pitch:after{content:"";position:absolute;left:8px;right:8px;top:50%;border-top:1px solid rgba(255,255,255,.72)}.sx-parent-pitch-player{position:absolute;transform:translate(-50%,-50%);z-index:2;display:grid;justify-items:center;max-width:72px}.sx-parent-pitch-player i{width:25px;height:25px;border-radius:999px;display:grid;place-items:center;background:#5362D5;color:#fff;font-style:normal;font-size:10px;font-weight:800;border:2px solid rgba(255,255,255,.9);box-shadow:0 2px 6px rgba(15,23,42,.2)}.sx-parent-pitch-player b{margin-top:2px;padding:2px 4px;border-radius:5px;background:rgba(15,23,42,.68);color:#fff;font-size:8px;line-height:1.15;text-align:center;white-space:nowrap;max-width:72px;overflow:hidden;text-overflow:ellipsis}
body[data-theme=dark] .sx-parent-report{background:#151a24;border-color:rgba(148,163,184,.15);box-shadow:none}body[data-theme=dark] .sx-parent-report>p{color:#f1f5f9}


/* v31: mededelingen, verslagcover, trainingstijden en stabiele app-overgangen */
html.sx-phone-webapp .sx-parent-report-link,body.sx-phone-webapp .sx-parent-report-link{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px;padding:12px;border-radius:18px;background:var(--sx-ios-card,#fff);border:1px solid rgba(83,98,213,.16);color:var(--text-main);box-shadow:0 6px 18px rgba(15,23,42,.04)}
.sx-parent-report-link-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:13px;background:rgba(83,98,213,.11);font-size:19px}.sx-parent-report-link>div{display:grid;gap:2px}.sx-parent-report-link strong{font-size:13px}.sx-parent-report-link small{font-size:10.5px;line-height:1.35;color:var(--text-muted)}.sx-parent-report-link button{border:0;border-radius:12px;background:#5362D5;color:#fff;padding:9px 10px;font:inherit;font-size:11px;font-weight:760;white-space:nowrap}
.sx-report-announcement-card{overflow:hidden}.sx-report-announcement-cover{position:relative;width:100%;padding:0;border:0;background:none;display:block;overflow:hidden;border-radius:18px;margin-bottom:10px}.sx-report-announcement-cover img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.sx-report-announcement-cover span{position:absolute;left:10px;bottom:10px;padding:7px 10px;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font-size:11px;font-weight:750;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.sx-report-highlight{outline:3px solid rgba(83,98,213,.38);outline-offset:3px;transition:outline-color .35s ease}
.sx-report-gallery{position:fixed;inset:0;z-index:2147483640;display:grid;grid-template-rows:auto 1fr auto;background:rgba(5,9,18,.94);color:#fff;opacity:0;transition:opacity .18s ease}.sx-report-gallery.is-open{opacity:1}.sx-report-gallery-bg{position:absolute;inset:0;border:0;background:transparent}.sx-report-gallery>header,.sx-report-gallery>footer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.sx-report-gallery>header button{width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.13);color:#fff;font-size:26px}.sx-report-gallery>footer{justify-content:center;padding:12px 16px calc(12px + env(safe-area-inset-bottom));font-size:12px}.sx-report-gallery-stage{position:relative;z-index:2;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:4px;min-height:0}.sx-report-gallery-stage img{width:100%;height:100%;max-height:75dvh;object-fit:contain}.sx-report-gallery-stage button{height:60px;border:0;background:transparent;color:#fff;font-size:42px}
.sx-parent-training-times{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;min-width:0;margin-left:auto;margin-right:8px;padding:8px 10px;border-radius:14px;background:rgba(83,98,213,.08);color:var(--text-main)}.sx-parent-training-times-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(83,98,213,.12)}.sx-parent-training-times>div{display:grid;min-width:0}.sx-parent-training-times small{font-size:9.5px;color:var(--text-muted)}.sx-parent-training-times strong{font-size:10.5px;white-space:normal;line-height:1.25}
html.sx-phone-webapp .sx-admin-announcements,body.sx-phone-webapp .sx-admin-announcements{scroll-behavior:auto!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.sx-coach-ann-comments{margin:10px 12px;padding:10px;border-radius:14px;background:rgba(83,98,213,.055);border:1px solid rgba(83,98,213,.1)}.sx-coach-ann-comments>header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin:0 0 7px!important;padding:0!important}.sx-coach-ann-comments>header strong{font-size:12px}.sx-coach-ann-comments>header span{font-size:10px;color:var(--text-muted)}.sx-coach-ann-comments>div{display:grid;grid-template-columns:28px 1fr;gap:8px;padding:7px 0}.sx-coach-ann-comments>div+div{border-top:1px solid rgba(148,163,184,.12)}.sx-coach-ann-comments>div>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#5362D5;color:white;font-size:10px;font-weight:800}.sx-coach-ann-comments p{margin:0;display:grid}.sx-coach-ann-comments p strong{font-size:11px}.sx-coach-ann-comments p small{font-size:9px;color:var(--text-muted)}.sx-coach-ann-comments p em{margin-top:2px;font-size:11.5px;font-style:normal;line-height:1.4}.sx-no-comments{font-size:11px;color:var(--text-muted)}
html.sx-phone-webapp.sx-view-transition .page-content,html.sx-tablet-webapp.sx-view-transition .page-content{animation:sxViewIn .18s cubic-bezier(.22,.8,.28,1) both;will-change:opacity,transform}@keyframes sxViewIn{from{opacity:.82;transform:translate3d(5px,0,0)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){html.sx-phone-webapp.sx-view-transition .page-content,html.sx-tablet-webapp.sx-view-transition .page-content{animation:none!important}}
body[data-theme=dark] .sx-parent-report-link,html[data-theme=dark] .sx-parent-report-link{background:#171c27;border-color:rgba(129,140,248,.2)}body[data-theme=dark] .sx-parent-training-times,html[data-theme=dark] .sx-parent-training-times{background:rgba(129,140,248,.12);color:#f1f5f9}body[data-theme=dark] .sx-coach-ann-comments,html[data-theme=dark] .sx-coach-ann-comments{background:rgba(129,140,248,.08);border-color:rgba(129,140,248,.14)}
@media(max-width:560px){.sx-parent-report-link{grid-template-columns:38px minmax(0,1fr)!important}.sx-parent-report-link button{grid-column:1/-1;width:100%}.sx-parent-training-times{grid-column:1/-1;margin:8px 0 0!important;width:100%}}

html.sx-phone-webapp,html.sx-phone-webapp body,html.sx-tablet-webapp,html.sx-tablet-webapp body{scroll-behavior:auto!important}
.sx-report-announcement-details{margin-top:12px;padding-top:12px;border-top:1px solid rgba(148,163,184,.16)}.sx-report-announcement-details>header{display:flex!important;justify-content:space-between!important;align-items:baseline!important;padding:0!important;margin:0 0 8px!important}.sx-report-announcement-details>header strong{font-size:13px}.sx-report-announcement-details>header small{font-size:10px;color:var(--text-muted)}.sx-report-announcement-text{white-space:pre-line!important;font-size:12.5px!important;line-height:1.55!important}.sx-report-announcement-events{margin-top:10px;display:grid}.sx-report-announcement-events>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;align-items:center;padding:7px 0}.sx-report-announcement-events>div+div{border-top:1px solid rgba(148,163,184,.12)}.sx-report-announcement-events>div>span{font-size:18px}.sx-report-announcement-events p{display:grid;margin:0!important}.sx-report-announcement-events strong{font-size:11.5px}.sx-report-announcement-events small{font-size:10px;color:var(--text-muted)}

/* v32 — report gallery reliability, compact parent report accordions, no home posters */
html.sx-phone-webapp .sx-report-gallery{
  touch-action:pan-y pinch-zoom;
  isolation:isolate;
  pointer-events:auto!important;
}
html.sx-phone-webapp .sx-report-gallery-bg,
html.sx-phone-webapp .sx-report-gallery-stage,
html.sx-phone-webapp .sx-report-gallery>header,
html.sx-phone-webapp .sx-report-gallery>footer{pointer-events:auto!important}
html.sx-phone-webapp .sx-report-gallery-stage img{
  -webkit-user-drag:none;
  user-select:none;
  pointer-events:none;
}
html.sx-phone-webapp .sx-report-announcement-cover{
  touch-action:manipulation;
  cursor:pointer;
}
html.sx-phone-webapp .sx-report-announcement-cover.is-placeholder{
  min-height:150px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#5362D5,#3643ad);
  color:#fff;
}
html.sx-phone-webapp .sx-report-cover-placeholder{
  min-height:150px;
  width:100%;
  display:grid;
  place-items:center;
  align-content:center;
  gap:5px;
  text-align:center;
}
html.sx-phone-webapp .sx-report-cover-placeholder>span{font-size:34px}
html.sx-phone-webapp .sx-report-cover-placeholder>strong{font-size:16px}
html.sx-phone-webapp .sx-report-cover-placeholder>small{font-size:11px;color:rgba(255,255,255,.78)}
html.sx-phone-webapp .sx-report-announcement-details{
  display:block;
}
html.sx-phone-webapp .sx-report-announcement-text{
  margin-bottom:12px!important;
}
html.sx-phone-webapp .sx-report-announcement-text.is-empty{
  color:var(--text-muted)!important;
  font-style:italic;
}
html.sx-phone-webapp .sx-report-accordion{
  margin-top:9px;
  border:1px solid rgba(148,163,184,.16);
  border-radius:15px;
  overflow:hidden;
  background:rgba(148,163,184,.045);
}
html.sx-phone-webapp .sx-report-accordion>summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
}
html.sx-phone-webapp .sx-report-accordion>summary::-webkit-details-marker{display:none}
html.sx-phone-webapp .sx-report-accordion>summary>span{display:grid;gap:2px}
html.sx-phone-webapp .sx-report-accordion>summary b{font-size:12px;color:var(--text-main)}
html.sx-phone-webapp .sx-report-accordion>summary small{font-size:9.5px;color:var(--text-muted)}
html.sx-phone-webapp .sx-report-accordion>summary>i{
  font-style:normal;
  font-size:22px;
  line-height:1;
  color:var(--text-muted);
  transform:rotate(90deg);
  transition:transform .16s ease;
}
html.sx-phone-webapp .sx-report-accordion[open]>summary>i{transform:rotate(-90deg)}
html.sx-phone-webapp .sx-report-accordion .sx-report-announcement-events{
  margin-top:0;
  padding:0 12px 5px;
  border-top:1px solid rgba(148,163,184,.12);
}
html.sx-phone-webapp .sx-red-ball-svg,
html.sx-phone-webapp .sx-parent-moment-ball.is-against svg{
  width:20px;
  height:20px;
  display:block;
  fill:none;
  stroke:#dc2626;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
html.sx-phone-webapp .sx-report-event-row.is-against>span{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
}
body[data-theme=dark] .sx-red-ball-svg,
html[data-theme=dark] .sx-red-ball-svg,
body[data-theme=dark] .sx-parent-moment-ball.is-against svg,
html[data-theme=dark] .sx-parent-moment-ball.is-against svg{stroke:#fb7185}

/* Trainingstijden is intentionally text-only on the parent overview. */
html.sx-phone-webapp .sx-parent-training-times{
  grid-template-columns:minmax(0,1fr)!important;
  padding:10px 12px!important;
}
html.sx-phone-webapp .sx-parent-training-times-icon{display:none!important}

/* On the compact overview a team announcement must not become a poster. Full
   report covers remain available inside the actual Mededelingen view. */
html.sx-phone-webapp .sx-parent-portal:not(.sx-parent-mobile-announcements-mode) .sx-announcement-image{
  display:none!important;
}

/* Never let an old report/lightbox layer keep the rest of the PWA untappable. */

/* ========================================================================
   v33 — stable native announcements/report UI + message media reliability
   ======================================================================== */
/* The report gallery is now a real React modal. Never lock the document from
   the old DOM-injected gallery path; iOS can otherwise preserve a stale lock. */
html.sx-phone-webapp.sx-report-gallery-open,
html.sx-phone-webapp body.sx-report-gallery-open,
html.sx-tablet-webapp.sx-report-gallery-open,
html.sx-tablet-webapp body.sx-report-gallery-open{
  overflow:auto!important;
  overscroll-behavior:auto!important;
}

/* Training times use exactly the app typography and remain text-only. */
html.sx-phone-webapp .sx-parent-training-times,
html.sx-phone-webapp .sx-parent-training-times *,
html.sx-tablet-webapp .sx-parent-training-times,
html.sx-tablet-webapp .sx-parent-training-times *{
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif!important;
}
html.sx-phone-webapp .sx-parent-training-times-native,
html.sx-tablet-webapp .sx-parent-training-times-native{
  grid-template-columns:minmax(0,1fr)!important;
  padding:10px 12px!important;
}

/* Native report announcement: React owns the cover, text and accordions. */
html.sx-phone-webapp .sx-report-announcement-native,
html.sx-tablet-webapp .sx-report-announcement-native{
  overflow:visible!important;
}
html.sx-phone-webapp .sx-report-native-cover,
html.sx-tablet-webapp .sx-report-native-cover{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  margin:0 0 12px;
  overflow:hidden;
  border:0;
  border-radius:18px;
  background:var(--sx-ios-fill);
  color:inherit;
  cursor:pointer;
  touch-action:manipulation;
}
html.sx-phone-webapp .sx-report-native-cover img,
html.sx-tablet-webapp .sx-report-native-cover img{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}
html.sx-phone-webapp .sx-report-native-cover>span:last-child,
html.sx-tablet-webapp .sx-report-native-cover>span:last-child{
  position:absolute;
  left:10px;
  bottom:10px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:11px;
  font-weight:750;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
html.sx-phone-webapp .sx-report-native-cover.is-placeholder,
html.sx-tablet-webapp .sx-report-native-cover.is-placeholder{
  min-height:150px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:5px;
  background:linear-gradient(145deg,#5362D5,#3643ad);
  color:#fff;
  text-align:center;
}
html.sx-phone-webapp .sx-report-native-cover.is-placeholder>span,
html.sx-tablet-webapp .sx-report-native-cover.is-placeholder>span{font-size:34px}
html.sx-phone-webapp .sx-report-native-cover.is-placeholder>strong,
html.sx-tablet-webapp .sx-report-native-cover.is-placeholder>strong{font-size:16px}
html.sx-phone-webapp .sx-report-native-cover.is-placeholder>small,
html.sx-tablet-webapp .sx-report-native-cover.is-placeholder>small{color:rgba(255,255,255,.78);font-size:11px}
html.sx-phone-webapp .sx-report-native-details,
html.sx-tablet-webapp .sx-report-native-details{
  margin:12px 0;
  padding-top:12px;
  border-top:1px solid rgba(148,163,184,.16);
}
html.sx-phone-webapp .sx-report-native-details>header,
html.sx-tablet-webapp .sx-report-native-details>header{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
html.sx-phone-webapp .sx-report-native-details>header strong,
html.sx-tablet-webapp .sx-report-native-details>header strong{font-size:13px}
html.sx-phone-webapp .sx-report-native-details>header small,
html.sx-tablet-webapp .sx-report-native-details>header small{font-size:10px;color:var(--text-muted)}
html.sx-phone-webapp .sx-report-native-text,
html.sx-tablet-webapp .sx-report-native-text{
  margin:0 0 12px!important;
  white-space:pre-line;
  font-size:12.5px!important;
  line-height:1.55!important;
}
html.sx-phone-webapp .sx-report-event-icon,
html.sx-tablet-webapp .sx-report-event-icon{display:grid;place-items:center;width:24px;height:24px;font-size:18px}

/* Fullscreen native report photo viewer. It only exists while open, so there
   is no invisible overlay that can steal clicks after closing. */
html.sx-phone-webapp .sx-native-report-gallery-modal,
html.sx-tablet-webapp .sx-native-report-gallery-modal{
  display:flex!important;
  flex-direction:column!important;
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  border:0!important;
  border-radius:0!important;
  background:#050912!important;
  color:#fff!important;
  padding-bottom:max(8px,env(safe-area-inset-bottom))!important;
}
html.sx-phone-webapp .sx-native-report-gallery-modal .sx-modal-head,
html.sx-tablet-webapp .sx-native-report-gallery-modal .sx-modal-head{
  flex:0 0 auto;
  border-radius:0!important;
  background:rgba(5,9,18,.94)!important;
  color:#fff!important;
}
html.sx-phone-webapp .sx-native-report-gallery-modal .sx-modal-head h2,
html.sx-phone-webapp .sx-native-report-gallery-modal .sx-modal-head p,
html.sx-tablet-webapp .sx-native-report-gallery-modal .sx-modal-head h2,
html.sx-tablet-webapp .sx-native-report-gallery-modal .sx-modal-head p{color:#fff!important}
html.sx-phone-webapp .sx-native-report-gallery-stage,
html.sx-tablet-webapp .sx-native-report-gallery-stage{
  position:relative;
  display:grid;
  flex:1 1 auto;
  min-height:0;
  place-items:center;
  overflow:hidden;
  touch-action:pan-y pinch-zoom;
}
html.sx-phone-webapp .sx-native-report-gallery-stage img,
html.sx-tablet-webapp .sx-native-report-gallery-stage img{
  display:block;
  width:100%;
  height:100%;
  max-height:calc(100dvh - 175px);
  object-fit:contain;
  user-select:none;
  -webkit-user-drag:none;
}
html.sx-phone-webapp .sx-gallery-arrow,
html.sx-tablet-webapp .sx-gallery-arrow{
  position:absolute;
  z-index:2;
  top:50%;
  width:46px;
  height:64px;
  translate:0 -50%;
  border:0;
  border-radius:16px;
  background:rgba(255,255,255,.09);
  color:#fff;
  font-size:38px;
  line-height:1;
}
html.sx-phone-webapp .sx-gallery-arrow.is-prev,
html.sx-tablet-webapp .sx-gallery-arrow.is-prev{left:8px}
html.sx-phone-webapp .sx-gallery-arrow.is-next,
html.sx-tablet-webapp .sx-gallery-arrow.is-next{right:8px}
html.sx-phone-webapp .sx-native-report-gallery-thumbs,
html.sx-tablet-webapp .sx-native-report-gallery-thumbs{
  display:flex;
  flex:0 0 auto;
  justify-content:center;
  gap:7px;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  overflow-x:auto;
}
html.sx-phone-webapp .sx-native-report-gallery-thumbs button,
html.sx-tablet-webapp .sx-native-report-gallery-thumbs button{
  width:48px;
  height:42px;
  flex:0 0 auto;
  padding:0;
  overflow:hidden;
  border:2px solid transparent;
  border-radius:10px;
  background:#111827;
  opacity:.55;
}
html.sx-phone-webapp .sx-native-report-gallery-thumbs button.is-active,
html.sx-tablet-webapp .sx-native-report-gallery-thumbs button.is-active{border-color:#8b95ff;opacity:1}
html.sx-phone-webapp .sx-native-report-gallery-thumbs img,
html.sx-tablet-webapp .sx-native-report-gallery-thumbs img{width:100%;height:100%;object-fit:cover}

/* Coach announcement comments are React-rendered; scrolling stays entirely
   native and is never re-centered by a mutation callback. */
html.sx-phone-webapp .sx-coach-ann-comments.is-native,
html.sx-tablet-webapp .sx-coach-ann-comments.is-native{margin:10px 12px}
html.sx-phone-webapp .sx-coach-ann-avatar,
html.sx-tablet-webapp .sx-coach-ann-avatar{
  width:30px!important;
  height:30px!important;
  overflow:hidden;
  border-radius:50%;
}
html.sx-phone-webapp .sx-coach-ann-avatar img,
html.sx-tablet-webapp .sx-coach-ann-avatar img{width:100%;height:100%;object-fit:cover;display:block}
/* v33 custom fallback gallery only exists while open; never hide it based on a
   body class. Removing the node is the single source of truth. */
html.sx-phone-webapp body>.sx-report-gallery,
html.sx-tablet-webapp body>.sx-report-gallery{
  display:grid!important;
  pointer-events:auto!important;
}

/* v34 — Parent app navigation is owned by the native-style bottom bar.
   Keep React tabs in the DOM for route/announcement state, but do not show a
   second navigation strip above Trainingen/Wedstrijden on phone or tablet. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-tabs,
  body.sx-phone-webapp .sx-parent-portal > .sx-tabs {
    display: none !important;
  }

  /* On app screens the duplicated "Welkom" page header is gone. These two
     contact actions remain available on every parent page and form one row. */
  html.sx-phone-webapp .sx-parent-mobile-actions,
  body.sx-phone-webapp .sx-parent-mobile-actions {
    width: 100%;
    margin: 0 0 14px;
  }
  html.sx-phone-webapp .sx-parent-mobile-actions .sx-parent-actions,
  body.sx-phone-webapp .sx-parent-mobile-actions .sx-parent-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px !important;
    width: 100%;
    flex-wrap: nowrap !important;
  }
  html.sx-phone-webapp .sx-parent-mobile-actions .sx-btn,
  body.sx-phone-webapp .sx-parent-mobile-actions .sx-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px !important;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  html.sx-phone-webapp .sx-parent-mobile-actions .sx-btn,
  body.sx-phone-webapp .sx-parent-mobile-actions .sx-btn {
    padding-inline: 7px !important;
    font-size: 12px !important;
  }
}

/* v34 compatibility with the compiled v33 shell: on mobile/tablet keep the
   contact controls from PageHeader, but remove the duplicate greeting/copy. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-page-head,
  body.sx-phone-webapp .sx-parent-portal > .sx-page-head {
    display: block !important;
    width: 100%;
    margin: 0 0 14px !important;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-page-head-main,
  body.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-page-head-main {
    display: none !important;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-page-head-action,
  body.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-page-head-action {
    width: 100%;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-parent-actions,
  body.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-parent-actions {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 9px !important;
    width: 100%;
    flex-wrap: nowrap !important;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-parent-actions .sx-btn,
  body.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-parent-actions .sx-btn {
    width: 100%;
    min-width: 0;
    padding-inline: 10px !important;
    white-space: nowrap;
  }

  /* The Ouderomgeving child card/chip belongs to Home only. Routes keep the
     same portal component mounted, so use the live body[data-page] state. */
  html.sx-phone-webapp body[data-page="parent_training"] .sx-parent-portal > .sx-parent-welcome,
  html.sx-phone-webapp body[data-page="parent_training"] .sx-parent-portal > .sx-parent-children,
  html.sx-phone-webapp body[data-page="parent_matches"] .sx-parent-portal > .sx-parent-welcome,
  html.sx-phone-webapp body[data-page="parent_matches"] .sx-parent-portal > .sx-parent-children,
  html.sx-phone-webapp body[data-page="parent_teams"] .sx-parent-portal > .sx-parent-welcome,
  html.sx-phone-webapp body[data-page="parent_teams"] .sx-parent-portal > .sx-parent-children,
  html.sx-phone-webapp .sx-parent-portal.sx-parent-mobile-announcements-mode > .sx-parent-welcome,
  html.sx-phone-webapp .sx-parent-portal.sx-parent-mobile-announcements-mode > .sx-parent-children {
    display: none !important;
  }
}

@media (max-width: 390px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-parent-actions .sx-btn,
  body.sx-phone-webapp .sx-parent-portal > .sx-page-head .sx-parent-actions .sx-btn {
    padding-inline: 7px !important;
    font-size: 12px !important;
  }
}

/* v36 — coach wedstrijdverloop: never let clock, final actions or score
   controls grow wider than the iPhone/iPad app viewport. */
html.sx-phone-webapp .tactics-match-group,
body.sx-phone-webapp .tactics-match-group,
html.sx-phone-webapp .sx-mobile-clock-card,
body.sx-phone-webapp .sx-mobile-clock-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
html.sx-phone-webapp .tactics-match-group .tactics-group-content,
body.sx-phone-webapp .tactics-match-group .tactics-group-content,
html.sx-phone-webapp .tactics-match-group .tactics-timer,
body.sx-phone-webapp .tactics-match-group .tactics-timer,
html.sx-phone-webapp .tactics-match-group .tactics-timer-copy,
body.sx-phone-webapp .tactics-match-group .tactics-timer-copy,
html.sx-phone-webapp .tactics-match-group .tactics-timer-controls,
body.sx-phone-webapp .tactics-match-group .tactics-timer-controls {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  html.sx-phone-webapp .tactics-match-group .tactics-timer,
  body.sx-phone-webapp .tactics-match-group .tactics-timer {
    grid-template-columns: minmax(0,1fr) !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  html.sx-phone-webapp .tactics-match-group .tactics-timer-controls,
  body.sx-phone-webapp .tactics-match-group .tactics-timer-controls {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  html.sx-phone-webapp .tactics-match-group .tactics-timer-controls .btn,
  body.sx-phone-webapp .tactics-match-group .tactics-timer-controls .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 9px 8px !important;
    justify-content: center !important;
    white-space: normal !important;
    line-height: 1.12 !important;
    text-align: center !important;
  }
  html.sx-phone-webapp .tactics-match-group .tactics-timer-controls .btn:last-child,
  body.sx-phone-webapp .tactics-match-group .tactics-timer-controls .btn:last-child {
    grid-column: 1 / -1 !important;
  }
  html.sx-phone-webapp .tactics-match-group .tactics-score,
  body.sx-phone-webapp .tactics-match-group .tactics-score {
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto minmax(0,1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  html.sx-phone-webapp .tactics-match-group .tactics-score input,
  body.sx-phone-webapp .tactics-match-group .tactics-score input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html.sx-phone-webapp .tactics-match-group .tactics-final-summary,
  body.sx-phone-webapp .tactics-match-group .tactics-final-summary {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 360px) {
  html.sx-phone-webapp .tactics-match-group .tactics-timer-label,
  body.sx-phone-webapp .tactics-match-group .tactics-timer-label {
    font-size: 27px !important;
  }
}


/* v39 — native-feeling app navigation without overlays or scroll locks. */
html.sx-phone-webapp .sx-mobile-bottom-item,
html.sx-tablet-webapp .sx-mobile-bottom-item{
  transition:color .18s ease,background-color .18s ease,opacity .18s ease,transform .22s cubic-bezier(.2,.8,.2,1);
  transform:translateZ(0);
}
html.sx-phone-webapp .sx-mobile-bottom-item:active,
html.sx-tablet-webapp .sx-mobile-bottom-item:active{transform:scale(.94)}
html.sx-phone-webapp .sx-mobile-bottom-item.is-active .sx-mobile-bottom-icon,
html.sx-tablet-webapp .sx-mobile-bottom-item.is-active .sx-mobile-bottom-icon{
  animation:sxTabSpring .28s cubic-bezier(.2,.85,.25,1.2) both;
}
@keyframes sxTabSpring{0%{transform:scale(.88) translateY(1px)}65%{transform:scale(1.06) translateY(-2px)}100%{transform:scale(1) translateY(-1px)}}

html.sx-phone-webapp .sx-ios-menu-row,
html.sx-tablet-webapp .sx-ios-menu-row,
html.sx-phone-webapp .sx-ios-account-card,
html.sx-tablet-webapp .sx-ios-account-card,
html.sx-phone-webapp .sx-ios-quick,
html.sx-tablet-webapp .sx-ios-quick{
  transition:background-color .18s ease,transform .18s cubic-bezier(.2,.8,.2,1),opacity .18s ease;
}
html.sx-phone-webapp .sx-ios-menu-row:active,
html.sx-tablet-webapp .sx-ios-menu-row:active,
html.sx-phone-webapp .sx-ios-account-card:active,
html.sx-tablet-webapp .sx-ios-account-card:active,
html.sx-phone-webapp .sx-ios-quick:active,
html.sx-tablet-webapp .sx-ios-quick:active{transform:scale(.985);opacity:.88}
html.sx-phone-webapp .sx-ios-menu-row:active .sx-ios-menu-chevron,
html.sx-tablet-webapp .sx-ios-menu-row:active .sx-ios-menu-chevron{transform:translateX(2px)}
html.sx-phone-webapp .sx-ios-menu-chevron,
html.sx-tablet-webapp .sx-ios-menu-chevron{transition:transform .18s cubic-bezier(.2,.8,.2,1)}

html.sx-phone-webapp.sx-view-transition .page-content,
html.sx-tablet-webapp.sx-view-transition .page-content{
  animation-duration:.24s!important;
  animation-timing-function:cubic-bezier(.22,.78,.2,1)!important;
  animation-fill-mode:both!important;
  will-change:opacity,transform;
  backface-visibility:hidden;
}
html.sx-phone-webapp.sx-view-forward .page-content,
html.sx-tablet-webapp.sx-view-forward .page-content{animation-name:sxNativeViewForward!important}
html.sx-phone-webapp.sx-view-back .page-content,
html.sx-tablet-webapp.sx-view-back .page-content{animation-name:sxNativeViewBack!important}
@keyframes sxNativeViewForward{from{opacity:.55;transform:translate3d(18px,0,0) scale(.995)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@keyframes sxNativeViewBack{from{opacity:.55;transform:translate3d(-14px,0,0) scale(.995)}to{opacity:1;transform:translate3d(0,0,0) scale(1)}}
@media(prefers-reduced-motion:reduce){
  html.sx-phone-webapp .sx-mobile-bottom-item,
  html.sx-tablet-webapp .sx-mobile-bottom-item,
  html.sx-phone-webapp .sx-ios-menu-row,
  html.sx-tablet-webapp .sx-ios-menu-row,
  html.sx-phone-webapp.sx-view-transition .page-content,
  html.sx-tablet-webapp.sx-view-transition .page-content{animation:none!important;transition:none!important}
}


/* v40 - wedstrijdverslag: eventdetails als wedstrijd-pills */
.sx-report-event-pills{display:flex!important;flex-wrap:wrap;gap:5px;margin-top:5px;min-width:0}
.sx-report-event-pill{display:inline-flex!important;align-items:center;max-width:100%;min-height:24px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--brand) 22%,rgba(148,163,184,.22));border-radius:999px;background:color-mix(in srgb,var(--brand) 8%,var(--bg-card));color:var(--text);font-size:10px!important;font-weight:750;line-height:1.15;white-space:normal}
.sx-report-event-pill.is-assist{background:color-mix(in srgb,var(--brand) 13%,var(--bg-card));border-color:color-mix(in srgb,var(--brand) 30%,rgba(148,163,184,.22))}
html[data-theme=dark] .sx-report-event-pill{background:color-mix(in srgb,var(--brand) 14%,rgba(15,23,42,.88));border-color:color-mix(in srgb,var(--brand) 32%,rgba(148,163,184,.2))}

/* ========================================================================
   v42 — Wedstrijden browser: eerstvolgende bovenaan, zoeken, datum sorteren
         en compacte lijstweergave naast de bestaande kaartweergave.
   Basis blijft v40; er zijn geen v41 pagina-animaties overgenomen.
   ======================================================================== */
.sx-match-browser-toolbar{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto auto auto;
  align-items:end;
  gap:10px;
  margin:0 0 14px;
  padding:0 0 14px;
  border-bottom:1px solid var(--border-subtle);
}
.sx-match-search{position:relative;display:block;min-width:0;margin:0}
.sx-match-search>span{position:absolute;left:12px;top:50%;display:grid;place-items:center;transform:translateY(-50%);pointer-events:none;color:var(--text-muted)}
.sx-match-search .btn-ico{width:17px;height:17px}
.sx-match-search input{
  width:100%;height:42px;min-width:0;padding:0 13px 0 38px;
  border:1px solid var(--border-subtle);border-radius:13px;
  background:var(--bg-card);color:var(--text-main);font:inherit;font-size:13px;outline:none;
}
.sx-match-search input:focus{border-color:color-mix(in srgb,var(--primary) 58%,var(--border-subtle));box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 12%,transparent)}
.sx-match-year,.sx-match-sort{display:grid;gap:5px;margin:0}.sx-match-year>span,.sx-match-sort>span{color:var(--text-muted);font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.sx-match-year select{height:42px;min-width:110px}.sx-match-sort select{height:42px;min-width:155px}
.sx-match-view-toggle{display:flex;align-items:center;gap:4px;height:42px;padding:4px;border:1px solid var(--border-subtle);border-radius:13px;background:var(--bg-subtle)}
.sx-match-view-toggle button{display:grid;width:36px;height:32px;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--text-muted);cursor:pointer}
.sx-match-view-toggle button .btn-ico{width:17px;height:17px}
.sx-match-view-toggle button.is-active{background:var(--bg-card);color:var(--primary);box-shadow:0 1px 5px rgba(15,23,42,.08)}
.sx-match-browser-count{grid-column:1/-1;margin-top:-2px;color:var(--text-muted);font-size:10px;font-weight:650}
.sx-mobile-match-compact-list{display:none}
.sx-match-next-label{width:max-content;margin:0 auto 7px;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--primary) 12%,var(--bg-card));color:var(--primary);font-size:9px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.sx-match-search-empty{padding:22px 14px;text-align:center;color:var(--text-muted);font-size:12px}

@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-match-browser-toolbar{
    grid-template-columns:minmax(0,.72fr) minmax(0,1.2fr) auto;
    gap:9px;margin:0 0 12px;padding:0 0 12px;
  }
  html.sx-phone-webapp .sx-match-search{grid-column:1/-1}
  html.sx-phone-webapp .sx-match-search input{height:44px;border-radius:14px;background:color-mix(in srgb,var(--sx-ios-fill) 58%,var(--sx-ios-surface));font-size:14px}
  html.sx-phone-webapp .sx-match-year,html.sx-phone-webapp .sx-match-sort{min-width:0}
  html.sx-phone-webapp .sx-match-year>span,html.sx-phone-webapp .sx-match-sort>span{display:none}
  html.sx-phone-webapp .sx-match-year select,html.sx-phone-webapp .sx-match-sort select{width:100%;min-width:0;height:40px;border-radius:12px;font-size:11px}
  html.sx-phone-webapp .sx-match-view-toggle{height:40px;border-radius:12px;background:color-mix(in srgb,var(--sx-ios-fill) 70%,transparent)}
  html.sx-phone-webapp .sx-match-view-toggle button{width:38px;height:30px}
  html.sx-phone-webapp .sx-match-browser-count{font-size:9.5px}

  html.sx-phone-webapp .sx-mobile-match-views.is-grid .sx-match-view-grid{display:grid!important}
  html.sx-phone-webapp .sx-mobile-match-views.is-grid .sx-match-view-list{display:none!important}
  html.sx-phone-webapp .sx-mobile-match-views.is-list .sx-match-view-grid{display:none!important}
  html.sx-phone-webapp .sx-mobile-match-views.is-list .sx-match-view-list{display:grid!important}
  html.sx-phone-webapp .sx-mobile-match-compact-list{gap:8px;width:100%;min-width:0}

  html.sx-phone-webapp .sx-match-compact-row{
    width:100%;min-width:0;overflow:hidden;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 76%,transparent);
    border-radius:17px;background:color-mix(in srgb,var(--sx-ios-surface) 89%,transparent);
    box-shadow:0 5px 18px rgba(38,58,110,.055);
  }
  html.sx-phone-webapp .sx-match-compact-row.is-next-match{border-color:color-mix(in srgb,var(--primary) 35%,var(--sx-ios-separator));box-shadow:0 7px 24px color-mix(in srgb,var(--primary) 10%,transparent)}
  html.sx-phone-webapp .sx-match-compact-main{
    display:grid;grid-template-columns:54px minmax(0,1fr) auto;align-items:center;gap:9px;
    min-width:0;padding:10px 10px 10px 9px;color:inherit;text-decoration:none;
  }
  html.sx-phone-webapp .sx-match-compact-main:active{background:color-mix(in srgb,var(--sx-ios-fill) 58%,transparent)}
  html.sx-phone-webapp .sx-match-compact-date{display:flex;min-height:52px;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid color-mix(in srgb,var(--sx-ios-separator) 60%,transparent);line-height:1.05}
  html.sx-phone-webapp .sx-match-compact-date b{color:var(--primary);font-size:8px;font-weight:850;letter-spacing:.05em}
  html.sx-phone-webapp .sx-match-compact-date strong{margin-top:3px;color:var(--sx-ios-label);font-size:11px;font-weight:800;text-transform:uppercase}
  html.sx-phone-webapp .sx-match-compact-date span{margin-top:4px;color:var(--sx-ios-secondary);font-size:9px;font-weight:700;font-variant-numeric:tabular-nums}
  html.sx-phone-webapp .sx-match-compact-clubs{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;align-items:center;gap:7px;min-width:0}
  html.sx-phone-webapp .sx-match-compact-logo{display:grid;width:32px;height:32px;place-items:center;overflow:hidden;border-radius:9px;background:rgba(255,255,255,.72)}
  html.sx-phone-webapp .sx-match-compact-logo img{display:block;width:28px;height:28px;object-fit:contain}
  html.sx-phone-webapp .sx-match-compact-logo i{display:grid;width:100%;height:100%;place-items:center;background:linear-gradient(145deg,#5ac8fa,#5362d5);color:#fff;font-style:normal;font-size:12px;font-weight:850}
  html.sx-phone-webapp .sx-match-compact-copy{min-width:0}
  html.sx-phone-webapp .sx-match-compact-copy small{display:block;margin-bottom:2px;color:var(--primary);font-size:7.8px;font-weight:850;letter-spacing:.055em}
  html.sx-phone-webapp .sx-match-compact-copy strong{display:block;overflow:hidden;color:var(--sx-ios-label);font-size:10.8px;font-weight:790;line-height:1.22;text-overflow:ellipsis;white-space:nowrap}
  html.sx-phone-webapp .sx-match-compact-copy strong em{color:var(--sx-ios-tertiary);font-style:normal;font-weight:600}
  html.sx-phone-webapp .sx-match-compact-copy span{display:block;margin-top:3px;overflow:hidden;color:var(--sx-ios-secondary);font-size:8.7px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
  html.sx-phone-webapp .sx-match-compact-score{display:flex;min-width:43px;align-items:center;justify-content:flex-end;gap:4px;color:var(--sx-ios-secondary)}
  html.sx-phone-webapp .sx-match-compact-score>strong{color:var(--sx-ios-label);font-size:12px;font-weight:820;white-space:nowrap;font-variant-numeric:tabular-nums}
  html.sx-phone-webapp .sx-match-compact-score> b{display:grid;width:19px;height:19px;place-items:center;border-radius:7px;font-size:8px;font-weight:900}
  html.sx-phone-webapp .sx-match-compact-score> b.is-win{background:rgba(34,197,94,.13);color:#16a34a}
  html.sx-phone-webapp .sx-match-compact-score> b.is-loss{background:rgba(239,68,68,.12);color:#dc2626}
  html.sx-phone-webapp .sx-match-compact-score> b.is-draw{background:rgba(245,158,11,.14);color:#d97706}
  html.sx-phone-webapp .sx-match-compact-score .btn-ico{width:14px;height:14px;color:var(--sx-ios-tertiary)}
  html.sx-phone-webapp .sx-match-next-label{margin-bottom:6px;background:rgba(83,98,213,.12);color:#5362d5}
  html[data-theme="dark"].sx-phone-webapp .sx-match-compact-logo{background:rgba(255,255,255,.9)}
  html[data-theme="dark"].sx-phone-webapp .sx-match-compact-row{background:color-mix(in srgb,var(--sx-ios-surface) 92%,transparent)}
}

@media (max-width: 390px) {
  html.sx-phone-webapp .sx-match-compact-main{grid-template-columns:48px minmax(0,1fr) auto;gap:7px;padding-left:6px;padding-right:7px}
  html.sx-phone-webapp .sx-match-compact-clubs{grid-template-columns:27px minmax(0,1fr) 27px;gap:5px}
  html.sx-phone-webapp .sx-match-compact-logo{width:27px;height:27px;border-radius:8px}
  html.sx-phone-webapp .sx-match-compact-logo img{width:24px;height:24px}
  html.sx-phone-webapp .sx-match-compact-copy strong{font-size:10px}
  html.sx-phone-webapp .sx-match-compact-score>strong{font-size:11px}
}

/* ========================================================================
   v43 — Wedstrijdenbrowser óók in de ouderapp.
   Eerstvolgende is iedere keer de standaard sortering; historie blijft zoekbaar.
   ======================================================================== */
.sx-parent-match-browser{min-width:0;width:100%}
.sx-parent-match-views{min-width:0;width:100%}
.sx-parent-match-grid{display:grid;gap:12px;min-width:0}
.sx-parent-match-wrap{min-width:0}
.sx-parent-match-wrap>.sx-parent-event{margin:0!important}
.sx-parent-match-view-list{display:none}
.sx-parent-match-detail-body{padding:0 18px 18px}
.sx-parent-match-detail-body>.sx-parent-event{margin:0!important}
.sx-parent-match-compact .sx-match-compact-main{width:100%;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.sx-parent-match-compact .sx-match-compact-main>span{min-width:0}

@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-browser-toolbar,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-browser-toolbar{
    grid-template-columns:minmax(0,.72fr) minmax(0,1.2fr) auto;
    gap:9px;margin:0 0 12px;padding:0 0 12px;
  }
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search{grid-column:1/-1}
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search input,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search input{height:44px;border-radius:14px;background:color-mix(in srgb,var(--sx-ios-fill) 58%,var(--sx-ios-surface));font-size:14px}
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-year,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-sort,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-year,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-sort{min-width:0}
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-year>span,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-sort>span,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-year>span,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-sort>span{display:none}
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-year select,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-sort select,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-year select,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-sort select{width:100%;min-width:0;height:40px;border-radius:12px;font-size:11px}
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-view-toggle,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-view-toggle{height:40px;border-radius:12px;background:color-mix(in srgb,var(--sx-ios-fill) 70%,transparent)}
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-view-toggle button,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-view-toggle button{width:38px;height:30px}
  html.sx-phone-webapp .sx-parent-match-views.is-grid .sx-parent-match-view-grid,
  html.sx-tablet-webapp .sx-parent-match-views.is-grid .sx-parent-match-view-grid{display:grid!important}
  html.sx-phone-webapp .sx-parent-match-views.is-grid .sx-parent-match-view-list,
  html.sx-tablet-webapp .sx-parent-match-views.is-grid .sx-parent-match-view-list{display:none!important}
  html.sx-phone-webapp .sx-parent-match-views.is-list .sx-parent-match-view-grid,
  html.sx-tablet-webapp .sx-parent-match-views.is-list .sx-parent-match-view-grid{display:none!important}
  html.sx-phone-webapp .sx-parent-match-views.is-list .sx-parent-match-view-list,
  html.sx-tablet-webapp .sx-parent-match-views.is-list .sx-parent-match-view-list{display:grid!important;gap:8px}
  html.sx-phone-webapp .sx-parent-match-wrap.is-next-match>.sx-parent-event,
  html.sx-tablet-webapp .sx-parent-match-wrap.is-next-match>.sx-parent-event{border-color:color-mix(in srgb,var(--primary) 35%,var(--sx-ios-separator))!important}
  html.sx-phone-webapp .sx-parent-match-detail-modal,
  html.sx-tablet-webapp .sx-parent-match-detail-modal{max-height:min(90dvh,820px);overflow:auto}
}

/* v43 runtime browser for the currently compiled parent portal. */
.sx-parent-match-runtime-browser{margin-top:0}
.sx-parent-match-runtime-list{display:grid;gap:8px;width:100%;min-width:0}
.sx-parent-match-runtime-list[hidden]{display:none!important}
.sx-parent-list.sx-parent-match-grid-hidden{display:none!important}
.sx-parent-list>.sx-parent-event.is-next-match{position:relative;border-color:color-mix(in srgb,var(--primary) 38%,var(--border-subtle))!important}
.sx-parent-list>.sx-parent-event.is-next-match:before{content:'Aankomende wedstrijd';display:block;grid-column:1/-1;width:max-content;margin:0 0 7px;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--primary) 12%,var(--bg-card));color:var(--primary);font-size:9px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.sx-parent-match-runtime-row .sx-match-compact-main{width:100%;border:0;background:transparent;font:inherit;text-align:left;color:inherit;cursor:pointer}
.sx-parent-match-runtime-row .sx-match-compact-main>span{min-width:0}
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-parent-match-runtime-browser,html.sx-tablet-webapp .sx-parent-match-runtime-browser{grid-template-columns:minmax(0,.72fr) minmax(0,1.2fr) auto;gap:9px;margin-bottom:12px}
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search,html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search{grid-column:1/-1}
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-year>span,html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-sort>span,html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-year>span,html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-sort>span{display:none}
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-year select,html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-sort select,html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-year select,html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-sort select{width:100%;min-width:0;height:40px;border-radius:12px;font-size:11px}
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search input,html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search input{height:44px;border-radius:14px}
}


/* v44 — parent match browser stability */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search{
    position:relative!important;display:block!important;min-width:0!important;
  }
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search>span,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search>span,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search>span,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search>span{
    position:absolute!important;z-index:2!important;left:14px!important;top:50%!important;
    width:20px!important;height:20px!important;display:grid!important;place-items:center!important;
    transform:translateY(-50%)!important;color:var(--sx-ios-secondary)!important;pointer-events:none!important;
  }
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search>span .sx-ios-icon,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search>span .sx-ios-icon,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search>span .sx-ios-icon,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search>span .sx-ios-icon{
    width:18px!important;height:18px!important;flex:0 0 18px!important;
  }
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search input,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search input,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search input,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search input{
    width:100%!important;height:46px!important;min-height:46px!important;
    padding:0 14px 0 46px!important;border-radius:14px!important;font-size:16px!important;line-height:1.2!important;
    -webkit-appearance:none!important;appearance:none!important;
  }
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search input::-webkit-search-decoration,
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search input::-webkit-search-cancel-button,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search input::-webkit-search-decoration,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search input::-webkit-search-cancel-button{-webkit-appearance:none}

  html.sx-phone-webapp .sx-parent-list.sx-parent-match-single-open,
  html.sx-tablet-webapp .sx-parent-list.sx-parent-match-single-open{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;
  }
  html.sx-phone-webapp .sx-parent-list>.sx-parent-event.sx-parent-match-selected,
  html.sx-tablet-webapp .sx-parent-list>.sx-parent-event.sx-parent-match-selected{
    width:100%!important;max-width:100%!important;margin:0!important;min-width:0!important;
  }
  .sx-parent-match-runtime-detailbar{width:100%;min-width:0;margin:-2px 0 10px}
  .sx-parent-match-runtime-detailbar[hidden]{display:none!important}
  .sx-parent-match-runtime-detailbar>button{
    display:inline-flex;min-height:36px;align-items:center;gap:4px;padding:0 8px 0 2px;border:0;border-radius:10px;
    background:transparent;color:var(--sx-ios-blue);font:inherit;font-size:13px;font-weight:700;cursor:pointer;
  }
  .sx-parent-match-runtime-detailbar>button .sx-ios-icon{width:18px;height:18px}
  .sx-parent-match-runtime-detailbar>button:active{opacity:.55}
}

/* v45 — ouder Wedstrijden: click-stability + native iOS search field */
.sx-parent-match-browser .sx-match-search,
.sx-parent-match-runtime-browser .sx-match-search{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  overflow:visible!important;
}
.sx-parent-match-browser .sx-match-search>span,
.sx-parent-match-runtime-browser .sx-match-search>span{
  position:absolute!important;
  z-index:2!important;
  left:15px!important;
  top:50%!important;
  width:19px!important;
  height:19px!important;
  display:grid!important;
  place-items:center!important;
  transform:translateY(-50%)!important;
  color:var(--sx-ios-secondary)!important;
  pointer-events:none!important;
}
.sx-parent-match-browser .sx-match-search>span svg,
.sx-parent-match-browser .sx-match-search>span .sx-ios-icon,
.sx-parent-match-runtime-browser .sx-match-search>span svg,
.sx-parent-match-runtime-browser .sx-match-search>span .sx-ios-icon{
  display:block!important;
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
}
.sx-parent-match-browser .sx-match-search input,
.sx-parent-match-runtime-browser .sx-match-search input{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:46px!important;
  min-height:46px!important;
  margin:0!important;
  padding:0 15px 0 46px!important;
  border:0!important;
  border-radius:14px!important;
  outline:0!important;
  background:color-mix(in srgb,var(--sx-ios-fill) 72%,var(--sx-ios-surface))!important;
  color:var(--sx-ios-label)!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:46px!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--sx-ios-separator) 64%,transparent)!important;
}
.sx-parent-match-browser .sx-match-search input::placeholder,
.sx-parent-match-runtime-browser .sx-match-search input::placeholder{
  color:var(--sx-ios-secondary)!important;
  opacity:.82!important;
}
.sx-parent-match-browser .sx-match-search input:focus,
.sx-parent-match-runtime-browser .sx-match-search input:focus{
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 44%,var(--sx-ios-separator))!important;
}
.sx-parent-match-browser .sx-match-view-toggle,
.sx-parent-match-browser .sx-match-view-toggle button,
.sx-parent-match-runtime-browser .sx-match-view-toggle,
.sx-parent-match-runtime-browser .sx-match-view-toggle button{
  position:relative;
  z-index:3;
  pointer-events:auto!important;
  touch-action:manipulation;
}


/* ========================================================================
   v46 — ouder Wedstrijden: huidig seizoen + één native app-style zoekicoon
   Houdt de bestaande kaart- en lijststijl intact.
   ======================================================================== */
.sx-parent-match-browser .sx-match-search,
.sx-parent-match-runtime-browser .sx-match-search{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  color:var(--sx-ios-secondary)!important;
}
/* Oude React/runtime icon markup mag nooit samen met de zoekdecoratie tonen. */
.sx-parent-match-browser .sx-match-search>span,
.sx-parent-match-runtime-browser .sx-match-search>span{display:none!important}
.sx-parent-match-browser .sx-match-search::before,
.sx-parent-match-runtime-browser .sx-match-search::before{
  content:"";
  position:absolute;
  z-index:2;
  left:17px;
  top:50%;
  width:12px;
  height:12px;
  box-sizing:border-box;
  border:1.8px solid currentColor;
  border-radius:50%;
  transform:translateY(-58%);
  pointer-events:none;
}
.sx-parent-match-browser .sx-match-search::after,
.sx-parent-match-runtime-browser .sx-match-search::after{
  content:"";
  position:absolute;
  z-index:2;
  left:28px;
  top:calc(50% + 5px);
  width:6px;
  height:1.8px;
  border-radius:999px;
  background:currentColor;
  transform:rotate(45deg);
  transform-origin:left center;
  pointer-events:none;
}
.sx-parent-match-browser .sx-match-search input,
.sx-parent-match-runtime-browser .sx-match-search input{
  padding-left:45px!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
.sx-parent-match-browser .sx-match-search input::-webkit-search-decoration,
.sx-parent-match-browser .sx-match-search input::-webkit-search-cancel-button,
.sx-parent-match-runtime-browser .sx-match-search input::-webkit-search-decoration,
.sx-parent-match-runtime-browser .sx-match-search input::-webkit-search-cancel-button{
  display:none!important;
  -webkit-appearance:none!important;
}
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-browser-toolbar,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-browser-toolbar,
  html.sx-phone-webapp .sx-parent-match-runtime-browser,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:9px!important;
  }
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-search,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-search,
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-search,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-search{
    grid-column:1/-1!important;
  }
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-sort,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-sort,
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-sort,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-sort{
    min-width:0!important;
  }
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-sort select,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-sort select,
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-sort select,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-sort select{
    width:100%!important;
    min-width:0!important;
  }
}


/* ========================================================================
   v47 — ouder Wedstrijden/current season + zoekveld + comments/avatar polish
   ======================================================================== */

/* Eén echte zoekknop in een eigen iOS-container. De oude pseudo-loupe uit
   v46 staat expliciet uit; daardoor kan hij nooit door de placeholder lopen. */
.sx-parent-match-browser .sx-match-search::before,
.sx-parent-match-browser .sx-match-search::after,
.sx-parent-match-runtime-browser .sx-match-search::before,
.sx-parent-match-runtime-browser .sx-match-search::after{
  content:none!important;
  display:none!important;
}
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon{
  position:absolute!important;
  z-index:3!important;
  left:8px!important;
  top:50%!important;
  width:32px!important;
  height:32px!important;
  display:grid!important;
  place-items:center!important;
  transform:translateY(-50%)!important;
  border:.5px solid color-mix(in srgb,var(--sx-ios-separator) 58%,transparent)!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 82%,var(--sx-ios-fill))!important;
  color:var(--sx-ios-blue)!important;
  box-shadow:0 3px 10px rgba(34,57,94,.08)!important;
  pointer-events:none!important;
}
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon svg,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon svg,
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon .sx-ios-icon,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon .sx-ios-icon{
  width:17px!important;
  height:17px!important;
  display:block!important;
}
.sx-parent-match-browser .sx-match-search input,
.sx-parent-match-runtime-browser .sx-match-search input{
  padding-left:52px!important;
  padding-right:16px!important;
  line-height:normal!important;
}
html[data-theme="dark"] .sx-parent-match-browser .sx-match-search>.sx-match-search-icon,
html[data-theme="dark"] .sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon{
  background:color-mix(in srgb,var(--sx-ios-surface) 74%,var(--sx-ios-fill))!important;
  box-shadow:none!important;
}

/* Reactiekaarten krijgen aan beide zijden echte ademruimte. Dit geldt alleen
   binnen Mededelingen en raakt de rest van de app niet. */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-announcement-comments>.sx-announcement-comment,
  html.sx-tablet-webapp .sx-announcement-comments>.sx-announcement-comment{
    padding:14px 16px!important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy,
  html.sx-tablet-webapp .sx-announcement-comment-copy{
    padding:1px 6px 2px 3px!important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy p,
  html.sx-tablet-webapp .sx-announcement-comment-copy p{
    margin-top:5px!important;
    padding:0 2px!important;
  }
  html.sx-phone-webapp .sx-announcement-comment-form,
  html.sx-tablet-webapp .sx-announcement-comment-form{
    margin-left:4px!important;
    margin-right:4px!important;
  }
}


/* v47 hardening for the currently compiled parent portal. */
.sx-parent-match-browser .sx-match-year,
.sx-parent-match-runtime-browser .sx-match-year{
  display:none!important;
}
.sx-parent-match-browser .sx-match-search>span:not(.sx-match-search-icon),
.sx-parent-match-runtime-browser .sx-match-search>span:not(.sx-match-search-icon){
  display:none!important;
}


/* ========================================================================
   v48 — current-season hardening + refined search + liquid segmented/nav UI
   ======================================================================== */

/* Search: a real icon tile with guaranteed free text space. */
.sx-parent-match-browser .sx-match-search,
.sx-parent-match-runtime-browser .sx-match-search{
  min-height:50px!important;
}
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon{
  left:7px!important;
  width:36px!important;
  height:36px!important;
  border:1px solid color-mix(in srgb,var(--sx-ios-blue) 14%,var(--sx-ios-separator))!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-blue) 10%,var(--sx-ios-surface)),color-mix(in srgb,var(--sx-ios-blue) 6%,var(--sx-ios-fill)))!important;
  color:var(--sx-ios-blue)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.66),0 3px 10px rgba(45,72,120,.08)!important;
}
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon svg,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon svg{
  width:19px!important;height:19px!important;overflow:visible!important;
  stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;
}
.sx-parent-match-browser .sx-match-search input,
.sx-parent-match-runtime-browser .sx-match-search input{
  height:50px!important;min-height:50px!important;
  padding:0 16px 0 57px!important;
  line-height:normal!important;
}
.sx-parent-match-browser .sx-match-search input::placeholder,
.sx-parent-match-runtime-browser .sx-match-search input::placeholder{
  opacity:.70!important;
}

/* Grid/list behaves like an iOS segmented control: one material pill glides. */
.sx-parent-match-browser .sx-match-view-toggle,
.sx-parent-match-runtime-browser .sx-match-view-toggle{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:repeat(2,38px)!important;
  gap:0!important;
  width:82px!important;
  height:40px!important;
  padding:3px!important;
  overflow:hidden!important;
  border-radius:13px!important;
}
.sx-parent-match-browser .sx-match-view-toggle::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  z-index:0!important;
  left:3px!important;top:3px!important;
  width:38px!important;height:32px!important;
  border:.5px solid color-mix(in srgb,var(--sx-ios-separator) 54%,transparent)!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;
  box-shadow:0 1px 7px rgba(25,47,85,.10),inset 0 1px 0 rgba(255,255,255,.72)!important;
  transform:translate3d(0,0,0)!important;
  transition:transform .34s cubic-bezier(.2,.82,.2,1),background .2s ease,box-shadow .2s ease!important;
  pointer-events:none!important;
}
.sx-parent-match-browser .sx-match-view-toggle.is-list::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle.is-list::before{
  transform:translate3d(38px,0,0)!important;
}
.sx-parent-match-browser .sx-match-view-toggle button,
.sx-parent-match-runtime-browser .sx-match-view-toggle button{
  z-index:1!important;width:38px!important;height:32px!important;
  background:transparent!important;box-shadow:none!important;
  transition:color .22s ease,transform .18s cubic-bezier(.2,.8,.2,1)!important;
}
.sx-parent-match-browser .sx-match-view-toggle button:active,
.sx-parent-match-runtime-browser .sx-match-view-toggle button:active{transform:scale(.88)!important}

/* Bottom nav: one liquid highlight moves between the five app tabs. */
.sx-mobile-bottom-inner{
  position:relative!important;
  isolation:isolate!important;
}
.sx-mobile-bottom-inner::before{
  content:"";
  position:absolute;
  z-index:0;
  top:3px;
  bottom:3px;
  left:0;
  width:calc(100% / var(--sx-mobile-tabs,5));
  border-radius:19px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-blue) 10%,rgba(255,255,255,.54)),color-mix(in srgb,var(--sx-ios-blue) 6%,rgba(255,255,255,.34)));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.52),0 5px 16px rgba(46,78,130,.055);
  transform:translate3d(calc(var(--sx-mobile-active,0) * 100%),0,0);
  transition:transform .38s cubic-bezier(.2,.82,.2,1),background .24s ease;
  pointer-events:none;
}
.sx-mobile-bottom-item{z-index:1!important}
.sx-mobile-bottom-item.is-active .sx-mobile-bottom-icon{background:transparent!important}
html[data-theme="dark"] .sx-mobile-bottom-inner::before,
body[data-theme="dark"] .sx-mobile-bottom-inner::before{
  background:linear-gradient(180deg,rgba(10,132,255,.18),rgba(94,92,230,.10));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 5px 18px rgba(0,0,0,.12);
}

/* Comments: even left/right breathing room, timestamp no longer steals body width. */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-announcement-comments>.sx-announcement-comment,
  html.sx-tablet-webapp .sx-announcement-comments>.sx-announcement-comment{
    padding:14px 15px!important;
    column-gap:11px!important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy,
  html.sx-tablet-webapp .sx-announcement-comment-copy{
    padding:0!important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy p,
  html.sx-tablet-webapp .sx-announcement-comment-copy p{
    margin:5px 0 0!important;
    padding:0!important;
    line-height:1.45!important;
  }
  html.sx-phone-webapp .sx-announcement-comment-copy small,
  html.sx-tablet-webapp .sx-announcement-comment-copy small{
    position:static!important;
    display:block!important;
    margin-top:6px!important;
  }
}

@media (prefers-reduced-motion: reduce){
  .sx-match-view-toggle::before,.sx-mobile-bottom-inner::before{transition:none!important}
}


/* v48 compiled-shell compatibility: older bundle renders comments as plain divs. */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-announcement-comments>div,
  html.sx-tablet-webapp .sx-announcement-comments>div{
    box-sizing:border-box!important;
    padding:14px 15px!important;
  }
  html.sx-phone-webapp .sx-announcement-comments>div>p,
  html.sx-tablet-webapp .sx-announcement-comments>div>p{
    margin:5px 0 0!important;
    padding:0!important;
    line-height:1.45!important;
  }
  html.sx-phone-webapp .sx-announcement-comments>div>small,
  html.sx-tablet-webapp .sx-announcement-comments>div>small{
    position:static!important;
    display:block!important;
    margin-top:6px!important;
  }
}

/* ========================================================================
   v49 — full-height search tile + iOS 26 liquid glass controls
   ======================================================================== */

/* Search field: split layout instead of an absolutely positioned icon.
   This makes overlap with the placeholder structurally impossible. */
.sx-parent-match-browser .sx-match-search,
.sx-parent-match-runtime-browser .sx-match-search{
  position:relative!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--sx-ios-fill) 66%,var(--sx-ios-surface))!important;
  box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--sx-ios-separator) 68%,transparent),0 1px 1px rgba(18,37,67,.02)!important;
  color:var(--sx-ios-secondary)!important;
}
.sx-parent-match-browser .sx-match-search::before,
.sx-parent-match-browser .sx-match-search::after,
.sx-parent-match-runtime-browser .sx-match-search::before,
.sx-parent-match-runtime-browser .sx-match-search::after{
  content:none!important;
  display:none!important;
}
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon{
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  grid-column:1!important;
  grid-row:1!important;
  width:58px!important;
  height:52px!important;
  min-width:58px!important;
  min-height:52px!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-right:.5px solid color-mix(in srgb,var(--sx-ios-blue) 11%,var(--sx-ios-separator))!important;
  border-radius:16px 0 0 16px!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--sx-ios-blue) 12%,rgba(255,255,255,.76)),color-mix(in srgb,var(--sx-ios-blue) 6%,rgba(255,255,255,.25)))!important;
  color:var(--sx-ios-blue)!important;
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.72),inset -1px 0 0 rgba(255,255,255,.18)!important;
  -webkit-backdrop-filter:saturate(180%) blur(15px)!important;
  backdrop-filter:saturate(180%) blur(15px)!important;
  pointer-events:none!important;
}
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon svg,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon svg,
.sx-parent-match-browser .sx-match-search>.sx-match-search-icon .sx-ios-icon,
.sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon .sx-ios-icon{
  width:22px!important;
  height:22px!important;
  display:block!important;
  overflow:visible!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.sx-parent-match-browser .sx-match-search input,
.sx-parent-match-runtime-browser .sx-match-search input{
  position:relative!important;
  z-index:1!important;
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 17px!important;
  border:0!important;
  border-radius:0 16px 16px 0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--sx-ios-label)!important;
  font-family:var(--font-sans,"Inter","SF Pro Text","SF Pro Display",sans-serif)!important;
  font-size:16px!important;
  font-weight:560!important;
  line-height:52px!important;
  letter-spacing:-.012em!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
.sx-parent-match-browser .sx-match-search input::placeholder,
.sx-parent-match-runtime-browser .sx-match-search input::placeholder{
  color:var(--sx-ios-secondary)!important;
  opacity:.82!important;
  font-family:inherit!important;
  font-weight:520!important;
}
.sx-parent-match-browser .sx-match-search:focus-within,
.sx-parent-match-runtime-browser .sx-match-search:focus-within{
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sx-ios-blue) 44%,var(--sx-ios-separator)),0 5px 18px rgba(38,91,170,.07)!important;
}
html[data-theme="dark"] .sx-parent-match-browser .sx-match-search>.sx-match-search-icon,
html[data-theme="dark"] .sx-parent-match-runtime-browser .sx-match-search>.sx-match-search-icon{
  background:linear-gradient(145deg,rgba(10,132,255,.18),rgba(94,92,230,.08))!important;
  box-shadow:inset 1px 1px 0 rgba(255,255,255,.08)!important;
}

/* Keep the whole match browser on the same typography as the app. */
.sx-parent-match-browser,
.sx-parent-match-runtime-browser,
.sx-parent-match-browser input,
.sx-parent-match-runtime-browser input,
.sx-parent-match-browser select,
.sx-parent-match-runtime-browser select,
.sx-parent-match-browser button,
.sx-parent-match-runtime-browser button,
.sx-mobile-bottom-item,
.sx-mobile-bottom-label{
  font-family:var(--font-sans,"Inter","SF Pro Text","SF Pro Display",sans-serif)!important;
}

/* Grid/list: Liquid Glass segmented control with a springy morph between icons. */
.sx-parent-match-browser .sx-match-view-toggle,
.sx-parent-match-runtime-browser .sx-match-view-toggle{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  grid-template-columns:repeat(2,40px)!important;
  width:86px!important;
  height:44px!important;
  padding:2px!important;
  gap:0!important;
  overflow:hidden!important;
  border:.5px solid color-mix(in srgb,var(--sx-ios-separator) 62%,transparent)!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.52),color-mix(in srgb,var(--sx-ios-fill) 78%,transparent))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.60),0 4px 16px rgba(33,57,96,.06)!important;
  -webkit-backdrop-filter:saturate(190%) blur(22px)!important;
  backdrop-filter:saturate(190%) blur(22px)!important;
}
.sx-parent-match-browser .sx-match-view-toggle::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle::before{
  left:2px!important;
  top:2px!important;
  width:40px!important;
  height:39px!important;
  border:1px solid rgba(255,255,255,.62)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.80),color-mix(in srgb,var(--sx-ios-blue) 9%,rgba(255,255,255,.34)))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 5px 15px rgba(39,72,120,.11)!important;
  -webkit-backdrop-filter:saturate(210%) blur(18px)!important;
  backdrop-filter:saturate(210%) blur(18px)!important;
  clip-path:inset(1px 2px round 12px)!important;
  transform:translate3d(0,0,0)!important;
  transition:transform .46s cubic-bezier(.16,1.18,.28,1),background .22s ease,box-shadow .22s ease!important;
}
.sx-parent-match-browser .sx-match-view-toggle.is-list::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle.is-list::before{
  transform:translate3d(40px,0,0)!important;
}
.sx-parent-match-browser .sx-match-view-toggle button,
.sx-parent-match-runtime-browser .sx-match-view-toggle button{
  z-index:2!important;
  width:40px!important;
  height:39px!important;
  padding:0!important;
  border-radius:12px!important;
  color:var(--sx-ios-secondary)!important;
  background:transparent!important;
  box-shadow:none!important;
  transition:color .22s ease,transform .28s cubic-bezier(.16,1.22,.28,1),opacity .2s ease!important;
}
.sx-parent-match-browser .sx-match-view-toggle button .sx-ios-icon,
.sx-parent-match-runtime-browser .sx-match-view-toggle button .sx-ios-icon,
.sx-parent-match-browser .sx-match-view-toggle button svg,
.sx-parent-match-runtime-browser .sx-match-view-toggle button svg{
  width:22px!important;
  height:22px!important;
  transition:transform .34s cubic-bezier(.16,1.25,.28,1),filter .22s ease!important;
}
.sx-parent-match-browser .sx-match-view-toggle button.is-active,
.sx-parent-match-runtime-browser .sx-match-view-toggle button.is-active{
  color:var(--sx-ios-blue)!important;
}
.sx-parent-match-browser .sx-match-view-toggle button.is-active .sx-ios-icon,
.sx-parent-match-runtime-browser .sx-match-view-toggle button.is-active .sx-ios-icon,
.sx-parent-match-browser .sx-match-view-toggle button.is-active svg,
.sx-parent-match-runtime-browser .sx-match-view-toggle button.is-active svg{
  transform:scale(1.09)!important;
  filter:drop-shadow(0 2px 4px rgba(10,132,255,.14))!important;
}
.sx-parent-match-browser .sx-match-view-toggle.is-switching::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle.is-switching::before{
  animation:sxLiquidSegmentMorph .46s cubic-bezier(.16,1,.3,1) both!important;
}
@keyframes sxLiquidSegmentMorph{
  0%{scale:.94 1;filter:saturate(1)}
  48%{scale:1.15 .96;filter:saturate(1.18)}
  100%{scale:1 1;filter:saturate(1)}
}
html[data-theme="dark"] .sx-parent-match-browser .sx-match-view-toggle,
html[data-theme="dark"] .sx-parent-match-runtime-browser .sx-match-view-toggle{
  background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 4px 16px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] .sx-parent-match-browser .sx-match-view-toggle::before,
html[data-theme="dark"] .sx-parent-match-runtime-browser .sx-match-view-toggle::before{
  border-color:rgba(255,255,255,.10)!important;
  background:linear-gradient(145deg,rgba(10,132,255,.24),rgba(94,92,230,.12))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11),0 5px 16px rgba(0,0,0,.18)!important;
}

/* Bottom tab bar: smaller material footprint, more visible iOS 26 liquid glide. */
.sx-mobile-bottom-inner::before{
  top:4px!important;
  bottom:4px!important;
  border:1px solid rgba(255,255,255,.48)!important;
  border-radius:21px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.68),color-mix(in srgb,var(--sx-ios-blue) 8%,rgba(255,255,255,.24)))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 7px 22px rgba(42,73,118,.08)!important;
  -webkit-backdrop-filter:saturate(215%) blur(20px)!important;
  backdrop-filter:saturate(215%) blur(20px)!important;
  clip-path:inset(0 5px round 20px)!important;
  transition:transform .50s cubic-bezier(.16,1.20,.28,1),background .25s ease,box-shadow .25s ease!important;
}
.sx-mobile-bottom-inner.is-liquid-moving::before{
  animation:sxLiquidNavMorph .50s cubic-bezier(.16,1,.3,1) both!important;
}
@keyframes sxLiquidNavMorph{
  0%{scale:.94 1;filter:saturate(1)}
  44%{scale:1.12 .965;filter:saturate(1.18)}
  100%{scale:1 1;filter:saturate(1)}
}
.sx-mobile-bottom-item{
  min-height:62px!important;
  padding:4px 0 3px!important;
  border-radius:17px!important;
  transition:color .24s ease,opacity .20s ease,transform .28s cubic-bezier(.16,1.15,.28,1)!important;
}
.sx-mobile-bottom-icon{
  width:38px!important;
  height:30px!important;
  border-radius:12px!important;
  transition:color .24s ease,transform .34s cubic-bezier(.16,1.22,.28,1)!important;
}
.sx-mobile-bottom-item.is-active .sx-mobile-bottom-icon{
  transform:translateY(-1px) scale(1.045)!important;
}
.sx-mobile-bottom-label{
  font-size:11px!important;
  font-weight:560!important;
  letter-spacing:-.018em!important;
}
.sx-mobile-bottom-item.is-active .sx-mobile-bottom-label{font-weight:680!important}
html[data-theme="dark"] .sx-mobile-bottom-inner::before,
body[data-theme="dark"] .sx-mobile-bottom-inner::before{
  border-color:rgba(255,255,255,.075)!important;
  background:linear-gradient(145deg,rgba(10,132,255,.22),rgba(94,92,230,.105),rgba(255,255,255,.035))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 7px 22px rgba(0,0,0,.16)!important;
}

@media(prefers-reduced-motion:reduce){
  .sx-match-view-toggle::before,
  .sx-match-view-toggle button,
  .sx-match-view-toggle button svg,
  .sx-mobile-bottom-inner::before,
  .sx-mobile-bottom-item,
  .sx-mobile-bottom-icon{
    animation:none!important;
    transition:none!important;
  }
}

/* ========================================================================
   v50 — cleaner match/training cards + stable compact liquid controls
   ======================================================================== */

/* Search is intentionally removed from the parent match browser. */
.sx-parent-match-browser .sx-match-search,
.sx-parent-match-runtime-browser .sx-match-search{display:none!important}

/* With search gone the toolbar becomes one clean app row. */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-parent-match-runtime-browser,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser,
  html.sx-phone-webapp .sx-parent-match-browser .sx-match-browser-toolbar,
  html.sx-tablet-webapp .sx-parent-match-browser .sx-match-browser-toolbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
  }
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-sort,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-sort{grid-column:1!important}
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-view-toggle,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-view-toggle{grid-column:2!important}
  html.sx-phone-webapp .sx-parent-match-runtime-browser .sx-match-browser-count,
  html.sx-tablet-webapp .sx-parent-match-runtime-browser .sx-match-browser-count{grid-column:1/-1!important}
}

/* Restore the calmer liquid glide from v48 instead of the stronger v49 morph. */
.sx-parent-match-browser .sx-match-view-toggle,
.sx-parent-match-runtime-browser .sx-match-view-toggle{
  grid-template-columns:repeat(2,38px)!important;
  width:82px!important;height:40px!important;padding:3px!important;
  border-radius:13px!important;
  background:color-mix(in srgb,var(--sx-ios-fill) 72%,transparent)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:blur(15px) saturate(155%)!important;
  backdrop-filter:blur(15px) saturate(155%)!important;
}
.sx-parent-match-browser .sx-match-view-toggle::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle::before{
  left:3px!important;top:3px!important;width:38px!important;height:32px!important;
  border:.5px solid color-mix(in srgb,var(--sx-ios-separator) 54%,transparent)!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;
  box-shadow:0 1px 7px rgba(25,47,85,.10),inset 0 1px 0 rgba(255,255,255,.72)!important;
  clip-path:none!important;
  transition:transform .34s cubic-bezier(.2,.82,.2,1),background .2s ease,box-shadow .2s ease!important;
  animation:none!important;scale:1!important;
}
.sx-parent-match-browser .sx-match-view-toggle.is-list::before,
.sx-parent-match-runtime-browser .sx-match-view-toggle.is-list::before{transform:translate3d(38px,0,0)!important}
.sx-parent-match-browser .sx-match-view-toggle button,
.sx-parent-match-runtime-browser .sx-match-view-toggle button{width:38px!important;height:32px!important;padding:0!important;transition:color .2s ease,transform .16s ease!important}
.sx-parent-match-browser .sx-match-view-toggle button svg,
.sx-parent-match-runtime-browser .sx-match-view-toggle button svg{width:20px!important;height:20px!important;filter:none!important;transform:none!important}
.sx-parent-match-browser .sx-match-view-toggle button.is-active svg,
.sx-parent-match-runtime-browser .sx-match-view-toggle button.is-active svg{transform:none!important;filter:none!important}

/* Bottom tab highlight: subtle liquid slide, smaller hover/touch footprint. */
.sx-mobile-bottom-inner::before{
  top:3px!important;bottom:3px!important;
  border:0!important;border-radius:18px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--sx-ios-blue) 10%,rgba(255,255,255,.54)),color-mix(in srgb,var(--sx-ios-blue) 6%,rgba(255,255,255,.34)))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.52),0 5px 16px rgba(46,78,130,.055)!important;
  clip-path:inset(0 7px round 18px)!important;
  transition:transform .38s cubic-bezier(.2,.82,.2,1),background .24s ease!important;
  animation:none!important;scale:1!important;
}
.sx-mobile-bottom-inner.is-liquid-moving::before{animation:none!important}
.sx-mobile-bottom-item{min-height:60px!important;padding:3px 0 2px!important;border-radius:15px!important;transform:none!important}
.sx-mobile-bottom-icon{width:36px!important;height:29px!important;transform:none!important}
.sx-mobile-bottom-item.is-active .sx-mobile-bottom-icon{transform:translateY(-1px)!important}

/* More breathing room between the border and the upcoming-match badge. */
.sx-parent-list>.sx-parent-event.is-next-match:before{
  margin:10px 0 9px!important;
  padding:5px 10px!important;
}

/* Date is a real focal point in grid view. */
html.sx-phone-webapp .sx-parent-fixture-date,
html.sx-tablet-webapp .sx-parent-fixture-date{gap:7px!important;align-items:baseline!important;font-size:12px!important}
html.sx-phone-webapp .sx-parent-fixture-date b,
html.sx-tablet-webapp .sx-parent-fixture-date b{font-size:14px!important;font-weight:850!important;letter-spacing:.08em!important}
html.sx-phone-webapp .sx-parent-fixture-date span,
html.sx-tablet-webapp .sx-parent-fixture-date span{font-size:13px!important;font-weight:760!important}

/* Match weather is slightly taller; location in the band is city/place only. */
html.sx-phone-webapp .sx-parent-fixture-info,
html.sx-tablet-webapp .sx-parent-fixture-info{
  min-height:58px!important;
  padding:10px 12px!important;
  border-radius:17px!important;
}
html.sx-phone-webapp .sx-parent-fixture-place,
html.sx-tablet-webapp .sx-parent-fixture-place{
  font-size:11.5px!important;font-weight:720!important;letter-spacing:-.01em!important;
}

/* Training forecast: a little more height like an Apple Weather mini-card. */
html.sx-phone-webapp .sx-training-weather-row,
html.sx-phone-webapp .sx-parent-training-weather-row,
html.sx-tablet-webapp .sx-training-weather-row,
html.sx-tablet-webapp .sx-parent-training-weather-row{
  min-height:64px!important;
  padding:12px 13px!important;
  border-radius:17px!important;
}
html.sx-phone-webapp .sx-training-weather-row .sx-mobile-weather>span>strong,
html.sx-phone-webapp .sx-parent-training-weather-row .sx-mobile-weather>span>strong,
html.sx-tablet-webapp .sx-training-weather-row .sx-mobile-weather>span>strong,
html.sx-tablet-webapp .sx-parent-training-weather-row .sx-mobile-weather>span>strong{font-size:20px!important}

/* Attendance redesigned as a compact iOS segmented action card. */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  html.sx-phone-webapp .sx-parent-attendance,
  html.sx-tablet-webapp .sx-parent-attendance{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    padding:5px!important;
    border:.5px solid color-mix(in srgb,var(--sx-ios-separator) 62%,transparent)!important;
    border-radius:16px!important;
    background:color-mix(in srgb,var(--sx-ios-fill) 62%,transparent)!important;
    -webkit-backdrop-filter:blur(18px) saturate(155%)!important;
    backdrop-filter:blur(18px) saturate(155%)!important;
  }
  html.sx-phone-webapp .sx-parent-attendance button,
  html.sx-tablet-webapp .sx-parent-attendance button{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
    min-width:0!important;min-height:38px!important;padding:6px 7px!important;
    border:0!important;border-radius:12px!important;
    background:transparent!important;box-shadow:none!important;
    color:var(--sx-ios-secondary)!important;
    font-family:var(--font-sans,"Inter","SF Pro Text",sans-serif)!important;
    font-size:10.5px!important;font-weight:720!important;
    transition:background .18s ease,color .18s ease,transform .12s ease!important;
  }
  html.sx-phone-webapp .sx-parent-attendance button::before,
  html.sx-tablet-webapp .sx-parent-attendance button::before{
    display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;
    background:color-mix(in srgb,currentColor 10%,transparent);font-size:11px;font-weight:900;line-height:1;
  }
  html.sx-phone-webapp .sx-parent-attendance button.yes::before,
  html.sx-tablet-webapp .sx-parent-attendance button.yes::before{content:'✓'}
  html.sx-phone-webapp .sx-parent-attendance button.maybe::before,
  html.sx-tablet-webapp .sx-parent-attendance button.maybe::before{content:'?'}
  html.sx-phone-webapp .sx-parent-attendance button.no::before,
  html.sx-tablet-webapp .sx-parent-attendance button.no::before{content:'×'}
  html.sx-phone-webapp .sx-parent-attendance button:active,
  html.sx-tablet-webapp .sx-parent-attendance button:active{transform:scale(.97)!important}
  html.sx-phone-webapp .sx-parent-attendance button.is-active,
  html.sx-tablet-webapp .sx-parent-attendance button.is-active{
    background:var(--sx-ios-surface)!important;
    box-shadow:0 2px 8px rgba(30,53,88,.09),inset 0 1px 0 rgba(255,255,255,.66)!important;
  }
  html.sx-phone-webapp .sx-parent-attendance button.is-active.yes,
  html.sx-tablet-webapp .sx-parent-attendance button.is-active.yes{color:#16875f!important}
  html.sx-phone-webapp .sx-parent-attendance button.is-active.maybe,
  html.sx-tablet-webapp .sx-parent-attendance button.is-active.maybe{color:#c47a09!important}
  html.sx-phone-webapp .sx-parent-attendance button.is-active.no,
  html.sx-tablet-webapp .sx-parent-attendance button.is-active.no{color:#d94848!important}
  html.sx-phone-webapp .sx-parent-attendance .sx-saved-absence,
  html.sx-tablet-webapp .sx-parent-attendance .sx-saved-absence{grid-column:1/-1;padding:5px 7px 3px;color:var(--sx-ios-secondary);font-size:10px}
}

/* ========================================================================
   v51 — ouder wedstrijd: aanwezige spelers + rustige lijsttypografie
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Attendance/squad summary: compact native-app card instead of a loose row. */
  html.sx-phone-webapp .sx-parent-match-ios>.sx-squad,
  html.sx-phone-webapp .sx-parent-training-ios>.sx-squad{
    margin-top:14px!important;
    padding:10px 11px 11px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 58%,transparent)!important;
    border-radius:18px!important;
    background:linear-gradient(145deg,color-mix(in srgb,var(--sx-ios-surface) 93%,transparent),color-mix(in srgb,var(--sx-ios-fill) 45%,transparent))!important;
    box-shadow:0 8px 22px rgba(42,61,104,.045)!important;
  }
  html.sx-phone-webapp .sx-squad-toggle{
    min-height:42px!important;
    gap:10px!important;
    padding:3px 2px!important;
    color:var(--sx-ios-secondary)!important;
    font-family:var(--font-sans)!important;
    font-size:12px!important;
    font-weight:550!important;
    line-height:1.2!important;
    letter-spacing:-.01em!important;
  }
  html.sx-phone-webapp .sx-squad-toggle>svg:first-child{
    width:34px!important;
    height:34px!important;
    padding:8px!important;
    flex:0 0 34px!important;
    border-radius:11px!important;
    background:color-mix(in srgb,var(--primary) 11%,transparent)!important;
    color:var(--primary)!important;
  }
  html.sx-phone-webapp .sx-squad-counts{
    display:flex!important;
    align-items:baseline!important;
    gap:4px!important;
    min-width:0!important;
    color:var(--sx-ios-secondary)!important;
  }
  html.sx-phone-webapp .sx-squad-counts b{
    color:var(--sx-ios-label)!important;
    font-size:17px!important;
    font-weight:720!important;
    letter-spacing:-.03em!important;
  }
  html.sx-phone-webapp .sx-squad-toggle>svg:last-child{
    width:28px!important;
    height:28px!important;
    padding:7px!important;
    flex:0 0 28px!important;
    border-radius:50%!important;
    background:color-mix(in srgb,var(--sx-ios-fill) 78%,transparent)!important;
    color:var(--sx-ios-secondary)!important;
    transition:transform .24s cubic-bezier(.22,1,.36,1),background .2s ease!important;
  }
  html.sx-phone-webapp .sx-squad.is-open .sx-squad-toggle>svg:last-child{
    transform:rotate(180deg)!important;
    background:color-mix(in srgb,var(--primary) 11%,transparent)!important;
    color:var(--primary)!important;
  }
  html.sx-phone-webapp .sx-squad-faces{
    align-items:center!important;
    min-height:42px!important;
    margin:6px 0 0 44px!important;
    padding:0!important;
  }
  html.sx-phone-webapp .sx-squad-faces li{
    width:38px!important;
    height:38px!important;
    margin-left:-7px!important;
    border:3px solid color-mix(in srgb,var(--sx-ios-surface) 96%,white)!important;
    background:color-mix(in srgb,var(--sx-ios-fill) 74%,transparent)!important;
    box-shadow:0 3px 9px rgba(22,38,74,.09)!important;
  }
  html.sx-phone-webapp .sx-squad-faces li:first-child{margin-left:0!important}
  html.sx-phone-webapp .sx-squad-initial{
    color:var(--sx-ios-secondary)!important;
    font-family:var(--font-sans)!important;
    font-size:13px!important;
    font-weight:700!important;
  }
  html.sx-phone-webapp .sx-squad-more{
    color:var(--primary)!important;
    font-size:10px!important;
    font-weight:750!important;
  }
  html.sx-phone-webapp .sx-squad-lists{
    gap:10px!important;
    margin-top:9px!important;
    padding-top:10px!important;
    border-top:1px solid color-mix(in srgb,var(--sx-ios-separator) 45%,transparent)!important;
  }
  html.sx-phone-webapp .sx-squad-group h4{
    margin:0 0 7px!important;
    color:var(--sx-ios-secondary)!important;
    font-family:var(--font-sans)!important;
    font-size:10px!important;
    font-weight:700!important;
    letter-spacing:.045em!important;
  }
  html.sx-phone-webapp .sx-squad-group li{
    min-height:34px!important;
    padding:4px 10px 4px 4px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 42%,transparent)!important;
    background:color-mix(in srgb,var(--sx-ios-fill) 52%,transparent)!important;
    font-family:var(--font-sans)!important;
    font-size:11px!important;
    font-weight:580!important;
  }

  /* Compact fixture list: use the exact app typeface/normal optical weights.
     Avoid synthetic/interpolated heavy weights which looked stretched on iOS. */
  html.sx-phone-webapp .sx-parent-match-view-list,
  html.sx-phone-webapp .sx-parent-match-view-list button,
  html.sx-phone-webapp .sx-parent-match-view-list span,
  html.sx-phone-webapp .sx-parent-match-view-list strong,
  html.sx-phone-webapp .sx-parent-match-view-list small,
  html.sx-phone-webapp .sx-parent-match-view-list b,
  html.sx-phone-webapp .sx-parent-match-view-list em{
    font-family:var(--font-sans)!important;
    font-synthesis:none!important;
    font-style:normal!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date b{
    font-size:9px!important;
    font-weight:700!important;
    letter-spacing:.045em!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date strong{
    font-size:12px!important;
    font-weight:700!important;
    letter-spacing:-.015em!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date span{
    font-size:9.5px!important;
    font-weight:550!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-copy small{
    font-size:8.5px!important;
    font-weight:700!important;
    letter-spacing:.05em!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-copy strong{
    font-size:11.5px!important;
    font-weight:650!important;
    line-height:1.24!important;
    letter-spacing:-.016em!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-copy span{
    font-size:9.5px!important;
    font-weight:500!important;
    letter-spacing:-.005em!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-score>strong{
    font-size:12.5px!important;
    font-weight:700!important;
    letter-spacing:-.015em!important;
  }
}

html[data-theme="dark"].sx-phone-webapp .sx-parent-match-ios>.sx-squad,
html[data-theme="dark"].sx-phone-webapp .sx-parent-training-ios>.sx-squad{
  background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(83,98,213,.075))!important;
  border-color:rgba(255,255,255,.085)!important;
}

/* ========================================================================
   v52 — fixture moments accordion, roomier list, compact tab labels,
         and a lighter app canvas closer to the translucent top bar.
   ======================================================================== */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  :root{
    --sx-ios-bg:#f2f8ff;
    --sx-ios-surface-2:#f6faff;
  }
  html[data-theme="dark"]{
    --sx-ios-bg:#000000;
    --sx-ios-surface-2:#2c2c2e;
  }

  /* Bottom tab labels sit fully below the liquid icon highlight. */
  html.sx-phone-webapp .sx-mobile-bottom-item,
  html.sx-tablet-webapp .sx-mobile-bottom-item{
    min-height:64px!important;
    padding:4px 1px 3px!important;
    gap:3px!important;
  }
  html.sx-phone-webapp .sx-mobile-bottom-label,
  html.sx-tablet-webapp .sx-mobile-bottom-label{
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif!important;
    font-size:10.4px!important;
    line-height:1!important;
    letter-spacing:-.012em!important;
  }

  /* List view: slightly taller rows and larger, normal-weight app type. */
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-row,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-row{
    min-height:82px!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-main,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-main{
    grid-template-columns:61px minmax(0,1fr) auto!important;
    gap:10px!important;
    min-height:82px!important;
    padding:12px 11px 12px 10px!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-date{
    min-height:58px!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date b,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-date b{font-size:9.5px!important;font-weight:700!important}
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date strong,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-date strong{font-size:13.5px!important;font-weight:700!important;line-height:1.05!important}
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-date span,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-date span{font-size:10px!important;font-weight:550!important}
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-copy small,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-copy small{font-size:9px!important;font-weight:700!important}
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-copy strong,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-copy strong{font-size:12.8px!important;font-weight:650!important;line-height:1.22!important}
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-copy span,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-copy span{font-size:10.2px!important;font-weight:500!important;line-height:1.2!important}
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-score>strong,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-score>strong{font-size:13.5px!important;font-weight:700!important}

  /* Only the match-grid version is an accordion. Home/Gameday keeps the
     existing always-visible timeline exactly as before. */
  html.sx-phone-webapp .sx-parent-match-ios .sx-parent-match-moments-accordion,
  html.sx-tablet-webapp .sx-parent-match-ios .sx-parent-match-moments-accordion{
    margin-top:14px!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 48%,transparent)!important;
    border-radius:17px!important;
    background:color-mix(in srgb,var(--sx-ios-fill) 40%,transparent)!important;
  }
  html.sx-phone-webapp .sx-parent-match-moments-toggle,
  html.sx-tablet-webapp .sx-parent-match-moments-toggle{
    width:100%!important;
    min-height:52px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    padding:10px 12px!important;
    border:0!important;
    background:transparent!important;
    color:var(--sx-ios-label)!important;
    text-align:left!important;
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif!important;
  }
  html.sx-phone-webapp .sx-parent-match-moments-toggle>span,
  html.sx-tablet-webapp .sx-parent-match-moments-toggle>span{display:grid!important;gap:2px!important}
  html.sx-phone-webapp .sx-parent-match-moments-toggle strong,
  html.sx-tablet-webapp .sx-parent-match-moments-toggle strong{font-size:12px!important;font-weight:700!important;letter-spacing:-.015em!important}
  html.sx-phone-webapp .sx-parent-match-moments-toggle small,
  html.sx-tablet-webapp .sx-parent-match-moments-toggle small{font-size:9px!important;font-weight:550!important;color:var(--sx-ios-secondary)!important}
  html.sx-phone-webapp .sx-parent-match-moments-toggle>.sx-ios-icon,
  html.sx-tablet-webapp .sx-parent-match-moments-toggle>.sx-ios-icon{
    width:27px!important;height:27px!important;padding:7px!important;flex:0 0 27px!important;
    border-radius:50%!important;background:color-mix(in srgb,var(--sx-ios-surface) 80%,transparent)!important;
    color:var(--sx-ios-secondary)!important;
    transition:transform .32s cubic-bezier(.2,.85,.2,1),background .2s ease,color .2s ease!important;
  }
  html.sx-phone-webapp .sx-parent-match-moments-accordion.is-open .sx-parent-match-moments-toggle>.sx-ios-icon,
  html.sx-tablet-webapp .sx-parent-match-moments-accordion.is-open .sx-parent-match-moments-toggle>.sx-ios-icon{
    transform:rotate(180deg)!important;color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 11%,transparent)!important;
  }
  html.sx-phone-webapp .sx-parent-match-moments-panel,
  html.sx-tablet-webapp .sx-parent-match-moments-panel{
    display:grid!important;
    grid-template-rows:0fr!important;
    opacity:0!important;
    transition:grid-template-rows .34s cubic-bezier(.2,.82,.2,1),opacity .22s ease!important;
  }
  html.sx-phone-webapp .sx-parent-match-moments-panel>.sx-parent-match-moment-list,
  html.sx-tablet-webapp .sx-parent-match-moments-panel>.sx-parent-match-moment-list{
    min-height:0!important;overflow:hidden!important;padding:0 10px!important;
    transition:padding .34s cubic-bezier(.2,.82,.2,1)!important;
  }
  html.sx-phone-webapp .sx-parent-match-moments-accordion.is-open .sx-parent-match-moments-panel,
  html.sx-tablet-webapp .sx-parent-match-moments-accordion.is-open .sx-parent-match-moments-panel{grid-template-rows:1fr!important;opacity:1!important}
  html.sx-phone-webapp .sx-parent-match-moments-accordion.is-open .sx-parent-match-moments-panel>.sx-parent-match-moment-list,
  html.sx-tablet-webapp .sx-parent-match-moments-accordion.is-open .sx-parent-match-moments-panel>.sx-parent-match-moment-list{padding:0 10px 10px!important}
}

/* ========================================================================
   v53 — gridvolgorde, verslag onderaan, aanwezigen links
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Het oude React-verslagknopje is dubbelop: de mededelingenkaart onderaan is leidend. */
  html.sx-phone-webapp .sx-parent-match-ios > .sx-report-open,
  html.sx-tablet-webapp .sx-parent-match-ios > .sx-report-open{
    display:none!important;
  }

  /* Avatars beginnen exact aan de linkerkant van de aanwezigheidskaart. */
  html.sx-phone-webapp .sx-parent-match-ios .sx-squad-faces,
  html.sx-tablet-webapp .sx-parent-match-ios .sx-squad-faces{
    justify-content:flex-start!important;
    margin:7px 0 0 0!important;
    padding-left:0!important;
  }

  html.sx-phone-webapp .sx-parent-match-ios .sx-squad-faces li:first-child,
  html.sx-tablet-webapp .sx-parent-match-ios .sx-squad-faces li:first-child{
    margin-left:0!important;
  }

  /* Verslagkaart is het laatste onderdeel van de gridkaart. */
  html.sx-phone-webapp .sx-parent-match-ios > .sx-parent-report-bottom,
  html.sx-tablet-webapp .sx-parent-match-ios > .sx-parent-report-bottom{
    order:99!important;
    width:100%!important;
    margin-top:14px!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios > .sx-parent-report-bottom > .sx-parent-report-link,
  html.sx-tablet-webapp .sx-parent-match-ios > .sx-parent-report-bottom > .sx-parent-report-link{
    margin-top:0!important;
  }
}


/* ========================================================================
   v54 — attendance icon polish, training faces left, coach search removed
   ======================================================================== */
@media (max-width:820px),(any-pointer:coarse) and (max-width:1600px){
  /* Keep the attendance header clean: no extra little tile around the users icon. */
  html.sx-phone-webapp .sx-squad-toggle>svg:first-child,
  html.sx-tablet-webapp .sx-squad-toggle>svg:first-child{
    width:25px!important;
    height:25px!important;
    flex:0 0 25px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:var(--primary)!important;
    stroke-width:1.9!important;
  }

  html.sx-phone-webapp .sx-squad-toggle,
  html.sx-tablet-webapp .sx-squad-toggle{
    min-height:39px!important;
    gap:9px!important;
    padding:2px 1px!important;
  }

  /* Match and training attendee avatars start on the same left edge. */
  html.sx-phone-webapp .sx-parent-match-ios .sx-squad-faces,
  html.sx-tablet-webapp .sx-parent-match-ios .sx-squad-faces,
  html.sx-phone-webapp .sx-parent-training-ios .sx-squad-faces,
  html.sx-tablet-webapp .sx-parent-training-ios .sx-squad-faces{
    justify-content:flex-start!important;
    margin:7px 0 0 0!important;
    padding-left:0!important;
  }
  html.sx-phone-webapp .sx-parent-training-ios .sx-squad-faces li:first-child,
  html.sx-tablet-webapp .sx-parent-training-ios .sx-squad-faces li:first-child{
    margin-left:0!important;
  }

  /* Coach matches: the search box is intentionally gone; controls stay balanced. */
  html.sx-phone-webapp .sx-match-browser-toolbar>.sx-match-search,
  html.sx-tablet-webapp .sx-match-browser-toolbar>.sx-match-search{
    display:none!important;
  }
}


/* v55 — parent cleanup + completed-match attendance state */
@media (max-width: 1400px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-parent-children,
  html.sx-tablet-webapp .sx-parent-portal > .sx-parent-children {
    display:none!important;
  }
  html.sx-phone-webapp .sx-parent-match-ios .sx-parent-attendance.sx-hidden-after-match,
  html.sx-tablet-webapp .sx-parent-match-ios .sx-parent-attendance.sx-hidden-after-match {
    display:none!important;
  }
}

/* v56 — tactiekbord app: use more of the available phone/tablet width.
   Keep the existing layout, only reduce nested horizontal padding so the
   Wedstrijdverloop column/card no longer feels squeezed inside Tactiekbord. */
@media (max-width: 1024px) {
  html.sx-phone-webapp body[data-page="tactics"] .sx-view,
  body.sx-phone-webapp[data-page="tactics"] .sx-view {
    padding-inline: 4px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-view > .card,
  body.sx-phone-webapp[data-page="tactics"] .tactics-view > .card {
    padding-inline: 0 !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-view > .card > .card-header,
  body.sx-phone-webapp[data-page="tactics"] .tactics-view > .card > .card-header {
    padding-inline: 14px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-view > .card > .card-body,
  body.sx-phone-webapp[data-page="tactics"] .tactics-view > .card > .card-body {
    padding-inline: 10px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-toolbar,
  body.sx-phone-webapp[data-page="tactics"] .tactics-toolbar {
    padding: 5px !important;
    gap: 6px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-toolbar-group,
  body.sx-phone-webapp[data-page="tactics"] .tactics-toolbar-group {
    padding-inline: 7px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-toolbar-group.is-open,
  body.sx-phone-webapp[data-page="tactics"] .tactics-toolbar-group.is-open {
    padding: 9px 7px 10px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-match-group,
  body.sx-phone-webapp[data-page="tactics"] .tactics-match-group {
    width: 100% !important;
    max-width: none !important;
  }
}

/* v57 — app-wide horizontal spacing pass.
   Use the viewport more efficiently on phone/tablet while preserving the
   existing card hierarchy and vertical rhythm. */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp {
    --sx-mobile-page-pad: 10px;
  }

  html.sx-phone-webapp .sx-view {
    padding-left: var(--sx-mobile-page-pad) !important;
    padding-right: var(--sx-mobile-page-pad) !important;
  }

  /* Top-level screens/cards should share one consistent app gutter instead
     of adding a second outer margin on top of .sx-view. */
  html.sx-phone-webapp #legacy-view,
  html.sx-phone-webapp .page-content,
  html.sx-phone-webapp .sx-ios-content,
  html.sx-phone-webapp .sx-parent-portal,
  html.sx-phone-webapp .tactics-view,
  html.sx-phone-webapp .training-view {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  html.sx-phone-webapp #legacy-view > .card,
  html.sx-phone-webapp .page-content > .card,
  html.sx-phone-webapp .sx-ios-content > .card,
  html.sx-phone-webapp .sx-parent-portal > .card,
  html.sx-phone-webapp .tactics-view > .card,
  html.sx-phone-webapp .training-view > .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Keep enough inner breathing room, but avoid the admin-like double inset. */
  html.sx-phone-webapp .sx-view .card-header {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }
  html.sx-phone-webapp .sx-view .card-body {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  /* Common grouped blocks also line up to the same usable width. */
  html.sx-phone-webapp .sx-parent-welcome,
  html.sx-phone-webapp .sx-admin-comms,
  html.sx-phone-webapp .sx-request-card,
  html.sx-phone-webapp .sx-dash-card,
  html.sx-phone-webapp .sx-mobile-fixture-card,
  html.sx-phone-webapp .sx-parent-event {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

/* iPad/tablet app mode can breathe a little more without reverting to the
   large desktop gutters. */
@media (min-width: 821px) and (max-width: 1600px) and (any-pointer: coarse) {
  html.sx-phone-webapp {
    --sx-mobile-page-pad: 14px;
  }
}


/* ========================================================================
   v58 — richer list view + app-style tactics board
   Reference: compact fixture list with date rail on the left and a clean
   portrait tactics presentation. Drawing/dragging behaviour is untouched.
   ======================================================================== */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* MATCH LIST ---------------------------------------------------------- */
  html.sx-phone-webapp .sx-parent-match-view-list,
  html.sx-phone-webapp .sx-parent-match-runtime-list,
  html.sx-tablet-webapp .sx-parent-match-view-list,
  html.sx-tablet-webapp .sx-parent-match-runtime-list{
    gap:9px!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-row,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-row,
  html.sx-tablet-webapp .sx-parent-match-view-list .sx-match-compact-row,
  html.sx-tablet-webapp .sx-parent-match-runtime-list .sx-match-compact-row{
    min-height:104px!important;
    border-radius:18px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 68%,transparent)!important;
    background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;
    box-shadow:0 7px 24px rgba(49,66,114,.065)!important;
  }
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-main,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-main,
  html.sx-tablet-webapp .sx-parent-match-view-list .sx-match-compact-main,
  html.sx-tablet-webapp .sx-parent-match-runtime-list .sx-match-compact-main{
    grid-template-columns:68px minmax(0,1fr) auto!important;
    gap:12px!important;
    min-height:104px!important;
    padding:12px 12px 12px 10px!important;
    align-items:center!important;
  }
  html.sx-phone-webapp .sx-match-compact-date,
  html.sx-tablet-webapp .sx-match-compact-date{
    align-self:stretch!important;
    min-height:76px!important;
    justify-content:center!important;
    border-right:1px solid color-mix(in srgb,var(--sx-ios-separator) 70%,transparent)!important;
    padding-right:9px!important;
  }
  html.sx-phone-webapp .sx-match-compact-date b,
  html.sx-tablet-webapp .sx-match-compact-date b{
    font-size:10px!important;font-weight:750!important;letter-spacing:.07em!important;
  }
  html.sx-phone-webapp .sx-match-compact-date strong,
  html.sx-tablet-webapp .sx-match-compact-date strong{
    margin-top:4px!important;font-size:15px!important;font-weight:760!important;letter-spacing:-.02em!important;
  }
  html.sx-phone-webapp .sx-match-compact-date span,
  html.sx-tablet-webapp .sx-match-compact-date span{
    margin-top:5px!important;font-size:11px!important;font-weight:560!important;
  }
  html.sx-phone-webapp .sx-match-compact-clubs,
  html.sx-tablet-webapp .sx-match-compact-clubs{
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    gap:9px!important;
  }
  html.sx-phone-webapp .sx-match-compact-logo,
  html.sx-tablet-webapp .sx-match-compact-logo{
    width:38px!important;height:38px!important;border-radius:11px!important;
    background:rgba(255,255,255,.88)!important;
    box-shadow:0 2px 10px rgba(31,49,94,.06)!important;
  }
  html.sx-phone-webapp .sx-match-compact-logo img,
  html.sx-tablet-webapp .sx-match-compact-logo img{width:34px!important;height:34px!important}
  html.sx-phone-webapp .sx-match-compact-copy small,
  html.sx-tablet-webapp .sx-match-compact-copy small{
    margin-bottom:4px!important;font-size:9.5px!important;font-weight:780!important;letter-spacing:.075em!important;
  }
  html.sx-phone-webapp .sx-match-compact-copy strong,
  html.sx-tablet-webapp .sx-match-compact-copy strong{
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif!important;
    font-size:14px!important;font-weight:680!important;line-height:1.2!important;letter-spacing:-.018em!important;
  }
  html.sx-phone-webapp .sx-match-compact-copy span,
  html.sx-tablet-webapp .sx-match-compact-copy span{
    margin-top:5px!important;font-size:11px!important;font-weight:500!important;line-height:1.25!important;
  }
  html.sx-phone-webapp .sx-match-compact-score,
  html.sx-tablet-webapp .sx-match-compact-score{min-width:50px!important;gap:5px!important}
  html.sx-phone-webapp .sx-match-compact-score>strong,
  html.sx-tablet-webapp .sx-match-compact-score>strong{font-size:15px!important;font-weight:720!important}

  /* TACTICS ------------------------------------------------------------- */
  html.sx-phone-webapp body[data-page="tactics"] .tactics-pitch-card,
  html.sx-tablet-webapp body[data-page="tactics"] .tactics-pitch-card,
  body.sx-phone-webapp[data-page="tactics"] .tactics-pitch-card,
  body.sx-tablet-webapp[data-page="tactics"] .tactics-pitch-card{
    padding:12px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 55%,transparent)!important;
    border-radius:22px!important;
    background:color-mix(in srgb,var(--sx-ios-surface) 96%,transparent)!important;
    box-shadow:0 12px 34px rgba(42,63,115,.08)!important;
    overflow:hidden!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] #tactics-pitch,
  body.sx-phone-webapp[data-page="tactics"] #tactics-pitch{
    border-radius:16px!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 8px 20px rgba(13,79,40,.13)!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench,
  html.sx-tablet-webapp body[data-page="tactics"] .tactics-bench,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench,
  body.sx-tablet-webapp[data-page="tactics"] .tactics-bench{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    margin-top:14px!important;
    padding:0!important;
  }
  .tactics-bench-heading{
    display:flex;align-items:flex-end;justify-content:space-between;gap:12px;
    padding:2px 2px 0;
  }
  .tactics-bench-heading strong{font-size:18px;font-weight:780;letter-spacing:-.025em;color:var(--text-main,var(--sx-ios-label))}
  .tactics-bench-heading span{font-size:10px;font-weight:560;color:var(--text-muted,var(--sx-ios-secondary));text-align:right}
  html.sx-phone-webapp body[data-page="tactics"] .bench-side,
  body.sx-phone-webapp[data-page="tactics"] .bench-side{
    min-width:0!important;padding:0!important;border:0!important;background:transparent!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .bench-title,
  body.sx-phone-webapp[data-page="tactics"] .bench-title{
    margin:0 0 7px 2px!important;color:var(--sx-ios-secondary)!important;
    font-size:10px!important;font-weight:760!important;letter-spacing:.07em!important;text-transform:uppercase!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-list,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-list{
    display:flex!important;align-items:flex-start!important;gap:10px!important;
    min-height:78px!important;max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important;
    padding:2px 2px 8px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-list::-webkit-scrollbar,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-list::-webkit-scrollbar{display:none!important}
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-tile,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-tile{
    flex:0 0 64px!important;width:64px!important;min-width:64px!important;min-height:74px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
    gap:5px!important;padding:4px 2px!important;border:0!important;border-radius:14px!important;
    background:transparent!important;box-shadow:none!important;color:var(--sx-ios-label)!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-tile-photo,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-tile-photo{
    width:48px!important;height:48px!important;flex:0 0 48px!important;border-radius:50%!important;
    border:2px solid rgba(255,255,255,.92)!important;background:var(--sx-ios-fill)!important;
    box-shadow:0 2px 9px rgba(38,54,94,.13)!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-tile-name,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-tile-name{
    width:64px!important;max-width:64px!important;font-size:9.5px!important;font-weight:620!important;line-height:1.1!important;
    text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-tile-btn,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-tile-btn{
    position:absolute!important;width:20px!important;height:20px!important;min-height:20px!important;
    right:0!important;top:0!important;border-radius:50%!important;padding:0!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 75%,transparent)!important;
    background:var(--sx-ios-surface)!important;box-shadow:0 2px 7px rgba(38,54,94,.12)!important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-tile,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-tile{position:relative!important}
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench .marker-tile-btn svg,
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench .marker-tile-btn svg{width:11px!important;height:11px!important}
  html.sx-phone-webapp body[data-page="tactics"] .tactics-bench [data-lock-player],
  body.sx-phone-webapp[data-page="tactics"] .tactics-bench [data-lock-player]{display:none!important}
  html.sx-phone-webapp body[data-page="tactics"] .marker-empty,
  body.sx-phone-webapp[data-page="tactics"] .marker-empty{
    padding:15px 12px!important;border-radius:13px!important;background:var(--sx-ios-fill)!important;color:var(--sx-ios-secondary)!important;font-size:11px!important;
  }
}

@media (max-width:390px){
  html.sx-phone-webapp .sx-parent-match-view-list .sx-match-compact-main,
  html.sx-phone-webapp .sx-parent-match-runtime-list .sx-match-compact-main{
    grid-template-columns:62px minmax(0,1fr) auto!important;gap:9px!important;
  }
  html.sx-phone-webapp .sx-match-compact-clubs{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:7px!important}
  html.sx-phone-webapp .sx-match-compact-logo{width:34px!important;height:34px!important}
  html.sx-phone-webapp .sx-match-compact-logo img{width:30px!important;height:30px!important}
}

/* v59 — fullscreen tactics = portrait presentation board + team strip + field menu */
@media (max-width: 991px) {
  body.tactics-field-focus-body #tactics-pitch-fs,
  #tactics-pitch-fs:fullscreen,
  #tactics-pitch-fs:-webkit-full-screen {
    background:
      radial-gradient(circle at 50% 18%, rgba(48,116,83,.22), transparent 38%),
      linear-gradient(180deg,#07100d 0%,#030807 100%) !important;
  }

  /* The old fullscreen dock is replaced by one clean dropdown on the field. */
  body.tactics-field-focus-body #tactics-pitch-fs [data-sx-board-tools],
  #tactics-pitch-fs:fullscreen [data-sx-board-tools],
  #tactics-pitch-fs:-webkit-full-screen [data-sx-board-tools] {
    display:none !important;
  }

  body.tactics-field-focus-body #tactics-pitch-fs .tactics-fs-options,
  #tactics-pitch-fs:fullscreen .tactics-fs-options,
  #tactics-pitch-fs:-webkit-full-screen .tactics-fs-options {
    display:block !important;
    position:fixed !important;
    top:max(14px, env(safe-area-inset-top)) !important;
    right:max(14px, env(safe-area-inset-right)) !important;
    z-index:10060 !important;
    width:min(224px, calc(100vw - 82px)) !important;
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif !important;
  }
  .tactics-fs-options { display:none; }
  .tactics-fs-options-toggle {
    margin-left:auto; min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px;
    padding:0 13px; border:.5px solid rgba(255,255,255,.28); border-radius:15px;
    color:#fff; background:rgba(30,31,34,.70); box-shadow:0 10px 30px rgba(0,0,0,.26);
    -webkit-backdrop-filter:blur(24px) saturate(175%); backdrop-filter:blur(24px) saturate(175%);
    font:650 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif;
  }
  .tactics-fs-options-toggle svg { width:17px; height:17px; }
  .tactics-fs-options-toggle svg:last-child { width:14px; height:14px; transition:transform .25s cubic-bezier(.22,.8,.24,1); }
  .tactics-fs-options.is-open .tactics-fs-options-toggle svg:last-child { transform:rotate(180deg); }
  .tactics-fs-options-menu {
    display:grid; grid-template-columns:1fr; gap:3px; margin-top:7px; padding:7px;
    max-height:min(55dvh,440px); overflow:auto; opacity:0; visibility:hidden; transform:translateY(-7px) scale(.985);
    border:.5px solid rgba(255,255,255,.22); border-radius:18px; background:rgba(27,28,31,.82);
    box-shadow:0 18px 45px rgba(0,0,0,.35); -webkit-backdrop-filter:blur(28px) saturate(180%); backdrop-filter:blur(28px) saturate(180%);
    transition:opacity .2s ease, transform .28s cubic-bezier(.22,.8,.24,1), visibility .2s;
  }
  .tactics-fs-options.is-open .tactics-fs-options-menu { opacity:1; visibility:visible; transform:translateY(0) scale(1); }
  .tactics-fs-options-menu button {
    min-height:40px; display:flex; align-items:center; gap:10px; padding:0 10px; border:0; border-radius:11px;
    color:#fff; background:transparent; font:600 12.5px/1.15 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif; text-align:left;
  }
  .tactics-fs-options-menu button:active { background:rgba(255,255,255,.12); transform:scale(.985); }
  .tactics-fs-options-menu button.is-danger { color:#ff918b; }
  .tactics-fs-options-menu button svg { width:17px; height:17px; flex:0 0 17px; }
  .tactics-fs-line-swatch { width:18px; height:0; flex:0 0 18px; border-top:2px solid #fff; }
  .tactics-fs-line-swatch.is-dashed { border-top-style:dashed; }

  /* Close sits opposite the options button, like a native presentation screen. */
  body.tactics-field-focus-body .tactics-exit-focus,
  #tactics-pitch-fs:fullscreen .tactics-exit-focus,
  #tactics-pitch-fs:-webkit-full-screen .tactics-exit-focus {
    top:max(14px, env(safe-area-inset-top)) !important;
    left:max(14px, env(safe-area-inset-left)) !important;
    right:auto !important;
    width:44px !important; height:44px !important; min-height:44px !important;
    border:.5px solid rgba(255,255,255,.28) !important; border-radius:15px !important;
    background:rgba(30,31,34,.70) !important; -webkit-backdrop-filter:blur(24px) saturate(175%); backdrop-filter:blur(24px) saturate(175%);
  }

  /* Keep the visual field portrait/upright, but reserve real room for the kids below. */
  @media (orientation: portrait) {
    body.tactics-field-focus-body #tactics-pitch-fs #tactics-pitch,
    #tactics-pitch-fs:fullscreen #tactics-pitch,
    #tactics-pitch-fs:-webkit-full-screen #tactics-pitch {
      --fs-len:min(calc(100dvh - 238px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc((100vw - 18px) * 5 / 3)) !important;
      top:calc(50% - 76px) !important;
      border-radius:16px !important;
      box-shadow:0 22px 60px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.20) !important;
    }
  }

  /* Team strip is visible in fullscreen and remains the real draggable roster. */
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-bench,
  #tactics-pitch-fs:fullscreen .tactics-bench,
  #tactics-pitch-fs:-webkit-full-screen .tactics-bench {
    display:grid !important; grid-template-columns:1fr 1fr !important; gap:8px !important;
    position:fixed !important; left:10px !important; right:10px !important;
    bottom:max(10px,env(safe-area-inset-bottom)) !important; z-index:10045 !important;
    height:132px !important; margin:0 !important; padding:10px 10px 8px !important;
    overflow:hidden !important; border:.5px solid rgba(255,255,255,.20) !important; border-radius:22px !important;
    background:rgba(24,25,28,.72) !important; color:#fff !important;
    box-shadow:0 16px 46px rgba(0,0,0,.30) !important; -webkit-backdrop-filter:blur(26px) saturate(175%); backdrop-filter:blur(26px) saturate(175%);
  }
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-bench-heading,
  #tactics-pitch-fs:fullscreen .tactics-bench-heading,
  #tactics-pitch-fs:-webkit-full-screen .tactics-bench-heading {
    grid-column:1/-1 !important; height:22px !important; min-height:22px !important; padding:0 2px !important; align-items:center !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-bench-heading strong,
  #tactics-pitch-fs:fullscreen .tactics-bench-heading strong,
  #tactics-pitch-fs:-webkit-full-screen .tactics-bench-heading strong { color:#fff !important; font-size:13px !important; font-weight:720 !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-bench-heading span,
  #tactics-pitch-fs:fullscreen .tactics-bench-heading span,
  #tactics-pitch-fs:-webkit-full-screen .tactics-bench-heading span { color:rgba(255,255,255,.55) !important; font-size:9px !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .bench-side,
  #tactics-pitch-fs:fullscreen .bench-side,
  #tactics-pitch-fs:-webkit-full-screen .bench-side { min-width:0 !important; padding:0 !important; background:transparent !important; border:0 !important; overflow:hidden !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .bench-title,
  #tactics-pitch-fs:fullscreen .bench-title,
  #tactics-pitch-fs:-webkit-full-screen .bench-title { margin:0 0 4px 2px !important; color:rgba(255,255,255,.52) !important; font-size:8px !important; font-weight:720 !important; letter-spacing:.07em !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .marker-list,
  #tactics-pitch-fs:fullscreen .marker-list,
  #tactics-pitch-fs:-webkit-full-screen .marker-list {
    display:flex !important; align-items:flex-start !important; gap:5px !important; min-height:72px !important; max-height:72px !important;
    overflow-x:auto !important; overflow-y:hidden !important; padding:1px 1px 5px !important; scrollbar-width:none !important; -webkit-overflow-scrolling:touch !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .marker-list::-webkit-scrollbar,
  #tactics-pitch-fs:fullscreen .marker-list::-webkit-scrollbar,
  #tactics-pitch-fs:-webkit-full-screen .marker-list::-webkit-scrollbar { display:none !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .marker-tile,
  #tactics-pitch-fs:fullscreen .marker-tile,
  #tactics-pitch-fs:-webkit-full-screen .marker-tile {
    flex:0 0 50px !important; width:50px !important; min-width:50px !important; min-height:66px !important; padding:1px !important; gap:3px !important;
    color:#fff !important; background:transparent !important; border:0 !important; box-shadow:none !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .marker-tile-photo,
  #tactics-pitch-fs:fullscreen .marker-tile-photo,
  #tactics-pitch-fs:-webkit-full-screen .marker-tile-photo { width:43px !important; height:43px !important; flex-basis:43px !important; border:2px solid rgba(255,255,255,.88) !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .marker-tile-name,
  #tactics-pitch-fs:fullscreen .marker-tile-name,
  #tactics-pitch-fs:-webkit-full-screen .marker-tile-name { width:50px !important; max-width:50px !important; color:rgba(255,255,255,.88) !important; font-size:8px !important; font-weight:620 !important; }
  body.tactics-field-focus-body #tactics-pitch-fs .marker-tile-btn,
  #tactics-pitch-fs:fullscreen .marker-tile-btn,
  #tactics-pitch-fs:-webkit-full-screen .marker-tile-btn { width:18px !important; height:18px !important; min-height:18px !important; background:rgba(31,32,35,.9) !important; border-color:rgba(255,255,255,.25) !important; color:#fff !important; }

  @media (max-width:390px) {
    body.tactics-field-focus-body #tactics-pitch-fs .tactics-bench,
    #tactics-pitch-fs:fullscreen .tactics-bench,
    #tactics-pitch-fs:-webkit-full-screen .tactics-bench { height:124px !important; padding-left:8px !important; padding-right:8px !important; }
    body.tactics-field-focus-body #tactics-pitch-fs .marker-tile,
    #tactics-pitch-fs:fullscreen .marker-tile,
    #tactics-pitch-fs:-webkit-full-screen .marker-tile { flex-basis:46px !important; width:46px !important; min-width:46px !important; }
  }
}

/* v60 — standalone team tactics board from the Tactiekbord menu */
@media (max-width: 991px) {
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-context-group,
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-match-group,
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-events-card,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-context-group,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-match-group,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-events-card {
    display:none !important;
  }

  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .card-header,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .card-header {
    padding-bottom:12px !important;
  }

  .tactics-standalone-switch {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:3px;
    padding:4px;
    margin:0 0 12px;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 55%,transparent);
    border-radius:15px;
    background:color-mix(in srgb,var(--sx-ios-surface-2) 92%,transparent);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
  }
  .tactics-standalone-switch button {
    min-height:42px;
    border:0;
    border-radius:11px;
    background:transparent;
    color:var(--sx-ios-text-2);
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif;
    font-size:14px;
    font-weight:670;
    letter-spacing:-.01em;
    transition:background .22s ease,color .22s ease,box-shadow .22s ease,transform .16s ease;
  }
  .tactics-standalone-switch button:active { transform:scale(.985); }
  .tactics-standalone-switch button.is-active {
    color:var(--sx-ios-accent);
    background:var(--sx-ios-surface);
    box-shadow:0 2px 9px rgba(39,76,135,.10), inset 0 0 0 .5px rgba(120,137,163,.16);
  }

  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-toolbar,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-toolbar {
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
    margin-bottom:12px !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-view-group,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-view-group {
    order:1;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-tools,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-tools {
    order:2;
    margin:0 !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone #tactics-save,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone #tactics-save {
    display:none !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone #tactics-save-team,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone #tactics-save-team {
    background:linear-gradient(180deg,#2396ff,#087df1) !important;
    border-color:transparent !important;
    color:#fff !important;
  }

  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-layout,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-layout {
    display:block !important;
  }
  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-pitch-card,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-pitch-card {
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }

  html.sx-phone-webapp body[data-page="tactics"] .tactics-standalone .tactics-team-roster,
  body.sx-phone-webapp[data-page="tactics"] .tactics-standalone .tactics-team-roster {
    display:block !important;
    padding:13px 12px 10px !important;
    margin-top:10px !important;
    border-radius:18px !important;
  }
  .tactics-standalone .standalone-team-roster {
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
  }
  .tactics-standalone .standalone-team-roster .marker-list {
    display:flex !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:100% !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:3px 1px 6px !important;
    scrollbar-width:none !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .tactics-standalone .standalone-team-roster .marker-list::-webkit-scrollbar { display:none !important; }
  .tactics-standalone .team-roster-tile {
    flex:0 0 58px !important;
    width:58px !important;
    min-width:58px !important;
    min-height:76px !important;
    position:relative !important;
    padding:2px 1px !important;
    gap:4px !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  .tactics-standalone .team-roster-tile .marker-tile-photo {
    width:52px !important;
    height:52px !important;
    flex-basis:52px !important;
    border:2px solid rgba(255,255,255,.95) !important;
    box-shadow:0 4px 11px rgba(23,45,82,.12) !important;
  }
  .tactics-standalone .team-roster-tile.is-on-field .marker-tile-photo {
    box-shadow:0 0 0 2px color-mix(in srgb,var(--sx-ios-accent) 72%,transparent), 0 4px 11px rgba(23,45,82,.12) !important;
  }
  .tactics-standalone .team-roster-tile .marker-tile-name {
    width:58px !important;
    max-width:58px !important;
    font-size:9.5px !important;
    font-weight:650 !important;
    line-height:1.12 !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .tactics-standalone .team-roster-state {
    position:absolute;
    top:43px;
    right:0;
    padding:2px 4px;
    border-radius:7px;
    color:#fff;
    background:#1687f8;
    border:1.5px solid #fff;
    font-size:7px;
    font-weight:750;
    line-height:1;
  }

  /* One simple team strip in standalone fullscreen; same real draggable nodes. */
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-team-roster,
  #tactics-pitch-fs:fullscreen .tactics-team-roster,
  #tactics-pitch-fs:-webkit-full-screen .tactics-team-roster {
    grid-template-columns:1fr !important;
    height:126px !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .standalone-team-roster,
  #tactics-pitch-fs:fullscreen .standalone-team-roster,
  #tactics-pitch-fs:-webkit-full-screen .standalone-team-roster {
    grid-column:1/-1 !important;
    width:100% !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .standalone-team-roster .marker-list,
  #tactics-pitch-fs:fullscreen .standalone-team-roster .marker-list,
  #tactics-pitch-fs:-webkit-full-screen .standalone-team-roster .marker-list {
    max-height:82px !important;
    min-height:82px !important;
  }
}

/* v61 — coach list parity + standalone tactics isolation */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  /* Coach Wedstrijden list uses the exact same compact visual language as parent. */
  html.sx-phone-webapp .sx-match-view-list .sx-match-compact-row,
  html.sx-tablet-webapp .sx-match-view-list .sx-match-compact-row{
    min-height:104px!important;
    border-radius:18px!important;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 68%,transparent)!important;
    background:color-mix(in srgb,var(--sx-ios-surface) 94%,transparent)!important;
    box-shadow:0 7px 24px rgba(49,66,114,.065)!important;
  }
  html.sx-phone-webapp .sx-match-view-list .sx-match-compact-main,
  html.sx-tablet-webapp .sx-match-view-list .sx-match-compact-main{
    grid-template-columns:68px minmax(0,1fr) auto!important;
    gap:12px!important;
    min-height:104px!important;
    padding:12px 46px 12px 10px!important;
    align-items:center!important;
  }
  .sx-coach-match-compact-row{position:relative!important;overflow:visible!important}
  .sx-coach-compact-menu{position:absolute!important;right:8px!important;top:8px!important;z-index:5!important}
  .sx-coach-compact-more{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
    display:grid!important;place-items:center!important;border:0!important;border-radius:11px!important;
    background:color-mix(in srgb,var(--sx-ios-surface-2) 88%,transparent)!important;
    color:var(--sx-ios-text-2)!important;box-shadow:inset 0 0 0 .5px color-mix(in srgb,var(--sx-ios-separator) 65%,transparent)!important;
  }
  .sx-coach-compact-more svg{width:18px!important;height:18px!important}
  .sx-coach-compact-menu .dropdown-menu{right:0!important;left:auto!important;top:39px!important;min-width:178px!important;z-index:30!important}

  /* The menu Tactiekbord is a pure board. No match/event surfaces may leak in. */
  body[data-page="tactics"] .tactics-standalone .tactics-events-card,
  body[data-page="tactics"] .tactics-standalone .sx-mobile-match-stats-first,
  body[data-page="tactics"] .tactics-standalone .sx-mobile-match-timeline,
  body[data-page="tactics"] .tactics-standalone .sx-mobile-match-actions,
  body[data-page="tactics"] .tactics-standalone .sx-mobile-clock-card,
  body[data-page="tactics"] .tactics-standalone .sx-mobile-tactics-toggle{
    display:none!important;
  }

  /* Fullscreen option menu stays usable while the coach changes tools. */
  #tactics-pitch-fs .tactics-fs-options-menu [data-tactics-fs-action].is-active{
    color:#0a84ff!important;
    background:rgba(10,132,255,.12)!important;
  }
}

/* v62 — coach fixture list stability + icon parity */
@media (max-width: 820px), (any-pointer: coarse) and (max-width: 1600px) {
  html.sx-phone-webapp .sx-match-view-list .sx-coach-match-compact-row,
  html.sx-tablet-webapp .sx-match-view-list .sx-coach-match-compact-row{
    min-height:100px!important;
    overflow:visible!important;
  }
  html.sx-phone-webapp .sx-match-view-list .sx-coach-match-compact-row .sx-match-compact-main,
  html.sx-tablet-webapp .sx-match-view-list .sx-coach-match-compact-row .sx-match-compact-main{
    width:100%!important;
    display:grid!important;
    grid-template-columns:60px minmax(0,1fr) 58px!important;
    gap:10px!important;
    min-height:100px!important;
    padding:11px 10px!important;
    align-items:center!important;
    box-sizing:border-box!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-date,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-date{
    min-width:0!important;
    padding-right:8px!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-clubs,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-clubs{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:32px minmax(0,1fr) 32px!important;
    gap:7px!important;
    align-items:center!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-copy,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-copy{
    min-width:0!important;
    width:100%!important;
    overflow:hidden!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-copy small,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-copy small{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:8px!important;
    line-height:1.2!important;
    letter-spacing:.045em!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-copy strong,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-copy strong{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:11px!important;
    line-height:1.25!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-copy>span,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-copy>span{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-score,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-score{
    min-width:0!important;
    width:58px!important;
    padding-right:0!important;
    justify-content:flex-end!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-row .sx-match-compact-score .btn-ico,
  html.sx-tablet-webapp .sx-coach-match-compact-row .sx-match-compact-score .btn-ico{
    width:18px!important;height:18px!important;
    flex:0 0 18px!important;
  }
  html.sx-phone-webapp .sx-coach-match-compact-menu,
  html.sx-tablet-webapp .sx-coach-match-compact-menu{
    right:7px!important;
    top:auto!important;
    bottom:7px!important;
  }
  html.sx-phone-webapp .sx-coach-compact-more,
  html.sx-tablet-webapp .sx-coach-compact-more{
    width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
    border-radius:10px!important;
  }
  html.sx-phone-webapp .sx-coach-compact-menu .dropdown-menu,
  html.sx-tablet-webapp .sx-coach-compact-menu .dropdown-menu{
    top:auto!important;bottom:36px!important;
  }
}

/* v63 — truly standalone tactics presentation mode */
@media (max-width: 991px) {
  /* Fullscreen is a pure black presentation canvas. */
  body.tactics-field-focus-body #tactics-pitch-fs,
  #tactics-pitch-fs:fullscreen,
  #tactics-pitch-fs:-webkit-full-screen {
    background:#000 !important;
  }

  /* Standalone fullscreen: only the pitch, top tool dropdown and bottom player picker. */
  body.tactics-field-focus-body .tactics-standalone #tactics-pitch-fs .tactics-bench,
  .tactics-standalone #tactics-pitch-fs:fullscreen .tactics-bench,
  .tactics-standalone #tactics-pitch-fs:-webkit-full-screen .tactics-bench {
    display:none !important;
  }

  body.tactics-field-focus-body .tactics-standalone #tactics-pitch-fs #tactics-pitch,
  .tactics-standalone #tactics-pitch-fs:fullscreen #tactics-pitch,
  .tactics-standalone #tactics-pitch-fs:-webkit-full-screen #tactics-pitch {
    --fs-len:min(calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), calc((100vw - 18px) * 5 / 3)) !important;
    top:50% !important;
    border-radius:18px !important;
    box-shadow:0 24px 70px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.22) !important;
  }

  /* Center the options control above the field. */
  body.tactics-field-focus-body .tactics-standalone #tactics-pitch-fs .tactics-fs-options,
  .tactics-standalone #tactics-pitch-fs:fullscreen .tactics-fs-options,
  .tactics-standalone #tactics-pitch-fs:-webkit-full-screen .tactics-fs-options {
    top:max(14px, env(safe-area-inset-top)) !important;
    left:50% !important;
    right:auto !important;
    width:min(230px, calc(100vw - 128px)) !important;
    transform:translateX(-50%) !important;
  }
  body.tactics-field-focus-body .tactics-standalone .tactics-fs-options-toggle,
  .tactics-standalone #tactics-pitch-fs:fullscreen .tactics-fs-options-toggle,
  .tactics-standalone #tactics-pitch-fs:-webkit-full-screen .tactics-fs-options-toggle {
    width:100% !important;
    justify-content:space-between !important;
    border-color:rgba(255,255,255,.20) !important;
    background:rgba(22,22,24,.90) !important;
    box-shadow:0 12px 36px rgba(0,0,0,.52) !important;
  }

  .tactics-fs-players { display:none; }
  body.tactics-field-focus-body .tactics-standalone #tactics-pitch-fs .tactics-fs-players,
  .tactics-standalone #tactics-pitch-fs:fullscreen .tactics-fs-players,
  .tactics-standalone #tactics-pitch-fs:-webkit-full-screen .tactics-fs-players {
    display:block !important;
    position:fixed !important;
    left:50% !important;
    bottom:max(14px, env(safe-area-inset-bottom)) !important;
    z-index:10062 !important;
    width:min(360px, calc(100vw - 28px)) !important;
    transform:translateX(-50%) !important;
    font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Helvetica Neue",Inter,Arial,sans-serif !important;
  }
  .tactics-fs-players-toggle {
    width:100%; min-height:50px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px;
    padding:0 15px; border:.5px solid rgba(255,255,255,.22); border-radius:17px;
    color:#fff; background:rgba(22,22,24,.92); box-shadow:0 14px 38px rgba(0,0,0,.55);
    -webkit-backdrop-filter:blur(25px) saturate(170%); backdrop-filter:blur(25px) saturate(170%);
    font:650 14px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Arial,sans-serif; text-align:left;
  }
  .tactics-fs-players-toggle svg { width:18px; height:18px; }
  .tactics-fs-players-toggle svg:last-child { width:14px; height:14px; transform:rotate(180deg); transition:transform .24s cubic-bezier(.22,.8,.24,1); }
  .tactics-fs-players.is-open .tactics-fs-players-toggle svg:last-child { transform:rotate(0deg); }
  .tactics-fs-players-menu {
    position:absolute; left:0; right:0; bottom:58px; display:grid; gap:4px; max-height:min(42dvh,360px); overflow:auto;
    padding:7px; border:.5px solid rgba(255,255,255,.20); border-radius:19px;
    background:rgba(18,18,20,.96); box-shadow:0 18px 48px rgba(0,0,0,.64);
    -webkit-backdrop-filter:blur(28px) saturate(170%); backdrop-filter:blur(28px) saturate(170%);
    opacity:0; visibility:hidden; transform:translateY(8px) scale(.985); transform-origin:bottom center;
    transition:opacity .18s ease, transform .24s cubic-bezier(.22,.8,.24,1), visibility .18s;
    scrollbar-width:none;
  }
  .tactics-fs-players-menu::-webkit-scrollbar { display:none; }
  .tactics-fs-players.is-open .tactics-fs-players-menu { opacity:1; visibility:visible; transform:none; }
  .tactics-fs-players-menu > button {
    width:100%; min-height:54px; display:grid; grid-template-columns:42px minmax(0,1fr) 22px; align-items:center; gap:10px;
    padding:6px 9px; border:0; border-radius:13px; background:transparent; color:#fff; text-align:left;
  }
  .tactics-fs-players-menu > button:active { background:rgba(255,255,255,.10); transform:scale(.99); }
  .tactics-fs-players-menu > button.is-on-field { background:rgba(10,132,255,.11); }
  .tactics-fs-player-avatar { width:42px; height:42px; display:grid; place-items:center; overflow:hidden; border-radius:50%; background:#2c2c2e; border:1px solid rgba(255,255,255,.18); font-weight:750; }
  .tactics-fs-player-avatar img { width:100%; height:100%; object-fit:cover; }
  .tactics-fs-player-copy { min-width:0; display:grid; gap:2px; }
  .tactics-fs-player-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:680; }
  .tactics-fs-player-copy small { color:rgba(255,255,255,.55); font-size:10px; font-weight:550; }
  .tactics-fs-players-menu > button > svg { width:18px; height:18px; color:#0a84ff; }

  /* Keep standalone normal view free of match/event chrome on every app-sized screen. */
  body[data-page="tactics"] .tactics-standalone .tactics-context-group,
  body[data-page="tactics"] .tactics-standalone .tactics-match-group,
  body[data-page="tactics"] .tactics-standalone .tactics-events-card,
  body[data-page="tactics"] .tactics-standalone [data-sx-match-actions] {
    display:none !important;
  }
}

/* v65 — tactics: restore the normal in-app board, fullscreen stays edge-to-edge */
@media (max-width: 991px) {
  /* Fullscreen presentation: true black canvas behind the pitch. */
  body.tactics-field-focus-body,
  body.tactics-field-focus-body #tactics-pitch-fs,
  #tactics-pitch-fs:fullscreen,
  #tactics-pitch-fs:-webkit-full-screen {
    background:#000 !important;
  }

  /* The regular Tactiekbord page uses the original v63 sizing/layout again.
     Only fullscreen gets the edge-to-edge pitch treatment below. */
  html.sx-phone-webapp .tactics-pitch-card,
  html.sx-tablet-webapp .tactics-pitch-card {
    max-width:100% !important;
  }

  /* In portrait the rotated pitch fills the complete device width. */
  body.tactics-field-focus-body #tactics-pitch-fs #tactics-pitch,
  #tactics-pitch-fs:fullscreen #tactics-pitch,
  #tactics-pitch-fs:-webkit-full-screen #tactics-pitch {
    --fs-len:min(
      calc(100vw * 5 / 3),
      calc(100dvh - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom))
    ) !important;
    left:50% !important;
    top:50% !important;
    width:var(--fs-len) !important;
    min-width:var(--fs-len) !important;
    max-width:var(--fs-len) !important;
    height:calc(var(--fs-len) * 3 / 5) !important;
    min-height:calc(var(--fs-len) * 3 / 5) !important;
    max-height:calc(var(--fs-len) * 3 / 5) !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }

  /* Fullscreen remains pitch + options + player picker for standalone and match tactics. */
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-bench,
  #tactics-pitch-fs:fullscreen .tactics-bench,
  #tactics-pitch-fs:-webkit-full-screen .tactics-bench {
    display:none !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-fs-players,
  #tactics-pitch-fs:fullscreen .tactics-fs-players,
  #tactics-pitch-fs:-webkit-full-screen .tactics-fs-players {
    display:block !important;
    position:fixed !important;
    left:8px !important;
    right:8px !important;
    bottom:max(8px, env(safe-area-inset-bottom)) !important;
    z-index:10062 !important;
    width:auto !important;
    transform:none !important;
  }

  /* Player-size control stays visible on the normal board. */
  .tactics-player-size-inline {
    display:grid;
    grid-template-columns:auto minmax(120px,1fr);
    align-items:center;
    gap:12px;
    margin:0 0 12px;
    padding:10px 12px;
    border:1px solid color-mix(in srgb,var(--sx-ios-separator) 58%,transparent);
    border-radius:15px;
    background:color-mix(in srgb,var(--sx-ios-surface-2) 92%,transparent);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
  }
  .tactics-player-size-inline > span {
    display:flex;
    align-items:center;
    gap:7px;
    color:var(--sx-ios-text-1);
    white-space:nowrap;
    font:650 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",Inter,Arial,sans-serif;
  }
  .tactics-player-size-inline > span svg { width:17px;height:17px;color:var(--sx-ios-accent); }
  .tactics-player-size-inline input[type="range"] { width:100%; margin:0; accent-color:var(--sx-ios-accent); }

  /* Same top options control in fullscreen, independent of match context. */
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-fs-options,
  #tactics-pitch-fs:fullscreen .tactics-fs-options,
  #tactics-pitch-fs:-webkit-full-screen .tactics-fs-options {
    top:max(10px, env(safe-area-inset-top)) !important;
    left:50% !important;
    right:auto !important;
    width:min(300px, calc(100vw - 116px)) !important;
    transform:translateX(-50%) !important;
    z-index:10064 !important;
  }
  body.tactics-field-focus-body #tactics-pitch-fs .tactics-fs-options-toggle,
  #tactics-pitch-fs:fullscreen .tactics-fs-options-toggle,
  #tactics-pitch-fs:-webkit-full-screen .tactics-fs-options-toggle {
    width:100% !important;
    justify-content:space-between !important;
    background:rgba(22,22,24,.92) !important;
    border-color:rgba(255,255,255,.20) !important;
  }

  /* Tables only: headers and values align from the left. */
  html.sx-phone-webapp table th,
  html.sx-phone-webapp table td,
  html.sx-tablet-webapp table th,
  html.sx-tablet-webapp table td,
  html.sx-phone-webapp .table th,
  html.sx-phone-webapp .table td,
  html.sx-tablet-webapp .table th,
  html.sx-tablet-webapp .table td {
    text-align:left !important;
  }
  html.sx-phone-webapp table th > *,
  html.sx-phone-webapp table td > *,
  html.sx-tablet-webapp table th > *,
  html.sx-tablet-webapp table td > * {
    margin-left:0 !important;
    text-align:left !important;
  }
}

/* v66 — force tactics focus/fullscreen canvas to the real device viewport width.
   Some iOS/PWA app-shell ancestors establish a containing block for fixed elements;
   the negative half-difference recenters the 100dvw canvas so no light gutters remain. */
@media (max-width: 991px) {
  html:has(body.tactics-field-focus-body),
  html:has(body.tactics-field-focus-body) body,
  body.tactics-field-focus-body,
  body.tactics-field-focus-body .sx-layout,
  body.tactics-field-focus-body .sx-main,
  body.tactics-field-focus-body .sx-content,
  body.tactics-field-focus-body .sx-view {
    background:#000 !important;
  }

  body.tactics-field-focus-body #tactics-pitch-fs,
  #tactics-pitch-fs:fullscreen,
  #tactics-pitch-fs:-webkit-full-screen {
    box-sizing:border-box !important;
    position:fixed !important;
    left:0 !important;
    right:auto !important;
    top:0 !important;
    bottom:auto !important;
    width:100dvw !important;
    min-width:100dvw !important;
    max-width:none !important;
    height:100dvh !important;
    min-height:100dvh !important;
    max-height:none !important;
    margin:0 !important;
    margin-left:calc((100% - 100dvw) / 2) !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    overflow:hidden !important;
    background:#000 !important;
  }

  /* Field itself uses almost the complete physical width while retaining a tiny safety inset. */
  body.tactics-field-focus-body #tactics-pitch-fs #tactics-pitch,
  #tactics-pitch-fs:fullscreen #tactics-pitch,
  #tactics-pitch-fs:-webkit-full-screen #tactics-pitch {
    --fs-len:min(
      calc((100dvw - 4px) * 5 / 3),
      calc(100dvh - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom))
    ) !important;
  }
}

/* ========================================================================
   v73 — native app components inside the existing desktop admin structure.
   The shell/navigation stays desktop-admin; match/training content now uses
   the same visual vocabulary as phone/tablet.
   ======================================================================== */
@media (min-width:821px) and (pointer:fine){
  /* Coach/admin wedstrijden: grid/list is the primary desktop presentation. */
  html:not(.sx-phone-webapp) .sx-desktop-match-table{display:none!important}
  html:not(.sx-phone-webapp) .sx-mobile-match-views.is-grid .sx-match-view-grid{display:grid!important}
  html:not(.sx-phone-webapp) .sx-mobile-match-views.is-grid .sx-match-view-list{display:none!important}
  html:not(.sx-phone-webapp) .sx-mobile-match-views.is-list .sx-match-view-grid{display:none!important}
  html:not(.sx-phone-webapp) .sx-mobile-match-views.is-list .sx-match-view-list{display:grid!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%;min-width:0}
  html:not(.sx-phone-webapp) .sx-mobile-match-compact-list{gap:8px;width:100%;min-width:0}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-card{position:relative;overflow:hidden;width:100%;min-width:0;border:1px solid color-mix(in srgb,var(--border-subtle) 82%,transparent);border-radius:22px;background:radial-gradient(120% 95% at 100% 0%,rgba(83,98,213,.11),transparent 55%),linear-gradient(150deg,color-mix(in srgb,var(--bg-card) 96%,transparent),color-mix(in srgb,var(--bg-subtle) 72%,var(--bg-card)));box-shadow:0 10px 30px rgba(38,58,110,.07)}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-card>*{position:relative;z-index:1}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-head{display:flex;align-items:center;justify-content:space-between;padding:13px 16px 7px}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-date{display:inline-flex;align-items:center;gap:5px;color:var(--text-muted);font-size:11px;font-weight:720;letter-spacing:.025em}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-date b{color:var(--primary);font-weight:820}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kind{padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--primary) 10%,transparent);color:var(--primary);font-size:10px;font-weight:760}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-teams{display:grid;grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);align-items:start;gap:8px;padding:8px 15px 14px}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-team{display:flex;min-width:0;flex-direction:column;align-items:center;gap:7px;text-align:center}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-team img,html:not(.sx-phone-webapp) .sx-mobile-fixture-fallback{width:60px;height:60px;object-fit:contain;border:1px solid rgba(15,23,42,.055);border-radius:17px;padding:5px;background:#fff;box-shadow:0 6px 18px rgba(42,60,105,.08)}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-fallback{display:grid;place-items:center;padding:0;background:linear-gradient(145deg,#5ac8fa,#5362d5);color:#fff;font-size:22px;font-weight:850}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-team strong{width:100%;overflow:hidden;font-size:12.5px;font-weight:760;line-height:1.2;letter-spacing:-.02em;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kick{display:flex;flex-direction:column;align-items:center;padding-top:15px}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kick strong{font-size:20px;line-height:1;font-weight:790;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kick span{margin-top:5px;color:var(--text-muted);font-size:9px;font-weight:650}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0 12px;padding:10px 11px;border:1px solid color-mix(in srgb,var(--border-subtle) 70%,transparent);border-radius:15px;background:color-mix(in srgb,var(--bg-subtle) 74%,transparent)}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-location{display:flex;align-items:center;gap:7px;min-width:0;color:var(--text-muted);font-size:11px;font-weight:600}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-location .btn-ico{width:15px;height:15px;flex:0 0 auto;color:var(--primary)}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-location span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html:not(.sx-phone-webapp) .sx-mobile-weather{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:88px;color:var(--text-muted)}
  html:not(.sx-phone-webapp) .sx-mobile-weather .sx-weather-icon{display:grid;width:27px;height:27px;place-items:center;color:#f59e0b}
  html:not(.sx-phone-webapp) .sx-mobile-weather .sx-weather-svg{width:27px;height:27px}
  html:not(.sx-phone-webapp) .sx-mobile-weather>span{display:flex;flex-direction:column;align-items:flex-end;line-height:1}
  html:not(.sx-phone-webapp) .sx-mobile-weather>strong,html:not(.sx-phone-webapp) .sx-mobile-weather>span>strong{color:var(--text-main);font-size:17px;font-weight:780;letter-spacing:-.04em}
  html:not(.sx-phone-webapp) .sx-mobile-weather small{max-width:110px;margin-top:3px;overflow:hidden;color:var(--text-muted);font-size:8.7px;font-weight:610;text-overflow:ellipsis;white-space:nowrap}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-story{margin:2px 13px 4px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--primary) 12%,var(--border-subtle));border-radius:13px;background:color-mix(in srgb,var(--primary) 5%,var(--bg-card));font-size:11px;font-weight:620;line-height:1.35}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-actions{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 42px;gap:7px;padding:11px 12px 12px}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-actions a,html:not(.sx-phone-webapp) .sx-mobile-fixture-actions button{display:flex;min-width:0;height:38px;align-items:center;justify-content:center;border:0;border-radius:11px;background:var(--bg-subtle);color:var(--text-main);font:inherit;font-size:10.5px;font-weight:720;text-decoration:none}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-actions .sx-mobile-fixture-open{background:linear-gradient(135deg,#6675f6,#5362d5);box-shadow:0 5px 14px rgba(83,98,213,.18);color:#fff}

  /* Compact desktop list. */
  html:not(.sx-phone-webapp) .sx-match-compact-row{width:100%;min-width:0;overflow:hidden;border:1px solid var(--border-subtle);border-radius:15px;background:var(--bg-card)}
  html:not(.sx-phone-webapp) .sx-match-compact-row.is-next-match{border-color:color-mix(in srgb,var(--primary) 30%,var(--border-subtle));box-shadow:0 6px 18px color-mix(in srgb,var(--primary) 7%,transparent)}
  html:not(.sx-phone-webapp) .sx-match-compact-main{display:grid;grid-template-columns:72px minmax(0,1fr) 92px;align-items:center;gap:12px;min-width:0;padding:10px 13px;color:inherit;text-decoration:none}
  html:not(.sx-phone-webapp) .sx-match-compact-date{display:flex;min-height:50px;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid var(--border-subtle);line-height:1.05}
  html:not(.sx-phone-webapp) .sx-match-compact-date b{color:var(--primary);font-size:8.5px;font-weight:850;letter-spacing:.05em}
  html:not(.sx-phone-webapp) .sx-match-compact-date strong{margin-top:3px;font-size:11px;font-weight:800;text-transform:uppercase}
  html:not(.sx-phone-webapp) .sx-match-compact-date span{margin-top:4px;color:var(--text-muted);font-size:9.5px;font-weight:700;font-variant-numeric:tabular-nums}
  html:not(.sx-phone-webapp) .sx-match-compact-clubs{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:10px;min-width:0}
  html:not(.sx-phone-webapp) .sx-match-compact-logo{display:grid;width:36px;height:36px;place-items:center;overflow:hidden;border:1px solid rgba(15,23,42,.05);border-radius:10px;background:#fff}
  html:not(.sx-phone-webapp) .sx-match-compact-logo img{display:block;width:31px;height:31px;object-fit:contain}
  html:not(.sx-phone-webapp) .sx-match-compact-logo i{display:grid;width:100%;height:100%;place-items:center;background:linear-gradient(145deg,#5ac8fa,#5362d5);color:#fff;font-style:normal;font-size:12px;font-weight:850}
  html:not(.sx-phone-webapp) .sx-match-compact-copy{min-width:0}
  html:not(.sx-phone-webapp) .sx-match-compact-copy small{display:block;margin-bottom:2px;color:var(--primary);font-size:8px;font-weight:850;letter-spacing:.055em}
  html:not(.sx-phone-webapp) .sx-match-compact-copy strong{display:block;overflow:hidden;font-size:11.5px;font-weight:790;line-height:1.22;text-overflow:ellipsis;white-space:nowrap}
  html:not(.sx-phone-webapp) .sx-match-compact-copy strong em{color:var(--text-muted);font-style:normal;font-weight:600}
  html:not(.sx-phone-webapp) .sx-match-compact-copy span{display:block;margin-top:3px;overflow:hidden;color:var(--text-muted);font-size:9px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
  html:not(.sx-phone-webapp) .sx-match-compact-score{display:flex;min-width:70px;align-items:center;justify-content:flex-end;gap:6px;color:var(--text-muted)}
  html:not(.sx-phone-webapp) .sx-match-compact-score>strong{font-size:12px;font-weight:820;white-space:nowrap;font-variant-numeric:tabular-nums}
  html:not(.sx-phone-webapp) .sx-match-compact-score>b{display:grid;width:21px;height:21px;place-items:center;border-radius:7px;font-size:8px;font-weight:900}
  html:not(.sx-phone-webapp) .sx-match-compact-score>b.is-win{background:rgba(34,197,94,.13);color:#16a34a}
  html:not(.sx-phone-webapp) .sx-match-compact-score>b.is-loss{background:rgba(239,68,68,.12);color:#dc2626}
  html:not(.sx-phone-webapp) .sx-match-compact-score>b.is-draw{background:rgba(245,158,11,.14);color:#d97706}
  html:not(.sx-phone-webapp) .sx-match-compact-score .btn-ico{width:14px;height:14px}

  /* Coach training cards: location/weather and actions are no longer hidden on desktop. */
  html:not(.sx-phone-webapp) .sx-training-plan-weather-card{height:auto!important;min-height:0!important;padding:15px!important;border:1px solid var(--border-subtle)!important;border-radius:18px!important;background:var(--bg-card)!important;box-shadow:0 7px 22px rgba(15,23,42,.04)!important}
  html:not(.sx-phone-webapp) .sx-training-weather-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;width:100%!important;min-width:0!important;margin:10px 0 4px!important;padding:9px 11px!important;border:1px solid color-mix(in srgb,var(--border-subtle) 72%,transparent)!important;border-radius:14px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--bg-subtle) 78%,var(--bg-card)),color-mix(in srgb,var(--primary) 6%,var(--bg-card)))!important}
  html:not(.sx-phone-webapp) .sx-training-weather-place{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;color:var(--text-muted)!important;font-size:10.5px!important;font-weight:650!important}
  html:not(.sx-phone-webapp) .sx-training-weather-place .btn-ico{width:15px!important;height:15px!important;flex:0 0 auto!important;color:var(--primary)!important}
  html:not(.sx-phone-webapp) .sx-training-weather-place>span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  html:not(.sx-phone-webapp) .sx-training-plan-weather-card .li-actions{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important;margin-top:10px!important}
  html:not(.sx-phone-webapp) .sx-training-plan-weather-card .li-actions .btn{min-height:34px!important;border-radius:10px!important}
}
@media(min-width:1280px) and (pointer:fine){html:not(.sx-phone-webapp) .sx-mobile-fixture-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ========================================================================
   v75 — multi-child parent switcher.
   v55 intentionally hid the old single-child chip on phone/tablet. Keep that
   behaviour for one child, but when an account has 2+ approved children the
   selector is a real navigation control and must stay visible on the parent
   dashboard, training and match views.
   ======================================================================== */
@media (max-width:1400px) {
  html.sx-phone-webapp .sx-parent-portal > .sx-parent-children:has(> button + button),
  html.sx-tablet-webapp .sx-parent-portal > .sx-parent-children:has(> button + button) {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    margin:10px 0 14px!important;
    padding:0!important;
    overflow:visible!important;
  }
  html.sx-phone-webapp .sx-parent-portal > .sx-parent-children:has(> button + button) > button,
  html.sx-tablet-webapp .sx-parent-portal > .sx-parent-children:has(> button + button) > button {
    min-width:0!important;
    width:100%!important;
  }
  /* Teams-volgen is not child-specific, so do not occupy space there. */
  html.sx-phone-webapp body[data-page="parent_teams"] .sx-parent-portal > .sx-parent-children,
  html.sx-tablet-webapp body[data-page="parent_teams"] .sx-parent-portal > .sx-parent-children {
    display:none!important;
  }
}
@media (min-width:600px) and (max-width:1400px) {
  html.sx-tablet-webapp .sx-parent-portal > .sx-parent-children:has(> button + button) {
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
  }
}

/* ========================================================================
   v78 — desktop coach/admin wedstrijden visueel gelijk trekken met app UI.
   ======================================================================== */
@media (min-width:821px) and (pointer:fine){
  html:not(.sx-phone-webapp) .sx-mobile-fixture-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-card{border-radius:24px!important;border-color:color-mix(in srgb,var(--primary) 8%,var(--border-subtle))!important;background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 4%,var(--bg-card)),var(--bg-card))!important;box-shadow:0 14px 40px rgba(15,23,42,.05)!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-head{padding:15px 18px 8px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-date{font-size:12px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kind{padding:6px 10px!important;font-size:10.5px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-teams{grid-template-columns:minmax(0,1fr) 92px minmax(0,1fr)!important;gap:12px!important;padding:12px 18px 16px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-team{gap:9px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-team img,
  html:not(.sx-phone-webapp) .sx-mobile-fixture-fallback{width:72px!important;height:72px!important;max-width:72px!important;max-height:72px!important;padding:7px!important;border-radius:20px!important;box-shadow:0 5px 16px rgba(15,23,42,.05)!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-fallback{padding:0!important;font-size:22px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-team strong{font-size:14px!important;line-height:1.25!important;font-weight:760!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kick{padding-top:18px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kick strong{font-size:25px!important;font-weight:820!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-kick span{margin-top:6px!important;font-size:10px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-meta{margin:0 15px!important;padding:11px 12px!important;border:0!important;border-radius:16px!important;background:color-mix(in srgb,var(--primary) 4%,var(--bg-subtle))!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-location{font-size:12px!important}
  html:not(.sx-phone-webapp) .sx-mobile-weather>strong,
  html:not(.sx-phone-webapp) .sx-mobile-weather>span>strong{font-size:15px!important}
  html:not(.sx-phone-webapp) .sx-mobile-weather small{font-size:9px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-story{margin:8px 15px 4px!important;padding:10px 12px!important;border:0!important;border-radius:14px!important;background:color-mix(in srgb,var(--primary) 5%,var(--bg-subtle))!important;font-size:12.5px!important;line-height:1.4!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-actions{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 46px!important;gap:8px!important;padding:13px 15px 15px!important}
  html:not(.sx-phone-webapp) .sx-mobile-fixture-actions a,
  html:not(.sx-phone-webapp) .sx-mobile-fixture-actions button{height:42px!important;border-radius:13px!important;font-size:12px!important;font-weight:740!important}

  html:not(.sx-phone-webapp) .sx-mobile-match-compact-list{gap:10px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-row{border-radius:18px!important;border-color:color-mix(in srgb,var(--primary) 8%,var(--border-subtle))!important;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 3%,var(--bg-card)),var(--bg-card))!important;box-shadow:0 8px 24px rgba(15,23,42,.035)!important}
  html:not(.sx-phone-webapp) .sx-match-compact-main{grid-template-columns:78px minmax(0,1fr) auto!important;gap:16px!important;min-height:92px!important;padding:10px 14px 10px 8px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-date{min-height:70px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-date b{font-size:11px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-date strong{font-size:15px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-date span{font-size:12px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-clubs{grid-template-columns:48px minmax(0,1fr) 48px!important;gap:12px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-logo{width:48px!important;height:48px!important;border-radius:14px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-logo img{width:42px!important;height:42px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-copy small{font-size:10.5px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-copy strong{font-size:15px!important;font-weight:760!important}
  html:not(.sx-phone-webapp) .sx-match-compact-copy span{font-size:12.5px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-score{min-width:78px!important;gap:7px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-score>strong{font-size:17px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-score>b{width:24px!important;height:24px!important;border-radius:8px!important;font-size:9px!important}
  html:not(.sx-phone-webapp) .sx-match-compact-score .btn-ico{width:18px!important;height:18px!important}
}
@media (min-width:1480px) and (pointer:fine){
  html:not(.sx-phone-webapp) .sx-mobile-fixture-list{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

/* v121 — guarded pull-to-refresh: touch phones/tablets only (JS hardware gate). */
.sx-pull-refresh {
  --sx-pull-y: 0px;
  --sx-pull-progress: 0;
  position: fixed;
  z-index: 10080;
  top: calc(env(safe-area-inset-top) + 6px);
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: calc(100vw - 28px);
  padding: 8px 12px;
  border: .5px solid rgba(60,60,67,.18);
  border-radius: 999px;
  background: rgba(248,249,253,.88);
  color: #1c1c1e;
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, calc(-56px + var(--sx-pull-y)), 0) scale(.96);
  transition: opacity .16s ease, transform .18s cubic-bezier(.22,.8,.22,1);
  will-change: transform, opacity;
}
.sx-pull-refresh.is-visible {
  opacity: 1;
  transform: translate3d(-50%, calc(-42px + var(--sx-pull-y)), 0) scale(1);
}
.sx-pull-refresh-label {
  overflow: hidden;
  max-width: 190px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.sx-pull-refresh-spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(0,122,255,.22);
  border-top-color: #007aff;
  border-radius: 50%;
  transform: rotate(calc(var(--sx-pull-progress) * 250deg));
}
.sx-pull-refresh.is-armed .sx-pull-refresh-spinner {
  border-color: rgba(48,209,88,.24);
  border-top-color: #30d158;
}
.sx-pull-refresh.is-refreshing .sx-pull-refresh-spinner {
  animation: sx-pull-refresh-spin .72s linear infinite;
}
html[data-theme="dark"] .sx-pull-refresh {
  border-color: rgba(255,255,255,.12);
  background: rgba(28,28,30,.86);
  color: #f2f2f7;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
@keyframes sx-pull-refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sx-pull-refresh { transition: opacity .1s linear; }
  .sx-pull-refresh.is-refreshing .sx-pull-refresh-spinner { animation-duration: 1.2s; }
}

/* v122 — Berichten: alleen op echte telefoon opent de mailinhoud als bottom sheet. */
html.sx-phone-webapp:not(.sx-tablet-webapp) .messages-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .msg-list-card{
  min-width:0;
  width:100%;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-backdrop,
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:2147483646!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:stretch!important;
  padding:0!important;
  background:rgba(2,6,23,.46)!important;
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-sheet,
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-sheet{
  position:relative;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:91dvh!important;
  margin:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:28px 28px 0 0!important;
  background:var(--bg-card)!important;
  box-shadow:0 -20px 58px rgba(2,6,23,.34)!important;
  animation:sx-message-sheet-up .42s cubic-bezier(.16,1,.3,1) both!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-sheet::before,
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-sheet::before{
  content:"";
  position:absolute;
  z-index:5;
  top:8px;
  left:50%;
  width:38px;
  height:4px;
  border-radius:999px;
  background:color-mix(in srgb,var(--text-muted) 34%,transparent);
  transform:translateX(-50%);
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-head,
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-sheet>.modal-header{
  flex:0 0 auto;
  padding:25px 17px 13px!important;
  border-bottom:1px solid var(--border-subtle)!important;
  background:color-mix(in srgb,var(--bg-card) 96%,transparent)!important;
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-head .modal-title{
  overflow:hidden;
  font-size:20px!important;
  line-height:1.2!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-head .modal-sub{
  overflow:hidden;
  margin-top:4px;
  font-size:11px!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-body{
  flex:1 1 auto!important;
  min-height:0!important;
  padding:19px 17px!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-copy{
  color:var(--text);
  font-size:14px;
  line-height:1.7;
  overflow-wrap:anywhere;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-actions{
  flex:0 0 auto;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr);
  gap:9px!important;
  padding:11px 17px calc(11px + env(safe-area-inset-bottom))!important;
  border-top:1px solid var(--border-subtle)!important;
  background:color-mix(in srgb,var(--bg-card) 96%,transparent)!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-actions .btn{
  width:auto!important;
  min-height:45px!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-actions .btn-primary{
  width:100%!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-legacy-message-photos{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-top:18px;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-legacy-message-photo{
  display:block;
  aspect-ratio:1/1;
  min-width:0;
  padding:0;
  overflow:hidden;
  border:1px solid var(--border-subtle);
  border-radius:15px;
  background:var(--bg-subtle);
  cursor:zoom-in;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-legacy-message-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-backdrop{
  z-index:2147483647!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-sheet{
  height:min(90dvh,820px)!important;
  max-height:90dvh!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-stage{
  display:grid!important;
  flex:1 1 auto!important;
  min-height:0!important;
  place-items:center;
  padding:10px!important;
  overflow:hidden!important;
  background:#050912!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-stage img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-actions{
  display:grid!important;
  grid-template-columns:1fr 1fr;
  gap:9px!important;
  padding:11px 17px calc(11px + env(safe-area-inset-bottom))!important;
  border-top:1px solid var(--border-subtle)!important;
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-actions .btn{width:100%!important}
@keyframes sx-message-sheet-up{from{transform:translateY(102%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-sheet,
  html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-message-photo-sheet{animation:none!important}
}
html.sx-phone-webapp:not(.sx-tablet-webapp) .sx-mobile-message-copy img{
  max-width:100%;
  height:auto;
  border-radius:14px;
  cursor:zoom-in;
}
