:root {
  color-scheme: dark;
  --page: #07111f;
  --panel: rgba(7, 17, 31, 0.78);
  --panel-2: rgba(14, 35, 60, 0.82);
  --line: rgba(116, 183, 255, 0.28);
  --line-strong: rgba(89, 169, 255, 0.62);
  --text: #edf7ff;
  --muted: #9fb6ce;
  --blue: #2297ff;
  --cyan: #68c8ff;
  --gold: #f2b94b;
  --green: #61e39e;
  --red: #ff7f86;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 151, 255, 0.18), transparent 32%),
    radial-gradient(circle at 82% 20%, rgba(242, 185, 75, 0.16), transparent 34%),
    linear-gradient(155deg, #050b15 0%, #071526 52%, #101b29 100%);
}
:fullscreen {
  background: var(--page);
  cursor: default;
  pointer-events: auto;
}
:fullscreen body { cursor: default; pointer-events: auto; }
:fullscreen .phone-stage {
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  padding: 10px;
}
:fullscreen .glass-frame {
  min-height: calc(100vh - 20px);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button, select { transition: transform 80ms ease, filter 80ms ease; }
button.is-pressing,
button:active,
select:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(1.14);
}

.auth-gate[hidden],
.phone-stage[hidden] {
  display: none !important;
}

.phone-stage {
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 10px 22px;
}
.glass-frame {
  min-height: calc(100vh - 28px);
  border: 2px solid rgba(242, 185, 75, 0.92);
  border-radius: 30px;
  padding: 14px;
  background: rgba(3, 9, 18, 0.58);
  box-shadow: inset 0 0 0 1px rgba(104, 200, 255, 0.15), var(--shadow);
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 14px;
  background:
    linear-gradient(rgba(4, 12, 22, 0.72), rgba(4, 12, 22, 0.88)),
    radial-gradient(circle at 75% 38%, rgba(242, 185, 75, 0.2), transparent 24%),
    radial-gradient(circle at 22% 22%, rgba(34, 151, 255, 0.2), transparent 28%);
  box-shadow: 0 0 28px rgba(104, 200, 255, 0.38), inset 0 0 24px rgba(104, 200, 255, 0.12);
}
.hero-topline,
.match-strip,
.target-header,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.live-chip,
.status-pill,
.work-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--cyan);
  background: rgba(7, 25, 45, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.live-chip i,
.status-pill::before,
.work-state i {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}
.status-pill.is-online { color: var(--green); }
.status-pill.is-offline { color: var(--gold); }
.live-board {
  width: min(100%, 330px);
  margin: 18px 0 14px;
  border: 1px solid rgba(104, 200, 255, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(2, 10, 20, 0.52);
}
.board-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.board-row {
  display: grid;
  grid-template-columns: 24px 1fr 44px;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(104, 200, 255, 0.1);
  font-size: 0.82rem;
}
.board-row:last-child { border-bottom: 0; }
.board-row span { color: var(--muted); }
.board-row b { color: var(--gold); text-align: right; }
.brand-lockup {
  position: relative;
  padding: 8px 0 10px 6px;
  border-left: 3px solid var(--blue);
}
.brand-dot {
  position: absolute;
  left: -13px;
  top: -5px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(34, 151, 255, 0.95);
}
h1 {
  margin: 0;
  font-size: 2.42rem;
  line-height: 0.95;
  letter-spacing: 0;
  color: #eaf6ff;
  text-shadow: 0 0 18px rgba(104, 200, 255, 0.5);
}
h1 span { color: #cfe8ff; }
.brand-lockup p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}
.work-card {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-top: 1px solid rgba(242, 185, 75, 0.7);
  padding-top: 12px;
}
.work-card small { color: var(--gold); text-align: right; }
.work-card strong { font-size: 1rem; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(5, 18, 33, 0.72);
}
.tab-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}
.tab-button.is-active {
  color: #03101f;
  background: linear-gradient(180deg, #68c8ff, #2297ff);
}
.tab-panel { display: none; padding-top: 12px; }
.tab-panel.is-active { display: block; }

.match-strip,
.capture-panel,
.setup-grid,
.member-list,
.result-total,
.ranking-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}
.match-strip { padding: 12px; align-items: end; }
.match-strip span,
.selected-shooter span,
.target-header span,
.result-total span,
.member-list small,
.ranking-list small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.match-strip strong,
.target-header strong { display: block; margin-top: 4px; }
.match-strip small { color: var(--gold); }
select, input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(2, 10, 20, 0.9);
  color: var(--text);
}
.lane-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(136px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: thin;
}
.lane-card {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}
.lane-card.is-selected {
  border-color: rgba(34, 151, 255, 0.95);
  background: rgba(34, 151, 255, 0.18);
  box-shadow: inset 0 0 18px rgba(34, 151, 255, 0.16);
}
.lane-card span,
.lane-card small { display: block; color: var(--muted); }
.lane-card strong { display: block; margin: 6px 0 4px; font-size: 1.05rem; }
.capture-panel { padding: 14px; }
.mini-target {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--gold) 0 5px, transparent 6px),
    repeating-radial-gradient(circle, rgba(104, 200, 255, 0.2) 0 8px, rgba(104, 200, 255, 0.02) 9px 15px);
  border: 1px solid var(--line-strong);
}
.score-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.score-summary output {
  min-height: 62px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}
