/* Shared surface follow-through, reviewed 22 October 2026.
   Figma NY8QhcuOWiEcD0pKDTsbP8: 546:10288 / 546:10294 / 546:10335.
   The important layer reconciles older important declarations without changing
   native visibility gates, permissions and form actions. Graphic restoration is
   scoped to its original Figma components below. */
@layer club-shared {
  /* The shell owns page spacing; primary routes must not add title spacers
     or a second centred rail. Their reviewed scenes and artwork stay native. */
  body:not(.auth-open) :is(#view-matches,#view-squad,#view-more)>.section-title-row {
    min-height:0!important;max-width:none!important;
    align-items:center!important;margin:0 0 var(--sh-section-gap)!important;padding-block:0!important;
  }
  body:not(.auth-open) :is(#view-matches,#view-squad,#view-more)>.section-title-row>div {
    display:flex;flex-direction:column;gap:6px;
  }
  body:not(.auth-open) :is(#view-matches,#view-squad,#view-more)>.section-title-row :is(h2,.kicker) {
    margin:0!important;
  }
  body:not(.auth-open) #view-squad>.section-title-row {padding-inline-end:82px!important}
  body:not(.auth-open) #view-squad>.graphic-raised-crest {top:0!important;right:0!important}
  body:not(.auth-open) #view-squad .squad-view-tabs {margin:0 0 var(--sh-section-gap)!important}
  body:not(.auth-open) #view-squad .squad-view-page {gap:12px}
  body:not(.auth-open) #view-squad .squad-banner {padding:0!important;margin:0!important}
  body:not(.auth-open) #view-squad .squad-count {margin:0}
  body:not(.auth-open) #view-squad :is(.squad-format-details,#squad-list) {margin:0!important}
  body:not(.auth-open) #view-squad .squad-format-details>summary {padding:8px 0!important;min-height:44px!important}
  body:not(.auth-open) #view-more .more-intro {margin:0 0 var(--sh-section-gap)}
  body:not(.auth-open) #view-home>#home-season-group-label {margin:0 0 12px!important}
  body:not(.auth-open) #view-home #next-match-card {margin:0!important}
  @media(max-width:1399px) {
    body:not(.auth-open) #view-home>#home-next-match {margin-bottom:var(--sh-section-gap)!important}
  }
  @media(min-width:1400px) {
    body:not(.auth-open) #view-home.active {row-gap:var(--sh-section-gap)!important}
    body:not(.auth-open) #view-home>#home-next-match {margin-bottom:0!important}
  }
  :root {
    --sh-inset-shadow:inset 0 1px 1px rgba(255,255,255,.8);
    --sh-dialog-shadow:0 24px 60px -20px rgba(17,23,21,.4);
  }
  html[data-theme="dark"] {
    --sh-inset-shadow:inset 0 1px 1px rgba(255,255,255,.07);
    --sh-dialog-shadow:0 24px 60px -16px rgba(0,0,0,.7);
  }

  /* Raised containers share one material. The excluded wrappers deliberately
     expose the field, garments, or a collection of independently raised cards. */
  body:not(.auth-open) :where(
    .panel:not(:is(
      #home-club-notices,
      #parent-home-family,
      #home-season-record,
      #parent-home-match-info,
      #home-player-stats,
      .graphic-player-record,
      .squad-banner,
      .club-matches-browser,
      #admin-club-overview>.admin-home-weekend,
      #admin-club-overview>.admin-home-people,
      #admin-club-overview>.admin-home-communications
    )),
    .match-card,
    .record-card,
    .inbox-card,
    .admin-team-card,
    .admin-age-group,
    .member-contact-card:not(.person-profile-body .member-contact-card),
    .club-match-card,
    .further-fixture-card,
    .club-cup-feature,
    .club-notice:not(.important),
    .notification-item,
    .kickoff-push-panel,
    .admin-onboarding-choice,
    .detail-feature-section,
    #match-detail-versus,
    #match-report-hub,
    #match-report-outcome
  ) {
    --ink:var(--sh-copy)!important;
    --muted:var(--sh-muted)!important;
    background:var(--sh-panel)!important;
    color:var(--sh-copy)!important;
    border:1px solid var(--sh-line)!important;
    border-radius:16px!important;
    box-shadow:var(--sh-shadow)!important;
  }

  /* Restore breathing room where the old nested-card rules removed side pads. */
  body:not(.auth-open) :is(
    .admin-team-card,
    .member-contact-card:not(.person-profile-body .member-contact-card)
  ) {
    padding:16px!important;
  }

  /* Directories and subordinate content sit one level below their container.
     Shirt identities and the interactive tactics canvas retain their geometry. */
  body:not(.auth-open) :where(
    .admin-directory-row,
    .admin-request-row,
    .admin-home-team,
    .admin-profile-row,
    .workspace-directory-row:not(.graphic-squad-player):not(#squad-list .workspace-directory-row),
    .team-member-row:not(.pending),
    .parent-child-row,
    .onboarding-parent-check,
    .admin-dashboard-summary .admin-stat,
    .admin-health-group:not(.warn),
    .club-kit-grid article,
    .detail-match-summary,
    .detail-player-row,
    .detail-booking-row,
    .coach-note-readonly
  ) {
    background:var(--sh-action)!important;
    color:var(--sh-copy)!important;
    border:1px solid var(--sh-line)!important;
    border-radius:10px!important;
    box-shadow:var(--sh-inset-shadow)!important;
  }
  body:not(.auth-open) .panel .team-member-row {
    padding:12px!important;
  }
  body:not(.auth-open) .availability-summary-group {
    background:var(--sh-action)!important;
    color:var(--sh-copy)!important;
    border-radius:10px!important;
    box-shadow:var(--sh-inset-shadow)!important;
  }

  /* Existing rows remain rows, including their current first/last separators. */
  body:not(.auth-open) :is(
    .coach-qualification-row,
    .onboarding-queue article,
    .parent-training-row,
    .training-later-dates,
    .readonly-detail-row,
    #match-detail-dialog .attendance-player-row
  ) {
    background:transparent!important;
    border-color:var(--sh-line)!important;
    border-radius:0!important;
    box-shadow:none!important;
  }

  /* The Matches lead cards use the same raised material and readable ink in
     both themes; their information hierarchy and native controls stay intact. */
  body:not(.auth-open) :is(#matches-next-fixture,#matchday-dashboard,.club-cup-feature) {
    --ink:var(--sh-copy)!important;
    --muted:var(--sh-muted)!important;
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open) #matchday-dashboard :is(
    .next-fixture-versus,
    .next-match-grid>div,
    .next-match-kits,
    .match-venue-card,
    .match-kit-correction,
    .matchday-dashboard-grid>article
  ) {
    background:var(--sh-action)!important;
    color:var(--sh-copy)!important;
    border:1px solid var(--sh-line)!important;
    border-radius:10px!important;
    box-shadow:var(--sh-inset-shadow)!important;
  }
  body:not(.auth-open) :is(#matches-next-fixture,#matchday-dashboard) :is(
    h3,
    .next-match-grid strong,
    .next-match-kits strong,
    .match-venue-card strong,
    .match-kit-correction>summary,
    .canonical-match-team strong,
    .canonical-v11-side strong,
    .matchday-dashboard-grid>article>strong
  ) {
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open) :is(#matches-next-fixture,#matchday-dashboard) :is(
    .kicker,
    .muted,
    .helper,
    .canonical-match-fixture-label,
    .canonical-match-v,
    .canonical-v11-label,
    .canonical-v11-v,
    .matchday-dashboard-kits,
    .next-match-grid span,
    .next-match-kits span,
    .match-venue-card span,
    .match-venue-card small,
    .match-team-kit,
    .matchday-dashboard-grid>article>span
  ) {
    color:var(--sh-muted)!important;
  }

  /* Matches scene restoration, 23 October 2026. Figma 592:10773 / 593:10783.
     Stay in the shared important layer: an unlayered Sunday rule cannot beat
     the older layered inset material. Native markup, order and gates remain.
     The background spans the first three content rows, so Cup groups and
     wrapped names grow the field instead of overflowing a fixed-height hero. */
  body:not(.auth-open) #matches-next-fixture {
    --sh-fixture-crest:clamp(64px,24vw,94px);
    position:relative;
    isolation:isolate;
    overflow:hidden;
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
    padding:20px!important;
    border-radius:12px!important;
  }
  body:not(.auth-open) #matches-next-fixture::before {
    content:"";
    grid-column:1;
    grid-row:1 / span 3;
    z-index:-1;
    margin:-20px -20px 0;
    pointer-events:none;
    background:linear-gradient(180deg,rgba(5,8,6,.75),rgba(5,8,6,.22) 45%,#111715),url("graphics/match-pitch-portrait.webp") 66% center/cover no-repeat;
  }
  body:not(.auth-open) #matches-next-fixture>.panel-heading {
    grid-area:1 / 1;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body:not(.auth-open) #matches-next-fixture>.panel-heading :is(.kicker,h3) {
    color:#fff!important;
    text-shadow:0 2px 4px rgba(0,0,0,.8);
  }
  body:not(.auth-open) #matches-next-fixture>.panel-heading h3 {
    margin:6px 0 0!important;
    font:700 1.375rem/1.2 var(--sh-display)!important;
    text-transform:uppercase;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #matches-next-fixture #matches-next-versus {
    grid-area:2 / 1;
    min-width:0;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body:not(.auth-open) #matches-next-fixture :is(.canonical-v11-rows,.canonical-v13-rows) {
    gap:24px!important;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-fixture {
    min-width:0;
    gap:18px!important;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-label {
    color:#fff!important;
    text-shadow:0 1px 4px #111715;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-teams {
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-side {
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:18px!important;
    min-width:0;
    text-align:center!important;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-side strong {
    font:700 clamp(1.375rem,5vw,1.625rem)/1.15 var(--sh-display)!important;
    color:#fff!important;
    text-transform:uppercase;
    text-shadow:0 2px 4px #111715;
    overflow-wrap:anywhere;
  }
  /* The older grouped ink rule inherits its most specific article selector.
     Name the actual scene host so light-theme copy stays white over the field. */
  body:not(.auth-open) #matches-next-fixture #matches-next-versus :is(strong,.canonical-v11-label,.canonical-v11-v),
  body:not(.auth-open) #matches-next-fixture .next-match-grid .fixture-date-copy>span,
  body:not(.auth-open) #matches-next-fixture #matches-next-when {
    color:#fff!important;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-v {
    align-self:start;
    margin-top:calc(var(--sh-fixture-crest)/2 - .75rem);
    font:700 1.5rem/1 var(--sh-display);
    color:#fff!important;
    text-shadow:0 2px 4px #111715;
  }
  body:not(.auth-open) #matches-next-fixture :is(.canonical-v11-badge,.canonical-v13-badge-fallback) {
    order:-1;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 var(--sh-fixture-crest)!important;
    width:var(--sh-fixture-crest)!important;
    height:var(--sh-fixture-crest)!important;
    min-width:0!important;
    max-width:100%!important;
    padding:5px!important;
    box-sizing:border-box;
    border:0!important;
    border-radius:50%!important;
    background:linear-gradient(150deg,#eef6f1,#4f5f55 65%,#111715)!important;
    box-shadow:-2px 7px 0 #111715,0 15px 12px rgba(0,0,0,.65),inset 0 1px 2px rgba(255,255,255,.7)!important;
    filter:none!important;
    transform:rotate(-5deg);
    color:#fff!important;
  }
  body:not(.auth-open) #matches-next-fixture .canonical-v11-badge :is(img,.club-identity-badge) {
    flex:0 0 auto!important;
    width:calc(var(--sh-fixture-crest) - 10px)!important;
    height:calc(var(--sh-fixture-crest) - 10px)!important;
    min-width:0!important;
    max-width:100%!important;
    max-height:100%!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    object-fit:contain;
    filter:none!important;
  }
  body:not(.auth-open) #matches-next-fixture>.next-match-grid {
    grid-area:3 / 1;
    grid-template-columns:minmax(0,1fr)!important;
    margin:0!important;
    padding:0 0 20px!important;
  }
  body:not(.auth-open) #matches-next-fixture :is(.next-match-grid>div,.match-venue-card) {
    min-width:0;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body:not(.auth-open) #matches-next-fixture .next-match-grid :is(span,strong) {
    color:#fff!important;
    text-shadow:0 2px 4px #111715;
  }
  body:not(.auth-open) #matches-next-fixture #matches-next-when {
    font:700 1.75rem/1.2 var(--sh-display)!important;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #matches-next-fixture .fixture-date-copy {
    gap:8px!important;
  }
  body:not(.auth-open) #matches-next-fixture .match-venue-card>div {
    gap:6px!important;
  }
  body:not(.auth-open) #matches-next-fixture .match-venue-card strong {
    font-size:1rem!important;
    line-height:1.5!important;
  }
  body:not(.auth-open) #matches-next-fixture .match-venue-card small {
    font-size:.75rem!important;
    line-height:1.5!important;
  }

  /* Original Home composition, Figma 572:10407 / 572:10424, 23 October.
     The preview is the compact club/opponent component, not the full versus
     graphic. Expanded records retain their native data and disclosure. */
  body:not(.auth-open) #view-home #next-match-card {
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
    min-height:165px!important;
    padding:20px!important;
    text-align:left!important;
  }
  body:not(.auth-open) #view-home #next-match-card::after {
    content:none!important;
  }
  body:not(.auth-open) #view-home #next-match-card:focus-visible {
    outline:2px solid var(--sh-control-focus,#145c36)!important;
    outline-offset:3px!important;
  }
  body:not(.auth-open):not(.role-parent) #view-home #home-next-title {
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    margin:-1px!important;
    padding:0!important;
    overflow:hidden!important;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  body:not(.auth-open):not(.role-parent) #view-home #home-next-match {
    gap:0!important;
  }
  body:not(.auth-open) #next-match-card :is(.home-fixture-heading,.home-fixture-footer) {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-width:0;
  }
  body:not(.auth-open) #next-match-card #home-fixture-kicker {
    font:700 .6875rem/1.5 Inter,system-ui,sans-serif!important;
    color:var(--sh-copy)!important;
    text-transform:uppercase;
  }
  body:not(.auth-open) #next-match-card #next-match-home-date {
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:var(--sh-copy)!important;
    font:700 .75rem/1.4 Inter,system-ui,sans-serif!important;
    text-align:right!important;
    text-transform:uppercase;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #next-match-card #next-match-home-teams {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
    min-width:0;
  }
  body:not(.auth-open) #next-match-card .home-fixture-row {
    display:grid;
    gap:6px;
    min-width:0;
  }
  body:not(.auth-open) #next-match-card .home-fixture-own {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
  }
  body:not(.auth-open) #next-match-card .home-fixture-badge {
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 46px!important;
    width:46px!important;
    height:46px!important;
  }
  body:not(.auth-open) #next-match-card .home-fixture-badge :is(img,svg,.club-identity-badge) {
    width:46px!important;
    height:46px!important;
    min-width:0!important;
    max-width:46px!important;
    max-height:46px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    object-fit:contain;
  }
  body:not(.auth-open) #next-match-card .home-fixture-copy {
    display:grid;
    gap:2px;
    min-width:0;
    text-align:left;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #next-match-card .home-fixture-copy strong,
  body:not(.auth-open) #next-match-card .home-fixture-empty {
    font:700 1.6875rem/.98 var(--sh-display)!important;
    color:var(--sh-copy)!important;
    text-transform:uppercase;
  }
  body:not(.auth-open) #next-match-card .home-fixture-opponent {
    font:400 .8125rem/1.4 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
  }
  body:not(.auth-open) #next-match-card .home-fixture-game-label {
    font:700 .6875rem/1.4 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
    text-transform:uppercase;
  }
  body:not(.auth-open) #next-match-card .home-fixture-footer {
    padding-top:14px;
    border-top:1px solid var(--sh-line);
  }
  body:not(.auth-open) #next-match-card #home-fixture-meta {
    font:700 .6875rem/1.5 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
    text-transform:uppercase;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) #next-match-card .home-fixture-details {
    flex-shrink:0;
    font:700 .75rem/1.4 Inter,system-ui,sans-serif!important;
    color:var(--sh-copy)!important;
    white-space:nowrap;
  }
  body:not(.auth-open) #next-match-card:disabled .home-fixture-details {
    visibility:hidden;
  }
  body:not(.auth-open) #view-home #home-season-record>summary {
    gap:5px 8px!important;
    min-height:53px!important;
    padding:0 0 10px!important;
  }
  body:not(.auth-open) #view-home #home-season-group-label::before {
    content:"02";
    margin-right:16px;
  }
  body:not(.auth-open) #view-home #home-season-record>summary strong {
    font:600 .875rem/1.8 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
  }
  body:not(.auth-open) #view-home #home-season-record>summary span {
    font:400 .75rem/1.5 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
  }
  body:not(.auth-open) #view-home #home-season-record>summary::after {
    font-size:18px!important;
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open) #home-season-record>.home-season-details-body {
    padding:20px 0 0!important;
    border-color:var(--sh-line)!important;
  }
  body:not(.auth-open) #home-season-record .running-count-grid {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;
    gap:16px!important;
    margin-bottom:16px!important;
  }
  body:not(.auth-open) #home-season-record :is(.running-count-card,#league-summary-card) {
    padding:20px!important;
    margin:0!important;
  }
  body:not(.auth-open) #home-season-record .running-count-card .kicker {
    margin:0!important;
    font:700 .75rem/1.5 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
  }
  body:not(.auth-open) #home-season-record .running-main strong {
    font:700 2rem/1 var(--sh-display)!important;
  }
  body:not(.auth-open) #home-season-record #league-played-count {
    font:700 1.75rem/1 var(--sh-display)!important;
  }
  body:not(.auth-open) #home-season-record .league-progress-ring {
    width:auto!important;
    height:auto!important;
    min-width:62px;
    min-height:62px;
    padding:12px!important;
    aspect-ratio:1;
  }
  body:not(.auth-open) #home-season-record :is(.running-split,.running-goals) {
    flex-wrap:wrap;
    gap:12px;
    border-color:var(--sh-line)!important;
  }
  body:not(.auth-open) #home-season-record :is(.running-split,.running-goals) b {
    font:700 1.25rem/1 var(--sh-display)!important;
  }
  body:not(.auth-open) #view-home #home-team-stats-link {
    min-height:50px!important;
    padding:14px!important;
  }
  body:not(.auth-open) #view-home #home-team-stats-link strong {
    font:700 .8125rem/1.5 Inter,system-ui,sans-serif!important;
  }
  body:not(.auth-open) #view-home #home-team-stats-link>span:last-child {
    font-size:18px!important;
    line-height:1!important;
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open) #view-home #home-team-stats-link small {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
  /* Staff Home572 places its open notices after season/stats. Parent527 keeps
     Team updates before the family, so neither its order nor material changes. */
  body:not(.auth-open):not(.role-parent) #home-club-notices>.panel-heading {
    margin:0 0 12px!important;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices>.panel-heading .kicker {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices>.panel-heading h3 {
    margin:0!important;
    font:700 .75rem/1.5 Inter,system-ui,sans-serif!important;
    color:var(--sh-copy)!important;
    text-transform:uppercase;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices>.panel-heading h3::before {
    content:"03";
    margin-right:16px;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    padding:16px 0!important;
    background:transparent!important;
    border:0!important;
    border-bottom:1px solid var(--sh-line)!important;
    border-radius:0!important;
    box-shadow:none!important;
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice-head {
    display:contents!important;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice-head>div {
    grid-area:1 / 1 / 2 / -1;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice-head strong {
    font:600 1rem/1.4 Inter,system-ui,sans-serif!important;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice>p {
    grid-area:2 / 1 / 3 / -1;
    margin:0!important;
    font:400 .8125rem/1.5 Inter,system-ui,sans-serif!important;
    color:var(--sh-muted)!important;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice>time {
    grid-area:3 / 1;
    align-self:center;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice-head>:is(button,small) {
    grid-area:3 / 2;
    align-self:center;
    font-size:.75rem!important;
  }
  body:not(.auth-open):not(.role-parent) #home-club-notices .club-notice-head>button {
    min-height:44px!important;
    font-weight:700!important;
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open).view-home #club-page-watermark {
    display:none!important;
  }
  @media(max-width:900px) {
    body:not(.auth-open):not(.role-parent) #view-home.active {
      display:flex!important;
      flex-direction:column;
    }
    body:not(.auth-open):not(.role-parent) #view-home>#home-club-notices {
      order:1;
    }
  }

  /* Dialogs sit outside .content. Match details use the same raised and inset
     materials, while the photographic upcoming-fixture header stays open. */
  body:not(.auth-open) dialog.modal:not(:where(#match-detail-dialog.report-wizard-mode)) {
    /* Avoid the browser's em-based dialog maximum reducing the available
       width as text grows. Existing per-dialog width caps remain intact. */
    max-width:calc(100vw - 24px)!important;
  }
  body:not(.auth-open) dialog.modal {
    background:var(--sh-panel)!important;
    color:var(--sh-copy)!important;
    border:1px solid var(--sh-line)!important;
    border-radius:16px!important;
    box-shadow:var(--sh-dialog-shadow)!important;
  }
  body:not(.auth-open) dialog.modal:not(#next-fixture-dialog)>.modal-heading,
  body:not(.auth-open) #club-match-summary-dialog .modal-heading {
    background:var(--sh-canvas)!important;
    border-color:var(--sh-line)!important;
  }
  body:not(.auth-open) dialog.modal:not(.notification-modal) .modal-actions {
    background:var(--sh-canvas)!important;
    border-color:var(--sh-line)!important;
  }
  body:not(.auth-open) dialog.modal :is(
    .match-venue-card,
    .fixture-kit-toggle,
    .match-availability,
    .selkent-task-guide
  ) {
    background:var(--sh-panel)!important;
    color:var(--sh-copy)!important;
    border:1px solid var(--sh-line)!important;
    border-radius:16px!important;
    box-shadow:var(--sh-shadow)!important;
  }
  body:not(.auth-open) #match-detail-dialog :is(
    .detail-match-summary strong,
    .detail-match-summary span,
    #match-detail-versus strong,
    #match-detail-versus .match-team-name,
    #match-detail-versus .club-listing-name
  ) {
    color:var(--sh-copy)!important;
  }
  body:not(.auth-open) #match-detail-versus :is(
    .canonical-v11-label,
    .canonical-v11-v,
    .canonical-match-v,
    .match-versus-label,
    .match-side-label,
    .match-versus-mark,
    .match-kit-secondary small
  ) {
    color:var(--sh-muted)!important;
  }

  /* Priority, unread, pending, warning and error cues remain distinct. Only
     their shared geometry/depth changes; pills, bubbles and tactics are untouched. */
  body:not(.auth-open) :is(
    .club-notice.important,
    .read-only-card,
    .admin-health-group.warn
  ) {
    border-radius:16px!important;
    box-shadow:var(--sh-shadow)!important;
  }
  body:not(.auth-open) :is(
    .team-member-row.pending,
    .notification-status,
    .notification-empty,
    .empty-detail-options,
    .kickoff-error,
    .match-action-status,
    #match-action-notice,
    #tournament-action-notice
  ) {
    border-radius:10px!important;
    box-shadow:var(--sh-inset-shadow)!important;
  }
  body:not(.auth-open) .notification-item.unread {
    background:linear-gradient(160deg,var(--gch-control-choice),var(--sh-canvas))!important;
    border-color:var(--gch-control-choice-copy)!important;
    border-inline-start-width:4px!important;
  }
  body:not(.auth-open) .club-notice.unread {
    border-inline-start:4px solid #218a21!important;
  }
  body:not(.auth-open) .admin-team-card.active-team {
    border-color:var(--gch-control-focus)!important;
  }
}

/* Whole-app family reconciliation, 24 October 2026.
   Review: 97 / 1QzCN4dVbqG2EGKD5doaUCQJYhEQoT6Q2.
   Current shared546 materials and titles complement the existing reviewed
   workflows; photographic scenes and their explicit typography stay separate. */
@layer club-shared {
  /* A flex basis meant for horizontal headers became a tall blank item when
     an older mobile form changed its header to a column. Reset the item basis,
     and allow title/actions to wrap in their existing native order. */
  body:not(.auth-open) .view:not(:is(#view-home,#view-squad,#view-person,#view-club)) > .section-title-row {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:12px 16px!important;
    min-height:0!important;
    margin-bottom:20px!important;
  }
  body:not(.auth-open) .view > .section-title-row > div,
  body:not(.auth-open) .view .panel-heading > div {
    flex:1 1 auto!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
  }
  /* More/Appearance/Notifications use reviewed Inter30 page headings. Apply
     that ordinary workspace family without replacing the distinct scene heads. */
  body:not(.auth-open) .view:not(:is(#view-home,#view-matches,#view-squad,#view-person,#view-club)) > .section-title-row h2 {
    margin:0!important;
    font:700 1.875rem/1.2 Inter,system-ui,sans-serif!important;
    letter-spacing:-.025em!important;
    overflow-wrap:anywhere;
  }
  body:not(.auth-open) .view:not(:is(#view-home,#view-matches,#view-squad,#view-person,#view-club)) :is(.panel > h3,.panel > .panel-heading h3) {
    margin:0!important;
    font:700 1.5rem/1.4 var(--sh-display)!important;
    letter-spacing:normal!important;
    color:var(--sh-copy)!important;
    overflow-wrap:anywhere;
  }
  /* Primary-page titles sit over the protected field image in both themes.
     Linked pages start below the back control on the ordinary canvas. */
  body:not(.auth-open) .view:not(.linked-page):not(:is(#view-home,#view-squad,#view-person,#view-club)) > .section-title-row :is(h2,.kicker) {
    color:#fff!important;
    text-shadow:0 2px 4px rgba(0,0,0,.85)!important;
  }
  /* This linked review keeps its native Back action below the decision area,
     so its heading also sits over the field rather than below a top back row. */
  body:not(.auth-open) #view-staff-request-review > .section-title-row :is(h2,.kicker) {
    color:#fff!important;
    text-shadow:0 2px 4px rgba(0,0,0,.85)!important;
  }
  /* The content shell already owns the phone gutters. Avoid a second20px
     inset around the native match form; its reviewed720px desktop cap stays. */
  body:not(.auth-open) #view-add { padding:0!important; }
  body:not(.auth-open) #view-more .more-tool-group > h3 {
    font:700 1.5rem/1.4 var(--sh-display)!important;
    color:var(--sh-copy)!important;
    letter-spacing:normal!important;
  }
  body:not(.auth-open) #view-squad .squad-view-tab {
    min-height:44px!important;
  }

  /* Retained native interior families use the reviewed inset material rather
     than unrelated old flat cards. Priority/error/status variants keep theirs. */
  body:not(.auth-open) :where(
    .onboarding-review,
    .onboarding-metrics > div,
    .onboarding-progress,
    .archive-summary,
    #coach-qualification-editor
  ) {
    background:var(--sh-action)!important;
    color:var(--sh-copy)!important;
    border:1px solid var(--sh-line)!important;
    border-radius:10px!important;
    box-shadow:var(--sh-inset-shadow)!important;
  }
  body:not(.auth-open) :is(.onboarding-review,.onboarding-metrics,.onboarding-progress) :is(p,small) {
    color:var(--sh-muted)!important;
    font-family:Inter,system-ui,sans-serif!important;
    font-weight:400!important;
    line-height:1.4!important;
  }
  /* The modal body and editor already own the qualification form gutters.
     Remove the inherited .modal form padding rather than shrinking fields. */
  body:not(.auth-open) #coach-qualification-form {
    padding:0!important;
  }
}
