/* MY MATCHES / GAMES, the match editor and share sheets, BIBS, the admin console's pages (sign-ups, organisers) and
   the sign-up and approval screens. Same language as the rest of the console: glass panels, chunky shapes, heavy
   italic condensed type, yellow primary buttons. */

/* MARK: Shell additions */

.tab-badge-gold { background: var(--yellow); color: #241a00; }
.menu-role { margin-top: 0.25rem; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--yellow); }
.avatar-admin { background: radial-gradient(circle at 30% 25%, #fff3a8, var(--yellow) 45%, #c47a00); color: #2a1800; box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.45), 0 0 0 0.2rem rgba(255, 210, 26, 0.35); }
.avatar-pending { background: radial-gradient(circle at 30% 25%, #ffd59a, var(--amber) 45%, #a35a00); color: #2a1500; }
.topbar-admin .wordmark-sub { background: linear-gradient(180deg, #ff6470, var(--red)); }
.account-role { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }

.section-head { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.section-head:first-child { margin-top: 0; }
.section-head .spacer { flex: 1; }
.section-title { font-size: 2.3rem; font-weight: 900; text-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.45); }
.games-live { margin-bottom: 0.5rem; }
.match-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1.1rem; }
.match-grid-compact .match-tile-code { font-size: 3.4rem; }

/* MARK: Filters */

.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem 0.45rem;
  border-radius: 999px;
  border: 0.14rem solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 8, 26, 0.62);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.82);
  transition: border-color 0.15s, background 0.15s;
}
.filter:hover { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.filter:focus-visible { outline: none; box-shadow: var(--focus); border-color: #fff; }
.filter.is-on { background: #fff; color: #0b1030; border-color: #fff; }
.filter-count { min-width: 1.6rem; padding: 0.12rem 0.4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 0.95rem; font-style: normal; text-align: center; }
.filter.is-on .filter-count { background: #0b1030; color: #fff; }
.owner-select, .search-input { min-height: 2.8rem; width: auto; min-width: 16rem; }

/* MARK: Match cards */

.mcards { display: grid; gap: 1rem; }
.mcard {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) auto auto;
  grid-template-areas: "art main code qr" "art actions actions actions";
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.4rem;
  padding: 0 1.1rem 0 0;
  overflow: hidden;
  border-width: 0.14rem;
  animation: tile-in 0.35s var(--ease-out) both;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mcard:focus-within { border-color: rgba(255, 255, 255, 0.45); }
.mcard.state-lobby { border-color: rgba(51, 230, 255, 0.55); }
.mcard.state-playing, .mcard.state-countdown { border-color: rgba(255, 59, 74, 0.75); box-shadow: var(--shadow), 0 0 0 0.2rem rgba(255, 59, 74, 0.25); }
.mcard.state-paused { border-color: #ff8a93; box-shadow: var(--shadow), 0 0 0 0.25rem rgba(255, 59, 74, 0.45); }
.mcard.state-finished { background: linear-gradient(180deg, rgba(20, 22, 50, 0.72), rgba(10, 12, 30, 0.8)); }
.mcard.state-finished .mcard-art-img { filter: saturate(0.4) brightness(0.65); }
.mcard-art { grid-area: art; position: relative; align-self: stretch; min-height: 10.5rem; overflow: hidden; }
.mcard-art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.85); }
.mcard-art-shade { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(10, 12, 34, 0.7)), linear-gradient(180deg, rgba(5, 4, 22, 0.55), transparent 40%); }
.mcard-chip { position: absolute; top: 0.75rem; left: 0.75rem; }
.mcard-main { grid-area: main; display: grid; gap: 0.25rem; min-width: 0; padding-top: 1rem; }
.mcard-when { display: flex; align-items: center; gap: 0.45rem; font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); font-size: 1.15rem; }
.mcard-when b { font-weight: 800; }
.mcard-rel { color: rgba(255, 255, 255, 0.75); }
.mcard-rel::before { content: "·"; margin-right: 0.45rem; color: rgba(255, 255, 255, 0.4); }
.mcard-title { font-size: 2.5rem; font-weight: 900; line-height: 0.95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0.1em; }
.mcard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; color: var(--muted); font-size: 1rem; }
.mcard-meta > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.mcard-owner { color: #fff; font-weight: 600; }
.mcard-status { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.02rem; }
.mcard-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--faint); flex: none; }
.mcard-dot.dot-lobby { background: var(--cyan); box-shadow: 0 0 0.5rem var(--cyan); }
.mcard-dot.dot-playing, .mcard-dot.dot-countdown, .mcard-dot.dot-paused { background: var(--red); box-shadow: 0 0 0.6rem var(--red); animation: pulse 1.4s ease-in-out infinite; }
.mcard-dot.dot-finished, .mcard-dot.dot-results { background: var(--yellow); }
.mcard-dot.dot-scheduled { background: var(--blue-hi); }
.mcard-code { grid-area: code; display: grid; justify-items: end; gap: 0.1rem; padding-top: 1rem; }
.mcard-code-value { font-size: 3rem; font-weight: 900; letter-spacing: 0.06em; line-height: 0.9; white-space: nowrap; }
.mcard-qr {
  grid-area: qr;
  position: relative;
  width: 7.4rem;
  height: 7.4rem;
  margin-top: 1rem;
  padding: 0;
  border: 0.18rem solid rgba(255, 255, 255, 0.85);
  border-radius: 0.8rem;
  background: #fff;
  overflow: hidden;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}
.mcard-qr svg { display: block; width: 100%; height: 100%; }
.mcard-qr-hint { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.25rem 0 0.2rem; background: rgba(10, 12, 34, 0.86); color: #fff; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; opacity: 0; transform: translateY(100%); transition: opacity 0.15s, transform 0.15s; }
.mcard-qr:hover, .mcard-qr:focus-visible { outline: none; transform: scale(1.04); box-shadow: 0 0 0 0.25rem rgba(255, 210, 26, 0.7); }
.mcard-qr:hover .mcard-qr-hint, .mcard-qr:focus-visible .mcard-qr-hint { opacity: 1; transform: none; }
.mcard-actions { grid-area: actions; display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; padding: 0.4rem 0 1rem; }
.mcard-actions .spacer { flex: 1; }
.mcard-actions .btn:not(.btn-sm) { min-height: 2.6rem; font-size: 1.15rem; padding: 0.35em 1em 0.3em; }
.btn-plain.btn-sm { color: var(--muted); }
.btn-plain.btn-sm:hover:not(:disabled) { color: #fff; filter: none; border-color: rgba(255, 255, 255, 0.25); }
.mcard-delete:hover:not(:disabled) { color: var(--red-hi) !important; border-color: rgba(255, 90, 100, 0.5) !important; }

.chip-scheduled { color: #d7e4ff; border-color: rgba(120, 160, 255, 0.65); background: rgba(24, 48, 130, 0.7); }
.chip-finished { color: #e3e7f7; border-color: rgba(255, 255, 255, 0.35); background: rgba(40, 44, 70, 0.8); }

.empty-matches { position: relative; overflow: hidden; padding: 3rem 1rem 3.4rem; }
.empty-art { display: flex; justify-content: center; gap: 0; height: 13rem; margin-bottom: -0.6rem; }
.empty-art img { height: 100%; width: auto; filter: drop-shadow(0 0.8rem 1.2rem rgba(0, 0, 0, 0.5)); }
.empty-art img + img { margin-left: -2.2rem; }
.empty-icon { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: rgba(53, 224, 124, 0.16); border: 0.14rem solid rgba(53, 224, 124, 0.6); color: var(--green); }
.empty-icon .icon { width: 2rem; height: 2rem; }

/* MARK: PLAY additions */

.play-host-row { display: flex; align-items: stretch; gap: 0.8rem; }
.play-plan { flex-direction: column; gap: 0.25rem; min-height: calc(var(--tile-h) * 0.62); font-size: 1.15rem; padding: 0.4em 1em; }
.play-plan .icon { width: 1.5em; height: 1.5em; }

/* MARK: Lobby join link */

.join-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; max-width: 24rem; margin-top: -0.1rem; }
.join-link-text { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); }
.join-copy { min-height: 1.9rem; font-size: 0.9rem; padding: 0.25em 0.7em 0.2em; }
.join-qr { width: min(100%, calc(100cqh - 19.5rem)); }
.join-wrap:has(.join-warning:not([hidden])) .join-qr { width: min(100%, calc(100cqh - 23.5rem)); }
.lobby-title[data-long="true"] { font-size: clamp(2.6rem, 3.6vw, 4.8rem); }

/* MARK: Match editor */

.sheet-editor { width: min(94vw, 74rem); }
.sheet-editor .sheet-head { padding-top: 1.3rem; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 1.8rem; align-items: start; }
.editor-modes, .editor-arena, .editor-rules { grid-column: 1 / -1; }
.editor-grid .field { margin-bottom: 0; align-content: start; }
.input-lg { min-height: 3rem; font-size: 1.3rem; font-weight: 600; }
.input[type="date"], .input[type="time"] { color-scheme: dark; }
.editor-when-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 0.5rem; align-items: center; }
.editor-when-row .input { min-width: 0; }
.editor-clear { width: 3rem; min-height: 3rem; }
.editor-clear[hidden] { display: none !important; }
.match-editor .sheet-foot { position: sticky; bottom: 0; z-index: 2; background: linear-gradient(0deg, rgba(14, 16, 44, 0.99) 70%, rgba(14, 16, 44, 0)); padding-top: 1.4rem; }
.editor-hint { margin-top: 0.3rem; font-size: 0.9rem; }
.editor-rules { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.editor-rules .choices .choice { font-size: 1.1rem; min-width: 3.4rem; padding: 0.4rem 0.7rem 0.34rem; }
.editor-fixed { display: grid; justify-items: start; padding-top: 0.2rem; }
.mini-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.mini-mode {
  position: relative;
  height: 5.2rem;
  padding: 0;
  overflow: hidden;
  border: 0.16rem solid rgba(255, 255, 255, 0.28);
  border-radius: 0.85rem;
  background: #120c30;
  color: #fff;
  text-align: left;
  transition: transform 0.15s var(--ease-out), border-color 0.15s, box-shadow 0.15s;
}
.mini-mode img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.75); }
.mini-mode-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 4, 24, 0.92), rgba(6, 4, 24, 0.2) 70%); }
.mini-mode-name { position: absolute; left: 0.7rem; bottom: 1.55rem; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.mini-mode-tag { position: absolute; left: 0.7rem; bottom: 0.5rem; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow); }
.mini-mode:hover { border-color: rgba(255, 255, 255, 0.7); }
.mini-mode:focus-visible { outline: none; box-shadow: var(--focus); }
.mini-mode.is-selected { border-color: #fff; box-shadow: 0 0 0 0.22rem rgba(255, 210, 26, 0.75); transform: translateY(-0.15rem); }
.mini-mode.is-selected img { filter: none; }
.arena-pick-compact { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.6rem; }
.arena-pick-compact .arena-pick-card { grid-template-columns: 5.5rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0.8rem; row-gap: 0.15rem; align-items: center; padding: 0.45rem 0.6rem; }
.arena-pick-compact .arena-pick-map { grid-row: 1 / 3; width: 5.5rem; aspect-ratio: 4 / 3; }
.arena-pick-compact .arena-pick-name { font-size: 1.25rem; align-self: end; }
.arena-pick-compact .arena-pick-meta { align-self: start; }
.match-editor .sheet-foot { flex-wrap: wrap; }
.match-editor .sheet-foot .form-error { margin: 0; min-height: 0; flex-basis: 100%; text-align: right; order: -1; }
.match-editor .sheet-foot .form-error:empty { display: none; }

/* MARK: Share sheet */

.sheet-share { width: min(94vw, 70rem); }
.share { display: grid; grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr); gap: 2rem; padding: 2rem; align-items: start; }
.share-qr { display: grid; gap: 0.6rem; justify-items: center; }
.share-qr svg { display: block; width: 100%; height: auto; border-radius: 1rem; background: #fff; box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45); }
.share-qr-caption { font-family: var(--display); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-size: 0.95rem; text-align: center; }
.share-main { display: grid; gap: 0.45rem; min-width: 0; }
.share-title { font-size: 3.2rem; font-weight: 900; line-height: 0.95; overflow-wrap: anywhere; }
.share-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; color: var(--muted); margin-bottom: 0.4rem; }
.share-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.share-code-label { margin-top: 0.4rem; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.24em; color: var(--muted); }
.share-code { font-size: 5.4rem; font-weight: 900; letter-spacing: 0.08em; line-height: 0.85; margin-bottom: 0.6rem; }
.share-link { font-size: 1rem; }
.share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.share-actions .spacer { flex: 1; }
.share-actions .btn { padding: 0.45em 0.95em 0.4em; }
.share-help { font-size: 0.95rem; }
.share-warning { max-width: none; }