.score-summary span { font-size: 1.35rem; }
.score-summary small { display: block; color: var(--muted); font-size: 0.72rem; }
.hit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hit-grid button {
  aspect-ratio: 1 / 0.78;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(34, 151, 255, 0.18), rgba(238, 246, 255, 0.055));
  color: var(--text);
}
.hit-grid button:disabled { opacity: 0.42; cursor: not-allowed; }
.hit-grid strong { display: block; font-size: 1.55rem; line-height: 1; }
.hit-grid span { display: block; margin-top: 6px; color: var(--gold); font-weight: 900; }
.action-row { margin-top: 12px; }
.primary-button,
.ghost-button {
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.primary-button {
  color: #07111f;
  background: linear-gradient(180deg, #ffd478, var(--gold));
  border-color: transparent;
}
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; }
.ghost-button { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.full { width: 100%; margin-top: 12px; }
.message { min-height: 22px; margin: 12px 0 0; color: var(--muted); }
.message.is-ok { color: var(--green); }
.message.is-error { color: var(--red); }
.setup-grid { display: grid; gap: 12px; padding: 14px; }
.setup-grid label { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
.member-list,
.ranking-list { margin: 12px 0 0; padding: 8px; }
.member-list div,
.ranking-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.member-list div:last-child,
.ranking-list li:last-child { border-bottom: 0; }
.member-list span,
.ranking-list span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #03101f;
  background: var(--blue);
  font-weight: 900;
}
.member-list small,
.ranking-list small { grid-column: 2; }
.result-total {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
}
.result-total div { padding: 14px; background: rgba(255, 255, 255, 0.05); }
.result-total strong { display: block; margin-top: 5px; font-size: 1.7rem; color: var(--gold); }
@media (max-width: 380px) {
  .glass-frame { border-radius: 24px; padding: 10px; }
  h1 { font-size: 2.05rem; }
  .hero-topline { align-items: flex-start; }
  .live-chip, .status-pill { font-size: 0.7rem; padding: 7px 9px; }
  .hit-grid button { min-height: 66px; }
}
@media (min-width: 760px) {
  .phone-stage { width: min(100%, 920px); }
  .tab-panel.is-active#tab-capture { display: grid; grid-template-columns: 1fr 1.15fr; gap: 14px; align-items: start; }
  .match-strip { grid-column: 1 / -1; }
  .lane-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; padding: 0; }
}
@media print {
  body { background: white; color: #111; }
  .hero-panel, .tabs, #tab-capture, #tab-setup, .primary-button, .next-shooter-panel { display: none !important; }
  .phone-stage, .glass-frame { width: 100%; min-height: auto; padding: 0; border: 0; box-shadow: none; }
  .tab-panel, #tab-results { display: block !important; padding: 0; }
  .result-total, .ranking-list { box-shadow: none; border-color: #333; background: white; color: #111; }
  .ranking-list small, .result-total span { color: #333; }
}
.barcode-print-sheet { display: none; }
@media print {
  body.printing-barcode > * { display: none !important; }
  body.printing-barcode #appShell,
  body.printing-barcode #feedbackDialog { display: none !important; }
  body.printing-barcode > #barcodePrintSheet {
    display: block !important;
    visibility: visible !important;
    width: 100%;
    padding: 24mm 18mm;
    color: #111;
    background: #fff;
  }
  .barcode-print-sheet h1 { margin: 0 0 12mm; font: 700 22pt Arial, sans-serif; }
  .barcode-print-sheet p { margin: 0 0 4mm; font: 12pt Arial, sans-serif; }
  .barcode-print-sheet svg { display: block; width: 56mm; height: 56mm; margin: 8mm auto 0; background: #fff; }
  .barcode-print-sheet svg .qr-background { fill: #fff; }
  .barcode-print-sheet svg .qr-module { fill: #111; }
}
.shooter-pulldown {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}
.shooter-pulldown label,
.series-size {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.score-rows {
  display: grid;
  gap: 7px;
}
.score-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) 96px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 8px 7px 14px;
  background: linear-gradient(180deg, rgba(34, 151, 255, 0.13), rgba(238, 246, 255, 0.04));
}
.score-row span {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 950;
}
.score-row input {
  min-height: 42px;
  text-align: center;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 950;
}
.compact-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}
.next-shooter-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.next-shooter-panel[hidden] { display: none; }
.confirmation {
  border: 1px solid rgba(97, 227, 158, 0.45);
  border-radius: 12px;
  padding: 10px;
  color: var(--green);
  background: rgba(97, 227, 158, 0.09);
  font-weight: 900;
}
.next-shooter-panel h2 {
  margin: 12px 0 10px;
  font-size: 1rem;
  letter-spacing: 0;
}
.next-shooter-grid {
  display: grid;
  gap: 9px;
}
.club-heading {
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}
.next-shooter-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}
.next-shooter-card:active {
  border-color: var(--blue);
  background: rgba(34, 151, 255, 0.18);
}
.next-shooter-card span,
.next-shooter-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.next-shooter-card strong {
  display: block;
  margin: 3px 0;
  font-size: 1.02rem;
}
.display-push-state {
  margin-top: 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.barcode-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  border: 1px solid rgba(104, 200, 255, 0.18);
  border-radius: 12px;
  padding: 10px;
  background: rgba(2, 10, 20, 0.42);
}
.barcode-panel label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.barcode-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
}
.barcode-actions .ghost-button {
  min-width: 74px;
  min-height: 44px;
  padding: 0 10px;
}
.scanner-panel {
  display: grid;
  gap: 8px;
}
.scanner-panel[hidden] { display: none; }
#scannerVideo {
  width: 100%;
  min-height: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #020a14;
  object-fit: cover;
}
.target-header {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: end;
}
#standInput {
  text-align: center;
  color: var(--gold);
  font-weight: 950;
}
@media (max-width: 420px) {
  .barcode-actions {
    grid-template-columns: 1fr 1fr;
  }
  .barcode-actions input {
    grid-column: 1 / -1;
  }
  .target-header {
    grid-template-columns: 76px 1fr;
  }
  .target-header > div:last-child {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.app-footer {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px 4px 2px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}
.app-footer span:first-child {
  color: var(--gold);
  font-weight: 900;
}
/* MATCHPOINT popup shooter picker */
.shooter-picker {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}
.shooter-picker > span,
.dialog-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.picker-button {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(104, 200, 255, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(9, 28, 50, 0.95), rgba(2, 10, 20, 0.9));
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 0 20px rgba(34, 151, 255, 0.08);
}
.picker-button strong,
.dialog-head strong,
.dialog-shooter strong {
  display: block;
  letter-spacing: 0;
}
.picker-button small,
.dialog-shooter small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}
.shooter-dialog {
  width: min(92vw, 420px);
  max-height: min(82vh, 720px);
  border: 1px solid rgba(104, 200, 255, 0.36);
  border-radius: 16px;
  padding: 0;
  background: rgba(3, 8, 19, 0.96);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 34px rgba(34, 151, 255, 0.22);
  backdrop-filter: blur(20px);
}
.shooter-dialog::backdrop {
  background: rgba(0, 4, 12, 0.72);
  backdrop-filter: blur(3px);
}
.dialog-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.icon-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.3rem;
  line-height: 1;
}
.dialog-list {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 540px);
  overflow: auto;
  padding-right: 2px;
}
.dialog-club {
  display: grid;
  gap: 8px;
}
.dialog-club h3 {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.dialog-shooter {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  text-align: left;
}
.dialog-shooter[aria-pressed="true"] {
  border-color: rgba(65, 169, 255, 0.72);
  background: rgba(34, 151, 255, 0.16);
}
.dialog-shooter span {
  color: var(--blue);
  font-size: 1.1rem;
}
.dialog-shooter small {
  grid-column: 2;
}
.technical-status[hidden] {
  display: none !important;
}
.online-user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(128, 177, 222, 0.16);
}
.online-user-row:last-child { border-bottom: 0; }
.online-user-row small { color: var(--muted); }
.next-shooter-panel .primary-button {
  margin-top: 12px;
}

