/* [project]/apps/web/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-ease: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .block {
    display: block;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .table {
    display: table;
  }

  .h-full {
    height: 100%;
  }

  .min-h-full {
    min-height: 100%;
  }

  .shrink {
    flex-shrink: 1;
  }

  .grow {
    flex-grow: 1;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .rounded {
    border-radius: .25rem;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }
}

:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #dce3ea;
  --surface: #fff;
  --canvas: #f5f7f8;
  --brand: #126e6a;
  --brand-dark: #0a514f;
  --accent: #e8f4f3;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--canvas);
  color: var(--ink);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.desktop-sidebar {
  display: none;
}

.mobile-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  display: flex;
}

.brand {
  color: var(--ink);
  align-items: center;
  gap: 10px;
  font-weight: 750;
  line-height: 1.05;
  display: inline-flex;
}

.brand-mark {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-weight: 800;
  display: grid;
}

.header-link {
  color: var(--brand-dark);
  font-size: .9rem;
  font-weight: 700;
}

.app-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 104px;
}

.access-shell {
  min-height: 100vh;
}

.access-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 3px;
  padding: 16px 20px;
  display: grid;
}

.access-header p, .access-header strong {
  margin: 0;
}

.access-header p {
  color: var(--brand);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
}

.access-header strong {
  font-size: .9rem;
}

.access-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 32px 20px;
}

.access-token-rotated-notice {
  z-index: 50;
  top: max(1rem, env(safe-area-inset-top));
  width: min(21rem, 100vw - 2rem);
  color: var(--brand-dark);
  background: #f3fbfa;
  border: 1px solid #b8d9d6;
  border-radius: 8px;
  margin: 0;
  padding: .6rem .75rem;
  font-size: .84rem;
  font-weight: 700;
  position: fixed;
  right: 1rem;
  box-shadow: 0 6px 18px #1b293424;
}

.access-token-rotated-notice small {
  color: var(--muted);
  margin-top: .15rem;
  font-weight: 400;
  display: block;
}

.page-header {
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  display: flex;
}

.eyebrow {
  color: var(--brand);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: .75rem;
  font-weight: 800;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  letter-spacing: -.045em;
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
}

h2 {
  letter-spacing: -.02em;
  margin-bottom: 8px;
  font-size: 1.22rem;
}

@media (max-width: 679px) {
  .page-header {
    gap: 4px;
    margin-bottom: 14px;
  }

  .eyebrow {
    margin-bottom: 2px;
    font-size: .68rem;
  }

  h1 {
    margin-bottom: 2px;
    font-size: 1.5rem;
  }

  .page-description {
    font-size: .86rem;
  }

  .header-action .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: .92rem;
  }

  .header-action a[href="/tournaments"] {
    min-height: 0;
    color: var(--brand-dark);
    background: none;
    border: 0;
    padding: 4px 2px;
    font-size: .88rem;
    font-weight: 700;
  }

  .header-action a[href="/tournaments"]:before {
    content: "← ";
  }

  .header-action a[href="/tournaments"]:hover, .header-action a[href="/tournaments"]:focus-visible {
    background: none;
    text-decoration: underline;
  }
}

.page-description, .section-heading p, .empty-state p, .preview-card p, .setting-placeholder p, .form-heading p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.button {
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 750;
  transition: background .15s, border-color .15s;
  display: inline-flex;
}

.button-primary {
  background: var(--brand);
  color: #fff;
}

.button-primary:hover, .button-primary:focus-visible {
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: #b8d9d6;
}

.button-secondary:hover, .button-secondary:focus-visible {
  background: var(--accent);
}

.button-danger {
  color: #b42318;
  background: #fff;
  border-color: #e2a3a3;
}

.button-danger:hover, .button-danger:focus-visible {
  background: #fdf1f1;
}

.content-section {
  gap: 18px;
  display: grid;
}

.tournament-access-create {
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  display: flex;
}

.tournament-access-create label {
  min-width: 10rem;
  color: var(--muted);
  gap: 4px;
  font-size: .82rem;
  display: grid;
}

.tournament-access-create input, .tournament-access-create select {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 9px;
  padding: 0 10px;
  font-weight: 400;
}

.tournament-access-create input:focus-visible, .tournament-access-create select:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

.tournament-access-create input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.tournament-access-create input:disabled, .tournament-access-create select:disabled {
  color: var(--muted);
  background: #f3f6f7;
}

.tournament-access-list {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.tournament-access-list li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  display: flex;
}

.tournament-access-list strong, .tournament-access-list small {
  display: block;
}

.tournament-access-list small {
  color: var(--muted);
  margin-top: 3px;
}

.tournament-access-presence-pill {
  color: #176a4a;
  vertical-align: middle;
  background: #e6f4ea;
  border-radius: 999px;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 0 7px;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1;
  display: inline-flex;
}

.tournament-access-actions {
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
  display: flex;
}

.tournament-access-list li {
  padding: 8px 10px;
}

.tournament-access-list .button {
  min-height: 36px;
  padding: 0 11px;
  font-size: .82rem;
}

.tournament-access-dialog {
  box-sizing: border-box;
  background: var(--surface);
  width: min(32rem, 100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  color: var(--ink);
  border: 0;
  border-radius: 12px;
  margin: auto;
  padding: 0;
  box-shadow: 0 18px 48px #1b29343d;
}

.tournament-access-dialog::backdrop {
  background: #1b29346b;
}

.tournament-access-dialog > section {
  gap: 12px;
  max-height: calc(100dvh - 2rem);
  padding: 18px;
  display: grid;
  overflow-y: auto;
}

.tournament-access-dialog header {
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  display: flex;
}

.tournament-access-dialog header strong, .tournament-access-dialog header small {
  display: block;
}

.tournament-access-dialog header small {
  color: var(--muted);
  margin-top: 3px;
}

.tournament-access-dialog-close {
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
}

.tournament-access-dialog h3 {
  margin: 4px 0 -4px;
  font-size: .92rem;
}

.tournament-access-dialog code {
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  white-space: normal;
  background: #f6f8fa;
  border-radius: 8px;
  padding: 9px;
  font-size: .78rem;
  line-height: 1.45;
  display: block;
}

.tournament-access-dialog img {
  border-radius: 6px;
  width: min(180px, 100%);
  height: auto;
  display: block;
}

.tournament-access-dialog-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.tournament-access-dialog .button {
  border-radius: 8px;
  min-height: 32px;
  padding: 0 10px;
  font-size: .8rem;
}

@media (max-width: 640px) {
  .tournament-access-dialog {
    width: calc(100vw - 1.25rem);
    max-height: calc(100dvh - 1.25rem);
  }

  .tournament-access-dialog > section {
    max-height: calc(100dvh - 1.25rem);
    padding: 14px;
  }

  .tournament-access-dialog header {
    align-items: start;
  }

  .tournament-access-list li {
    flex-direction: column;
    align-items: start;
  }

  .tournament-access-actions {
    justify-content: start;
  }
}

.section-heading {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.section-heading h2 {
  margin: 0;
}

.section-heading-count-mobile, .team-registration-lock-mobile {
  color: var(--muted);
  font-size: .8em;
  font-weight: 400;
}

.team-registration-lock {
  color: var(--muted);
  font-size: .9em;
}

.team-registration-status {
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.section-heading-count-desktop {
  display: none;
}

@media (min-width: 680px) {
  .section-heading-count-mobile, .team-registration-lock-mobile {
    display: none;
  }

  .section-heading-count-desktop {
    display: block;
  }
}

.empty-state, .setting-placeholder, .wizard-card, .preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 3px 14px #1b29340a;
}

.empty-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 270px;
  padding: 32px 20px;
  display: flex;
}

.empty-state p {
  max-width: 420px;
  margin-bottom: 22px;
}

.empty-icon {
  background: var(--accent);
  width: 48px;
  height: 48px;
  color: var(--brand);
  border-radius: 50%;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.8rem;
  display: grid;
}

.preview-grid {
  gap: 16px;
  display: grid;
}

.preview-card, .setting-placeholder {
  padding: 24px;
}

.preview-card h2 {
  margin-top: 20px;
}

.status-badge {
  color: #59636d;
  background: #f1f3f5;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
}

.wizard-steps {
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 12px;
  list-style: none;
  display: flex;
  overflow-x: auto;
}

.wizard-steps li {
  min-width: 124px;
  color: var(--muted);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  display: flex;
}

.wizard-steps li > span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: .75rem;
  display: grid;
}

.wizard-steps .is-current {
  color: var(--brand-dark);
}

.wizard-steps .is-current > span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.wizard-card {
  padding: 24px;
}

.organizer-auth-page {
  width: min(100% - 32px, 440px);
  margin: clamp(32px, 10vh, 96px) auto;
}

.organizer-auth-page .page-header {
  gap: 8px;
  margin-bottom: 18px;
}

.organizer-auth-card {
  padding: 20px;
}

.organizer-session-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.form-heading {
  margin-bottom: 26px;
}

.form-heading h2 {
  margin-bottom: 8px;
}

.form-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  display: grid;
}

.field {
  color: #344054;
  gap: 8px;
  min-width: 0;
  font-size: .9rem;
  font-weight: 700;
  display: grid;
}

.field.organizer-trust-device {
  align-items: center;
  gap: 9px;
  font-weight: 500;
  display: flex;
}

.field.organizer-trust-device input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  margin: 0;
}

.field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 9px;
  padding: 0 12px;
  font-weight: 400;
}

.field input:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

fieldset.field {
  border: 0;
  padding: 0;
}

legend {
  padding: 0;
}

.discipline-options {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}

.choice-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 10px;
  align-items: flex-start;
  gap: 10px;
  min-height: 82px;
  padding: 14px;
  display: flex;
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px #bfe5e1;
}

.choice-card strong, .choice-card small {
  display: block;
}

.choice-card small {
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}

.choice-card.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.checkbox-row {
  align-items: center;
  gap: 9px;
  min-height: 46px;
  font-weight: 400;
  display: flex;
}

.wizard-footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
}

.wizard-footer p {
  color: var(--muted);
  margin: 0;
  font-size: .88rem;
  line-height: 1.4;
}

.mobile-nav {
  z-index: 10;
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #fffffff5;
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.nav-link {
  color: #475467;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  min-height: 43px;
  padding: 0 11px;
  font-size: .92rem;
  font-weight: 650;
  display: flex;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--brand-dark);
  background: #eef5f5;
  outline: none;
}

.nav-link.is-current {
  background: var(--accent);
  color: var(--brand-dark);
}

.nav-link.is-compact {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 3px;
  font-size: .65rem;
}

.nav-icon {
  text-align: center;
  width: 18px;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-link.is-compact .nav-icon {
  font-size: 1rem;
}

.tournament-detail-nav {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  gap: 8px;
  padding: 8px;
  display: flex;
  overflow-x: auto;
}

.tournament-detail-nav span {
  color: var(--muted);
  white-space: nowrap;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: .85rem;
}

.tournament-observability, .stage-list, .stage-card-content, .ranking-groups {
  gap: 18px;
  display: grid;
}

.tournament-tabs-shell {
  border-bottom: 1px solid var(--line);
  position: relative;
}

.tournament-tabs {
  gap: 4px;
  display: flex;
  overflow-x: auto;
}

.tournament-tab {
  color: var(--muted);
  border-bottom: 2px solid #0000;
  flex: none;
  padding: 9px 12px;
  font-weight: 650;
  text-decoration: none;
}

.tournament-tab:hover {
  color: var(--ink);
}

.tournament-tab-active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.tournament-tabs-chevron {
  display: none;
}

@media (max-width: 640px) {
  .tournament-tabs {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tournament-tabs::-webkit-scrollbar {
    display: none;
  }

  .tournament-tabs-chevron {
    z-index: 1;
    width: 18px;
    height: 22px;
    color: var(--muted);
    pointer-events: none;
    background: linear-gradient(90deg, transparent, var(--surface) 42%);
    place-items: center;
    font-size: 1.25rem;
    line-height: 1;
    display: grid;
    position: absolute;
    bottom: 9px;
  }

  .tournament-tabs-chevron-left {
    background: linear-gradient(90deg, var(--surface) 58%, transparent);
    left: 0;
  }

  .tournament-tabs-chevron-right {
    right: 0;
  }
}

.match-status-summary {
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  display: grid;
  overflow: hidden;
}

.match-status-summary > div {
  background: var(--surface);
  min-width: 0;
  padding: 13px 14px;
}

.match-status-summary dt {
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 750;
}

.match-status-summary dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  font-weight: 750;
}

.tournament-facts-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  gap: 14px;
  padding: 16px 46px 16px 18px;
  display: grid;
  position: relative;
  box-shadow: 0 3px 14px #1b29340a;
}

.tournament-facts-edit {
  position: absolute;
  top: 12px;
  right: 12px;
}

.tournament-facts-row {
  flex-wrap: wrap;
  gap: 18px 24px;
  display: flex;
}

.tournament-fact {
  flex: none;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.tournament-fact-wide {
  flex: 200px;
}

.tournament-fact:not(:first-child) {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.tournament-fact dt {
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0;
  font-size: .72rem;
  font-weight: 750;
}

.tournament-fact dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 750;
}

.tournament-status-cell {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.tournament-status-reopen {
  min-height: 30px;
  padding: 0 10px;
  font-size: .78rem;
}

.tournament-facts-edit {
  width: 36px;
  height: 36px;
  font-size: .95rem;
}

.tournament-facts-responsive {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  margin: 0;
  padding-right: 12px;
  display: grid;
}

.tournament-facts-responsive > .tournament-fact {
  border-left: 0;
  min-width: 0;
  padding-left: 0;
  display: none;
}

.tournament-facts-responsive > .tournament-fact-mobile {
  grid-column: 1 / -1;
  gap: 0;
  display: grid;
}

.tournament-facts-responsive > .tournament-fact-mobile-discipline {
  grid-column: 1;
}

.tournament-facts-responsive > .tournament-fact-status {
  grid-area: 1 / 2;
  justify-self: end;
  display: grid;
}

.tournament-facts-responsive .tournament-fact-mobile dt, .tournament-facts-responsive .tournament-fact-status dt {
  display: none;
}

.tournament-facts-responsive .tournament-fact-mobile dd, .tournament-facts-responsive .tournament-fact-status dd {
  margin: 0;
}

.tournament-facts-responsive .tournament-fact-mobile-discipline dd {
  font-weight: 800;
}

.tournament-facts-responsive > .tournament-fact-mobile:not(.tournament-fact-mobile-discipline) dd {
  font-size: .88rem;
}

.tournament-facts-responsive > .tournament-fact-mobile-venue dd {
  color: var(--ink);
}

.tournament-facts-responsive > .tournament-fact-mobile-meta dd {
  color: var(--ink);
  font-weight: 650;
}

.tournament-facts-responsive > .tournament-fact-mobile-schedule dd {
  color: var(--muted);
}

@media (min-width: 680px) {
  .tournament-facts-responsive {
    flex-wrap: wrap;
    gap: 18px 24px;
    padding-right: 0;
    display: flex;
  }

  .tournament-facts-responsive > .tournament-fact-mobile {
    display: none;
  }

  .tournament-facts-responsive > .tournament-fact-desktop, .tournament-facts-responsive > .tournament-fact-status {
    display: grid;
  }

  .tournament-facts-responsive > .tournament-fact:not(.tournament-fact-desktop-row-start) {
    border-left: 1px solid var(--line);
    padding-left: 24px;
  }

  .tournament-facts-responsive > .tournament-fact-status {
    order: 3;
  }

  .tournament-facts-responsive > .tournament-fact-desktop-primary {
    order: 1;
  }

  .tournament-facts-responsive > .tournament-fact-desktop-primary + .tournament-fact-desktop-primary {
    order: 2;
  }

  .tournament-facts-responsive:after {
    content: "";
    flex-basis: 100%;
    order: 4;
    height: 0;
  }

  .tournament-facts-responsive > .tournament-fact-desktop:not(.tournament-fact-desktop-primary) {
    order: 5;
  }

  .tournament-facts-responsive .tournament-fact-status dt {
    display: block;
  }

  .tournament-facts-responsive .tournament-fact-status dd {
    margin: 0;
  }
}

.stage-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 14px #1b29340a;
}

.stage-card-summary {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px solid #0000;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px;
  transition: border-color .22s ease-out;
  display: flex;
}

.stage-card-summary:after {
  content: "+";
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  color: var(--brand-dark);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 1.25rem;
  display: grid;
}

.stage-card-summary:focus-visible {
  outline-offset: -3px;
  outline: 3px solid #a7dcd6;
}

.stage-card[data-open="true"] > .stage-card-summary {
  border-bottom-color: var(--line);
}

.stage-card[data-open="true"] > .stage-card-summary:after {
  content: "−";
}

.collapse {
  opacity: 0;
  visibility: hidden;
  grid-template-rows: 0fr;
  transition: grid-template-rows .19s ease-in, opacity .19s ease-in, visibility 0s linear .19s;
  display: grid;
}

.collapse[data-open="true"] {
  opacity: 1;
  visibility: visible;
  grid-template-rows: 1fr;
  transition: grid-template-rows .22s ease-out, opacity .22s ease-out, visibility;
}

.collapse-inner {
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.collapse-stack {
  display: grid;
}

.stage-summary-main {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.stage-summary-meta {
  align-items: flex-start;
  display: flex;
}

.stage-name {
  font-size: 1.08rem;
  font-weight: 800;
}

.stage-type, .stage-summary-details {
  color: var(--muted);
  font-size: .82rem;
}

.stage-summary-details {
  flex-wrap: wrap;
  gap: 3px 10px;
  display: flex;
}

.stage-summary-details span + span:before {
  content: "·";
  color: #98a2b3;
  margin-right: 10px;
}

.stage-card-content {
  padding: 20px;
}

.stage-card-content h3 {
  margin: 6px 0 10px;
  font-size: .95rem;
}

.stage-card-content h4 {
  margin: 0 0 8px;
  font-size: .9rem;
}

.read-only-notice {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.participant-list {
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.participant-list li {
  color: #344054;
  background: #f3f6f7;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 9px;
  font-size: .85rem;
  display: inline-flex;
}

.tournament-participant-chips li {
  border: 1px solid var(--line, #d7dce5);
}

@supports (color: color-mix(in lab, red, red)) {
  .tournament-participant-chips li {
    border: 1px solid color-mix(in srgb, var(--line, #d7dce5) 86%, transparent);
  }
}

.tournament-participant-chips li {
  background: var(--surface, #fff);
}

.participant-list small {
  color: var(--muted);
  font-size: .72rem;
}

.icon-button {
  width: 22px;
  height: 22px;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 6px;
  flex: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: .85rem;
  line-height: 1;
  display: inline-flex;
}

.icon-button:hover, .icon-button:focus-visible {
  background: var(--accent);
  color: var(--brand-dark);
  outline: none;
}

.participant-list-edit {
  box-sizing: border-box;
  border-left: 1px solid var(--line);
  border-radius: 0 6px 6px 0;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  padding: 0;
  line-height: 1;
}

.participant-list-remove {
  color: #b54708;
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
}

.participant-list-remove:hover, .participant-list-remove:focus-visible {
  color: #912018;
  background: #fff3e8;
}

.tournament-court-chips {
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.tournament-court-chips li {
  background: #f3f6f7;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 36px;
  padding: 5px 7px 5px 10px;
  display: inline-flex;
}

.tournament-court-chips li span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.tournament-court-chips .icon-button {
  width: 32px;
  height: 32px;
}

.tournament-court-fact {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.tournament-court-info {
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 1rem;
}

.tournament-courts-dialog {
  gap: 12px;
  width: min(100%, 460px);
  display: grid;
}

.tournament-courts-dialog-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.tournament-courts-dialog-heading h2 {
  margin: 0;
}

.tournament-courts-close, .tournament-court-remove {
  width: 32px;
  height: 32px;
  font-size: 1.15rem;
}

.tournament-court-remove {
  color: #b54708;
}

.tournament-court-remove:hover, .tournament-court-remove:focus-visible {
  color: #912018;
  background: #fff3e8;
}

.tournament-court-edit {
  border-top: 1px solid var(--line);
  gap: 10px;
  padding-top: 10px;
  display: grid;
}

.tournament-create-court-chips {
  margin-top: 2px;
}

.tournament-court-add {
  justify-self: start;
}

@media (max-width: 679px) {
  .tournament-participant-chips {
    flex-wrap: wrap;
    gap: 6px;
    display: flex;
  }

  .tournament-participant-chips li {
    flex: 0 auto;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 8px 9px;
  }

  .tournament-participant-chips li span:first-child {
    overflow-wrap: anywhere;
    flex: 0 auto;
    min-width: 0;
  }

  .tournament-participant-chips small {
    display: none;
  }

  .tournament-participant-chips .participant-list-edit {
    border-left: 0;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    margin-left: 0;
    padding: 0;
  }
}

.group-grid {
  gap: 14px;
  display: grid;
}

@media (min-width: 640px) {
  .group-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.group-summary-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  display: flex;
}

.group-summary-card h4 {
  border-bottom: 1px solid var(--line);
  color: var(--brand-dark);
  margin: 0;
  padding-bottom: 8px;
  font-size: .95rem;
  font-weight: 800;
}

.group-summary-list {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.group-summary-list li {
  color: #344054;
  overflow-wrap: anywhere;
  background: #f3f6f7;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .85rem;
  font-weight: 650;
}

.ranking-table-wrap {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  overflow-x: auto;
}

.ranking-table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  min-width: 680px;
  font-size: .84rem;
}

.ranking-table th, .ranking-table td {
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
  padding: 8px 5px;
}

.ranking-table th {
  color: #344054;
  letter-spacing: .035em;
  text-transform: uppercase;
  background: #f8fafb;
  font-size: .72rem;
}

.ranking-table th:nth-child(2), .ranking-table tbody th {
  text-align: left;
}

.ranking-col-rank {
  width: 2.1rem;
}

.ranking-col-participant {
  width: auto;
}

.ranking-col-record {
  width: 2.3rem;
}

.ranking-col-points-scored {
  width: 4.35rem;
}

.ranking-col-difference {
  width: 4.6rem;
}

.ranking-col-sets {
  width: 3.65rem;
}

.ranking-col-table-points {
  width: 3.8rem;
}

.ranking-table tbody tr:last-child > * {
  border-bottom: 0;
}

.match-list {
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.match-card {
  border: 1px solid var(--line);
  background: #fbfcfc;
  border-radius: 11px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 9px 11px;
  display: grid;
}

.match-card-meta {
  color: var(--muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  font-size: .76rem;
  display: flex;
}

.match-sides {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-weight: 750;
  display: grid;
}

.match-sides > :last-child {
  text-align: right;
}

.match-versus {
  color: var(--muted);
  text-transform: uppercase;
  font-size: .77rem;
  font-weight: 650;
}

.match-result {
  color: var(--brand-dark);
  margin: 3px 0 0;
  font-size: .86rem;
  font-weight: 750;
}

.status-badge[data-status="ACTIVE"], .status-badge[data-status="RUNNING"] {
  color: #17633a;
  background: #e7f5ec;
}

.status-badge[data-status="READY"], .status-badge[data-status="READY_FOR_ADVANCEMENT"] {
  color: #17568d;
  background: #e7f1fb;
}

.status-badge[data-status="FINISHED"], .status-badge[data-status="COMPLETED"] {
  color: var(--brand-dark);
  background: #e8f4f3;
}

.status-badge[data-status="CANCELLED"] {
  color: #9f2727;
  background: #fbeaea;
}

.status-badge[data-status="ARCHIVED"] {
  color: #59636d;
  background: #f1f3f5;
}

.tournament-list-view-toggle {
  gap: 6px;
  margin-top: -8px;
  display: flex;
}

.tournament-list-view-toggle .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: .86rem;
}

.tournament-list-view-toggle .button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--brand);
  color: var(--brand-dark);
}

@media (max-width: 679px) {
  .tournament-observability, .stage-list, .stage-card-content, .ranking-groups {
    gap: 13px;
  }

  .stage-card-summary {
    gap: 10px;
    padding: 13px;
  }

  .stage-card-summary:after {
    width: 24px;
    height: 24px;
    font-size: 1.1rem;
  }

  .stage-summary-main {
    gap: 2px;
  }

  .stage-name {
    font-size: 1rem;
  }

  .stage-type, .stage-summary-details {
    font-size: .76rem;
  }

  .stage-summary-details {
    gap: 1px 7px;
  }

  .stage-summary-details span + span:before {
    margin-right: 7px;
  }

  .stage-card-content {
    padding: 13px;
  }

  .stage-card-content h3 {
    margin: 3px 0 7px;
  }

  .match-status-summary {
    background: none;
    border: 0;
    border-radius: 0;
    flex-wrap: wrap;
    gap: 5px 9px;
    display: flex;
    overflow: visible;
  }

  .match-status-summary > div {
    background: none;
    align-items: baseline;
    gap: 4px;
    padding: 0;
    display: flex;
  }

  .match-status-summary dt {
    letter-spacing: 0;
    text-transform: lowercase;
    font-size: .75rem;
  }

  .match-status-summary dd {
    order: -1;
    margin: 0;
    font-size: .9rem;
  }

  .participant-list {
    gap: 6px;
  }

  .participant-list li {
    gap: 5px;
    min-height: 28px;
    padding: 4px 7px;
    font-size: .8rem;
  }

  .participant-list small {
    display: none;
  }

  .participant-list-edit {
    margin-left: 0;
    padding-left: 4px;
  }

  .group-grid {
    gap: 8px;
  }

  .group-summary-card {
    border-radius: 10px;
    gap: 5px;
    padding: 10px;
  }

  .group-summary-card h4 {
    padding-bottom: 5px;
    font-size: .87rem;
  }

  .group-summary-list {
    flex-flow: wrap;
    gap: 5px;
  }

  .group-summary-list li {
    padding: 4px 7px;
    font-size: .8rem;
  }

  .match-list {
    gap: 8px;
  }

  .match-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 9px 10px;
  }

  .match-card-meta {
    gap: 4px 7px;
    font-size: .72rem;
  }

  .match-sides {
    flex-direction: column;
    align-items: stretch;
    gap: 1px;
    margin-top: 1px;
    line-height: 1.3;
    display: flex;
  }

  .match-sides > :last-child {
    text-align: left;
  }

  .match-sides > span:not(.match-versus) {
    overflow-wrap: anywhere;
  }

  .match-versus {
    font-size: .68rem;
    line-height: 1.15;
  }

  .match-result {
    margin-top: 1px;
    font-size: .82rem;
    line-height: 1.35;
  }

  .match-result-entry .button {
    min-height: 34px;
    padding: 0 9px;
    font-size: .78rem;
  }

  .match-card:has(.match-result-entry) .match-result-entry > .action-row {
    grid-area: auto / 1;
    justify-self: start;
  }
}

@media (max-width: 679px) and (orientation: portrait) {
  .ranking-table-wrap {
    overflow: visible;
  }

  .ranking-table {
    table-layout: fixed;
    min-width: 0;
    font-size: .8rem;
  }

  .ranking-table .ranking-detail-column {
    display: none;
  }

  .ranking-table th, .ranking-table td {
    padding: 7px 5px;
  }

  .ranking-table th:nth-child(2), .ranking-table tbody th {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .ranking-table .ranking-col-rank {
    width: 1.9rem;
  }

  .ranking-table .ranking-col-record {
    width: 2.1rem;
  }

  .ranking-table .ranking-col-sets {
    width: 3.25rem;
  }

  .ranking-table .ranking-col-table-points {
    width: 3.35rem;
  }

  .ranking-table th:first-child, .ranking-table td:first-child {
    padding-left: 3px;
    padding-right: 3px;
  }
}

@media (min-width: 680px) {
  .match-status-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .app-main {
    padding: 48px 40px 56px;
  }

  .page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }

  .header-action {
    flex: none;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .app-shell {
    grid-template-columns: 248px minmax(0, 1fr);
    display: grid;
  }

  .desktop-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--line);
    flex-direction: column;
    height: 100vh;
    padding: 28px 16px;
    display: flex;
    position: sticky;
    top: 0;
  }

  .desktop-sidebar .brand {
    padding: 0 10px;
  }

  .sidebar-nav {
    gap: 4px;
    margin-top: 48px;
    display: grid;
  }

  .sidebar-secondary {
    gap: 4px;
    margin-top: auto;
    display: grid;
  }

  .mobile-header, .mobile-nav {
    display: none;
  }

  .app-main {
    width: 100%;
    padding: 64px clamp(40px, 7vw, 96px);
  }

  .preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.knockout-preparation {
  background: #f3fbfa;
  border: 1px solid #b8d9d6;
  border-radius: 14px;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.knockout-preparation h3, .knockout-preparation h4 {
  margin: 0;
}

.next-knockout-stage {
  background: #f3fbfa;
  border: 1px solid #b8d9d6;
  border-radius: 14px;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.next-knockout-stage h3 {
  margin: 0;
}

.next-round-groups {
  gap: 10px;
  display: grid;
}

.next-round-groups ol {
  margin: 4px 0 0;
  padding: 0 0 0 20px;
}

.next-round-pairs {
  gap: 4px;
  margin: 4px 0 0;
  padding: 0;
  font-weight: 650;
  list-style: none;
  display: grid;
}

@media (min-width: 680px) {
  .next-round-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .next-knockout-stage {
    padding: 12px;
  }
}

.seed-form, .generate-section, .confirm-panel {
  gap: 12px;
  display: grid;
}

.seed-list, .confirm-seeds {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.confirm-seeds {
  list-style: inside decimal;
}

.seed-list {
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.seed-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  grid-template-columns: 44px 26px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 0;
  display: grid;
  position: relative;
}

.seed-item[data-dragged="true"] {
  z-index: 2;
  opacity: .5;
  border-color: var(--brand);
  box-shadow: 0 8px 22px #1b293438;
}

.seed-handle {
  color: #98a2b3;
  width: 44px;
  min-height: 46px;
  font: inherit;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  background: none;
  border: 0;
  border-radius: 10px;
  place-items: center;
  margin: 0;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
}

.seed-handle:hover:not(:disabled) {
  color: var(--brand-dark);
}

.seed-handle:focus-visible {
  outline-offset: -2px;
  color: var(--brand-dark);
  outline: 3px solid #a7dcd6;
}

.seed-handle:disabled {
  cursor: not-allowed;
}

.seed-list[data-dragging="true"], .seed-list[data-dragging="true"] .seed-handle {
  cursor: grabbing;
}

.seed-list[data-dragging="true"] .seed-item {
  will-change: transform;
  transition: transform .17s ease-out;
}

.seed-list[data-dragging="true"] .seed-item[data-dragged="true"] {
  transition: none;
}

.seed-list[data-dragging="true"] .seed-item[data-dragged="true"][data-settling="true"] {
  transition: transform .15s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .seed-list[data-dragging="true"] .seed-item, .seed-list[data-dragging="true"] .seed-item[data-dragged="true"][data-settling="true"], .collapse, .collapse[data-open="true"], .stage-card-summary {
    transition: none;
  }
}

.seed-number {
  color: var(--brand-dark);
  text-align: center;
  font-weight: 800;
}

.seed-label {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  min-width: 0;
  font-weight: 650;
}

.button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.action-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.action-hint {
  color: var(--muted);
  font-size: .88rem;
}

.action-message {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  margin: 0;
  padding: 10px 12px;
  line-height: 1.45;
}

.action-message p {
  margin: 0 0 8px;
}

.action-message[data-tone="success"] {
  background: #f0faf3;
  border-color: #9dd4b0;
}

.action-message[data-tone="warning"] {
  background: #fff9e6;
  border-color: #e5c66b;
}

.action-message[data-tone="error"] {
  background: #fdf1f1;
  border-color: #e2a3a3;
}

.tournament-lifecycle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 14px #1b29340a;
}

.tournament-lifecycle-action {
  gap: 10px;
  display: grid;
}

.tournament-danger-zone {
  border-top: 1px dashed #e2a3a3;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
}

.tournament-danger-zone h3 {
  color: #b42318;
  margin: 0;
  font-size: 1rem;
}

.tournament-delete-confirm {
  gap: 12px;
  max-width: 480px;
  display: grid;
}

.stage-complete-notice {
  background: #f0faf3;
  border: 1px solid #9dd4b0;
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  padding: 14px 16px;
  display: flex;
  box-shadow: 0 2px 8px #288c5a1a;
}

.stage-complete-notice p {
  color: #1d6b3f;
  margin: 0;
  font-weight: 700;
}

.realtime-notices {
  z-index: 40;
  pointer-events: none;
  justify-items: end;
  gap: 8px;
  display: grid;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
}

.realtime-notice {
  pointer-events: auto;
  max-width: 420px;
  box-shadow: 0 4px 16px #0000001f;
}

.realtime-notice-hint {
  color: var(--muted);
  font-size: .9em;
}

.confirm-panel {
  background: #fffdf3;
  border: 1px solid #e5c66b;
  border-radius: 12px;
  padding: 12px;
}

.confirm-panel p {
  margin: 0;
}

.bracket-role {
  color: var(--brand-dark);
  font-weight: 700;
}

.seed-third-place {
  align-items: center;
  min-height: 46px;
}

@media (max-width: 480px) {
  .knockout-preparation {
    padding: 12px;
  }
}

.match-result-panel {
  gap: 4px;
  display: grid;
}

.match-result-panel:empty, .match-result-panel > [role="status"]:empty {
  display: none;
}

.match-result-panel .match-result {
  margin: 3px 0 0;
}

.match-result-note {
  margin: 3px 0 0;
  font-size: .86rem;
}

.match-sides > [data-winner="true"] {
  color: var(--brand-dark);
}

.match-sides > [data-winner="true"]:before {
  content: "✓ ";
}

.match-result-entry {
  gap: 8px;
  margin-top: 3px;
  display: grid;
}

.match-result-entry .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: .82rem;
}

.match-card:has(.match-result-entry) > .match-result-panel {
  display: contents;
}

.match-card:has(.match-result-entry) .match-result-entry {
  display: contents;
}

.match-card:has(.match-result-entry) .match-result-entry > .action-row {
  grid-area: 1 / 2;
  place-self: start end;
}

.match-card:has(.match-result-entry) .match-result-entry > .result-editor-wrap {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .match-card:has(.match-result-entry) .match-result-entry > .action-row {
    grid-area: auto / 1;
    justify-self: start;
  }
}

.result-editor-wrap {
  grid-template-rows: 1fr;
  animation: .22s ease-out result-editor-in;
  display: grid;
}

.result-editor-wrap[data-closing="true"] {
  opacity: 0;
  grid-template-rows: 0fr;
  animation: .19s ease-in result-editor-out;
}

.result-editor-inner {
  min-height: 0;
  margin: -3px;
  padding: 3px;
  overflow: hidden;
}

@keyframes result-editor-in {
  from {
    opacity: 0;
    grid-template-rows: 0fr;
  }

  to {
    opacity: 1;
    grid-template-rows: 1fr;
  }
}

@keyframes result-editor-out {
  from {
    opacity: 1;
    grid-template-rows: 1fr;
  }

  to {
    opacity: 0;
    grid-template-rows: 0fr;
  }
}

.result-editor {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  gap: 9px;
  padding: 11px;
  display: grid;
}

.result-editor h4 {
  color: var(--ink);
  margin: 0;
  font-size: .9rem;
  font-weight: 800;
}

.result-group {
  color: #344054;
  border: 0;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: .84rem;
  font-weight: 700;
  display: grid;
}

.result-group > legend, .result-group-title {
  color: #344054;
  margin: 0 0 4px;
  padding: 0;
  font-size: .76rem;
  font-weight: 750;
}

.result-options {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}

.result-option {
  cursor: pointer;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  font-size: .82rem;
  font-weight: 650;
  display: inline-flex;
}

.result-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--primary, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .result-option:has(input:checked) {
    background: color-mix(in srgb, var(--primary, #1c5cc5) 9%, var(--surface));
  }
}

.result-option:has(input:checked) {
  box-shadow: 0 0 0 1px var(--primary, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .result-option:has(input:checked) {
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary, #1c5cc5) 28%, transparent);
  }
}

.result-option:has(input:focus-visible) {
  outline-offset: 1px;
  outline: 3px solid #a7dcd6;
}

.result-select, .result-score-input {
  width: 100%;
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 8px;
  font-weight: 400;
}

.result-select {
  padding: 0 10px;
}

.result-select:focus-visible, .result-score-input:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

.result-select[aria-invalid="true"], .result-score-input[aria-invalid="true"] {
  border-width: 2px;
  border-color: #b42318;
}

.result-score-input {
  text-align: center;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  padding: 0 7px;
  font-size: 1.05rem;
  font-weight: 700;
}

.result-score-input[readonly] {
  background: #f3f6f7;
}

.result-set {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px;
  display: flex;
}

.result-set-title {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  font-weight: 750;
}

.result-set-scores {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 3px 6px;
  display: grid;
}

.result-score {
  display: contents;
}

.result-score[data-side="A"] .result-score-team {
  grid-area: 1 / 1;
}

.result-score[data-side="B"] .result-score-team {
  grid-area: 1 / 3;
}

.result-score[data-side="A"] .result-score-input {
  grid-area: 2 / 1;
}

.result-score[data-side="B"] .result-score-input {
  grid-area: 2 / 3;
}

.result-score-team {
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  min-width: 0;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.result-colon {
  min-height: 38px;
  color: var(--muted);
  grid-area: 2 / 2;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  display: grid;
}

.result-hint {
  color: #912018;
  font-size: .86rem;
  font-weight: 600;
}

.result-hint p {
  margin: 0;
}

.result-small {
  min-height: 34px;
  padding: 0 10px;
  font-size: .82rem;
}

.result-editor .action-row {
  gap: 7px;
}

.result-editor .action-row .button {
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  font-size: .82rem;
}

.result-editor .action-row .button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: #bac5d0;
}

.result-editor .action-row .button-primary {
  background: var(--primary, #1c5cc5);
  color: #fff;
}

.result-feedback:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #a7dcd6;
}

.result-feedback ul {
  margin: 0 0 8px;
  padding-left: 1.2em;
}

@media (prefers-reduced-motion: reduce) {
  .result-editor-wrap, .result-editor-wrap[data-closing="true"] {
    animation: none;
  }
}

@media (max-width: 480px) {
  .result-editor {
    padding: 10px;
  }

  .result-set {
    padding: 8px;
  }
}

.tournament-list {
  gap: 6px;
  margin: -6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.tournament-list-item {
  min-width: 0;
}

.tournament-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  gap: 4px;
  padding: 10px 14px;
  transition: border-color .15s, background .15s;
  display: grid;
  box-shadow: 0 3px 14px #1b29340a;
}

.tournament-card[data-selected="true"] {
  border-color: var(--brand);
  background: #f7fbfb;
}

.tournament-card-header {
  align-items: center;
  gap: 10px;
  display: flex;
}

.tournament-row-checkbox {
  flex: none;
  width: 18px;
  height: 18px;
}

.tournament-card-name-link {
  border-radius: 8px;
  flex: auto;
  min-width: 0;
}

.tournament-card-name-link:hover .tournament-list-name, .tournament-card-name-link:focus-visible .tournament-list-name {
  color: var(--brand-dark);
}

.tournament-card-name-link:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #a7dcd6;
}

.tournament-list-name {
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: 800;
  display: block;
}

.tournament-card-badges {
  flex-wrap: wrap;
  flex: none;
  gap: 6px;
  display: flex;
}

.tournament-card .status-badge {
  padding: 3px 7px;
  font-size: .7rem;
}

.tournament-card-meta-link {
  border-radius: 8px;
}

.tournament-card-meta-link:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #a7dcd6;
}

.tournament-list-meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: .86rem;
  display: flex;
}

.tournament-row-menu {
  flex: none;
  position: relative;
}

.tournament-row-menu-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.tournament-row-menu-panel {
  z-index: 10;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  min-width: 200px;
  padding: 6px;
  display: grid;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  box-shadow: 0 8px 24px #1b293424;
}

.tournament-row-menu-item {
  text-align: left;
  min-height: 40px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  font-weight: 700;
}

.tournament-row-menu-item:hover, .tournament-row-menu-item:focus-visible {
  background: var(--accent);
  outline: none;
}

.tournament-row-menu-item[data-tone="danger"] {
  color: #b42318;
}

.tournament-row-menu-item[data-tone="danger"]:hover, .tournament-row-menu-item[data-tone="danger"]:focus-visible {
  background: #fdf1f1;
}

@media (max-width: 480px) {
  .tournament-card {
    gap: 3px;
    padding: 8px 12px;
  }

  .tournament-card-header {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .tournament-card-badges {
    order: 1;
    margin-left: 28px;
  }

  .tournament-row-menu {
    order: 1;
    margin-left: auto;
  }

  .tournament-list-meta {
    font-size: .82rem;
  }
}

@media (min-width: 680px) {
  .tournament-card {
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 6px 14px;
    display: flex;
  }

  .tournament-card-header {
    display: contents;
  }

  .tournament-row-checkbox {
    order: 1;
  }

  .tournament-card-name-link {
    flex: 0 auto;
    order: 2;
    max-width: 38%;
  }

  .tournament-card-meta-link {
    flex: auto;
    order: 3;
    min-width: 0;
  }

  .tournament-card-badges {
    order: 4;
  }

  .tournament-row-menu {
    order: 5;
  }

  .tournament-list-meta {
    flex-wrap: nowrap;
    overflow: hidden;
  }
}

.tournament-card[data-selection-mode="true"] {
  cursor: pointer;
}

.tournament-card[data-selection-mode="true"]:hover {
  border-color: #b8d9d6;
}

.team-list {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.team-list-item {
  min-width: 0;
}

.team-management {
  gap: 10px;
  display: grid;
}

.team-management-search {
  max-width: 26rem;
}

.team-bulk-bar {
  border: 1px solid var(--line);
  background: var(--surface-muted, #f4f6f8);
  color: var(--muted);
  border-radius: 10px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 10px;
  font-size: .85rem;
  display: flex;
}

.team-bulk-bar .action-row {
  margin-left: auto;
}

.team-row-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex: none;
  margin: 0;
}

.team-card[data-selected="true"] {
  border-color: var(--brand);
  background: var(--accent);
}

@supports (color: color-mix(in lab, red, red)) {
  .team-card[data-selected="true"] {
    background: color-mix(in srgb, var(--accent) 58%, var(--surface));
  }
}

@media (max-width: 680px) {
  .team-management-search {
    max-width: none;
  }

  .team-bulk-bar .action-row {
    margin-left: 0;
  }
}

.team-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  display: flex;
  box-shadow: 0 3px 14px #1b29340a;
}

.team-card[data-selection-mode="true"] {
  cursor: pointer;
}

.team-card[data-selection-mode="true"]:hover {
  border-color: #b8d9d6;
}

.team-card-main {
  text-align: left;
  flex-wrap: wrap;
  flex: auto;
  align-items: baseline;
  gap: 4px 12px;
  min-width: 0;
  display: flex;
}

.team-card-name {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.team-card-meta {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: .86rem;
  display: flex;
}

.team-card-side {
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  display: flex;
}

.tournament-filter-bar {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: -8px;
  display: flex;
}

.tournament-filter-search {
  flex: 220px;
  min-width: 0;
}

.tournament-filter-search input {
  width: 100%;
  min-height: 38px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 8px;
  padding: 0 10px;
  font-size: .92rem;
}

.tournament-filter-search input:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

.tournament-filter-select {
  flex: 0 auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
  display: flex;
}

.tournament-filter-label {
  color: var(--muted);
  white-space: nowrap;
  flex: none;
  font-size: .76rem;
  font-weight: 700;
}

.tournament-filter-select select {
  min-width: 0;
  min-height: 38px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 8px;
  padding: 0 8px;
  font-size: .88rem;
}

.tournament-filter-select select:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

@media (max-width: 640px) {
  .tournament-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    display: grid;
  }

  .tournament-filter-search, .tournament-filter-bar > .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 359px) {
  .tournament-filter-bar {
    grid-template-columns: 1fr;
  }
}

.modal-overlay {
  z-index: 50;
  background: #17202a8c;
  place-items: center;
  padding: 16px;
  display: grid;
  position: fixed;
  inset: 0;
}

.modal-dialog {
  background: var(--surface);
  border-radius: 16px;
  gap: 12px;
  width: min(480px, 100%);
  max-height: calc(100vh - 32px);
  padding: 20px;
  display: grid;
  overflow-y: auto;
  box-shadow: 0 20px 60px #00000040;
}

.modal-dialog h3 {
  color: #b42318;
  margin: 0;
}

.modal-dialog > p {
  margin: 0;
}

.modal-dialog form {
  gap: 12px;
  display: grid;
}

.tournament-delete-target {
  background: var(--canvas);
  border-radius: 9px;
  padding: 10px 12px;
}

.tournament-delete-target-list {
  max-height: 200px;
  margin: 0;
  padding-left: 1.2em;
  overflow-y: auto;
}

.tournament-bulk-bar {
  border: 1px solid var(--line);
  background: var(--accent);
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: -6px;
  padding: 10px 16px;
  display: flex;
}

.field textarea {
  width: 100%;
  min-height: 96px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 9px;
  padding: 10px 12px;
  font-weight: 400;
  line-height: 1.5;
}

.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-width: 2px;
  border-color: #b42318;
}

.field-hint {
  color: var(--muted);
  margin: 0;
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.45;
}

.field-error {
  color: #912018;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
}

.form-status {
  flex: 1;
  min-width: 0;
}

.form-status:empty {
  display: none;
}

.form-status:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #a7dcd6;
}

.team-registration {
  gap: 12px;
  max-width: 560px;
  display: grid;
}

.team-registration-row {
  align-items: end;
  gap: 12px;
  display: grid;
}

.team-registration [role="status"]:empty {
  display: none;
}

.team-registration .field input[readonly] {
  background: #f3f6f7;
}

@media (min-width: 680px) {
  .team-registration-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 480px) {
  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-footer .button {
    width: 100%;
  }
}

.visually-hidden {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.stage-setup {
  background: #f3fbfa;
  border: 1px solid #b8d9d6;
  border-radius: 14px;
  padding: 18px;
}

.tournament-participants.stage-setup, .tournament-access-management.stage-setup {
  border-color: var(--line);
  background: var(--surface);
  background-image: none;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 14px #1b29340a;
}

.stage-setup-form {
  gap: 18px;
  min-width: 0;
  display: grid;
}

.choice-group {
  border: 0;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.choice-group > legend {
  color: #344054;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 800;
}

.choice-list {
  gap: 8px;
  min-width: 0;
  display: grid;
}

.choice-card {
  cursor: pointer;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 11px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  display: grid;
}

.choice-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  background: #f6fdfc;
}

.choice-card:has(input:focus-visible) {
  outline-offset: 1px;
  outline: 3px solid #a7dcd6;
}

.choice-card[data-disabled="true"] {
  cursor: not-allowed;
  color: var(--muted);
  background: #f3f6f7;
}

.choice-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  margin: 1px 0 0;
}

.choice-text {
  overflow-wrap: anywhere;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.choice-text small {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.4;
}

.choice-text .choice-note {
  color: #7a4b00;
  font-weight: 600;
}

[role="radiogroup"][aria-invalid="true"] .choice-card {
  border-color: #b42318;
}

.stage-setup-encounters {
  gap: 4px;
  display: grid;
}

.stage-setup-encounters-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  display: flex;
}

.stage-setup-encounters-label {
  font-weight: 750;
}

.stage-setup-stepper {
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 9px;
  align-items: center;
  display: inline-flex;
  overflow: hidden;
}

.stage-setup-stepper .icon-button {
  width: 36px;
  height: 36px;
  color: var(--ink);
  border-radius: 0;
  font-size: 1.2rem;
}

.stage-setup-stepper .icon-button:disabled {
  cursor: not-allowed;
  opacity: .55;
  color: #98a2b3;
  background: #f2f4f7;
  box-shadow: inset 0 0 0 1px #d0d5dd;
}

.stage-setup-stepper output {
  text-align: center;
  min-width: 38px;
  font-weight: 800;
}

.custom-match-format {
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 11px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 6px;
  padding: 12px;
  display: grid;
}

.stage-setup select {
  max-width: 100%;
  min-height: 44px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 9px;
  padding: 0 10px;
  font-weight: 400;
}

.stage-setup select:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

.stage-setup select[aria-invalid="true"] {
  border-width: 2px;
  border-color: #b42318;
}

.stage-setup-count {
  max-width: 320px;
}

.stage-setup-groups {
  animation: .2s ease-out stage-setup-in;
}

@keyframes stage-setup-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.stage-setup-group-grid {
  gap: 12px;
  min-width: 0;
  display: grid;
  position: relative;
}

.stage-setup-group {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  background: #fff;
  border-radius: 11px;
  min-width: 0;
  padding: 12px;
  transition: border-color .12s ease-out, background .12s ease-out;
}

.stage-setup-group[data-too-small="true"] {
  border-color: #e2a3a3 #e2a3a3 #e2a3a3 #b42318;
}

.stage-setup-group[data-drop-target="true"] {
  border-color: var(--brand-dark);
  border-left-color: var(--brand-dark);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--brand-dark);
}

.stage-setup-group h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.stage-setup-group-size {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}

.stage-setup-members {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  position: relative;
}

.group-card {
  will-change: transform;
  cursor: grab;
  touch-action: none;
  -webkit-touch-callout: none;
  background: #f3f6f7;
  border-radius: 8px;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px 10px 6px 0;
  transition: transform .19s ease-out, opacity .15s ease-out;
  display: grid;
  position: relative;
}

.group-card[data-dragging="true"] {
  opacity: .45;
}

.group-card[data-just-added="true"] {
  animation: .9s ease-out group-card-added;
}

@keyframes group-card-added {
  0% {
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--brand);
  }

  100% {
    background: #f3f6f7;
    box-shadow: 0 0 #0000;
  }
}

.group-drag-handle {
  color: #98a2b3;
  width: 40px;
  min-height: 44px;
  font: inherit;
  cursor: grab;
  -webkit-touch-callout: none;
  background: none;
  border: 0;
  border-radius: 8px;
  place-items: center;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
}

.group-drag-handle:hover:not(:disabled) {
  color: var(--brand-dark);
}

.group-drag-handle:focus-visible {
  outline-offset: -2px;
  color: var(--brand-dark);
  outline: 3px solid #a7dcd6;
}

.group-drag-handle:disabled {
  cursor: not-allowed;
}

.stage-setup-group-grid[data-dragging="true"], .stage-setup-group-grid[data-dragging="true"] .group-card, .stage-setup-group-grid[data-dragging="true"] .group-drag-handle {
  cursor: grabbing;
}

.group-card-team {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  min-width: 0;
  font-weight: 650;
}

.group-drag-ghost {
  z-index: 20;
  border: 1px solid var(--brand);
  color: var(--ink);
  pointer-events: none;
  overflow-wrap: anywhere;
  background: #fff;
  border-radius: 10px;
  max-width: 220px;
  padding: 8px 14px;
  font-weight: 700;
  position: fixed;
  transform: translate(-50%, -130%);
  box-shadow: 0 10px 26px #1b293442;
}

@media (prefers-reduced-motion: reduce) {
  .group-card {
    transition: none;
  }

  .group-card[data-just-added="true"] {
    background: var(--accent);
    animation: none;
  }
}

.stage-setup-summary {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  gap: 8px;
  padding: 12px;
  display: grid;
}

.stage-setup-summary h3 {
  margin: 0;
  font-size: 1rem;
}

.stage-setup-summary dl {
  gap: 6px;
  margin: 0;
  display: grid;
}

.stage-setup-summary dl > div {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.stage-setup-summary dt {
  color: var(--muted);
  font-size: .8rem;
}

.stage-setup-summary dd {
  overflow-wrap: anywhere;
  margin: 0;
  font-weight: 650;
}

.stage-setup-feedback ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.stage-setup-feedback-anchor {
  display: none;
}

.stage-setup-form .action-message {
  overflow-wrap: anywhere;
}

.stage-setup-form .action-row .button {
  text-align: center;
  max-width: 100%;
}

@media (min-width: 680px) {
  .stage-setup {
    padding: 22px;
  }

  .stage-setup-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .stage-setup-summary dl > div {
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: baseline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-setup-groups {
    animation: none;
  }
}

.result-set-hint {
  color: #912018;
  overflow-wrap: anywhere;
  margin: 2px 0 0;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.4;
}

.result-set-hint[data-verdict="NOT_FINISHED"] {
  color: #7a4b00;
}

.tournament-board-entry {
  margin: .65rem 0;
}

.court-board {
  gap: 1rem;
  display: grid;
}

.court-board > .section-heading {
  display: contents;
}

.court-board > .section-heading h2 {
  display: none;
}

.court-board-columns {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
  display: flex;
}

.court-board-column {
  border: 1px solid var(--border, #d7dce5);
  background: var(--surface-muted, #f4f6f8);
  border-radius: .65rem;
  flex: 15rem;
  min-width: 0;
  padding: .7rem;
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-column {
    background: color-mix(in srgb, var(--surface-muted, #f4f6f8) 42%, transparent);
  }
}

.court-board-column {
  transition: border-color .12s, background .12s;
}

.court-board-column:last-child {
  flex-basis: 100%;
  order: -1;
}

.court-board-column:last-child:has(.read-only-notice) {
  display: none;
}

.court-board-column:last-child h3 {
  font-size: 0;
}

.court-board-column:last-child h3:after {
  content: "Noch nicht eingeplant";
  font-size: 1rem;
}

.court-board-column:last-child .court-board-match-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.court-board-column[data-drop-target="court"] {
  border-color: var(--brand, #1c5cc5);
  background: var(--accent, #e6f4f2);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-column[data-drop-target="court"] {
    background: color-mix(in srgb, var(--accent, #e6f4f2) 58%, transparent);
  }
}

.court-board-column[data-drop-availability="valid"] {
  border-color: var(--brand, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-column[data-drop-availability="valid"] {
    border-color: color-mix(in srgb, var(--brand, #1c5cc5) 48%, var(--border, #d7dce5));
  }
}

.court-board-column[data-drop-availability="invalid"] {
  cursor: not-allowed;
  border-color: #cdd4da;
}

.court-board-column[data-drop-availability="valid"] > .read-only-notice:after {
  content: "Hier ablegen";
  color: var(--brand-dark);
  margin-left: .45rem;
  font-weight: 700;
}

.court-board-column h3 {
  margin: 0 0 .55rem;
  font-size: 1rem;
}

.court-live-forecast {
  color: var(--muted-foreground, #5d6470);
  margin-left: .35rem;
  font-size: .76rem;
  font-weight: 600;
}

.stage-minimum-rest-setting {
  color: var(--muted-foreground, #5d6470);
  flex-wrap: wrap;
  align-items: end;
  gap: .45rem;
  margin: .65rem 0;
  font-size: .82rem;
  display: flex;
}

.stage-minimum-rest-setting label {
  color: var(--ink);
  gap: .2rem;
  font-weight: 650;
  display: grid;
}

.stage-minimum-rest-setting label span {
  color: var(--muted-foreground, #5d6470);
  font-size: .72rem;
  font-weight: 400;
}

.stage-minimum-rest-setting input {
  width: 5rem;
  min-height: 2rem;
}

.stage-minimum-rest-setting small {
  flex-basis: 100%;
}

.court-board-unassign-drop-zone {
  background: var(--surface, #fff);
  border: 1px dashed #9ebcb8;
  border-radius: .55rem;
  place-items: center;
  min-height: 2.35rem;
  margin: 0;
  padding: .35rem .65rem;
  display: grid;
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-unassign-drop-zone {
    background: color-mix(in srgb, var(--surface, #fff) 72%, var(--accent, #e6f4f2));
  }
}

.court-board-unassign-drop-zone {
  color: var(--muted-foreground, #5d6470);
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
}

.court-board-unassign-drop-zone[data-drop-target="true"] {
  border-color: var(--brand, #1c5cc5);
  background: var(--accent, #e6f4f2);
  border-style: solid;
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-unassign-drop-zone[data-drop-target="true"] {
    background: color-mix(in srgb, var(--accent, #e6f4f2) 72%, var(--surface, #fff));
  }
}

.court-board-unassign-drop-zone[data-drop-target="true"] {
  color: var(--ink);
}

.court-board-unassign-drop-zone[data-drop-availability="invalid"] {
  opacity: .58;
  cursor: not-allowed;
}

.court-board-match-list {
  gap: .65rem;
  display: grid;
}

.court-board-match {
  border: 1px solid var(--border, #d7dce5);
  background: var(--surface, #fff);
  border-radius: .55rem;
  gap: .4rem;
  min-width: 0;
  padding: .65rem;
  display: grid;
  position: relative;
}

.court-board-match > .court-board-unassign-drop-zone {
  z-index: 2;
  position: absolute;
  bottom: calc(100% + .3rem);
  left: 0;
  right: 0;
  box-shadow: 0 4px 14px #1b29341f;
}

.court-board-match > .court-board-unassign-drop-zone[data-position="below"] {
  top: calc(100% + .3rem);
  bottom: auto;
}

.court-board-match[data-dragging="true"] {
  opacity: .55;
}

.court-board-drag-preview {
  z-index: -1;
  position: fixed;
  top: -1000px;
  left: -1000px;
  transform: scale(1.02);
  box-shadow: 0 12px 28px #1b293438;
}

.court-board-match[data-drop-target="match"] {
  border-color: var(--brand, #1c5cc5);
  outline: 2px solid var(--brand, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-match[data-drop-target="match"] {
    outline: 2px solid color-mix(in srgb, var(--brand, #1c5cc5) 24%, transparent);
  }
}

.court-board-match[data-drop-target="match"] {
  outline-offset: 1px;
}

.court-board-match[data-drop-availability="valid"] {
  border-color: var(--brand, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-match[data-drop-availability="valid"] {
    border-color: color-mix(in srgb, var(--brand, #1c5cc5) 54%, var(--border, #d7dce5));
  }
}

.court-board-match[data-drop-availability="valid"] {
  background: var(--accent, #e6f4f2);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-match[data-drop-availability="valid"] {
    background: color-mix(in srgb, var(--accent, #e6f4f2) 25%, var(--surface, #fff));
  }
}

.court-board-match[data-drop-availability="valid"] {
  cursor: copy;
}

.court-board-match[data-drop-availability="invalid"] {
  opacity: .58;
  cursor: not-allowed;
}

.court-board-dnd-drop-hint {
  z-index: 70;
  box-sizing: border-box;
  color: #7f2c20;
  pointer-events: none;
  background: #fff8f7;
  border: 1px solid #d7b1a9;
  border-radius: .45rem;
  width: min(18rem, 100vw - 1.5rem);
  padding: .42rem .58rem;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.35;
  position: fixed;
  box-shadow: 0 6px 18px #1b293429;
}

.court-board-dnd-drop-hint[data-placement="above"] {
  transform: translateY(-100%);
}

.court-board-match-grip {
  gap: .4rem;
  min-width: 0;
  display: grid;
}

.court-board-match-grip[data-draggable="true"] {
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.court-board-match-grip[data-draggable="true"]:active, .court-board-match[data-dragging="true"] .court-board-match-grip {
  cursor: grabbing;
}

.court-board-match-header {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: .35rem .55rem;
  display: grid;
}

.court-board-match strong {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: .92rem;
}

.court-board-match-meta {
  min-height: 1rem;
  color: var(--muted-foreground, #5d6470);
  font-size: .76rem;
}

.court-board-match-status {
  align-items: center;
  min-height: 1.15rem;
  display: flex;
}

.match-live-forecast {
  color: var(--muted-foreground, #5d6470);
  font-size: .72rem;
}

.court-board-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted-foreground, #5d6470);
  font-size: .8rem;
}

.court-board-match-footer {
  border-top: 1px solid var(--border, #d7dce5);
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .6rem;
  min-height: 1.65rem;
  padding-top: .1rem;
  display: flex;
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-match-footer {
    border-top: 1px solid color-mix(in srgb, var(--border, #d7dce5) 72%, transparent);
  }
}

.court-board-match[data-unassigned="true"] .court-board-match-footer {
  padding-top: .4rem;
}

.court-board-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .45rem;
  display: inline-flex;
}

.court-board-action {
  min-height: 28px;
  color: var(--primary, #1c5cc5);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: .35rem;
  padding: .18rem .46rem;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
}

.court-board-action:hover:not(:disabled) {
  border-color: var(--primary, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-action:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--primary, #1c5cc5) 32%, transparent);
  }
}

.court-board-action:hover:not(:disabled) {
  background: var(--primary, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-action:hover:not(:disabled) {
    background: color-mix(in srgb, var(--primary, #1c5cc5) 7%, transparent);
  }
}

.court-board-action:focus-visible {
  outline-offset: 1px;
  outline: 3px solid #a7dcd6;
}

.court-board-action-accent {
  background: var(--primary, #1c5cc5);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-action-accent {
    background: color-mix(in srgb, var(--primary, #1c5cc5) 10%, transparent);
  }
}

.court-board-action-result {
  color: var(--ink);
  background: var(--surface-muted, #f4f6f8);
}

@supports (color: color-mix(in lab, red, red)) {
  .court-board-action-result {
    background: color-mix(in srgb, var(--surface-muted, #f4f6f8) 82%, transparent);
  }
}

.court-board-secondary-actions {
  margin-right: auto;
}

.court-board-action:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.court-board-start-control {
  align-items: center;
  display: inline-flex;
}

.court-board-start-hint {
  width: fit-content;
  max-width: 100%;
  color: var(--muted-foreground, #5d6470);
  align-items: center;
  gap: .28rem;
  font-size: .72rem;
  line-height: 1.3;
  display: inline-flex;
}

.court-board-start-hint span:first-child {
  font-size: .85rem;
}

.court-board-column > .read-only-notice {
  align-items: center;
  min-height: 3.5rem;
  padding: .35rem 0;
  display: flex;
}

.match-lifecycle-status {
  width: fit-content;
  color: var(--muted-foreground, #5d6470);
  margin-top: .15rem;
  font-weight: 600;
  display: inline-flex;
}

.match-lifecycle-status[data-status="READY"] {
  color: #795d19;
}

.match-lifecycle-status[data-status="RUNNING"] {
  color: #176a4a;
}

.match-lifecycle-status[data-status="FINISHED"] {
  color: #52616b;
}

.court-board-lifecycle-actions {
  margin-left: auto;
}

.court-board-match[data-unassigned="true"] .court-board-lifecycle-actions {
  margin-left: 0;
}

.court-board-result-action {
  min-width: 0;
  margin-left: auto;
  display: inline-flex;
}

.court-board-result-action .match-result-panel {
  align-items: center;
  min-width: 0;
  display: inline-flex;
}

.court-board-result-action .match-result-panel > [role="status"] {
  display: contents;
}

.court-board-result-action .match-result {
  white-space: nowrap;
  margin: 0;
  font-size: .78rem;
}

.court-board-result-action .match-result-entry {
  margin: 0;
  display: inline-flex;
}

.court-board-result-action .match-result-entry > .action-row {
  display: inline-flex;
}

.court-board-result-action .match-result-entry .button {
  min-height: 28px;
}

.court-board-result-action .action-message {
  border: 0;
  border-radius: .3rem;
  margin: 0;
  padding: .18rem .42rem;
  font-size: .72rem;
  line-height: 1.3;
}

.court-board-lifecycle-actions + .court-board-result-action {
  margin-left: .1rem;
}

.court-board-match:has(.result-editor-wrap) .court-board-result-action {
  flex-basis: 100%;
  margin-left: 0;
  display: block;
}

:is(.court-board-match:has(.result-editor-wrap) .court-board-result-action .match-result-panel, .court-board-match:has(.result-editor-wrap) .court-board-result-action .match-result-entry) {
  display: grid;
}

.court-board-match:has(.result-editor-wrap) .court-board-result-action .match-result-entry > .action-row {
  display: none;
}

.court-board-dialog {
  max-width: 28rem;
}

.court-board-choice-list {
  gap: .45rem;
  margin-top: .7rem;
  display: grid;
}

.court-board-toast {
  z-index: 60;
  top: max(1rem, env(safe-area-inset-top));
  color: #912018;
  background: #fff8f7;
  border: 1px solid #e2a3a3;
  border-radius: .6rem;
  align-items: start;
  gap: .55rem;
  width: min(24rem, 100vw - 2rem);
  padding: .65rem .75rem;
  font-size: .84rem;
  line-height: 1.4;
  display: flex;
  position: fixed;
  right: 1rem;
  box-shadow: 0 8px 24px #1b293429;
}

.court-board-toast span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.court-board-toast button {
  width: 1.45rem;
  height: 1.45rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: .3rem;
  flex: none;
  margin: -.1rem -.2rem 0 0;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.court-board-toast button:focus-visible {
  outline-offset: 1px;
  outline: 3px solid #e2a3a3;
}

@media (min-width: 39rem) and (hover: hover) and (pointer: fine) {
  .court-board-secondary-actions[data-desktop-dnd="true"] {
    clip-path: inset(50%);
    white-space: nowrap;
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
  }

  .court-board-secondary-actions[data-desktop-dnd="true"]:focus-within {
    clip-path: none;
    white-space: normal;
    width: auto;
    height: auto;
    position: static;
    overflow: visible;
  }
}

@media (max-width: 38rem) {
  .court-board-column {
    flex-basis: 100%;
  }

  .court-board-column:last-child .court-board-match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .court-board-match {
    padding: .5rem;
  }

  .court-board-match-footer {
    align-items: center;
    gap: .25rem;
  }

  .court-board-actions, .court-board-result-action {
    flex: 0 auto;
    margin-left: 0;
    margin-right: 0;
  }

  .court-board-actions {
    gap: .2rem;
  }

  .court-board-action, .court-board-result-action .match-result-entry .button {
    min-height: 34px;
    padding: .22rem .38rem;
    font-size: .75rem;
  }

  .court-board-start-hint {
    padding-top: .05rem;
  }

  .court-board-result-action .match-result-entry > .result-editor-wrap {
    width: 100%;
  }

  .court-board-toast {
    top: max(.75rem, env(safe-area-inset-top));
    width: min(24rem, 100vw - 1.5rem);
    right: .75rem;
  }
}

.court-board-planner {
  background: #f7fbfa;
  border: 1px solid #c9e2df;
  border-radius: .8rem;
  max-width: 42rem;
  padding: 1rem;
}

.schedule-planner-heading {
  gap: .2rem;
  display: grid;
}

.schedule-planner-heading h3, .schedule-preview-heading h4 {
  color: var(--ink);
  margin: 0;
}

.schedule-planner-heading p, .schedule-preview-heading p {
  color: var(--muted);
  margin: 0;
  font-size: .84rem;
  line-height: 1.4;
}

.schedule-planner-fields {
  grid-template-columns: 1fr;
  gap: .7rem;
  margin-top: .9rem;
  display: grid;
}

.schedule-planner-field {
  color: #344054;
  letter-spacing: .01em;
  gap: .32rem;
  font-size: .8rem;
  font-weight: 750;
  display: grid;
}

.schedule-planner-field input, .schedule-planner-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  color: var(--ink);
  font: inherit;
  background: #fff;
  border: 1px solid #bac5d0;
  border-radius: 8px;
  padding: 0 .7rem;
  font-size: .92rem;
  font-weight: 400;
}

.schedule-planner-field input:focus-visible, .schedule-planner-field select:focus-visible {
  outline-offset: 1px;
  border-color: var(--brand);
  outline: 3px solid #a7dcd6;
}

.schedule-planner-button, .schedule-preview-apply {
  justify-self: start;
  min-height: 40px;
  padding: 0 .85rem;
  font-size: .88rem;
}

.schedule-preview-card {
  background: #fff;
  border: 1px solid #b8d9d6;
  border-radius: .75rem;
  gap: .8rem;
  margin-top: 1rem;
  padding: .9rem;
  display: grid;
}

.schedule-preview-heading {
  justify-content: space-between;
  align-items: start;
  gap: .75rem;
  display: flex;
}

.schedule-preview-heading p {
  align-items: center;
  gap: .3rem;
  margin-top: .15rem;
  display: inline-flex;
}

.schedule-preview-heading p:before {
  content: "";
  background: #d99100;
  border-radius: 50%;
  width: .42rem;
  height: .42rem;
}

.schedule-preview-count {
  color: var(--brand-dark);
  background: #e6f4f2;
  border-radius: 999px;
  flex: none;
  padding: .24rem .48rem;
  font-size: .76rem;
  font-weight: 750;
}

.schedule-preview-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 0;
  display: grid;
}

.schedule-preview-summary > div {
  background: #f4f7f8;
  border-radius: .5rem;
  min-width: 0;
  padding: .48rem .55rem;
}

.schedule-preview-summary dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.schedule-preview-summary dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  margin: .12rem 0 0;
  font-size: .82rem;
  font-weight: 750;
}

.schedule-preview-list {
  gap: .4rem;
  display: grid;
}

.schedule-preview-row {
  background: #fff;
  border: 1px solid #e3e8eb;
  border-radius: .55rem;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .16rem .5rem;
  min-width: 0;
  padding: .55rem;
  display: grid;
}

.schedule-preview-court {
  color: var(--brand-dark);
  white-space: nowrap;
  background: #e6f4f2;
  border-radius: .35rem;
  grid-row: span 2;
  align-self: center;
  padding: .2rem .42rem;
  font-size: .72rem;
  font-weight: 800;
}

.schedule-preview-row time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
}

.schedule-preview-row strong {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: .86rem;
}

.schedule-preview-row small {
  color: var(--muted);
  grid-column: 2;
  font-size: .72rem;
}

@media (min-width: 620px) {
  .schedule-planner-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-planner-button {
    grid-column: 1 / -1;
  }

  .schedule-preview-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .court-board-planner {
    padding: .8rem;
  }

  .schedule-preview-row {
    grid-template-columns: 1fr;
    gap: .22rem;
  }

  .schedule-preview-court {
    grid-row: auto;
    justify-self: start;
  }

  .schedule-preview-row small {
    grid-column: auto;
  }

  .schedule-preview-apply, .schedule-planner-button {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .schedule-planner-fields {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(7rem, .7fr);
  }

  .schedule-planner-button {
    grid-column: auto;
  }
}

@media (min-width: 980px) {
  .court-board-planner {
    width: 100%;
    max-width: none;
  }

  .schedule-planner-fields {
    grid-template-columns: minmax(10rem, 1.25fr) minmax(12rem, 1.45fr) minmax(6.5rem, .7fr) minmax(6.5rem, .7fr) minmax(9rem, 1fr) auto;
    align-items: end;
    gap: .6rem;
  }

  .schedule-planner-button {
    white-space: nowrap;
    min-height: 40px;
  }

  .schedule-preview-card {
    gap: .6rem;
    padding: .75rem .85rem;
  }

  .schedule-preview-heading {
    align-items: center;
  }

  .schedule-preview-heading > div {
    align-items: baseline;
    gap: .5rem;
    min-width: 0;
    display: flex;
  }

  .schedule-preview-heading p {
    white-space: nowrap;
    margin-top: 0;
  }

  .schedule-preview-summary {
    border-top: 1px solid #e3e8eb;
    border-bottom: 1px solid #e3e8eb;
    align-items: baseline;
    gap: 0;
    padding: .35rem 0;
    display: flex;
  }

  .schedule-preview-summary > div {
    background: none;
    border-radius: 0;
    align-items: baseline;
    gap: .35rem;
    padding: 0 .75rem;
    display: flex;
  }

  .schedule-preview-summary > div:first-child {
    padding-left: 0;
  }

  .schedule-preview-summary > div + div {
    border-left: 1px solid #e3e8eb;
  }

  .schedule-preview-summary dt, .schedule-preview-summary dd {
    font-size: .76rem;
  }

  .schedule-preview-summary dd {
    margin: 0;
  }

  .schedule-preview-list {
    gap: .28rem;
  }

  .schedule-preview-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: .55rem;
    padding: .38rem .5rem;
  }

  .schedule-preview-court {
    grid-row: auto;
    padding: .16rem .36rem;
  }

  .schedule-preview-row time {
    white-space: nowrap;
  }

  .schedule-preview-row small {
    white-space: nowrap;
    grid-column: auto;
  }

  .schedule-preview-apply {
    min-height: 36px;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@property --tw-ease {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=apps_web_src_app_globals_1wvyn-h.css.map*/