/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Brand reconnect card (blue/ink on white, Inter), bottom-centre above the iOS home indicator. */
.components-reconnect-first-attempt-visible[b-aqcnyklisc],
.components-reconnect-repeated-attempt-visible[b-aqcnyklisc],
.components-reconnect-failed-visible[b-aqcnyklisc],
.components-pause-visible[b-aqcnyklisc],
.components-resume-failed-visible[b-aqcnyklisc],
.components-rejoining-animation[b-aqcnyklisc] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-retrying[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-failed[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-aqcnyklisc] {
    display: block;
}

/* One message at a time: the framework can leave "show" on while it is retrying or has failed, which stacked two
   headings. Later states win. */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-first-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-repeated-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-paused .components-reconnect-first-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-resume-failed .components-reconnect-first-attempt-visible[b-aqcnyklisc],
#components-reconnect-modal.components-reconnect-failed .components-rejoining-animation[b-aqcnyklisc] {
    display: none;
}

#components-reconnect-modal[b-aqcnyklisc] {
    position: fixed;
    inset: auto 0 calc(16px + env(safe-area-inset-bottom)) 0;
    margin: 0 auto;
    width: min(400px, calc(100% - 32px));
    max-width: none;
    padding: 12px 16px;
    border: 0;
    border-left: 4px solid var(--blue, #1247BC);
    border-radius: 12px;
    background: #fff;
    color: var(--ink, #1B2440);
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 8px 32px rgba(18, 71, 188, .18), 0 1px 3px rgba(27, 36, 64, .12);
    opacity: 0;
    transition: display .3s allow-discrete, overlay .3s allow-discrete;
    animation: reconnect-fade-out-b-aqcnyklisc .3s both;
}

/* Never over the Continue button: above the phone action bar, and bottom-left on desktop (the summary card and its
   Continue sit on the right). */
@media (max-width: 899px) {
    body:has(.actionbar) #components-reconnect-modal[b-aqcnyklisc] {
        bottom: calc(var(--actionbar, 72px) + 8px + env(safe-area-inset-bottom));
    }
}
@media (min-width: 900px) {
    #components-reconnect-modal[b-aqcnyklisc] {
        inset: auto auto 24px 24px;
        margin: 0;
        width: min(360px, calc(100% - 48px));
    }
}

#components-reconnect-modal[open][b-aqcnyklisc] {
    animation: reconnect-slide-up-b-aqcnyklisc .3s cubic-bezier(.2, .8, .2, 1) .2s both;
}

/* Light veil: the page stays readable, but taps on a dead circuit are held off. */
#components-reconnect-modal[b-aqcnyklisc]::backdrop {
    background-color: rgba(27, 36, 64, .12);
}