/* MATCHPOINT mobile bottom tabs and iPhone capture fit */
body {
  min-height: 100dvh;
}
.phone-stage {
  min-height: 100dvh;
}
.glass-frame {
  min-height: 100dvh;
  padding-bottom: 82px;
}
.compact-hero {
  padding: 13px 14px 12px;
}
.compact-hero .brand-lockup {
  margin-top: 0;
}
.compact-hero h1 {
  font-size: 2.05rem;
}
.compact-hero p {
  font-size: 0.76rem;
}
.bottom-tabs {
  position: fixed;
  left: max(8px, calc((100vw - 430px) / 2 + 10px));
  right: max(8px, calc((100vw - 430px) / 2 + 10px));
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 20;
  margin: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(34, 151, 255, 0.2);
  backdrop-filter: blur(18px);
}
.capture-panel {
  padding: 10px;
}
.shooter-pulldown {
  margin-bottom: 8px;
}
.barcode-panel {
  margin: 8px 0;
}
.compact-target-header {
  grid-template-columns: 92px minmax(0, 1fr) 98px;
  gap: 8px;
}
.compact-target-header input,
.compact-target-header select,
.shooter-pulldown select,
.barcode-actions input,
.barcode-actions button {
  min-height: 40px;
}
.compact-summary {
  margin: 8px 0;
}
.compact-summary output {
  min-height: 48px;
  white-space: nowrap;
  overflow: hidden;
}
.compact-summary span {
  font-size: 1.22rem;
}
.compact-score-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.compact-score-rows .score-row {
  min-height: 39px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  padding: 5px 6px 5px 9px;
  border-radius: 10px;
}
.compact-score-rows .score-row span {
  font-size: 1.05rem;
}
.compact-score-rows .score-row input {
  min-height: 30px;
  padding: 0 6px;
  font-size: 1rem;
}
.compact-score-rows .score-row input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  text-align: center;
}
.compact-score-rows .score-row input[type="number"]::-webkit-inner-spin-button,
.compact-score-rows .score-row input[type="number"]::-webkit-outer-spin-button { margin: 0; }
.compact-actions {
  margin-top: 8px;
}
.compact-actions button {
  min-height: 42px;
}
.message {
  margin-top: 8px;
  font-size: 0.82rem;
}
.next-shooter-panel {
  margin-top: 8px;
  padding: 9px;
}
.confirmation {
  padding: 8px;
  font-size: 0.82rem;
}
.technical-status[hidden] {
  display: none !important;
}
@media (max-width: 420px) {
  .glass-frame {
    padding: 10px 10px 82px;
  }
  .compact-hero h1 {
    font-size: 1.82rem;
  }
  .compact-target-header {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .compact-target-header > div:last-child {
    grid-column: auto;
  }
  .compact-score-rows .score-row {
    min-height: 37px;
  }
}
@media (max-height: 760px) {
  .compact-hero {
    display: none;
  }
  .glass-frame {
    padding-top: 8px;
  }
  .capture-panel {
    margin-top: 0;
  }
}

.shot-check {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0 0;
  border: 1px solid rgba(99, 176, 255, 0.24);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(2, 10, 20, 0.56);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}
.shot-check.is-ok {
  border-color: rgba(97, 227, 158, 0.42);
  color: var(--green);
  background: rgba(97, 227, 158, 0.08);
}
.shot-check.is-error {
  border-color: rgba(255, 124, 132, 0.42);
  color: var(--red);
  background: rgba(255, 124, 132, 0.08);
}
.compact-summary[hidden],
.shot-check[hidden],
.compact-score-rows[hidden],
.compact-actions[hidden],
#captureMessage[hidden] { display: none !important; }
.simple-shooter-results button { position: relative; }
.icon-button { width: 38px; min-width: 38px; min-height: 38px; display: inline-grid; place-items: center; padding: 0; font-size: 1.05rem; line-height: 1; }
.new-shooter-button {
  align-self: end;
  width: 72px;
  min-height: 44px;
  height: 44px;
  max-height: 44px;
  padding: 0 10px;
}
.icon-button.danger { color: var(--red); border-color: rgba(255, 124, 132, 0.48); }
.shooter-edit-actions .icon-button.primary-button { color: #06111f; }
.shooter-edit-actions { grid-template-columns: 38px 1fr 38px 38px; align-items: center; }
.confirm-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(1, 6, 13, 0.74); backdrop-filter: blur(14px); }
.confirm-modal[hidden] { display: none; }
.confirm-dialog { width: min(100%, 430px); border: 1px solid rgba(112, 207, 255, 0.5); border-radius: 16px; padding: 22px; background: linear-gradient(180deg, rgba(8, 20, 36, 0.99), rgba(3, 10, 20, 0.99)); box-shadow: 0 24px 80px rgba(0,0,0,.65), 0 0 30px rgba(35,152,255,.2); text-align: center; }
.confirm-icon { color: var(--red); font-size: 2rem; }
.confirm-dialog h2 { margin: 8px 0 6px; color: var(--text); font-size: 1.05rem; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.confirm-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
@media (min-width: 900px) {
  .capture-panel .compact-target-header {
    grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1.35fr) minmax(145px, 1fr);
  }
  .capture-panel .compact-summary output {
    min-height: 32px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .capture-panel .compact-summary span { font-size: 0.95rem; }
  .capture-panel .compact-summary small { display: inline; font-size: 0.58rem; }
}

/* Keep all visible navigation items together, including the admin profile tab. */
.bottom-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
}
.bottom-tabs:has([data-role="admin-only"][hidden]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bottom-tabs button {
  min-width: 0;
  padding-inline: 4px;
  white-space: nowrap;
}

/* Keep the edit popup as one compact surface instead of nesting a second scrollbar. */
@media (min-width: 760px) {
  .shooter-edit-modal {
    align-items: center;
    overflow-y: auto;
    padding: 12px;
  }
  .shooter-edit-dialog {
    max-height: none;
    overflow: visible;
    padding: 12px;
  }
  .shooter-edit-body {
    overflow: visible;
    gap: 8px;
  }
  .shooter-edit-section,
  .shooter-edit-grid {
    gap: 5px;
  }
  .shooter-edit-section {
    padding: 7px;
  }
  .shooter-edit-actions {
    margin-top: 6px;
    padding-top: 6px;
  }
}
@media (max-width: 759px) {
  .shooter-edit-modal {
    align-items: start;
    padding: 8px;
  }
  .shooter-edit-dialog {
    max-height: none;
    overflow: visible;
  }
  .shooter-edit-body {
    overflow: visible;
  }
}
@media (max-width: 430px) {
  .phone-stage {
    width: 100%;
    padding: 8px;
  }
  .glass-frame {
    width: 100%;
    overflow-x: hidden;
  }
  .barcode-actions .ghost-button {
    min-width: 64px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .bottom-tabs {
    left: 10px;
    right: 10px;
  }
}

/* MATCHPOINT revised vertical capture flow */
.compact-target-header {
  grid-template-columns: 82px minmax(0, 1fr) 90px 64px;
}
.compact-score-rows {
  grid-template-columns: 1fr !important;
  gap: 5px;
}
.compact-score-rows .score-row {
  min-height: 36px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 4px 6px 4px 10px;
}
.compact-score-rows .score-row input {
  min-height: 28px;
}
.compact-score-rows .score-row.is-miss {
  border-color: rgba(255, 124, 132, 0.7);
  background: linear-gradient(180deg, rgba(255, 124, 132, 0.2), rgba(255, 124, 132, 0.08));
}
.compact-score-rows .score-row.is-miss span {
  color: var(--red);
}
.compact-score-rows .score-row.is-miss input {
  border-color: rgba(255, 124, 132, 0.65);
  color: var(--red);
}
@media (max-width: 430px) {
  .compact-target-header {
    grid-template-columns: 70px minmax(0, 1fr) 76px 54px;
  }
  .compact-score-rows .score-row {
    grid-template-columns: 70px minmax(0, 1fr);
    min-height: 34px;
  }
}
@media (max-height: 760px) {
  .barcode-panel {
    display: none;
  }
}

/* iPhone capture must fit without vertical brand header */
@media (max-width: 430px) {
  .compact-hero {
    display: none;
  }
  .glass-frame {
    padding-top: 8px;
  }
  .tab-panel.is-active#tab-capture {
    padding-top: 0;
  }
}

/* MATCHPOINT compact title bar and barcode scan trigger */
.matchpoint-titlebar {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.matchpoint-titlebar .title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.matchpoint-titlebar h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: 0;
}
.matchpoint-titlebar .title-row strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.title-subline {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.25;
}
.shooter-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}
.shooter-line .shooter-pulldown {
  margin-bottom: 0;
}
.barcode-button {
  min-height: 40px;
  padding-left: 8px;
  padding-right: 8px;
}
.compact-scanner {
  margin: 8px 0;
}
@media (max-width: 430px) {
  .compact-hero.matchpoint-titlebar {
    display: block;
    padding: 9px 10px;
  }
  .matchpoint-titlebar h1 {
    font-size: 1.32rem;
  }
  .matchpoint-titlebar .title-row strong {
    font-size: 0.68rem;
  }
  .title-subline {
    font-size: 0.62rem;
  }
  .shooter-line {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 7px;
  }
}

/* MATCHPOINT count picker and safer spacing */
.compact-score-rows .score-row select {
  min-height: 32px;
  border: 1px solid rgba(104, 200, 255, 0.38);
  border-radius: 10px;
  padding: 0 10px;
  background: rgba(2, 10, 20, 0.92);
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
  text-align: center;
  text-align-last: center;
}
.compact-score-rows .score-row.is-miss {
  margin-top: 10px;
  margin-bottom: 10px;
}
.compact-score-rows .score-row.is-miss select {
  border-color: rgba(255, 124, 132, 0.65);
  color: var(--red);
}
.compact-actions {
  margin-top: 12px;
}

/* MATCHPOINT reference-style wordmark and legal footer */
.matchpoint-titlebar {
  border-color: rgba(150, 211, 255, 0.62);
  background: linear-gradient(180deg, rgba(4, 13, 25, 0.94), rgba(3, 10, 20, 0.82));
  box-shadow: inset 0 0 22px rgba(112, 207, 255, 0.12), 0 0 18px rgba(112, 207, 255, 0.16);
}
.matchpoint-titlebar .title-row {
  align-items: center;
}
.matchpoint-logo {
  color: #f4f8fb;
  font-weight: 950;
  font-size: 1.58rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.42), 0 0 15px rgba(218, 238, 255, 0.5);
}
.target-o {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 0.86em;
  height: 0.86em;
  margin: 0 0.015em;
  color: transparent;
  border: 0.08em solid #edf7ff;
  border-radius: 50%;
  vertical-align: -0.05em;
  box-shadow: 0 0 0 0.035em rgba(3, 9, 18, 0.9), 0 0 12px rgba(112, 207, 255, 0.55);
}
.target-o::before,
.target-o::after {
  content: "";
  position: absolute;
  background: #edf7ff;
  box-shadow: 0 0 8px rgba(112, 207, 255, 0.55);
}
.target-o::before {
  width: 1.22em;
  height: 0.055em;
}
.target-o::after {
  width: 0.055em;
  height: 1.22em;
}
.target-o + span {
  color: inherit;
}
.legal-footer {
  position: fixed;
  left: max(8px, calc((100vw - 430px) / 2 + 10px));
  right: max(8px, calc((100vw - 430px) / 2 + 10px));
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 58px);
  z-index: 19;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(104, 200, 255, 0.18);
  border-radius: 9px;
  padding: 3px 8px;
  background: rgba(3, 10, 20, 0.86);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 760;
  backdrop-filter: blur(16px);
}
.legal-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 850;
}
.info-dialog { width: min(92vw, 520px); max-width: calc(100vw - 24px); border: 1px solid rgba(104, 200, 255, 0.48); border-radius: 16px; padding: 0; color: var(--text); background: linear-gradient(180deg, rgba(8, 20, 36, 0.99), rgba(3, 10, 20, 0.99)); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 26px rgba(35, 152, 255, 0.2); }
.info-dialog::backdrop { background: rgba(1, 6, 13, 0.72); backdrop-filter: blur(14px); }
.info-dialog .dialog-body { display: grid; gap: 10px; padding: 18px; }
.info-dialog h2 { margin: 0; color: var(--gold); font-size: 1.05rem; text-transform: uppercase; }
.info-dialog label { display: grid; gap: 4px; color: var(--muted); font-size: 0.72rem; font-weight: 850; }
.info-dialog textarea { resize: vertical; min-height: 110px; }
.info-dialog .close { margin: 0 18px 18px; min-height: 38px; }
.info-dialog .project-panel { padding: 12px; }
.info-dialog .project-panel p { margin: 8px 0; }
.feedback-hint { margin: 0; color: var(--muted); font-size: 0.72rem; }
.glass-frame {
  padding-bottom: 112px;
}
@media (max-width: 430px) {
  .matchpoint-logo {
    font-size: 1.42rem;
  }
  .legal-footer {
    left: 10px;
    right: 10px;
    gap: 6px;
    font-size: 0.59rem;
  }
}

/* MATCHPOINT fixed score column flow: 10-6 left, 5-1 right, miss full width */
.compact-score-rows {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(5, auto) auto;
  gap: 5px 7px;
}
.compact-score-rows .score-row {
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 35px;
}
.compact-score-rows .score-row.is-miss {
  grid-template-columns: 74px minmax(0, 1fr);
  margin-top: 9px;
  margin-bottom: 9px;
}

/* Legal line below bottom tabs */
.bottom-tabs {
  bottom: calc(max(10px, env(safe-area-inset-bottom)) + 30px);
}
.legal-footer {
  bottom: max(8px, env(safe-area-inset-bottom));
}
.glass-frame {
  padding-bottom: 138px;
}
@media (max-width: 430px) {
  .bottom-tabs {
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 30px);
  }
  .legal-footer {
    bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* Reiter close to capture, copyright below */
.glass-frame {
  padding-bottom: 10px;
}
.bottom-tabs {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 10px 0 0;
}
.legal-footer {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 6px 0 0;
  min-height: 24px;
}
.message {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(97, 227, 158, 0.42);
  border-radius: 10px;
  padding: 6px 8px;
  background: rgba(97, 227, 158, 0.08);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}
.message.is-error {
  border-color: rgba(255, 124, 132, 0.42);
  color: var(--red);
  background: rgba(255, 124, 132, 0.08);
}
@media (max-width: 430px) {
  .bottom-tabs,
  .legal-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
  }
}

