/* Nations Championship additions on top of the Six Nations pitch styles.
   Shirts for the six southern nations, unavailable outs, hemisphere counts. */

.kit-ARG { --kit-body: #75aadb; --kit-sleeve: #ffffff; --kit-collar: #75aadb; --kit-trim: #75aadb; --kit-cuff: #75aadb; --kit-hem: #75aadb; --kit-panel: #ffffff; --kit-stroke: #1d4e89; }
.kit-AUS { --kit-body: #ffcd00; --kit-sleeve: #00843d; --kit-collar: #00843d; --kit-trim: #00843d; --kit-cuff: #00843d; --kit-hem: #00843d; --kit-panel: #ffe680; --kit-stroke: #123524; }
.kit-FIJ { --kit-body: #ffffff; --kit-sleeve: #ffffff; --kit-collar: #00a3e0; --kit-trim: #002868; --kit-cuff: #002868; --kit-hem: #002868; --kit-panel: #f4f8fb; --kit-stroke: #002868; --kit-ring: #00a3e0; }
.kit-JPN { --kit-body: #bc002d; --kit-sleeve: #bc002d; --kit-collar: #ffffff; --kit-trim: #ffffff; --kit-cuff: #ffffff; --kit-hem: #8c0022; --kit-panel: #d21a40; --kit-stroke: #4a0012; }
.kit-NZL { --kit-body: #111111; --kit-sleeve: #111111; --kit-collar: #ffffff; --kit-trim: #c0c0c0; --kit-cuff: #c0c0c0; --kit-hem: #c0c0c0; --kit-panel: #1c1c1c; --kit-stroke: #000000; --kit-ring: #ffffff; }
.kit-RSA { --kit-body: #007a4d; --kit-sleeve: #ffb81c; --kit-collar: #ffb81c; --kit-trim: #ffb81c; --kit-cuff: #007a4d; --kit-hem: #007a4d; --kit-panel: #0a8a58; --kit-stroke: #043322; }


.prow.is-out { background: #f1f5f9; }
.prow.is-out .pn button { color: var(--muted); }
.prow.is-out .add-btn { background: #e2e8f0; color: #64748b; }

.hemi-counts { display: flex; gap: 8px; margin: 4px 0 8px; padding: 0; list-style: none; }
.hemi-counts li { flex: 1; display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; font-size: .82rem; }
.hemi-counts li.full { border-color: #fbbf24; background: var(--warn-bg); }
.hemi-counts li.over { border-color: #fca5a5; background: var(--err-bg); color: var(--err); font-weight: 700; }

.chip-plan { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.chip-plan label { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; }
.chip-plan small { display: block; color: var(--muted); }


/* =====================================================================
   Layout v3: the site nav, a page title with the round, a full-size pitch
   with the team summary bar under it.
   ===================================================================== */
.nc-builder { background: var(--surface); }

/* Site nav: the same bar as the other pages (markup and colours from components.css).
   This page is not themed, so the header stays light, and the bar is a little tighter so the pitch fits. */
.nc-builder .site-header { position: relative; z-index: 50; flex: none; }
.nc-builder .site-header nav.site-nav { max-width: none; margin: 0; padding: .55rem 16px; }
.nc-builder .site-header .logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nc-builder .site-header .logo img { width: 150px; height: auto; }
.nc-builder .site-header .nav-links { flex-shrink: 0; }
.nc-builder .site-header .nav-links .btn {
  display: inline-block;
  min-height: 0;
  padding: .55rem 1.1rem;
  border: 0;
  border-radius: var(--radius-sm);
  font: 600 .9rem/1.4 var(--font-body);
  background: var(--color-action);
  color: var(--color-on-action);
}
.nc-builder .site-header .nav-links .btn:hover { background: var(--color-action-hover); }
.nc-builder .mobile-menu-theme { display: none !important; }
/* components.css also styles .btn for the nav; keep the builder's own buttons as they were. */
:where(.nc-titlebar, .app, dialog) .btn { transition: none; }
:where(.nc-titlebar, .app, dialog) .btn:where(:not(.btn-sm)) { font-size: inherit; }
:where(.nc-titlebar, .app, dialog) .btn-primary { box-shadow: none; }
:where(.nc-titlebar, .app, dialog) .btn:hover { transform: none; box-shadow: none; }
:where(.nc-titlebar, .app, dialog) .btn-secondary:hover { color: var(--action-hover); }
/* components.css also has a .stats-table for the site's stats pages; undo the parts the builder's table does not set. */
.nc-builder .stats-table { width: auto; }
.nc-builder .stats-table td { border-top: 0; color: inherit; }
.nc-builder .stats-table tbody th { top: auto; color: inherit; font-size: inherit; text-transform: none; letter-spacing: normal; }
.nc-builder .stats-table th[aria-sort="none"] { color: var(--muted); }
.nc-builder .stats-table th .th-btn { display: inline-block; border: 0; background: none; padding: 2px 0; font: inherit; font-weight: 700; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; }
.nc-builder .stats-table th .p-name { display: inline-block; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: #ddd6fe; text-underline-offset: 3px; }
.nc-builder .stats-table th .p-name:hover { color: var(--action-hover); text-decoration-color: var(--action); }

/* Page title: name, round and deadline on the left; rules, chat and share on the right. */
.nc-titlebar {
  position: relative;
  z-index: 45;
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 16px 2px;
  min-width: 0;
}
.nc-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; }
.nc-h1 { font-size: 1.4rem; letter-spacing: -.02em; color: var(--navy); }
.nc-round { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .85rem; color: var(--muted); }
.nc-round-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--action); color: #fff; font-weight: 700; font-size: .8rem; }
.nc-deadline-line strong { color: var(--text); font-variant-numeric: tabular-nums; }
.nc-title-tools { display: flex; align-items: center; gap: 14px; }
.nc-title-link { border: 0; background: none; padding: 0; font: inherit; font-size: .85rem; font-weight: 700; color: var(--action-hover); text-decoration: none; cursor: pointer; white-space: nowrap; }
.nc-title-link:hover { text-decoration: underline; }
.nc-share-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nc-share-btn .caret { font-size: .7rem; opacity: .8; }
.nc-builder .share-wrap { position: relative; margin-left: 0; }
.nc-builder .share-wrap .share-field {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 42;
  width: 260px;
  margin: 0;
  background: #fff;
  color: var(--text);
  padding: 8px;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(10,14,39,.28);
}

/* Team summary bar between the pitch and the captain / Super Sub cards. */
.team-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.tbar-stat { position: relative; display: flex; align-items: baseline; gap: 5px; white-space: nowrap; min-width: 0; }
.tbar-num { font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.tbar-num.is-range { font-size: 1rem; }
.tbar-unit { font-weight: 700; font-size: .75rem; color: var(--action-hover); }
.tbar-xp-btn { display: flex; align-items: baseline; gap: 5px; margin: -2px -6px; padding: 2px 6px; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.tbar-xp-btn:hover { background: var(--tint); }
.nc-builder .team-bar .xp-pop { position: absolute; left: 0; right: auto; top: calc(100% + 8px); bottom: auto; min-width: 240px; white-space: normal; }
.tbar-budget { flex: 1 1 220px; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; column-gap: 5px; max-width: 340px; }
.tbar-spent { justify-self: end; font-size: .75rem; font-weight: 600; color: var(--muted); }
.nc-builder .team-bar .minibar { grid-column: 1 / -1; width: 100%; height: 4px; margin-top: 3px; background: #ede9fe; }
.nc-builder .team-bar .minibar span { background: var(--action); }
.tbar-budget.over .tbar-num, .tbar-budget.over .tbar-unit { color: var(--err); }
.nc-builder .team-bar .tbar-budget.over .minibar span { background: #ef4444; }

.nc-warns { display: flex; flex-wrap: wrap; gap: 6px; }
.nc-warns[hidden] { display: none !important; }
.nc-warn {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
}
.nc-warn-err { background: #fee2e2; color: #991b1b; }
.nc-warn-warn { background: #fef3c7; color: #92400e; }

.nc-builder .pop-wrap { position: relative; display: flex; gap: 6px; }
.nc-builder .tool-pop {
  position: absolute;
  z-index: 35;
  width: min(340px, calc(100vw - 24px));
  max-height: min(440px, calc(100vh - 120px));
  overflow: auto;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10,14,39,.28);
  padding: 12px;
}
.nc-builder #autoPop { top: calc(100% + 6px); right: 0; }
.nc-builder #capPop { bottom: calc(100% + 8px); left: 0; }
.tool-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tool-pop-head h2 { font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.nc-builder .chip-plan { gap: 6px; margin: 0 0 8px; }
.nc-builder .chip-plan label { align-items: center; font-weight: 700; font-size: .84rem; }
.nc-builder .tool-pop .btn-row { margin-top: 8px; }
.nc-builder .tool-pop .help { margin-top: 4px; }

.nc-builder .below-pitch { position: relative; margin-top: 0; gap: 8px; }
.nc-builder .captain-line { padding: 6px 10px; min-height: 0; }
.nc-builder .cl-lbl { color: var(--text); font-weight: 700; }
.nc-builder .bench { padding: 6px 12px; --shirt: 32px; }
.nc-builder .bench-label { font-family: "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: .92rem; }
.nc-builder .bench-label small {
  display: inline;
  margin-left: 6px;
  max-width: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: .78rem;
  color: #ddd6fe;
}

@media (min-width: 1024px) {
  /* Player panel about 40% of the width (never under 520px); the pitch is capped at 760px and centred. */
  .nc-builder .app {
    grid-template-columns: max(520px, 40%) minmax(0, 1fr);
    padding: 8px 10px 4px;
    gap: 8px;
  }
  .nc-builder .stage { gap: 6px; }
  .nc-builder .pitch-view { flex: 1; min-height: 0; gap: 6px; width: 100%; max-width: 760px; margin: 0 auto; }
  .nc-builder .pitch { flex: 1; min-height: 0; padding: 6px 8px; overflow: visible; }
  .nc-builder .pitch-surface { inset: 6px 8px; overflow: hidden; }
  .nc-builder .pitch-rows {
    display: grid;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    align-content: stretch;
    justify-content: stretch;
    gap: 0;
    padding: 1px 4px;
    min-height: 0;
    overflow: visible;
  }
  .nc-builder .pitch-rows .prow-pitch { min-height: 0; height: 100%; align-items: center; }
  .nc-builder .pitch-rows .pcard { min-height: 0; }
  .nc-builder .pitch-rows .pcard-wrap {
    --shirt: clamp(16px, calc(100cqh / 6 - 36px), 64px);
    width: clamp(96px, calc(100cqw / 3 - 12px), 156px);
    max-height: 100%;
  }
  .nc-builder .pitch-rows .pc-label { padding: 1px 5px 2px; }
  .nc-builder .pitch-rows .pc-name,
  .nc-builder .pitch-rows .pc-stat { font-size: 12px; line-height: 1.15; }
  .nc-builder .footer { padding: 4px 16px 16px; line-height: 1.4; }

  /* The page scrolls: the builder fills the first screen, the team sheets and FAQ sit below it. */
  html { height: auto; }
  body.nc-builder { display: block; height: auto; overflow-x: hidden; overflow-y: visible; }
  .nc-fold { height: 100vh; display: flex; flex-direction: column; }
  .nc-fold > .app { flex: 1; min-height: 0; }
}

@media (max-width: 1023px) {
  .nc-builder { max-width: 100%; }
  .nc-builder .site-header nav.site-nav { padding: .6rem .85rem; }
  .nc-titlebar { padding: 8px 10px 0; }
  .nc-h1 { font-size: 1.15rem; }
  .nc-title-tools { gap: 12px; }
  .tbar-budget { order: 3; flex-basis: 100%; max-width: none; }
  .tbar-num { font-size: 1.2rem; }
  .nc-builder .app { padding: 8px; min-width: 0; max-width: 100%; }
  .nc-builder .stage { gap: 6px; min-width: 0; }
  .nc-builder .stage-bar { gap: 6px; }
  .nc-builder .stage-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
    gap: 6px;
  }
  .nc-builder .stage-actions > .btn,
  .nc-builder .pop-wrap { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .nc-builder .pop-wrap .btn { flex: 1 1 0; min-width: 0; }
  .nc-builder .pitch {
    width: 100%;
    max-width: 100%;
    min-height: 560px;
    padding: 6px;
  }
  .nc-builder .pitch-rows { gap: 6px; padding: 8px 2px; }
  .nc-builder .pitch-rows .pcard-wrap { --shirt: 44px; max-width: 160px; }
  .nc-builder .pitch-rows .pc-name {
    white-space: normal;
    text-align: center;
    font-size: .74rem;
    line-height: 1.15;
  }
  .nc-builder .pitch-rows .pc-stat { font-size: .66rem; white-space: normal; text-align: center; }
  .nc-builder .pitch.focus-forwards .pc-name,
  .nc-builder .pitch.focus-backs .pc-name { font-size: .82rem; white-space: normal; }
  .nc-builder .below-pitch { grid-template-columns: 1fr; width: 100%; }
  .nc-builder .bench-label small { display: block; margin-left: 0; margin-top: 1px; }
  .nc-builder .tool-pop {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    top: auto;
    width: auto;
    max-height: min(70vh, 520px);
  }
  .nc-builder .footer { white-space: normal; }
}
@media (max-width: 420px) {
  .nc-builder .stage-actions > .btn,
  .nc-builder .pop-wrap { flex-basis: calc(50% - 6px); }
}

/* Status badge: first column of the picker, the mobile sheet and the expanded table. */
.sb {
  display: inline-grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: default;
}
.sb-s { background: #15803d; color: #fff; }
.sb-sp { background: transparent; color: #15803d; border: 2px solid #15803d; }
.sb-b { background: #7c3aed; color: #fff; }
.sb-bp { background: transparent; color: #7c3aed; border: 2px solid #7c3aed; }
.sb-np { background: #94a3b8; color: #0f172a; }
.sb-inj { background: #fff; color: #dc2626; border: 1.5px solid #fca5a5; }
.sb-inj svg { width: 11px; height: 11px; fill: currentColor; }
/* Hover or tap (focus) a status badge to see what it means. The label itself is .sb-tip, placed by app.js. */
.sb[data-tip] { cursor: help; }
.sb[data-tip]:focus { outline: 2px solid var(--action); outline-offset: 2px; }
.sb-tip {
  position: fixed; z-index: 1000; width: max-content; max-width: 240px; padding: 6px 9px; border-radius: 6px;
  background: #0f172a; color: #fff; font: 600 12px/1.35 "DM Sans", system-ui, sans-serif; text-align: left;
  pointer-events: none; box-shadow: 0 4px 12px rgba(15,23,42,.25);
}
/* xP is the site's key number: plain, bold, in the brand purple. */
.xp-val { color: var(--action, #7c3aed); font-weight: 800; font-style: normal; }
.prow.is-injured { background: #f8fafc; }
.prow.is-injured .pn button, .prow.is-injured .px, .prow.is-injured .pp { color: #94a3b8; }
.prow.is-injured .shirt-mini, .prow.is-injured .fx { opacity: .5; }


/* Status filters: three checkboxes on one row, each led by its badge. */
.st-filter { display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; min-width: 0; }
.nc-builder .st-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
}
.st-opt input { margin: 0 1px 0 0; }
.nc-builder .picker-filters .st-filter { grid-column: 1 / -1; }
.nc-builder .sheet-controls .st-filter { grid-column: 1 / -1; }
.nc-builder .stats-filters .f-reset { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* Desktop player list: badge | shirt | name | pos | fixture | price | xP | add. */
.nc-builder .picker-cols,
.nc-builder .picker-list:not(.sheet-list) .prow { grid-template-columns: 20px 26px minmax(0, 1fr) 24px 76px 46px 38px 32px; gap: 6px; }
.nc-builder .picker-cols span { text-align: left; }
.nc-builder .picker-cols span:nth-child(n+6) { text-align: right; }
.nc-builder .picker-list:not(.sheet-list) .prow .pf { min-width: 0; max-width: 100%; }

/* Fixture pill on one line: flag, opponent code, small H/A. */
.nc-builder .fx { font-size: 12px; gap: 4px; flex-wrap: nowrap; white-space: nowrap; letter-spacing: 0; }
.nc-builder .fx-ha { font-size: 9px; font-weight: 700; opacity: .75; }

/* Mobile sheet list: badge | shirt | name | fixture | price | xP | pick. */
.nc-builder .sheet-list .prow { grid-template-columns: 20px 32px minmax(0, 1fr) auto 42px 38px 74px; gap: 6px; }
@media (max-width: 1023px) {
  .nc-builder .sheet-list .prow { grid-template-columns: 20px 26px minmax(0, 1fr) auto auto auto auto; gap: 5px; padding: 6px 8px; }
}

/* Expanded table: the badge column is pinned with the player column. */
.nc-builder .stats-table .sb-col {
  position: sticky;
  left: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 7px 6px 7px 10px;
  text-align: center;
}
.nc-builder .stats-table thead .sb-col { z-index: 3; }
.nc-builder .stats-table .sticky-col { left: 36px; }
.nc-builder .prov-tag,
.nc-builder .prow .px .prov-tag { font-size: 11px; }
.nc-builder .pc-stat { font-size: 12px; }
.nc-builder .pc-name,
.nc-builder .pc-sur { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.nc-builder .pc-sur {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8.6em;
}
.nc-builder .prow .pn button,
.nc-builder .p-name,
.nc-builder .lv-player button.p-name,
.nc-builder .s-name {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
/* Blocked players (position full, nation or hemisphere limit, budget, not playing): the row is greyed out
   and its add button is disabled. The reason stays in the button's tooltip and aria-label. */
.nc-builder .prow.is-blocked { background: #f8fafc; }
.nc-builder .prow.is-blocked > * { opacity: .45; }
.nc-builder .stats-table tr.is-blocked th,
.nc-builder .stats-table tr.is-blocked td { color: #94a3b8; }
.nc-builder .stats-table tr.is-blocked .sb,
.nc-builder .stats-table tr.is-blocked .st-player,
.nc-builder .stats-table tr.is-blocked .fx { opacity: .5; }
.nc-builder .sheet-pick[aria-disabled="true"],
.nc-builder .act[aria-disabled="true"] { background: #e2e8f0; border-color: #e2e8f0; color: #64748b; cursor: not-allowed; opacity: 1; }
.nc-builder .toast {
  top: var(--nc-toast-top, 108px);
  bottom: auto;
  left: 12px;
  right: auto;
  z-index: 60;
  max-width: min(320px, calc(100vw - 24px));
  transform: translateY(-140%);
}
.nc-builder .toast.show { transform: translateY(0); }
@media (max-width: 1023px) {
  .nc-builder .toast {
    top: 6px;
    left: 8px;
    right: 8px;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Join League modal (from the site nav). Layout copied from site.css, which this page does not load;
   the modal colours come from components.css. */
.notify-overlay {
    display: none; position: fixed; inset: 0;
    background: var(--color-overlay); backdrop-filter: blur(6px);
    z-index: 9999; align-items: center; justify-content: center; padding: 1rem;
}
.notify-overlay.open { display: flex; }
.notify-modal { width: 100%; animation: modalSlideIn 0.3s ease; }
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.notify-modal .modal-sub { line-height: 1.5; }
.notify-form-group { margin-bottom: 1rem; }
.notify-form-group > label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text); }
.notify-form-group > label.notify-checkbox-label { display: flex; margin-bottom: 0; }
.notify-checkbox-group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
/* Page's custom checkbox tiles (differs from the plain shared list) */
.notify-checkbox-label {
    gap: 0.7rem;
    padding: 0.75rem 1rem; border: var(--border-card) solid var(--color-border); border-radius: var(--radius-md);
    font-weight: 500; font-size: 0.92rem; transition: border-color 0.2s, background 0.2s;
}
.notify-checkbox-label:hover { background: var(--color-surface); border-color: var(--color-accent-soft); }
.notify-checkbox-label .cb-text { flex: 1; align-self: center; line-height: 1.4; }
.notify-checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.notify-checkbox-label:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.notify-checkbox-label .checkmark {
    width: 20px; height: 20px; border: var(--border-card) solid var(--color-border); border-radius: 5px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s;
}
.notify-checkbox-label input:checked ~ .checkmark { background: var(--color-action); border-color: var(--color-action); color: var(--color-on-action); }
.notify-checkbox-label input:checked ~ .checkmark::after { content: '✓'; font-size: 12px; font-weight: 700; }
.notify-checkbox-label.checked { border-color: var(--color-accent); background: var(--color-accent-tint); }
.notify-submit-btn.btn {
    padding: 0.9rem; border-radius: var(--radius-2xl);
    font-size: 1rem; font-weight: 700; margin-top: 0;
}
.notify-success { display: none; text-align: center; padding: 1rem 0; }
.notify-success .success-icon { font-size: 3rem; margin-bottom: 1rem; }
.notify-success h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 0.5rem; color: var(--color-primary); }
.nc-builder .notify-modal .btn { display: block; width: 100%; min-height: 0; border: 0; background: var(--color-action); color: var(--color-on-action); }

/* Below the builder: team sheets and FAQ. */
.nc-more { max-width: 1100px; margin: 0 auto; padding: 32px 16px 8px; }
.nc-more section { margin: 0 0 32px; }
.nc-more h2 { font-size: 1.35rem; letter-spacing: -.02em; color: var(--navy); margin: 0 0 4px; }
.nc-more-lead { margin: 0 0 12px; font-size: .9rem; color: var(--muted); }
.nc-sheet-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.nc-sheet-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.nc-sheet-tile .flag { flex: none; width: 24px; height: 16px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,23,42,.12); }
.nc-sheet-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.nc-sheet-name { font-weight: 700; font-size: .9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-sheet-state { font-size: .76rem; font-weight: 700; color: #64748b; }
.nc-sheet-tile:not(.is-in) { background: #f1f5f9; border-color: #e2e8f0; }
.nc-sheet-tile:not(.is-in) .flag { opacity: .45; filter: grayscale(.6); }
.nc-sheet-tile:not(.is-in) .nc-sheet-name { color: #64748b; }
.nc-sheet-tile:not(.is-in) .nc-sheet-state { color: #94a3b8; }
.nc-sheet-tile.is-in { background: #f0fdf4; border-color: #16a34a; box-shadow: inset 0 0 0 1px #16a34a; }
.nc-sheet-tile.is-in .nc-sheet-state { color: #15803d; }
.nc-faq { padding-top: 8px; }
.nc-faq h2 { margin-bottom: 16px; }
.nc-faq details { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin: 0 0 10px; }
.nc-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; font-size: .95rem; color: var(--text); cursor: pointer; list-style: none; }
.nc-faq summary::-webkit-details-marker { display: none; }
.nc-faq summary::after { content: "+"; flex: none; font-size: 1.1rem; line-height: 1; color: var(--action); }
.nc-faq details[open] summary::after { content: "\2212"; }
.nc-faq .faq-a { padding: 2px 18px 16px; font-size: .9rem; line-height: 1.55; color: var(--text); }
.nc-faq .faq-a p { margin: 0 0 8px; }
.nc-faq .faq-a p:last-child { margin-bottom: 0; }
.nc-faq .faq-a a { color: var(--action-hover); font-weight: 600; }
@media (max-width: 420px) {
  .nc-sheet-grid { grid-template-columns: 1fr 1fr; }
  .nc-sheet-tile { padding: 8px 10px; gap: 8px; }
}

/* Hidden screen-reader labels inside the scrolling player lists are absolutely positioned.
   Give them a containing block inside the list, or they stretch the page far below the FAQ. */
.picker-list { position: relative; }

/* Injured rows: a light grey, with the name still dark enough to read. Placed after .is-blocked so it wins. */
.nc-builder .prow.is-injured { background: #fafbfc; }
.nc-builder .prow.is-injured > * { opacity: .75; }
.nc-builder .prow.is-injured > .sb, .nc-builder .prow.is-injured > .pn { opacity: 1; }
.nc-builder .prow.is-injured .pn button { color: #1e293b; }
.nc-builder .prow.is-injured .pn small { color: #64748b; }
.nc-builder .stats-table tr.is-injured th, .nc-builder .stats-table tr.is-injured .p-name { color: #1e293b; }
.nc-builder .stats-table tr.is-injured .sb { opacity: 1; }

/* A clicked pitch slot is marked by its yellow label only. The outer glow box from the shared builder styles overlapped the next slot. */
.nc-builder .pcard-wrap.targeted::before { content: none; }