@keyframes reconnect-slide-up-b-aqcnyklisc {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes reconnect-fade-out-b-aqcnyklisc {
    from { opacity: 1; }
    to { opacity: 0; }
}

.components-reconnect-container[b-aqcnyklisc] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reconnect-text[b-aqcnyklisc] { flex: 1; min-width: 0; }

#components-reconnect-modal p[b-aqcnyklisc] { margin: 0; font-size: 14px; line-height: 1.4; }
#components-reconnect-modal p b[b-aqcnyklisc] { display: block; font-size: 15px; font-weight: 700; }
#components-reconnect-modal p span[b-aqcnyklisc] { color: var(--muted, #5A6685); }

#components-reconnect-modal button[b-aqcnyklisc] {
    flex: none;
    border: 0;
    border-radius: 999px;
    background: var(--blue, #1247BC);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    padding: 8px 16px;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-aqcnyklisc] { background: var(--blue-2, #0E3A9C); }

.components-rejoining-animation[b-aqcnyklisc] {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--pale, #E7EDF8);
    border-top-color: var(--blue, #1247BC);
    animation: reconnect-spin-b-aqcnyklisc .8s linear infinite;
}

@keyframes reconnect-spin-b-aqcnyklisc { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .components-rejoining-animation[b-aqcnyklisc] { animation-duration: 2.4s; }
    #components-reconnect-modal[b-aqcnyklisc], #components-reconnect-modal[open][b-aqcnyklisc] { animation: none; opacity: 1; }
}
/* /Components/Pages/AdminMailTemplates.razor.rz.scp.css */
.et-intro[b-1tjdz4ufyo] { max-width: 70ch; margin: 0 0 var(--s3); }
/* A list of templates beside a reading pane; both scroll with the page. On a phone, list then (with ?t=) the pane alone. */
.et[b-1tjdz4ufyo] { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.et-row[b-1tjdz4ufyo] { color: inherit; text-decoration: none; }
.et-row.on[b-1tjdz4ufyo] { background: var(--pale); }
.et-row.on b[b-1tjdz4ufyo] { color: var(--blue); }
.et-row[b-1tjdz4ufyo] >  .ic:last-child { color: var(--muted); flex: none; }
.et-main[b-1tjdz4ufyo] { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-sm); }
.et-main small[b-1tjdz4ufyo] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); }
.mx-av.et-ox[b-1tjdz4ufyo] { background: #1247BC; color: #fff; } .mx-av.et-ld[b-1tjdz4ufyo] { background: #6B3FA0; color: #fff; }
.mx-av[b-1tjdz4ufyo]  .ic { font-size: 18px; }
.et-pane[b-1tjdz4ufyo] { min-width: 0; position: sticky; top: var(--sticky-top); }
.et-top[b-1tjdz4ufyo] { display: flex; gap: var(--s3); align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s3); }
.et-top h2[b-1tjdz4ufyo] { font-size: var(--fs-md, 1.15rem); margin: 0 0 2px; }
.et-acts[b-1tjdz4ufyo] { display: flex; gap: var(--s2); flex-wrap: wrap; }
.et-back[b-1tjdz4ufyo] { display: none; }
.et-pane iframe[b-1tjdz4ufyo] { display: block; width: 100%; height: max(420px, calc(100vh - var(--sticky-top) - 190px)); border: 1px solid var(--line); border-radius: var(--r-ctl); background: #EEF2F8; }
.et-pane .notice[b-1tjdz4ufyo] { margin-bottom: var(--s2); }
@media (max-width: 1099px) {
  .et[b-1tjdz4ufyo] { grid-template-columns: minmax(0, 1fr); }
  .et:not(.picked) .et-pane[b-1tjdz4ufyo] { display: none; }
  .et.picked .et-list[b-1tjdz4ufyo] { display: none; }
  .et-back[b-1tjdz4ufyo] { display: inline-block; margin-bottom: var(--s2); }
  .et-pane[b-1tjdz4ufyo] { position: static; } .et-pane iframe[b-1tjdz4ufyo] { height: 640px; }
}
/* theme: venue emails are previewed once per venue */
.et-venue[b-1tjdz4ufyo] { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; color: #fff; font: 700 11px/18px Inter, sans-serif; vertical-align: 1px; box-shadow: inset 0 -2px 0 #F2B705; }
.et-venue.ox[b-1tjdz4ufyo] { background: #1247BC; } .et-venue.ld[b-1tjdz4ufyo] { background: #6B3FA0; }
/* custom templates: the editor above its live preview */
.et-form[b-1tjdz4ufyo] { display: grid; gap: var(--s2); margin-bottom: var(--s3); }
.et-form input[b-1tjdz4ufyo], .et-form textarea[b-1tjdz4ufyo] { width: 100%; }
.et-form textarea[b-1tjdz4ufyo] { font: 14px/1.55 Inter, sans-serif; resize: vertical; }
.et-chips[b-1tjdz4ufyo] { display: flex; flex-wrap: wrap; gap: var(--s1); }
.et-edit iframe[b-1tjdz4ufyo] { height: 520px; }
.cl-sure[b-1tjdz4ufyo] { color: var(--err); background: var(--err-bg); }
/* /Components/Shared/AthleteImport.razor.rz.scp.css */
/* Add in bulk: the review grid. Source, columns and the drop zone are styled in enter.css (.imp, .imp-drop, .imp-col…).
   Phone: one card per athlete; 900+: one aligned row per athlete under a header row. */
.imp-file[b-fu66mf8kjx] { margin-top: var(--s3); }
.imp-file-name[b-fu66mf8kjx] { min-width: 0; overflow-wrap: anywhere; }
.imp-sheet[b-fu66mf8kjx] { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--muted); }
.imp-sheet select[b-fu66mf8kjx] { width: auto; min-height: 36px; padding: var(--s1) var(--s2); font-size: var(--fs-ctl); }

/* matched columns: a folded summary of chips, opened to change */
.imp-map[b-fu66mf8kjx] { margin-top: var(--s3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; }
.imp-map > summary[b-fu66mf8kjx] { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); padding: var(--s2) var(--s3); cursor: pointer; list-style: none; }
.imp-map > summary[b-fu66mf8kjx]::-webkit-details-marker { display: none; }
.imp-map > summary:focus-visible[b-fu66mf8kjx] { outline: 3px solid var(--mid); outline-offset: 2px; border-radius: var(--r-ctl); }
.imp-map[open] > summary[b-fu66mf8kjx] { border-bottom: 1px solid var(--line); }
.imp-map[open] > :not(summary)[b-fu66mf8kjx] { margin-left: var(--s3); margin-right: var(--s3); }
.imp-map[open] > .imp-cols[b-fu66mf8kjx] { margin-bottom: var(--s3); }
.imp-map-title[b-fu66mf8kjx] { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.imp-chips[b-fu66mf8kjx] { display: flex; flex-wrap: wrap; gap: var(--s1); flex: 1 1 220px; min-width: 0; }
.imp-chip[b-fu66mf8kjx] { font-size: var(--fs-xs); padding: 2px var(--s2); border-radius: var(--r-pill); background: var(--pale); color: var(--blue-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imp-chip b[b-fu66mf8kjx] { font-weight: 700; }
.imp-map-edit[b-fu66mf8kjx] { font-size: var(--fs-sm); font-weight: 600; color: var(--blue); }
.imp-map[open] .imp-map-edit[b-fu66mf8kjx] { display: none; }

/* toolbar: select all, bulk actions, the count */
.imp-bar[b-fu66mf8kjx] { position: sticky; top: var(--sticky-top, 0px); z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); padding: var(--s2) var(--s3);
  border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.imp-all[b-fu66mf8kjx] { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); font-weight: 600; min-height: var(--tap); cursor: pointer; }
.imp-all input[b-fu66mf8kjx], .imp-pick[b-fu66mf8kjx] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--blue); }
.imp-bulk[b-fu66mf8kjx] { width: auto; min-height: 36px; padding: var(--s1) var(--s2); font-size: var(--fs-ctl); }
.imp-bar .imp-total[b-fu66mf8kjx] { margin-left: auto; }

/* the rows */
.imp-rows[b-fu66mf8kjx] { display: grid; gap: var(--s2); margin-top: var(--s3); }
.imp-row.imp-th[b-fu66mf8kjx] { display: none; }
/* phone card: [✓ name ×] / [age group | gender] / [PR] / toggles / fix */
.imp-row[b-fu66mf8kjx] { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 36px;
  grid-template-areas: "pick name name x" ". cat g ." ". pr pr ." ". opts opts opts" ". fix fix fix";
  gap: var(--s2); align-items: center; padding: var(--s3); border-radius: var(--r-ctl); background: #fff; border: 1px solid var(--line);
  transition: border-color var(--mo-2, 150ms) ease, background-color var(--mo-2, 150ms) ease; }
.imp-row.sel[b-fu66mf8kjx] { border-color: var(--mid); background: #F8FAFF; }
.imp-row.bad[b-fu66mf8kjx] { border-color: #F2C4C4; background: #FFFBFB; }
.imp-pick[b-fu66mf8kjx] { grid-area: pick; }
.imp-cell-name[b-fu66mf8kjx] { grid-area: name; min-width: 0; }
.imp-in[b-fu66mf8kjx] { width: 100%; min-height: 40px; padding: var(--s1) var(--s2); font-weight: 600; }
.imp-in.tbc[b-fu66mf8kjx] { color: var(--blue); font-style: italic; }
.imp-in[aria-invalid=true][b-fu66mf8kjx], select.need[b-fu66mf8kjx] { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
select.need[b-fu66mf8kjx] { background-color: #FFF5F5; }
.imp-cat[b-fu66mf8kjx], .imp-g[b-fu66mf8kjx], .imp-pr[b-fu66mf8kjx] { min-height: 40px; padding: var(--s1) var(--s2); font-size: var(--fs-ctl); min-width: 0; }
.imp-cat[b-fu66mf8kjx] { grid-area: cat; }
.imp-g[b-fu66mf8kjx] { grid-area: g; }
.imp-pr[b-fu66mf8kjx] { grid-area: pr; }
.imp-pr-none[b-fu66mf8kjx] { display: none; }
.imp-opts[b-fu66mf8kjx] { grid-area: opts; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.imp-row .xbtn[b-fu66mf8kjx] { grid-area: x; justify-self: end; }
.imp-fix[b-fu66mf8kjx] { grid-area: fix; display: flex; align-items: flex-start; gap: var(--s1); margin: 0; color: var(--err); font-size: var(--fs-sm); }
.imp-fix[b-fu66mf8kjx]  .ic { flex: none; font-size: var(--ic-sm); margin-top: 2px; }
@media (max-width: 899px) { .imp-bar .imp-total[b-fu66mf8kjx] { margin-left: 0; flex-basis: 100%; } }

@media (min-width: 900px) {
  .imp-rows[b-fu66mf8kjx] { gap: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fff; overflow: hidden; }
  .imp-row[b-fu66mf8kjx], .imp-th[b-fu66mf8kjx] { grid-template-columns: 24px minmax(180px, 2fr) minmax(120px, 1fr) minmax(112px, .8fr) 84px minmax(170px, auto) 36px;
    grid-template-areas: none; column-gap: var(--s3); row-gap: var(--s1); padding: var(--s2) var(--s3); border: 0; border-radius: 0; border-top: 1px solid #F0F2F7; }
  .imp-row > *[b-fu66mf8kjx], .imp-row .xbtn[b-fu66mf8kjx] { grid-area: auto; }
  .imp-row.imp-th[b-fu66mf8kjx] { display: grid; border-top: 0; background: var(--bg); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .imp-pr-none[b-fu66mf8kjx] { display: block; }
  .imp-row > .imp-fix[b-fu66mf8kjx] { grid-area: auto; grid-column: 2 / -1; }
  .imp-row.bad[b-fu66mf8kjx] { box-shadow: inset 3px 0 0 var(--err); }
}
@media (prefers-reduced-motion: reduce) { .imp-row[b-fu66mf8kjx] { transition: none; } }