/* Automatic miss count */
.compact-score-rows .score-row.is-miss select:disabled {
  opacity: 1;
  cursor: default;
}
.compact-score-rows .score-row.is-miss span::after {
  content: " auto";
  display: inline-block;
  margin-left: 5px;
  color: rgba(255, 124, 132, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

/* Larger reference-like MATCHPOINT header */
.matchpoint-titlebar .title-row {
  align-items: flex-end;
}
.matchpoint-logo {
  font-size: 1.86rem;
  letter-spacing: 0.018em;
}
.matchpoint-titlebar .title-row strong {
  padding-bottom: 0.12rem;
  color: #7fc4ff;
  font-size: 0.66rem;
}
.title-subline {
  text-align: center;
  color: #d7ebff;
  font-size: 0.7rem;
  font-weight: 850;
}
.target-o {
  width: 0.82em;
  height: 0.82em;
  border-width: 0.075em;
  vertical-align: -0.03em;
}
.target-o::before {
  width: 1.02em;
  height: 0.045em;
}
.target-o::after {
  width: 0.045em;
  height: 1.02em;
}
.target-o::before,
.target-o::after {
  opacity: 0.92;
}
@media (max-width: 430px) {
  .matchpoint-logo {
    font-size: 1.72rem;
  }
  .matchpoint-titlebar .title-row strong {
    font-size: 0.61rem;
  }
  .title-subline {
    font-size: 0.68rem;
  }
}

/* iPhone 17 fit pass: compact 402px capture without dead space */
@media (max-width: 430px) {
  html, body { overflow-x: hidden; }
  .phone-stage { width: 100%; max-width: 402px; padding: 4px; }
  .glass-frame { min-height: 0; border-radius: 24px; padding: 7px; }
  .matchpoint-titlebar { padding: 7px 8px; border-radius: 14px; }
  .matchpoint-titlebar .title-row { gap: 6px; min-width: 0; }
  .matchpoint-logo { min-width: 0; font-size: clamp(1.54rem, 7.3vw, 1.72rem); }
  .matchpoint-titlebar .title-row strong { font-size: 0.54rem; }
  .title-subline { margin-top: 3px; }
  .capture-panel { margin-top: 6px; padding: 7px; }
  .shooter-picker, .shooter-pulldown { margin-bottom: 6px; }
  .compact-target-header { grid-template-columns: 78px minmax(0, 1fr) 86px; gap: 5px; }
  .compact-target-header input, .compact-target-header select, select, input { min-height: 34px; border-radius: 9px; }
  .compact-summary { gap: 6px; margin: 6px 0; }
  .compact-summary output { min-height: 39px; }
  .score-summary span, .compact-summary span { font-size: 1.06rem; }
  .shot-check { min-height: 25px; margin-top: 4px; padding: 4px 6px; font-size: 0.68rem; }
  .compact-score-rows { gap: 4px 6px; margin-top: 5px; }
  .compact-score-rows .score-row { min-height: 29px; border-radius: 9px; padding: 2px 5px 2px 8px; }
  .compact-score-rows .score-row select { min-height: 24px; border-radius: 9px; }
  .compact-score-rows .score-row.is-miss { margin-top: 6px; margin-bottom: 6px; }
  .compact-actions { gap: 8px; margin-top: 5px; }
  .compact-actions button { min-height: 34px; }
  .message { min-height: 25px; margin-top: 6px; padding: 4px 6px; font-size: 0.68rem; }
  .bottom-tabs { position: static; margin-top: 8px; padding: 5px; gap: 5px; }
  .bottom-tabs button { min-height: 40px; }
  .app-footer { margin-top: 5px; padding: 2px 6px; font-size: 0.55rem; }
}
/* iPhone 17 final frame: full 402 x 874 capture screen, no outside dead area */
@media (max-width: 430px) {
  html, body { min-height: 100dvh; overflow-x: hidden; }
  .phone-stage { width: 100vw; max-width: none; min-height: 100dvh; padding: 4px; }
  .glass-frame { min-height: calc(100dvh - 8px); display: flex; flex-direction: column; overflow: visible; padding: 7px; border-radius: 24px; }
  .matchpoint-titlebar { flex: 0 0 auto; }
  .tab-panel.is-active#tab-capture { flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 0; overflow: visible; }
  .capture-panel { flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; margin-top: 6px; overflow: visible; }
  .compact-score-rows { flex: 1 1 auto; grid-template-rows: repeat(5, minmax(36px, 1fr)) minmax(48px, auto); }
  .compact-score-rows .score-row { min-height: 36px; }
  .compact-score-rows .score-row select { min-height: 28px; }
  .compact-score-rows .score-row.is-miss { min-height: 48px; margin-top: 6px; margin-bottom: 6px; }
  .bottom-tabs { flex: 0 0 auto; position: static; margin-top: 7px; }
  body.app-mode { overflow-y: auto; }
  .legal-footer { flex: 0 0 auto; position: static; margin-top: 5px; }
  .app-footer { display: none; }
}
/* MATCHPOINT Schützen sheet capture for later Ergebnisliste printout */
.setup-sheet {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}
.match-create-panel { display: grid; gap: 8px; border: 1px solid rgba(242, 185, 75, 0.34); border-radius: 10px; padding: 10px; background: rgba(2, 10, 20, 0.38); }
.match-form { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(150px, 1fr)); gap: 8px; align-items: end; }
.match-form label { display: grid; gap: 4px; color: var(--muted); font-size: 0.72rem; font-weight: 850; }
.match-form label:first-child,
.match-form .match-existing-field { grid-column: 1 / -1; }
.match-form .full { grid-column: 1 / -1; min-height: 38px; }
.match-create-panel .message { margin: 0; }
@media (max-width: 899px) { .match-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .match-form label:first-child { grid-column: 1 / -1; } }
.sheet-headline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}
.sheet-headline span { color: var(--muted); font-size: 0.72rem; text-transform: none; }
.setup-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.setup-header-actions button { min-height: 32px; padding: 5px 10px; font-size: 0.72rem; }
.sheet-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-fields label { display: grid; gap: 4px; color: var(--muted); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }
.sheet-fields label:first-child,
.sheet-fields label:nth-child(4),
.sheet-fields label:nth-child(5) { grid-column: 1 / -1; }
.club-entry { display: grid; gap: 6px; border: 1px solid rgba(104, 200, 255, 0.18); border-radius: 10px; padding: 8px; background: rgba(2, 10, 20, 0.42); }
.club-entry h2,
.club-entry h3 { margin: 0; color: var(--gold); font-size: 0.78rem; letter-spacing: 0; }
.club-entry h3 { color: var(--muted); margin-top: 3px; }
.sheet-table-head,
.sheet-row { display: grid; grid-template-columns: 38px minmax(118px, 1fr) 48px 48px 54px; gap: 4px; align-items: center; }
.sheet-table-head { color: var(--muted); font-size: 0.62rem; font-weight: 850; }
.sheet-row input,
.sheet-row output { min-height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: rgba(2, 10, 20, 0.9); color: var(--text); font-size: 0.78rem; }
.sheet-row output { display: grid; place-items: center; color: var(--gold); font-weight: 950; }
@media (max-width: 430px) {
  .setup-sheet { padding: 8px; gap: 8px; overflow-x: hidden; }
  .sheet-fields { gap: 6px; }
  .sheet-table-head,
  .sheet-row { grid-template-columns: 31px minmax(104px, 1fr) 42px 42px 48px; gap: 3px; }
  .sheet-row input,
  .sheet-row output { min-height: 28px; padding: 0 4px; font-size: 0.72rem; }
}
/* iPhone 17 final clamp: no right-side clipping */
@media (max-width: 430px) {
  .glass-frame, .matchpoint-titlebar, .capture-panel, .title-row, .shooter-line, .compact-target-header, .compact-summary, .compact-score-rows, .compact-actions, .bottom-tabs, .legal-footer { min-width: 0; max-width: 100%; }
  .glass-frame > *, .title-row > *, .shooter-line > *, .compact-target-header > *, .compact-summary > *, .compact-score-rows > *, .compact-actions > *, .bottom-tabs > * { min-width: 0; }
  select, input, button { min-width: 0; max-width: 100%; }
  .matchpoint-titlebar .title-row strong { overflow: hidden; text-overflow: ellipsis; }
  .shooter-line { grid-template-columns: minmax(0, 1fr) 64px; }
  .barcode-button { font-size: 0.82rem; padding-inline: 4px; }
  .compact-target-header { grid-template-columns: 72px minmax(0, 1fr) 78px; }
  .compact-score-rows { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .compact-score-rows .score-row { grid-template-columns: 30px minmax(0, 1fr); }
  .compact-score-rows .score-row.is-miss { grid-template-columns: 72px minmax(0, 1fr); }
  .bottom-tabs button { overflow: hidden; text-overflow: ellipsis; }
}
/* iPhone 17 PNG capture fix: local Edge preview must not center into a wider CSS viewport */
@media (max-width: 430px) {
  /* Use the complete phone viewport; fixed preview widths caused right-side clipping. */
  .phone-stage {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 4px;
    box-sizing: border-box;
  }
  .glass-frame,
  .matchpoint-titlebar,
  .tab-panel,
  .bottom-tabs,
  .legal-footer { width: 100%; box-sizing: border-box; }
  .glass-frame { min-height: calc(100dvh - 8px); }
  .tab-panel.is-active#tab-setup .simple-shooter-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .tab-panel.is-active#tab-setup .simple-match-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .tab-panel.is-active#tab-setup .simple-match-context label,
  .tab-panel.is-active#tab-setup .simple-match-context label:first-child,
  .tab-panel.is-active#tab-setup .simple-match-context label:last-child { grid-column: 1; }
  .tab-panel.is-active#tab-setup .simple-shooter-card {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-results {
    max-height: 270px;
    flex: 0 1 auto;
  }
  .simple-shooter-results button { grid-template-columns: minmax(0, 1fr) auto; }
}
/* MATCHPOINT Schützen: dataset only, no result entry */
.dataset-context,
.dataset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.dataset-context label:first-child,
.dataset-context label:last-child,
.dataset-grid .wide { grid-column: 1 / -1; }
.dataset-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(104, 200, 255, 0.18);
  border-radius: 10px;
  padding: 8px;
  background: rgba(2, 10, 20, 0.42);
}
.dataset-actions,
.dataset-save,
.dataset-barcode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.dataset-actions .is-selected {
  color: #03101f;
  border: 0;
  background: linear-gradient(180deg, #70cfff, #2398ff);
}
.dataset-barcode { grid-template-columns: 1fr 92px; align-items: end; }
.dataset-save { grid-template-columns: 1fr 1fr; }
.dataset-list {
  margin-top: 0;
  border: 1px solid rgba(104, 200, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2, 10, 20, 0.42);
}
.dataset-list-head,
.dataset-row {
  display: grid;
  grid-template-columns: 32px minmax(118px, 1fr) 48px 68px;
  gap: 4px;
  align-items: center;
}
.dataset-list-head {
  padding: 5px 6px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
}
.dataset-row {
  padding: 6px;
  border-top: 1px solid rgba(104, 200, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 850;
}
.dataset-row span:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #07111f;
  background: var(--cyan);
  font-weight: 950;
}
.dataset-row small { display: block; color: var(--muted); font-size: 0.6rem; }
.dataset-row i { color: var(--gold); font-style: normal; font-weight: 950; }
.dataset-row b { color: var(--green); font-size: 0.66rem; text-align: right; }
@media (max-width: 430px) {
  .dataset-context,
  .dataset-grid { gap: 5px; }
  .dataset-card { padding: 7px; gap: 6px; }
  .dataset-list-head,
  .dataset-row { grid-template-columns: 31px minmax(112px, 1fr) 42px 64px; gap: 3px; }
  .dataset-row { padding: 5px 6px; font-size: 0.68rem; }
  .dataset-row small { font-size: 0.54rem; }
  .dataset-row b { font-size: 0.57rem; }
}

/* MATCHPOINT role login */
.auth-gate {
  width: min(100%, 540px, calc(100vw - 16px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 18px 12px;
}
.auth-card {
  width: 100%;
  border: 1px solid rgba(104, 200, 255, 0.42);
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(4, 15, 29, 0.96), rgba(3, 9, 18, 0.92));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 151, 255, 0.16);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f4f8fb;
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing: 0.03em;
}
.auth-brand .target-o {
  width: 1.05em;
  height: 1.05em;
  border-width: 0.08em;
}
.auth-kicker {
  margin: 24px 0 5px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.auth-card h1 {
  font-size: clamp(1.7rem, 5vw, 2.35rem);
}
.auth-copy {
  margin: 9px 0 20px;
  color: var(--muted);
}
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-form[hidden] { display: none; }
.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}
.auth-form .full { margin-top: 4px; }
.auth-card .message {
  margin-bottom: 0;
}
.auth-card .message.is-error {
  color: var(--red);
}
.auth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(104, 200, 255, 0.16);
}
.auth-bar > span {
  min-width: 0;
}
.auth-bar strong,
.auth-bar small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-bar strong { color: var(--text); font-size: 0.75rem; }
.auth-bar small { color: var(--gold); font-size: 0.62rem; font-weight: 850; text-transform: uppercase; }
.auth-bar .ghost-button { min-height: 32px; padding: 0 9px; font-size: 0.68rem; }
.auth-bar .fullscreen-button { min-width: 32px; padding: 0; font-size: 1rem; line-height: 1; }
[aria-label="Vollbild"]:focus-visible,
[aria-label="Vollbild beenden"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[data-role="admin-only"][hidden] { display: none !important; }
@media (max-width: 430px) {
  .auth-gate { width: 100%; padding: 10px; }
  .auth-card { padding: 18px; border-radius: 16px; }
}
/* Login must fit the real mobile viewport before the app shell is active. */
@media (max-width: 430px) {
  html,
  body { overflow-x: hidden; }
  .auth-gate {
    width: 100%;
    min-width: 0;
    height: 100dvh;
    min-height: 100dvh;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: none;
  }
  .auth-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    overflow: hidden;
  }
  .auth-card h1 {
    font-size: 2.15rem;
    line-height: 1.08;
  }
  .auth-copy { font-size: 0.98rem; line-height: 1.35; }
  .auth-form,
  .auth-bar { min-width: 0; }
  .auth-form input,
  .auth-form select,
  .auth-form button { max-width: 100%; min-width: 0; }
}
/* MATCHPOINT Schützen: Heim-/Gastverein und Mannschaftsbildung */
.home-guest-context label:first-child,
.home-guest-context label:last-child { grid-column: 1 / -1; }
.club-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.club-checks label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(104, 200, 255, 0.22);
  border-radius: 9px;
  padding: 5px 7px;
  background: rgba(2, 10, 20, 0.6);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: none;
}
.club-checks input {
  width: 15px;
  height: 15px;
  min-height: 15px;
  accent-color: var(--gold);
}
.team-build-list {
  border: 1px solid rgba(104, 200, 255, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2, 10, 20, 0.42);
}
.team-build-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.045);
}
.team-build-head strong {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}
.team-build-head span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  text-align: right;
}
.team-build-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 62px;
  gap: 5px;
  align-items: center;
  padding: 5px 7px;
  border-top: 1px solid rgba(104, 200, 255, 0.12);
  font-size: 0.7rem;
  font-weight: 850;
}
.team-build-row span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #07111f;
  background: var(--cyan);
  font-weight: 950;
}
.team-build-row strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-build-row small {
  display: block;
  color: var(--muted);
  font-size: 0.55rem;
}
.team-build-row b {
  justify-self: end;
  border-radius: 7px;
  padding: 3px 5px;
  color: #07111f;
  background: var(--gold);
  font-size: 0.56rem;
  font-weight: 950;
}
.team-build-row b.reserve { background: #ff8b91; }
@media (max-width: 430px) {
  .shooter-dataset-panel { gap: 6px; }
  .home-guest-context { gap: 5px; }
  .club-checks { gap: 5px; }
  .club-checks label { min-height: 29px; padding: 4px 6px; font-size: 0.64rem; }
  .team-build-head { padding: 5px 6px; }
  .team-build-head strong { font-size: 0.66rem; }
  .team-build-head span { font-size: 0.52rem; }
  .team-build-row { grid-template-columns: 28px minmax(0, 1fr) 58px; gap: 4px; padding: 4px 6px; font-size: 0.64rem; }
  .team-build-row span { width: 22px; height: 22px; }
  .team-build-row small { font-size: 0.5rem; }
  .team-build-row b { font-size: 0.52rem; }
}
.team-build-row.club-summary { background: rgba(112, 207, 255, 0.05); }
.team-build-row.club-summary b { background: rgba(112, 207, 255, 0.88); }
/* MATCHPOINT Schützen: Schützensuche im Datensatz */
.shooter-search-panel {
  display: grid;
  gap: 5px;
}
.shooter-search-results {
  max-height: 96px;
  overflow-y: auto;
  border: 1px solid rgba(104, 200, 255, 0.2);
  border-radius: 9px;
  background: rgba(2, 10, 20, 0.48);
}
.shooter-search-results button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 5px;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(104, 200, 255, 0.1);
  padding: 5px 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 880;
}
.shooter-search-results button:first-child {
  border-top: 0;
  background: rgba(112, 207, 255, 0.08);
}
.shooter-search-results strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shooter-search-results small {
  display: block;
  color: var(--muted);
  font-size: 0.52rem;
}
.shooter-search-results span {
  justify-self: end;
  border-radius: 7px;
  padding: 3px 5px;
  color: #07111f;
  background: var(--gold);
  font-size: 0.52rem;
  font-weight: 950;
}
.shooter-search-results .reserve { background: #ff8b91; }
.team-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.team-summary-grid div {
  border: 1px solid rgba(104, 200, 255, 0.2);
  border-radius: 9px;
  padding: 5px 6px;
  background: rgba(2, 10, 20, 0.5);
}
.team-summary-grid strong {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}
.team-summary-grid span {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 950;
}
.team-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.52rem;
}
@media (max-width: 430px) {
  .shooter-search-panel { gap: 4px; }
  .shooter-search-results { max-height: 96px; }
  .shooter-search-results button { min-height: 32px; font-size: 0.63rem; }
  .shooter-search-results small { font-size: 0.49rem; }
  .team-summary-grid { gap: 5px; }
  .team-summary-grid div { padding: 5px 6px; }
  .team-summary-grid strong { font-size: 0.58rem; }
  .team-summary-grid span { font-size: 0.62rem; }
  .team-summary-grid small { font-size: 0.49rem; }
}
/* MATCHPOINT Schützen: kompakte Mannschaftsregel ohne Unterliste */
.team-rule-line {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid rgba(104, 200, 255, 0.2);
  border-radius: 9px;
  padding: 4px 6px;
  background: rgba(2, 10, 20, 0.5);
}
.team-rule-line strong {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 950;
  text-transform: uppercase;
}
.team-rule-line span {
  color: var(--text);
  font-size: 0.64rem;
  font-weight: 900;
  text-align: right;
}
@media (max-width: 430px) {
  .team-rule-line { min-height: 28px; }
  .team-rule-line strong { font-size: 0.57rem; }
  .team-rule-line span { font-size: 0.6rem; }
}
/* MATCHPOINT Schützen: extra Luft zwischen Suche und unteren Reitern */
@media (max-width: 430px) {
  .shooter-search-results { max-height: 80px; }
  .shooter-search-results button { min-height: 30px; padding: 4px 6px; }
  .dataset-card { gap: 5px; }
}
/* MATCHPOINT Schützen: vereinfachter RWK-Workflow */
.simple-match-context label:first-child,
.simple-match-context label:last-child { grid-column: 1 / -1; }
.simple-shooter-panel { gap: 8px; }
.simple-shooter-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.simple-search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 6px;
  align-items: end;
}
.simple-shooter-results {
  flex: 1 1 auto;
  min-height: 0;
  height: 155px;
  max-height: 155px;
  margin-top: 7px;
  overflow-y: auto;
  border: 1px solid rgba(104, 200, 255, 0.2);
  border-radius: 10px;
  background: rgba(2, 10, 20, 0.48);
}
.simple-shooter-results button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 6px;
  align-items: center;
  border: 0;
  border-top: 1px solid rgba(104, 200, 255, 0.12);
  padding: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.simple-shooter-results button[hidden] { display: none !important; }