/* MARK: Bibs */

.bibs-layout { display: grid; grid-template-columns: minmax(22rem, 29rem) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.bibs-options { display: grid; gap: 1.2rem; padding: 1.4rem 1.5rem 1.6rem; position: sticky; top: 0; }
.bibs-how { padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.05); border: 0.1rem solid var(--line); }
.bibs-how .panel-title { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--yellow); }
.bibs-how ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: rgba(255, 255, 255, 0.86); font-size: 0.98rem; }
.bibs-how b { color: #fff; }
.range-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.range-input { width: 6.5rem; min-height: 2.8rem; text-align: center; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.6rem; }
.range-to { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.choices-small .choice { min-width: 0; font-size: 1.05rem; padding: 0.35rem 0.7rem 0.3rem; }
.team-swatch { display: inline-flex; align-items: center; gap: 0.45rem; }
.team-swatch::before { content: ""; width: 0.9rem; height: 0.9rem; border-radius: 0.25rem; box-shadow: inset 0 0 0 0.1rem rgba(255, 255, 255, 0.6); }
.team-swatch-blue::before { background: #185ce6; }
.team-swatch-red::before { background: #e1202c; }
.format-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.format-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon name" "icon sub";
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 0.16rem solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.format-card:hover { border-color: rgba(255, 255, 255, 0.55); }
.format-card:focus-visible { outline: none; box-shadow: var(--focus); border-color: #fff; }
.format-card.is-selected { border-color: #fff; background: rgba(255, 210, 26, 0.14); box-shadow: 0 0 0 0.2rem rgba(255, 210, 26, 0.55); }
.format-name { grid-area: name; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.3rem; text-transform: uppercase; line-height: 1; }
.format-sub { grid-area: sub; color: var(--muted); font-size: 0.88rem; }
.format-icon { grid-area: icon; position: relative; width: 2.3rem; height: 2.9rem; border-radius: 0.3rem; background: #185ce6; box-shadow: inset 0 0.5rem 0 #0a2878; }
.format-icon::after { content: ""; position: absolute; left: 0.35rem; right: 0.35rem; bottom: 0.3rem; height: 0.85rem; border-radius: 0.15rem; background: #fff; }
.format-labels { background: #fff; box-shadow: none; background-image: radial-gradient(circle at center, #185ce6 0.32rem, transparent 0.34rem); background-size: 50% 33%; }
.format-labels::after { display: none; }
.format-patches { width: 2.6rem; height: 2.6rem; background: #e1202c; box-shadow: inset 0 0 0 0.25rem #e1202c, inset 0 -1.1rem 0 #fff; }
.format-patches::after { display: none; }
.format-production { background: #e1202c; box-shadow: inset 0 0.5rem 0 #6e0a14, 0 0 0 0.12rem #fff, 0.32rem 0.32rem 0 0.12rem rgba(255, 255, 255, 0.35); }
.bibs-note { color: rgba(255, 255, 255, 0.82); font-size: 0.98rem; padding: 0.8rem 0.9rem; border-left: 0.25rem solid var(--yellow); background: rgba(255, 210, 26, 0.07); border-radius: 0 0.6rem 0.6rem 0; }
.bibs-production { display: grid; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1rem; border: 0.12rem dashed rgba(255, 210, 26, 0.5); background: rgba(255, 210, 26, 0.05); }
.production-row { display: flex; gap: 2rem; align-items: flex-start; }
.bibs-fineprint { font-size: 0.88rem; }
.bibs-stage { display: grid; gap: 1rem; min-width: 0; }
.bibs-summary { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; font-size: 1.1rem; }
.bibs-count { font-size: 3.6rem; font-weight: 900; color: var(--yellow); line-height: 0.85; }
.bibs-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.1rem; align-items: start; }
.bibs-preview.preview-labels, .bibs-preview.preview-patches { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.bibs-preview.preview-production { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); align-items: end; }
.bib-thumb { margin: 0; display: grid; gap: 0.5rem; animation: tile-in 0.3s var(--ease-out) both; }
.bib-thumb > svg { display: block; width: 100%; height: auto; border-radius: 0.5rem; background: #fff; box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.5); }
.bib-thumb.thumb-patch > svg { width: 72%; justify-self: center; }

.bib-thumb figcaption { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.05rem; }
.bibs-more { font-size: 1rem; }

/* MARK: Admin: sign-ups and organisers */

.signup-open { gap: 0.8rem; height: auto; padding: 0.35rem 0.4rem 0.35rem 1rem; }
.signup-open .switch { width: 3.6rem; height: 2rem; }
.signup-open .switch::after { width: 1.35rem; height: 1.35rem; }
.signup-open .switch[aria-checked="true"]::after { left: calc(100% - 1.6rem); }
.signup-list { display: grid; gap: 1rem; max-width: 86rem; }
.signup-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 1.4rem; padding: 1.1rem 1.4rem; border-color: rgba(255, 176, 32, 0.45); }
.signup-org { font-size: 2.2rem; font-weight: 900; line-height: 0.95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signup-name { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.35rem; font-size: 1.05rem; }
.signup-when { display: grid; gap: 0.1rem; text-align: right; }
.signup-actions { display: flex; gap: 0.6rem; }
.signup-recent { margin-top: 1rem; display: grid; gap: 0.5rem; }
.signup-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.9rem; border-radius: 0.8rem; background: rgba(6, 8, 26, 0.55); border: 0.1rem solid var(--line); }
.signup-row .spacer { flex: 1; }
.signup-note { font-style: italic; }
.note-input { min-height: 5.5rem; resize: vertical; font: inherit; }
.review-note { margin-top: 1.1rem; margin-bottom: 0; }
.org-table { display: grid; gap: 0.6rem; max-width: 110rem; }
.org-row { display: grid; grid-template-columns: minmax(16rem, 2fr) 9.5rem 6rem 9rem 9rem minmax(14rem, auto); align-items: center; gap: 1rem; padding: 0.75rem 1.1rem; border-radius: 1rem; }
.org-head { padding-top: 0; padding-bottom: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.org-row.is-suspended, .org-row.is-rejected { opacity: 0.75; }
.org-row.is-pending { border-color: rgba(255, 176, 32, 0.45); }
.org-who { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.org-who > div { min-width: 0; }
.org-name { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-num { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.7rem; }
.org-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem; }

/* MARK: Sign-up and approval screens */

.auth-alt { display: grid; gap: 0.6rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 0.1rem solid var(--line); text-align: center; }
.auth-alt-text { color: rgba(255, 255, 255, 0.8); }
.auth-console .auth-center:has(.check-adult) { width: min(94vw, 40rem); }
.check-adult { align-items: flex-start; color: #fff; font-weight: 600; }
.check-adult input { margin-top: 0.1rem; flex: none; }
.auth-card .back-link { margin: -0.6rem 0 0.4rem -0.6rem; }
.auth-status-badge { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; padding: 0.35rem 0.85rem 0.3rem; border-radius: 999px; font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.auth-status-badge.is-pending { color: #2a1500; background: linear-gradient(180deg, #ffd59a, var(--amber)); }
.auth-status-badge.is-rejected, .auth-status-badge.is-suspended { color: #fff; background: linear-gradient(180deg, #ff6470, var(--red)); }
.auth-note { margin: 0 0 1.2rem; padding: 0.8rem 1rem; border-left: 0.25rem solid var(--yellow); background: rgba(255, 255, 255, 0.06); border-radius: 0 0.6rem 0.6rem 0; font-style: italic; }
.auth-facts { display: grid; gap: 0.6rem; margin-bottom: 1.4rem; padding: 1rem 1.1rem; border-radius: 1rem; background: rgba(4, 6, 20, 0.5); border: 0.1rem solid var(--line); }
.auth-facts > div { display: grid; gap: 0.1rem; }
.auth-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.auth-check { display: block; margin-top: 0.8rem; font-size: 0.95rem; min-height: 1.3em; }

/* MARK: Narrow windows */

@media (max-width: 1400px) {
  .mcard { grid-template-columns: 11rem minmax(0, 1fr) auto auto; column-gap: 1.1rem; }
  .mcard-title { font-size: 2.1rem; }
  .mcard-code-value { font-size: 2.4rem; }
  .mcard-qr { width: 6.2rem; height: 6.2rem; }
  .org-row { grid-template-columns: minmax(14rem, 2fr) 8.5rem 5rem 8rem 8rem minmax(12rem, auto); }
}
@media (max-width: 1100px) {
  .bibs-layout { grid-template-columns: 1fr; }
  .bibs-options { position: static; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-rules { grid-template-columns: 1fr; }
  .mini-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share { grid-template-columns: 1fr; }
  .mcard { grid-template-columns: 9rem minmax(0, 1fr) auto; grid-template-areas: "art main qr" "art code code" "art actions actions"; }
  .mcard-code { justify-items: start; padding-top: 0; }
  .signup-card { grid-template-columns: auto minmax(0, 1fr); }
  .signup-when { text-align: left; }
  .org-row { grid-template-columns: minmax(0, 1fr) auto; }
  .org-row > :nth-child(3), .org-row > :nth-child(4), .org-row > :nth-child(5) { display: none; }
  .org-head { display: none; }
}