.simple-shooter-results button:first-child { border-top: 0; background: rgba(112, 207, 255, 0.08); }
.simple-shooter-results strong {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}
.simple-shooter-results small {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 780;
}
.simple-shooter-results span {
  justify-self: end;
  border-radius: 8px;
  padding: 5px 7px;
  color: #07111f;
  background: linear-gradient(180deg, #70cfff, #2398ff);
  font-size: 0.65rem;
  font-weight: 950;
}
.shooter-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(1, 6, 13, 0.68);
  backdrop-filter: blur(12px);
}
.shooter-edit-modal[hidden] { display: none; }
.shooter-edit-dialog {
  width: min(92vw, 370px);
  max-height: calc(100% - 24px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(112, 207, 255, 0.5);
  border-radius: 15px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.98), rgba(3, 10, 20, 0.98));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.58), 0 0 22px rgba(35, 152, 255, 0.18);
}
.shooter-edit-dialog h2 {
  flex: 0 0 auto;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
}
.shooter-edit-body {
  flex: 0 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}
.shooter-edit-section {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(104, 200, 255, 0.22);
  border-radius: 10px;
  padding: 8px;
  background: rgba(2, 10, 20, 0.42);
}
.shooter-edit-section p {
  margin: 0;
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}
.shooter-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.shooter-edit-grid .wide { grid-column: 1 / -1; }
.privacy-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 7px;
  border: 1px solid rgba(104, 200, 255, 0.22);
  border-radius: 10px;
  padding: 8px;
  background: rgba(2, 10, 20, 0.42);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 780;
  line-height: 1.25;
  text-transform: none;
}
.privacy-check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--blue);
}
.shooter-edit-actions {
  flex: 0 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(104, 200, 255, 0.18);
}
.shooter-edit-actions > span { flex: 1 1 auto; }
.shooter-edit-actions .icon-button {
  flex: 0 0 auto;
  width: auto;
  min-width: 92px;
  height: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 900;
}
.shooter-edit-actions .icon-button span {
  display: inline;
}
.shooter-edit-actions .danger {
  color: var(--red);
  background: rgba(255, 124, 132, 0.08);
}
.shooter-edit-actions .primary-button {
  color: #06111f;
  background: linear-gradient(180deg, #ffd77a, #f2b94b);
}
@media (max-width: 430px) {
  .simple-shooter-panel { gap: 7px; }
  .simple-search-head { grid-template-columns: minmax(0, 1fr) 68px; }
  .new-shooter-button { width: 68px; min-height: 34px; height: 34px; max-height: 34px; }
  .simple-shooter-results { height: 145px; max-height: 145px; }
  .simple-shooter-results button { min-height: 46px; padding: 7px; }
  .simple-shooter-results strong { font-size: 0.74rem; }
  .simple-shooter-results small { font-size: 0.55rem; }
}
/* MATCHPOINT Schuetzen: vereinfachter Wettkampfblock */
.simple-match-context label:first-child,
.simple-match-context label:nth-last-child(1) { grid-column: 1 / -1; }
@media (max-width: 430px) {
  .simple-match-context { gap: 6px; }
}
/* MATCHPOINT Schützen: abgeleitete Heim- und Gastvereine */
.derived-field output {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(104, 200, 255, 0.26);
  border-radius: 8px;
  padding: 0 8px;
  color: var(--text);
  background: rgba(112, 207, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
}
/* MATCHPOINT final responsive PC and mobile layout */
.phone-stage {
  width: min(100%, 1600px);
  max-width: 1600px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 14px 22px;
}
.glass-frame {
  width: 100%;
  min-height: calc(100dvh - 28px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tab-panel.is-active {
  flex: 1 1 auto;
  min-height: 0;
}
.bottom-tabs,
.legal-footer {
  flex: 0 0 auto;
}
.simple-match-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.simple-match-context label:first-child,
.simple-match-context label:last-child {
  grid-column: 1 / -1;
}
.simple-shooter-card {
  min-height: 0;
}
.setup-date {
  display: grid;
  gap: 1px;
  justify-items: end;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}
.setup-date small { color: var(--muted); font-size: 0.58rem; }
.setup-date strong { color: var(--gold); font-size: 0.76rem; }
.club-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 8px 0; }
.club-form label { display: grid; gap: 4px; color: var(--muted); font-size: 0.68rem; font-weight: 850; }
.club-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 7px; }
@media (max-width: 430px) { .club-form { grid-template-columns: 1fr; } .club-form-actions { grid-column: 1; } }
.derived-field output {
  text-transform: none;
}
@media (min-width: 900px) {
  body {
    overflow: auto;
  }
  .phone-stage {
    padding: 22px;
  }
  .glass-frame {
    border-radius: 26px;
    padding: 16px;
  }
  .shooter-edit-dialog {
    width: min(92vw, 760px);
    max-height: calc(100dvh - 48px);
    padding: 16px;
  }
  .shooter-edit-dialog h2 {
    font-size: 1.1rem;
  }
  .shooter-edit-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: start;
    gap: 12px;
  }
  .privacy-check {
    grid-column: 1 / -1;
  }
  .matchpoint-titlebar {
    max-width: none;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-panel {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
    gap: 14px;
    align-items: stretch;
  }
  .tab-panel.is-active#tab-setup .sheet-headline {
    grid-column: 1 / -1;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-card {
    min-height: 510px;
  }
  .tab-panel.is-active#tab-capture .capture-panel {
    max-width: 720px;
    margin-inline: auto;
  }
  .tab-panel.is-active#tab-results {
    max-width: 860px;
    margin-inline: auto;
  }
}
@media (max-width: 430px) {
  html,
  body {
    min-height: 100dvh;
    overflow-x: hidden;
  }
  .phone-stage {
    width: 100%;
    max-width: 402px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 4px;
  }
  .glass-frame {
    width: 100%;
    min-height: calc(100dvh - 8px);
    border-radius: 24px;
    padding: 7px;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-panel {
    display: grid;
    gap: 7px;
  }
  .simple-match-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .simple-match-context label:first-child,
  .simple-match-context label:last-child {
    grid-column: 1 / -1;
  }
  .simple-search-head {
    grid-template-columns: minmax(0, 1fr) 68px;
  }
  .simple-shooter-results button {
    min-height: 46px;
    padding: 7px;
  }
  .shooter-edit-dialog {
    width: min(92vw, 370px);
  }
}
.barcode-print-button {
  min-height: 34px;
  border: 1px solid rgba(243, 188, 78, 0.44);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(243, 188, 78, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
}
.barcode-print-button.wide { grid-column: 1 / -1; }
.shooter-disciplines-field {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(86, 164, 220, 0.28);
  border-radius: 8px;
}
.shooter-disciplines-field legend {
  padding: 0 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}
.shooter-discipline-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}
.shooter-discipline-options label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: auto;
  min-width: 0;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}
.shooter-discipline-options input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: #35aef4; }
.barcode-print-item { break-after: page; text-align: center; }
.barcode-print-item:last-child { break-after: auto; }
.barcode-print-item p { margin: 0 0 4mm; font: 12pt Arial, sans-serif; }
.barcode-print-item svg { display: block; width: 56mm; height: 56mm; margin: 8mm auto 0; background: #fff; }
.barcode-print-item svg .qr-background { fill: #fff; }
.barcode-print-item svg .qr-module { fill: #111; }
.barcode-field output {
  min-height: 34px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(243, 188, 78, 0.44);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--gold);
  background: rgba(243, 188, 78, 0.08);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
}

/* Keep the database list compact; only the list itself may scroll. */
.tab-panel.is-active#tab-setup .simple-shooter-results {
  flex: 0 0 auto;
  height: 162px !important;
  max-height: 162px !important;
  overflow-y: scroll !important;
}
.tab-panel.is-active#tab-setup .simple-shooter-results button {
  height: 54px;
  min-height: 54px;
  max-height: 54px;
}
@media (max-width: 430px) {
  .tab-panel.is-active#tab-setup .simple-shooter-results {
    height: 144px !important;
    max-height: 144px !important;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-results button {
    height: 46px;
    min-height: 46px;
    max-height: 46px;
  }
}
.shooter-barcode-svg {
  display: block;
  width: 150px;
  height: 150px;
  aspect-ratio: 1;
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  color: #111;
}
.shooter-barcode-svg[hidden] { display: none; }
.shooter-barcode-svg .qr-background { fill: #fff; }
.shooter-barcode-svg .qr-module { fill: #111; }
.auth-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}
.auth-switch[hidden] { display: none; }
.auth-switch .ghost-button {
  flex: 0 1 auto;
  min-height: 34px;
  padding: 0 10px;
  color: var(--cyan);
  font-size: 0.72rem;
}
.registration-form[hidden] { display: none; }
.registration-form .full { margin-top: 2px; }
.approval-panel {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(242, 185, 75, 0.32);
  border-radius: 10px;
  padding: 9px;
  background: rgba(2, 10, 20, 0.42);
}
.approval-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.approval-headline strong { color: var(--gold); font-size: 0.75rem; text-transform: uppercase; }
.approval-headline .ghost-button { min-height: 30px; padding: 0 8px; font-size: 0.65rem; }
.approval-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 6px;
  align-items: center;
  padding-top: 7px;
  border-top: 1px solid rgba(104, 200, 255, 0.14);
}
.approval-row strong,
.approval-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approval-row strong { font-size: 0.76rem; }
.approval-row small { color: var(--muted); font-size: 0.64rem; }
.approval-row button { min-height: 30px; padding: 0 7px; font-size: 0.64rem; }
.approval-row .approve { color: var(--green); border-color: rgba(97, 227, 158, 0.4); }
.approval-row .reject { color: var(--red); border-color: rgba(255, 124, 132, 0.4); }
.approval-empty { margin: 0; color: var(--muted); font-size: 0.72rem; }
.profile-panel { display: grid; gap: 10px; }
.profile-hint { margin: 0; color: var(--muted); font-size: 0.72rem; }
.own-registration {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(104, 200, 255, 0.24);
  border-radius: 10px;
  padding: 9px;
  background: rgba(6, 22, 40, 0.5);
}
.own-registration-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.own-registration-details div { min-width: 0; display: grid; gap: 2px; }
.own-registration-details small { color: var(--muted); font-size: 0.62rem; }
.own-registration-details strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
.registration-status { color: var(--green); font-size: 0.68rem; }
.registration-status.is-pending { color: var(--gold); }
.registration-status.is-rejected { color: var(--red); }
@media (max-width: 759px) {
  .own-registration-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* MATCHPOINT desktop monitor fit: keep the complete work surface in one viewport. */
@media (min-width: 900px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }
  .phone-stage {
    height: 100dvh;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
  }
  .glass-frame {
    height: calc(100dvh - 16px);
    min-height: 0;
    padding: 10px;
    border-radius: 20px;
  }
  .matchpoint-titlebar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(190px, auto);
    align-items: center;
    gap: 14px;
    padding: 7px 10px;
    border-radius: 14px;
  }
  .matchpoint-titlebar .title-row {
    align-items: center;
  }
  .matchpoint-logo {
    font-size: 1.55rem;
  }
  .matchpoint-titlebar .title-row strong {
    font-size: 0.58rem;
  }
  .title-subline {
    margin: 0;
    font-size: 0.7rem;
  }
  .auth-bar {
    gap: 10px;
    padding-top: 0;
    border-top: 0;
  }
  .auth-bar > span {
    text-align: right;
  }
  .tab-panel.is-active {
    height: 100%;
    min-height: 0;
    padding-top: 6px;
    overflow: hidden;
  }
  .bottom-tabs {
    min-height: 42px;
    margin-top: 6px;
    padding: 4px;
  }
  .bottom-tabs button {
    min-height: 32px;
  }
  .legal-footer {
    min-height: 18px;
    margin-top: 3px;
    padding: 1px 8px;
    font-size: 0.58rem;
  }
  .app-footer {
    display: none;
  }

  .tab-panel.is-active#tab-capture {
    display: block;
  }
  .tab-panel.is-active#tab-capture .capture-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(340px, 0.9fr) minmax(440px, 1.1fr);
    grid-template-rows: auto auto auto auto auto auto;
    gap: 5px 12px;
    margin: 0;
    padding: 8px;
    overflow: hidden;
  }
  .capture-panel .shooter-line {
    grid-column: 1;
    grid-row: 1;
  }
  .capture-panel .compact-scanner {
    grid-column: 1;
    grid-row: 2;
  }
  .capture-panel .compact-target-header {
    grid-column: 1;
    grid-row: 2;
  }
  .capture-panel .compact-summary {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
  }
  .capture-panel .shot-check {
    grid-column: 1;
    grid-row: 4;
    margin-top: 0;
  }
  .capture-panel .compact-actions {
    grid-column: 1;
    grid-row: 5;
    margin-top: 0;
  }
  .capture-panel .message {
    grid-column: 1;
    grid-row: 6;
    margin: 0;
  }
  .capture-panel .compact-score-rows {
    grid-column: 2;
    grid-row: 1 / 7;
    align-self: stretch;
    margin: 0;
  }
  .capture-panel .shooter-pulldown {
    margin-bottom: 0;
  }
  .capture-panel .compact-target-header input,
  .capture-panel .compact-target-header select,
  .capture-panel .shooter-pulldown select {
    min-height: 34px;
  }
  .capture-panel .compact-summary output {
    min-height: 38px;
  }
  .capture-panel .compact-actions button {
    min-height: 34px;
  }

  .tab-panel.is-active#tab-setup .simple-shooter-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 6px 10px;
    padding: 7px;
    overflow: hidden;
  }
  .tab-panel.is-active#tab-setup .sheet-headline {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .tab-panel.is-active#tab-setup .approval-panel {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 62px;
    gap: 4px;
    padding: 6px;
    overflow-y: auto;
  }
  .tab-panel.is-active#tab-setup .simple-match-context {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 5px;
  }
  .tab-panel.is-active#tab-setup .simple-match-context label:first-child,
  .tab-panel.is-active#tab-setup .simple-match-context label:last-child {
    grid-column: auto;
  }
  .tab-panel.is-active#tab-setup .simple-match-context label {
    gap: 2px;
    font-size: 0.64rem;
  }
  .tab-panel.is-active#tab-setup .simple-match-context input,
  .tab-panel.is-active#tab-setup .simple-match-context select,
  .tab-panel.is-active#tab-setup .simple-match-context output {
    min-height: 32px;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-card {
    grid-column: 2;
    grid-row: 3;
    height: 100%;
    min-height: 0;
    padding: 6px;
    overflow: hidden;
  }
  .tab-panel.is-active#tab-setup .simple-shooter-results button {
    min-height: 38px;
    padding: 5px 7px;
  }

  .tab-panel.is-active#tab-results {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    margin-inline: auto;
  }
  .tab-panel.is-active#tab-results .result-total,
  .tab-panel.is-active#tab-results .ranking-list,
  .tab-panel.is-active#tab-results .full {
    margin-top: 0;
  }
  .tab-panel.is-active#tab-results .ranking-list {
    overflow-y: auto;
  }
}

/* Final popup overflow rules: only the overlay may scroll on short screens. */
@media (min-width: 760px) {
  .shooter-edit-body { overflow: visible; }
  .shooter-edit-dialog { max-height: none; overflow: visible; }
}
@media (max-width: 759px) {
  .shooter-edit-body { overflow: visible; }
  .shooter-edit-dialog { max-height: none; overflow: visible; }
}

/* Compact registration layout for desktop monitors. */
@media (min-width: 900px) {
  .auth-gate {
    min-height: 100dvh;
    padding: 10px 16px;
  }
  .auth-card {
    max-width: 760px;
    padding: 18px 20px;
  }
  .auth-kicker { margin-top: 12px; }
  .auth-copy { margin: 6px 0 12px; }
  .registration-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }
  .registration-form .privacy-check,
  .registration-form .full { grid-column: 1 / -1; }
  .registration-form label { gap: 4px; font-size: 0.7rem; }
  .registration-form input,
  .registration-form select { min-height: 38px; }
  .registration-form .full { margin-top: 0; min-height: 42px; }
}
@media (max-width: 899px) {
  .auth-card { padding: 18px; }
  .auth-copy { margin-bottom: 14px; }
  .auth-form { gap: 9px; }
}
@media (hover: none) and (pointer: coarse) {
  html,
  body { width: 100%; max-width: 100%; overflow-x: hidden; }
  .auth-gate,
  .phone-stage { width: 100vw; max-width: 100vw; min-width: 0; margin-inline: 0; }
  .auth-card,
  .glass-frame { width: 100%; max-width: 100%; min-width: 0; }
  .auth-card h1 { max-width: 100%; overflow-wrap: anywhere; }
  .auth-card input,
  .auth-card select,
  .auth-card button { min-width: 0; max-width: 100%; }
}

/* Keep the authenticated app fixed to the device viewport. Internal lists may scroll, the page itself must not. */
body.app-mode {
  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
body.app-mode .phone-stage,
body.app-mode .glass-frame {
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
}
body.app-mode .phone-stage {
  padding-top: max(4px, env(safe-area-inset-top));
  padding-right: max(4px, env(safe-area-inset-right));
  padding-bottom: max(4px, env(safe-area-inset-bottom));
  padding-left: max(4px, env(safe-area-inset-left));
}
body.app-mode .glass-frame {
  height: 100%;
  max-height: 100%;
}
@media (max-width: 430px) {
  body.app-mode .phone-stage {
    width: 100vw;
    max-width: 100vw;
    padding-inline: 4px;
  }
  body.app-mode .glass-frame,
  body.app-mode .capture-panel,
  body.app-mode .bottom-tabs,
  body.app-mode .legal-footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .auth-gate {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
  .auth-card h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .auth-switch > span {
    flex: 1 1 120px;
    min-width: 0;
  }
}
@media (max-width: 899px) {
  body.app-mode .tab-panel.is-active {
    min-height: 0;
    max-height: 100%;
  }
}
/* One shared mobile frame for every tab, including the first login render. */
@media (max-width: 899px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .auth-gate,
  .phone-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  .auth-card,
  .glass-frame,
  .tab-panel,
  .capture-panel,
  .setup-sheet,
  .results-panel,
  .bottom-tabs,
  .legal-footer {
    max-width: 100%;
    min-width: 0;
  }
  .auth-card > *,
  .glass-frame > *,
  .tab-panel > *,
  .capture-panel > *,
  .setup-sheet > *,
  .bottom-tabs > * {
    min-width: 0;
    max-width: 100%;
  }
}

/* Final mobile fit: no control may widen a page beyond the viewport. */
@media (max-width: 899px) {
  .capture-panel,
  .capture-panel > *,
  .capture-panel .shooter-line > *,
  .capture-panel .compact-target-header > *,
  .capture-panel .compact-score-rows > *,
  .capture-panel .compact-actions > *,
  .auth-card,
  .auth-card > *,
  .auth-form > *,
  .bottom-tabs > * {
    min-width: 0;
    max-width: 100%;
  }
  .shooter-pulldown,
  .compact-target-header > div {
    min-width: 0;
    overflow: hidden;
  }
  .shooter-pulldown select,
  .compact-target-header input,
  .compact-target-header select,
  .auth-form input,
  .auth-form select,
  .auth-form button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .compact-target-header {
    grid-template-columns: minmax(96px, 0.34fr) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }
  .compact-target-header > div { display: grid; gap: 4px; min-width: 0; }
  .compact-target-header label {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* The capture header contains two controls: lane and program. Keep their
   labels and fields aligned instead of inheriting the former four-column row. */
.compact-target-header {
  grid-template-columns: minmax(110px, 180px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.compact-target-header > div {
  display: grid;
  grid-template-rows: 18px 40px;
  gap: 4px;
  min-width: 0;
}
.compact-target-header .series-size {
  display: block;
  height: 18px;
  margin: 0;
  line-height: 1.1;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}
.compact-target-header input,
.compact-target-header select {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  min-width: 0;
  max-width: 100%;
}

/* iOS Safari has no document fullscreen API. This keeps the app itself
   viewport-sized so the fullscreen control still has a useful fallback. */
body.pseudo-fullscreen {
  min-height: 100dvh;
  overflow: hidden;
  background: var(--page);
}
body.pseudo-fullscreen .phone-stage {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}
body.pseudo-fullscreen .glass-frame {
  min-height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  overflow-y: auto;
}
@media (max-width: 430px) {
  .compact-target-header {
    grid-template-columns: minmax(78px, 0.34fr) minmax(0, 1fr);
    gap: 6px;
  }
  .compact-target-header > div { grid-template-rows: 16px 34px; }
  .compact-target-header .series-size { height: 16px; }
  .compact-target-header input,
  .compact-target-header select {
    height: 34px;
    min-height: 34px;
    max-height: 34px;
  }
}

/* Centered Glass-Navy dialogs for the admin entry points. */
.match-create-modal,
.admin-action-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
  background: rgba(1, 6, 13, 0.72);
  backdrop-filter: blur(14px);
}

/* Mobile capture must remain fully reachable below the browser chrome. */
@media (max-width: 899px) {
  body.app-mode {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  body.app-mode .phone-stage,
  body.app-mode .glass-frame {
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow: visible;
  }
  body.app-mode .tab-panel.is-active {
    max-height: none;
    overflow: visible;
  }
}

/* Keep the complete 10-to-1 hit entry visible on phone screens. */
@media (max-width: 430px) {
  body.app-mode .matchpoint-titlebar { padding: 5px 6px; }
  body.app-mode .matchpoint-logo { font-size: 1.42rem; }
  body.app-mode .capture-panel { gap: 5px; padding: 7px; }
  body.app-mode .shooter-pulldown { margin-bottom: 5px; }
  body.app-mode .shooter-pulldown select,
  body.app-mode .compact-target-header input,
  body.app-mode .compact-target-header select { min-height: 34px; padding-inline: 7px; font-size: 0.78rem; }
  body.app-mode .compact-target-header { grid-template-columns: minmax(78px, 0.34fr) minmax(0, 1fr); gap: 6px; }
  body.app-mode .compact-target-header label { font-size: 0.62rem; }
  body.app-mode .compact-summary { gap: 6px; margin: 5px 0; }
  body.app-mode .compact-summary output { min-height: 36px; }
  body.app-mode .compact-summary span { font-size: 1rem; }
  body.app-mode .compact-summary small { font-size: 0.54rem; }
  body.app-mode .shot-check { min-height: 25px; margin-top: 3px; padding: 3px 5px; font-size: 0.62rem; }
  body.app-mode .compact-score-rows { gap: 4px 6px; margin-top: 4px; grid-template-rows: repeat(5, minmax(31px, 1fr)) minmax(41px, auto); }
  body.app-mode .compact-score-rows .score-row { min-height: 31px; padding: 2px 5px 2px 7px; font-size: 0.74rem; }
  body.app-mode .compact-score-rows .score-row select { min-height: 27px; padding-inline: 5px; border-radius: 8px; font-size: 0.74rem; }
  body.app-mode .compact-score-rows .score-row.is-miss { min-height: 41px; margin: 3px 0; }
  body.app-mode .compact-actions { gap: 7px; margin-top: 5px; }
  body.app-mode .compact-actions button { min-height: 36px; padding-inline: 7px; font-size: 0.76rem; }
  body.app-mode .capture-panel .message { min-height: 20px; margin-top: 4px; padding: 3px 5px; font-size: 0.6rem; }
  body.app-mode .bottom-tabs { margin-top: 4px; padding: 3px; gap: 3px; }
  body.app-mode .bottom-tabs button { min-height: 34px; font-size: 0.72rem; }
}

/* The home/shooter view must follow its content height on phones. The list
   itself remains the scrollable area, not the whole application frame. */
@media (max-width: 899px) {
  body.app-mode:has(#tab-setup.is-active) {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }
  body.app-mode:has(#tab-setup.is-active) .phone-stage,
  body.app-mode:has(#tab-setup.is-active) .glass-frame {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  body.app-mode:has(#tab-setup.is-active) .simple-shooter-panel,
  body.app-mode:has(#tab-setup.is-active) .simple-shooter-card {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 430px) {
  body.app-mode .simple-match-context {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }
  body.app-mode .simple-match-context label,
  body.app-mode .simple-match-context input,
  body.app-mode .simple-match-context select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  body.app-mode .simple-match-context input[type="date"] {
    appearance: none;
    width: 180px;
    max-width: 100%;
  }
}
.match-create-modal[hidden],
.admin-action-modal[hidden] { display: none; }
.match-create-dialog,
.admin-action-dialog {
  width: min(88vw, 480px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 1px solid rgba(104, 200, 255, 0.48);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.98), rgba(3, 10, 20, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 26px rgba(35, 152, 255, 0.2);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-heading h2 {
  margin: 0;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 950;
  text-transform: uppercase;
}
.modal-current-match { margin: 4px 0 14px; color: var(--muted); font-size: 0.78rem; }
.admin-action-list { display: grid; gap: 10px; margin-top: 18px; }
.admin-action-list button { width: 100%; min-height: 48px; }
@media (max-width: 430px) {
  .match-create-modal,
  .admin-action-modal { padding: 10px; }
  .match-create-dialog,
  .admin-action-dialog {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 12px;
    border-radius: 14px;
  }
  .match-form { grid-template-columns: minmax(0, 1fr); }
  .match-form label:first-child,
  .match-form .match-existing-field,
  .match-form .full { grid-column: 1; }
}
