@charset "UTF-8";
:root {
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.148 0.004 228.8);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.148 0.004 228.8);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.148 0.004 228.8);
  --primary: oklch(0.218 0.008 223.9);
  --primary-foreground: oklch(0.987 0.002 197.1);
  --secondary: oklch(0.955 0.003 214.3);
  --secondary-foreground: oklch(0.218 0.008 223.9);
  --muted: oklch(0.955 0.003 214.3);
  --muted-foreground: oklch(0.45 0.01 213.2);
  --accent: oklch(0.955 0.003 214.3);
  --accent-foreground: oklch(0.218 0.008 223.9);
  --destructive: oklch(0.56 0.245 27.325);
  --border: oklch(0.86 0.005 214.3);
  --input: oklch(0.64 0.008 214.3);
  --ring: oklch(0.45 0.01 213.2);
  --chart-1: oklch(0.872 0.007 219.6);
  --chart-2: oklch(0.56 0.021 213.5);
  --chart-3: oklch(0.45 0.017 213.2);
  --chart-4: oklch(0.378 0.015 216);
  --chart-5: oklch(0.275 0.011 216.9);
  --radius: 0.625rem;
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.148 0.004 228.8);
  --sidebar-primary: oklch(0.218 0.008 223.9);
  --sidebar-primary-foreground: oklch(0.987 0.002 197.1);
  --sidebar-accent: oklch(0.945 0.003 214.3);
  --sidebar-accent-foreground: oklch(0.218 0.008 223.9);
  --sidebar-border: oklch(0.86 0.005 214.3);
  --sidebar-ring: oklch(0.45 0.01 213.2);
  --border-strong: oklch(0.78 0.006 214.3);
  --table-header: oklch(0.95 0.004 214.3);
  --row-hover: oklch(0.978 0.004 214.3);
  --card-header: oklch(0.972 0.004 214.3);
  --destructive-border: oklch(0.87 0.06 22);
  --primary-hover: oklch(0.3 0.01 223.9);
  --destructive-hover: oklch(0.505 0.213 27.518);
  --destructive-muted: oklch(0.986 0.008 17.38);
  --success: oklch(0.527 0.154 150.069);
  --success-muted: oklch(0.982 0.018 155.826);
  --warning: oklch(0.555 0.163 48.998);
  --warning-muted: oklch(0.987 0.022 95.277);
  --overlay: oklch(0.148 0.004 228.8 / 0.5);
  --shadow: 0 1px 2px oklch(0.148 0.004 228.8 / 0.06), 0 1px 3px oklch(0.148 0.004 228.8 / 0.1);
  --ff-primary: #3C1E8A;
  --ff-secondary: #51A736;
  --hb-primary: #AE4D81;
  --hb-secondary: #32387B;
  --rf-primary: #EF2F1B;
  --rf-secondary: #E09A1E;
  --rf-strong: #D0210E;
  --print-ink: #111111;
  --print-muted: #555555;
  --print-paper: #FFFFFF;
  --print-rule: #999999;
  --print-rule-light: #DDDDDD;
  --print-highlight: #E8E8E8;
  --festival: var(--primary);
  --festival-secondary: var(--muted-foreground);
  --festival-strong: var(--primary);
  --festival-tint: var(--muted);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-size-small: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-display: 2.25rem;
  --sidebar-width: 240px;
}

body {
  --link: var(--festival-strong);
}

body[data-festival=force-fields] {
  --festival: var(--ff-primary);
  --festival-secondary: var(--ff-secondary);
  --festival-strong: var(--ff-primary);
  --festival-tint: color-mix(in oklch, var(--ff-primary) 8%, white);
  --ring: var(--festival-strong);
}

body[data-festival=hoofbeat] {
  --festival: var(--hb-primary);
  --festival-secondary: var(--hb-secondary);
  --festival-strong: var(--hb-primary);
  --festival-tint: color-mix(in oklch, var(--hb-primary) 6%, white);
  --ring: var(--festival-strong);
}

body[data-festival=rock-fest] {
  --festival: var(--rf-primary);
  --festival-secondary: var(--rf-secondary);
  --festival-strong: var(--rf-strong);
  --festival-tint: color-mix(in oklch, var(--rf-primary) 8%, white);
  --ring: var(--festival-strong);
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
html {
  scrollbar-gutter: stable;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-underline-offset: 0.15em;
}
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

h1 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.muted {
  color: var(--muted-foreground);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: inherit;
}

.inline-form {
  display: inline-flex;
  vertical-align: middle;
  margin: 0;
}

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

.prewrap {
  white-space: pre-wrap;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  border-right: 1px solid var(--sidebar-border);
  padding: 1.25rem 0.75rem;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.app-sidebar__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sidebar-border);
}
.app-sidebar__brand {
  color: var(--sidebar-foreground);
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: -0.01em;
  padding: 0;
}

.app-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem 1.25rem;
}

.app-sidebar__close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: none;
  color: var(--sidebar-foreground);
  font-size: var(--font-size-lg);
  cursor: pointer;
}
.app-sidebar__close:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}
.app-sidebar__close:focus-visible {
  outline: 2px solid var(--sidebar-ring);
  outline-offset: 1px;
}

.app-backdrop {
  display: none;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-nav__heading {
  font-size: var(--font-size-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-foreground);
  padding: 1rem 0.75rem 0.25rem;
  font-weight: 600;
}
.app-nav__button {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.app-nav__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  color: inherit;
  text-decoration: none;
}
.app-nav__link:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}
.app-nav__link:focus-visible {
  outline: 2px solid var(--sidebar-ring);
  outline-offset: -2px;
}
.app-nav__link--active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-weight: 600;
}
.app-nav__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}
.app-nav__dot::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--nav-festival);
}
.app-nav__link--ff {
  --nav-festival: var(--ff-primary);
}
.app-nav__link--hb {
  --nav-festival: var(--hb-primary);
}
.app-nav__link--rf {
  --nav-festival: var(--rf-primary);
}
.app-nav__link--ff.app-nav__link--active, .app-nav__link--hb.app-nav__link--active, .app-nav__link--rf.app-nav__link--active {
  box-shadow: inset 3px 0 0 var(--nav-festival);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
}

.app-topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
  padding: 0 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.app-topbar__menu {
  display: none;
  background: none;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  color: var(--foreground);
  font-size: var(--font-size-lg);
  cursor: pointer;
}
.app-topbar__menu:hover {
  background: var(--accent);
}
.app-topbar__menu:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.app-topbar__spacer {
  flex: 1;
}
.app-topbar__brand {
  display: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: var(--font-size-md);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.app-topbar__brand:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.app-topbar__user {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  color: var(--foreground);
  text-decoration: none;
}
.app-topbar__user:hover {
  text-decoration: underline;
}
.app-topbar__user:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.app-topbar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-festival] .app-topbar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--festival), var(--festival-secondary));
}

.festival-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.1875rem 0.75rem;
  border: 1px solid var(--festival);
  border-radius: 999px;
  background: var(--festival-tint);
  color: var(--festival-strong);
  font-size: var(--font-size-base);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
.festival-chip:hover {
  text-decoration: underline;
}
.festival-chip:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.festival-chip__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--festival-secondary);
}

.app-content {
  padding: 1.5rem;
  max-width: 1200px;
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .app--sidebar-open .app-sidebar {
    transform: none;
  }
  .app-main {
    margin-left: 0;
  }
  .app-topbar__menu {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
  }
  .app-sidebar__close {
    display: inline-flex;
  }
  .app--sidebar-open .app-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--overlay);
    z-index: 15;
  }
  .app-topbar {
    gap: 0.75rem;
    padding: 0 1rem;
  }
  .app-topbar__brand {
    display: inline-block;
  }
  .app-sidebar {
    width: 75vw;
    max-width: 22rem;
  }
  .app-topbar__name {
    max-width: 8rem;
  }
  .app-content {
    padding: 1rem;
  }
}
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  margin: 0;
  line-height: 1.5;
}
.page-header p {
  margin: 0.25rem 0 0;
}
.page-header__title {
  min-width: 0;
}
.page-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.page-header__subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  margin-top: 0.125rem;
  color: var(--muted-foreground);
}
.page-header__subtitle a {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.page-header__subtitle a:hover, .page-header__subtitle a:focus-visible {
  text-decoration: underline;
}
.page-header__sep {
  color: var(--muted-foreground);
}
.page-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
.page-header__lede {
  max-width: 48rem;
  color: var(--muted-foreground);
}

.page-title-with-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
.page-title-with-badges .badge {
  font-weight: 500;
}

.menu {
  position: relative;
}
.menu__trigger.button {
  width: 2.25rem;
  padding: 0;
}
.menu__list {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 14rem;
  padding: 0.25rem;
  background: var(--popover);
  color: var(--popover-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.menu__list[hidden] {
  display: none;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.menu__item .icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}
.menu__item:hover, .menu__item:focus-visible {
  background: var(--accent);
  color: var(--accent-foreground);
  outline: none;
}

.card {
  display: block;
  min-width: 0;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip;
}
.card--festival > .card__header {
  padding-top: calc(0.625rem + 3px);
  box-shadow: inset 0 3px 0 var(--festival);
}
.card--narrow {
  max-width: 40rem;
}
.card--medium {
  max-width: 48rem;
}

.card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 3.25rem;
  padding: 0.625rem 1rem;
  background: var(--card-header);
  border-bottom: 1px solid var(--border);
}

.card__title {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5rem;
  min-width: min(14rem, 100%);
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}
.card__title .badge {
  font-weight: 500;
}

.card__meta {
  color: var(--muted-foreground);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}
.card__header > .card__actions, .card__subheader > .card__actions {
  margin-left: auto;
}

.card__section {
  padding: 1rem;
}
.card__header + .card__section {
  padding-top: 0.75rem;
}
* + .card__section {
  border-top: 1px solid var(--border);
}
.card__header + .card__section {
  border-top: 0;
}
.card__section--flush {
  padding: 0;
}
.card__section--flush > .card__subheader {
  margin: 0;
  padding: 0.75rem 1rem;
}

.card__subheader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 2rem;
  margin-bottom: 0.75rem;
}

.card__subtitle {
  flex: 1 1 auto;
  min-width: min(14rem, 100%);
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--foreground);
}

.card__body {
  padding: 1rem;
}
.card__body > :first-child {
  margin-top: 0;
}
.card__body > :last-child {
  margin-bottom: 0;
}
.card__body + .card__body {
  border-top: 1px solid var(--border);
}

:where(.card__body) p {
  margin: 0 0 0.75rem;
}

.card__body--flush {
  padding: 0;
}
.card__body--flush .table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.card__body--flush .table th:first-child, .card__body--flush .table td:first-child {
  padding-left: 1.25rem;
}
.card__body--flush .table th:last-child, .card__body--flush .table td:last-child {
  padding-right: 1.25rem;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-header);
  border-top: 1px solid var(--border);
}
.card__footer .pagination {
  margin: 0;
}
.card__footer--sticky {
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.card__empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted-foreground);
}
.card__empty .icon {
  width: 1.125rem;
  height: 1.125rem;
}
.card__body--flush > .card__empty {
  padding: 1.25rem;
}

.document {
  max-width: 52rem;
}
.document__sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.page-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.section-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.page-section {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip;
}
.page-section > :not(.page-section__header) {
  margin: 1rem 0.75rem;
}
.page-section > .table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.page-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-header);
  border-bottom: 1px solid var(--border);
}
.page-section__header:last-child {
  border-bottom: 0;
}
.page-section__title {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-width: min(12rem, 100%);
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}
.page-section__title .badge {
  font-weight: 500;
}
.page-section__meta {
  color: var(--muted-foreground);
  font-size: var(--font-size-base);
  font-weight: 400;
}
.page-section__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: auto;
}
.page-section__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0;
}
.page-section__empty > p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted-foreground);
}
.page-section__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--warning-muted);
  border-radius: var(--radius);
}
.page-section__notice > .icon {
  margin-top: 0.25rem;
  color: var(--warning);
}
.page-section__notice p {
  margin: 0;
}

.info-list {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 0;
}
.info-list__row {
  display: contents;
}
.info-list--compact {
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.625rem 1rem;
}
.info-list dt {
  color: var(--muted-foreground);
}
.info-list dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.info-list dd .badge {
  vertical-align: middle;
}
.info-list__note {
  color: var(--muted-foreground);
}

@media (max-width: 768px) {
  .info-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .info-list__row + .info-list__row dt {
    margin-top: 0.75rem;
  }
}
.row-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.25rem;
  margin: -0.375rem 0 -0.375rem auto;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
}
.fact-grid__item {
  min-width: 0;
}
.fact-grid__item--full {
  grid-column: 1/-1;
}
.fact-grid dt {
  color: var(--muted-foreground);
}
.fact-grid dd {
  margin: 0.125rem 0 0;
  overflow-wrap: anywhere;
}
.fact-grid__value {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fact-grid__note {
  display: block;
  color: var(--muted-foreground);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.section-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
.section-divider__title {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--foreground);
}

.card__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--warning-muted);
  color: var(--foreground);
}
.card__notice > .icon {
  margin-top: 0.25rem;
  color: var(--warning);
}
.card__notice--error {
  background: var(--destructive-muted);
  color: var(--destructive);
}
.card__notice--error > .icon {
  color: var(--destructive);
}
.card__notice p {
  margin: 0;
}

.form-section {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-section__title {
  display: block;
  margin: 0 0 1rem;
  padding: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--foreground);
}
.form-section__hint {
  margin: -0.625rem 0 1rem;
  color: var(--muted-foreground);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.page-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 48rem;
}
.page-form__footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-header);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fields > p {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid__full {
  grid-column: 1/-1;
}
.form-grid__new-row {
  grid-column-start: 1;
}

@media (max-width: 768px) {
  .form-grid, .form-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.danger-zone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--destructive-muted);
  border: 1px solid var(--destructive-border);
  border-radius: var(--radius);
}
.danger-zone__text {
  min-width: 0;
  flex: 1 1 20rem;
}
.danger-zone__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--destructive);
}
.danger-zone p {
  margin: 0.125rem 0 0;
  color: var(--foreground);
}

.guest {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: var(--muted);
}

.guest-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.guest-card__brand {
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: 1.5rem;
}
.guest-card__title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
}
.guest-card__footer {
  margin-top: 1.25rem;
  font-size: var(--font-size-base);
}

@media (max-width: 768px) {
  .guest-card {
    padding: 1.25rem;
  }
}
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.field label {
  font-weight: 600;
  font-size: var(--font-size-base);
}
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=date], .field input[type=time], .field input[type=number], .field select, .field textarea {
  font: inherit;
  font-size: var(--font-size-base);
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
}
.field input[type=text]::placeholder, .field input[type=email]::placeholder, .field input[type=tel]::placeholder, .field input[type=password]::placeholder, .field input[type=date]::placeholder, .field input[type=time]::placeholder, .field input[type=number]::placeholder, .field select::placeholder, .field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}
.field input[type=text]:focus, .field input[type=email]:focus, .field input[type=tel]:focus, .field input[type=password]:focus, .field input[type=date]:focus, .field input[type=time]:focus, .field input[type=number]:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
.field textarea {
  min-height: 6rem;
  resize: vertical;
}
.field .input-affix input {
  padding-left: 1.5rem;
}
.field--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.field__hint {
  font-size: var(--font-size-small);
  color: var(--muted-foreground);
  margin: 0;
}

.field-error {
  color: var(--destructive);
  font-size: var(--font-size-base);
  margin: 0;
}

.password-input {
  position: relative;
  display: flex;
}
.password-input input {
  flex: 1;
  min-width: 0;
  padding-right: 2.5rem;
}
.password-input__toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
}
.password-input__toggle:hover {
  color: var(--foreground);
}
.password-input__toggle:focus-visible {
  outline: 2px solid var(--ring);
  border-radius: 4px;
}
.password-input__icon {
  width: 1.125rem;
  height: 1.125rem;
}
.password-input__icon--hide {
  display: none;
}
.password-input__toggle[aria-pressed=true] .password-input__icon--show {
  display: none;
}
.password-input__toggle[aria-pressed=true] .password-input__icon--hide {
  display: inline;
}

.input-affix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-affix input {
  flex: 1;
  min-width: 0;
}
.input-affix__prefix {
  position: absolute;
  left: 0.75rem;
  color: var(--muted-foreground);
  font-size: var(--font-size-base);
  pointer-events: none;
}

.select {
  position: relative;
  display: flex;
}
.select select {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.25rem;
  cursor: pointer;
}
.select select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.625rem;
  width: 1.25em;
  height: 1.25em;
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center/contain;
  background-color: var(--foreground);
  pointer-events: none;
}

.select--small select {
  min-height: 2rem;
  padding: 0.25rem 2.25rem 0.25rem 0.625rem;
  font: inherit;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 4px);
}
.select--small select:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
}
.check-list li {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child {
  border-bottom: 0;
}
.check-list__all {
  background: var(--table-header);
  font-weight: 600;
}
.check-list__note {
  margin: 0.25rem 0 0 1.375rem;
  color: var(--muted-foreground);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.address-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 1fr) minmax(0, 5fr) minmax(0, 4fr);
  gap: 1rem 1.25rem;
}
.address-grid__full {
  grid-column: 1/-1;
}
.address-grid__city {
  grid-column: 1/2;
}
.address-grid__region {
  grid-column: 2/4;
}
.address-grid__postal {
  grid-column: 4/5;
}

@media (max-width: 768px) {
  .address-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .address-grid > .field {
    grid-column: 1/-1;
  }
}
.combobox {
  position: relative;
  display: flex;
  min-width: 0;
}
.combobox input {
  flex: 1;
  min-width: 0;
  padding-right: 2.25rem;
}
.combobox__toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.combobox__toggle::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat center/contain;
  background-color: var(--foreground);
}
.combobox__list {
  position: fixed;
  top: var(--combobox-top, 0);
  left: var(--combobox-left, 0);
  z-index: 200;
  width: var(--combobox-width, auto);
  max-height: 15rem;
  margin: 0;
  padding: 0.25rem;
  overflow-y: auto;
  list-style: none;
  font-size: var(--font-size-base);
  text-align: left;
  color: var(--popover-foreground);
  background: var(--popover);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  box-shadow: var(--shadow);
}
.combobox__list[hidden] {
  display: none;
}
.combobox__option {
  padding: 0.5rem 0.625rem;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.combobox__option strong {
  font-weight: 700;
}
.combobox__option[aria-selected=true] {
  background: var(--accent);
}
.combobox__option--empty {
  color: var(--muted-foreground);
  cursor: default;
}

.ledger .combobox {
  height: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  padding: 0.375rem 0.875rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--primary-foreground);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button .icon {
  width: 1rem;
  height: 1rem;
}
.button:hover {
  background: var(--primary-hover);
}
.button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.button--secondary {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.button--secondary:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
.button--danger {
  background: var(--destructive);
  color: var(--primary-foreground);
}
.button--danger:hover {
  background: var(--destructive-hover);
}
.button--ghost {
  background: none;
  color: var(--foreground);
}
.button--ghost:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
.button--small {
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.25rem 0.625rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: var(--font-size-base);
}
.button--small .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.button--form {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
}
.button--block {
  width: 100%;
  justify-content: center;
}

.icon-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: none;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-button .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.icon-button:hover {
  background: var(--accent);
  color: var(--foreground);
}
.icon-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.icon-button--danger:hover, .icon-button--danger:focus-visible {
  color: var(--destructive);
}

.card__header .button, .page-section__header .button {
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}
.table th, .table td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  vertical-align: middle;
}
.table td {
  border-bottom: 1px solid var(--border);
}
.table thead th {
  background: var(--table-header);
  color: var(--foreground);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-strong);
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover td {
  background: var(--row-hover);
}
.table a:not([class]) {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.table a:not([class]):hover, .table a:not([class]):focus-visible {
  text-decoration: underline;
}
.table .num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.table .num .muted {
  font-weight: 400;
}
.table .num--end {
  text-align: right;
}
.table .nowrap {
  white-space: nowrap;
}
.table .table__phone {
  display: none;
}

.table--top th, .table--top td {
  vertical-align: top;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  margin: -0.375rem 0;
}

.table--sets {
  table-layout: fixed;
}
.table--sets .col-day {
  width: 13.5rem;
}
.table--sets .col-time, .table--sets .col-end {
  width: 9rem;
}
.table--sets .col-length {
  width: 7rem;
}
.table--sets .col-actions {
  width: 6.75rem;
}

@media (max-width: 768px) {
  .table--stack {
    --stack-inset: 0.75rem;
    display: block;
  }
  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .table--stack colgroup, .table--stack .table__desktop {
    display: none;
  }
  .table--stack tbody {
    display: block;
  }
  .table--stack tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 1rem;
    padding: 0.75rem var(--stack-inset);
    border-bottom: 1px solid var(--border);
  }
  .table--stack tbody tr::after {
    content: "";
    order: 2;
    flex-basis: 100%;
  }
  .table--stack tbody tr:last-child {
    border-bottom: 0;
  }
  .table--stack tbody tr:hover td {
    background: none;
  }
  .table--stack td, .table--stack th {
    display: block;
    order: 3;
    width: auto;
    min-width: 0;
    max-width: 100%;
    margin: 0.25rem 0 0;
    padding: 0;
    border: 0;
    overflow-wrap: break-word;
  }
  .table--stack td.table__phone, .table--stack th.table__phone {
    display: block;
  }
  .table--stack td.num--end {
    text-align: left;
  }
  .table--stack td:empty, .table--stack .table__blank {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .table--stack .table__primary {
    order: 0;
    flex: 1 1 0;
    margin: 0;
    font-weight: 500;
  }
  .table--stack td:has(> .table-actions) {
    order: 1;
    flex: none;
    margin: 0;
  }
  .table--stack .table-actions {
    margin: -0.375rem 0 0;
  }
  .table--stack td[data-label]::before {
    content: attr(data-label);
    margin-right: 0.375rem;
    color: var(--muted-foreground);
    font-weight: 400;
  }
  .table--stack td.table__primary::before, .table--stack td.table__bare::before {
    content: none;
  }
  .table--stack td:has(> .table-actions)::before {
    content: none;
  }
  .card__body--flush .table.table--stack {
    --stack-inset: 1.25rem;
  }
  .card__body--flush .table.table--stack td:first-child, .card__body--flush .table.table--stack td:last-child {
    padding: 0;
  }
}
.pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.diff {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--font-size-base);
}
.diff__from {
  color: var(--destructive);
  text-decoration: line-through;
}
.diff__to {
  color: var(--success);
}

.table__shrink {
  width: 1%;
  white-space: nowrap;
}

.flash {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid currentcolor;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.flash--success {
  background: var(--success-muted);
  color: var(--success);
}
.flash--error {
  background: var(--destructive-muted);
  color: var(--destructive);
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: var(--font-size-small);
  font-weight: 500;
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.badge--success {
  background: var(--success-muted);
  color: var(--success);
}
.badge--warning {
  background: var(--warning-muted);
  color: var(--warning);
}
.badge--danger {
  background: var(--destructive-muted);
  color: var(--destructive);
}
.badge--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.sessions {
  display: flex;
  flex-direction: column;
}

.session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.session:last-child {
  border-bottom: 0;
}
.session--inactive {
  opacity: 0.7;
}
.session__device {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-weight: 500;
}
.session__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.375rem;
  font-size: var(--font-size-small);
  color: var(--muted-foreground);
}
.session__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lineup-day__heading {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.75rem;
  min-width: min(14rem, 100%);
}
.lineup-day__heading .card__title {
  flex: 0 1 auto;
  min-width: 0;
}

.table.lineup-columns thead th {
  background: var(--card);
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.lineup-day__empty {
  margin: 0;
  padding: 0.75rem 1.25rem;
  color: var(--muted-foreground);
}
* + .lineup-day__empty {
  border-top: 1px solid var(--border-strong);
}
.lineup-day__empty a {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.lineup-day__empty a:hover, .lineup-day__empty a:focus-visible {
  text-decoration: underline;
}

.lineup-stage {
  position: relative;
}
.lineup-stage + .lineup-stage {
  margin-top: 0.75rem;
  border-top: 1px solid var(--border-strong);
}
.lineup-stage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  min-height: 3rem;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 4px 0 0 var(--festival);
}
.lineup-stage__name {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--foreground);
}
.lineup-stage__count {
  color: var(--muted-foreground);
}
.lineup-stage__edit {
  margin-left: auto;
}
.lineup-stage .table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lineup-stage .col-time, .lineup-columns .col-time {
  width: 9.5rem;
}
.lineup-stage .col-end, .lineup-columns .col-end {
  width: 9.5rem;
}

@media (max-width: 768px) {
  .lineup-columns {
    display: none;
  }
  .lineup-stage + .lineup-stage {
    margin-top: 0.5rem;
  }
}
.lineup-unscheduled {
  columns: 3;
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lineup-unscheduled li {
  padding: 0.1875rem 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  break-inside: avoid;
}
.lineup-unscheduled a {
  color: var(--link);
  font-weight: 500;
  text-decoration: none;
}
.lineup-unscheduled a:hover, .lineup-unscheduled a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .lineup-unscheduled {
    columns: 2;
  }
}
@media (max-width: 768px) {
  .lineup-unscheduled {
    columns: 1;
  }
}
.set-editor {
  --set-columns: 10rem minmax(0, 1fr) 10rem 8rem 2rem;
  --set-areas: 'who stage time length remove';
}
.set-editor--day {
  --set-columns: minmax(0, 1.4fr) minmax(0, 1fr) 10rem 8rem 2rem;
}
.set-editor--stage-day {
  --set-columns: 10rem minmax(0, 1fr) 8rem 2rem;
  --set-areas: 'time who length remove';
}
.set-editor__head, .set-editor .set-row {
  display: grid;
  grid-template-columns: var(--set-columns);
  grid-template-areas: var(--set-areas);
  gap: 0.75rem;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}
.set-editor__head {
  align-items: end;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: var(--table-header);
  border-bottom: 1px solid var(--border-strong);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.set-editor__head span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.set-editor__add {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: calc(100% - 2.5rem);
  min-height: 2.5rem;
  margin: 0.75rem 1.25rem 1.25rem;
  padding: 0.375rem 0.875rem;
  font: inherit;
  font-weight: 500;
  color: var(--muted-foreground);
  text-align: left;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.set-editor__add .icon {
  width: 1rem;
  height: 1rem;
}
.set-editor__add:hover {
  background: var(--row-hover);
  border-color: var(--input);
  color: var(--foreground);
}
.set-editor__add:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.set-row {
  align-items: center;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(56px + 1rem);
}
.set-row .field {
  min-width: 0;
}
.set-row .field input, .set-row .field select {
  width: 100%;
}
.set-row__who {
  grid-area: who;
}
.set-row__stage {
  grid-area: stage;
}
.set-row__time {
  grid-area: time;
}
.set-row__length {
  grid-area: length;
}
.set-row__remove {
  grid-area: remove;
}
.set-row:target {
  background: var(--festival-tint);
  box-shadow: inset 3px 0 0 var(--festival);
}

@media (min-width: 769px) {
  .set-row__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
@media (max-width: 768px) {
  .set-editor__head {
    display: none;
  }
  .set-editor .set-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2rem;
    grid-template-areas: "who who remove" "stage stage stage" "time time ." "length length .";
    align-items: end;
    row-gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .set-editor--stage-day .set-row {
    grid-template-areas: "time time remove" "who who ." "length length .";
  }
  .set-row__remove {
    align-self: end;
    width: calc(2.5rem + 2px);
    height: calc(2.5rem + 2px);
  }
}
.detail-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
}
.detail-list:last-child {
  margin-bottom: 0;
}
.detail-list dt {
  font-weight: 600;
}
.detail-list dd {
  margin: 0;
  white-space: pre-wrap;
}

.address-lines {
  display: flex;
  flex-direction: column;
}

.stage-rank {
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground);
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.rank-list__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.25rem 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.rank-list__item--ghost {
  opacity: 0.4;
}
.rank-list__item--chosen {
  box-shadow: var(--shadow);
}
.rank-list__handle {
  display: inline-flex;
  color: var(--muted-foreground);
  cursor: grab;
  touch-action: none;
}
.rank-list__handle .icon {
  width: 1.25rem;
  height: 1.25rem;
}
.rank-list__rank {
  min-width: 1.5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}
.rank-list__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rank-list__moves {
  display: inline-flex;
  flex: none;
}
.rank-list__status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--success);
}
.rank-list__status--error {
  color: var(--destructive);
}

.set-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.set-group__title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.375rem;
  margin: 0 0 0.25rem;
  font-size: var(--font-size-base);
  font-weight: 400;
}
.set-group__day {
  font-weight: 600;
}
.set-group__stage {
  color: var(--muted-foreground);
}
.set-group__stage::before {
  content: "· ";
}

.set-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.set-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border);
}
.set-list__time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.set-list__length {
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.contact-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.375rem;
}
.contact-block__name {
  font-weight: 600;
}
.contact-block__title {
  color: var(--muted-foreground);
}
.contact-block__line {
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-block__line a {
  color: var(--link);
  text-decoration: none;
}
.contact-block__line a:hover, .contact-block__line a:focus-visible {
  text-decoration: underline;
}
.contact-block__sep {
  color: var(--muted-foreground);
}
.contact-block .badge-list {
  margin-top: 0.25rem;
}
.contact-block [data-contact-access] .badge {
  padding: 0 0.4375rem;
  line-height: 1.5;
}

.header-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.copy-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
}
.copy-prompt > .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
}
.copy-prompt__text {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
}
.copy-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

body.noscroll {
  overflow: hidden;
}

.modal {
  --modal-open-dur: 250ms;
  --modal-close-dur: 150ms;
  --modal-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --modal-hidden-transform: scale(0.96);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  padding: 6rem 1rem 3rem;
  background: var(--overlay);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--modal-open-dur) var(--modal-ease), visibility var(--modal-open-dur) var(--modal-ease);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--modal-open-dur) var(--modal-ease), visibility 0s;
}
.modal.is-open .modal__content {
  transform: none;
}
.modal.is-closing {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition: opacity var(--modal-close-dur) var(--modal-ease), visibility var(--modal-close-dur) var(--modal-ease);
}
.modal.is-closing .modal__content {
  transform: var(--modal-hidden-transform);
  transition: transform var(--modal-close-dur) var(--modal-ease);
}
.modal--small .modal__content {
  max-width: 24rem;
}

.modal__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: clip;
  transform: var(--modal-hidden-transform);
  transform-origin: center;
  transition: transform var(--modal-open-dur) var(--modal-ease);
}
.modal__content:focus {
  outline: none;
}

.modal__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 3.25rem;
  padding: 0.625rem 0.75rem 0.625rem 1.25rem;
  background: var(--card-header);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  margin: 0;
  font-size: var(--font-size-md);
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}

.icon-button.modal__close {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.25rem;
  color: var(--foreground);
}
.icon-button.modal__close .icon {
  width: 1.375rem;
  height: 1.375rem;
  stroke-width: 2.25;
}
.icon-button.modal__close:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.25rem;
}
.modal__body > :first-child {
  margin-top: 0;
}
.modal__body > :last-child {
  margin-bottom: 0;
}

.modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-header);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .modal {
    --modal-hidden-transform: translateY(100%);
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }
  .modal__content, .modal--small .modal__content {
    max-width: none;
    max-height: 90dvh;
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .modal__body {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .modal__footer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
  .modal__body:last-child {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal.is-open, .modal.is-closing, .modal__content, .modal.is-closing .modal__content {
    transition: none;
  }
}
.agency-contacts {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.agency-contacts__title {
  margin: 0 0 0.5rem;
  font-size: var(--font-size-base);
  font-weight: 600;
}
.agency-contacts__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.agency-contacts__list li {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.agency-contacts__list a {
  overflow-wrap: anywhere;
}
.agency-contacts > :last-child {
  margin-bottom: 0;
}

.ledger-card {
  max-width: 46rem;
}

.settlement-facts {
  max-width: 46rem;
  margin-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.settlement-facts dd {
  font-weight: 500;
}

.ledger-wrap {
  overflow-x: auto;
}

.ledger {
  --ledger-amount: 12rem;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--font-size-base);
}
.ledger__col-amount {
  width: var(--ledger-amount);
}
.ledger__col-action {
  width: 2.75rem;
}
.ledger th, .ledger td {
  height: 2.5rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
}
.ledger th {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.ledger [hidden] {
  display: none;
}
.ledger .ledger__amount {
  position: relative;
  text-align: right;
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
.ledger .ledger__amount output {
  font: inherit;
}
.ledger td.ledger__action {
  padding: 0 0.25rem;
  border-left: 1px solid var(--border);
  text-align: center;
}
.ledger__missing {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.ledger__missing:hover, .ledger__missing:focus-visible {
  color: var(--link);
}
.ledger__band th {
  height: 2.25rem;
  background: var(--muted);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ledger__colhead th, .ledger__colhead td {
  height: 2rem;
  background: var(--table-header);
  color: var(--muted-foreground);
  font-weight: 600;
}
.ledger__total th, .ledger__total td {
  font-weight: 700;
  border-top: 3px double var(--border-strong);
}
.ledger__row--remit th {
  font-style: italic;
  color: var(--muted-foreground);
}
.ledger__due th, .ledger__due td {
  background: var(--warning-muted);
  font-weight: 700;
  border-top: 2px solid var(--warning);
  border-bottom: 2px solid var(--warning);
}
.ledger__due:has(+ .ledger__row--method) th, .ledger__due:has(+ .ledger__row--method) td {
  border-bottom: 0;
}
.ledger__row--method th, .ledger__row--method td {
  background: var(--warning-muted);
}
.ledger__row--method:not(:has(+ .ledger__row--method)) th, .ledger__row--method:not(:has(+ .ledger__row--method)) td {
  border-bottom: 2px solid var(--warning);
}
.ledger__method {
  font-weight: 700;
}
.ledger__method-date {
  margin-left: 0.375rem;
  color: var(--muted-foreground);
}
.ledger__flag {
  display: none;
  color: var(--warning);
}
.ledger__flag .icon {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}
.ledger__due[data-mismatch] .ledger__flag {
  display: inline-flex;
}
.ledger__override {
  margin-left: 0.5rem;
  vertical-align: middle;
}
.ledger__error td {
  height: auto;
  padding: 0.375rem 0.75rem;
  background: var(--destructive-muted);
}
.ledger td.ledger__amount--input {
  padding: 0;
}
.ledger__dollar {
  position: absolute;
  top: 50%;
  left: 0.625rem;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
}
.ledger__input {
  display: block;
  width: 100%;
  height: 2.5rem;
  margin: 0;
  padding: 0 0.75rem 0 1.5rem;
  font: inherit;
  font-size: var(--font-size-base);
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--foreground);
  background: transparent;
  border: 0;
  border-radius: 0;
}
.ledger__input::placeholder {
  color: var(--muted-foreground);
  opacity: 1;
}
.ledger__input:hover {
  background: var(--row-hover);
}
.ledger__input:focus, .ledger__input:focus-visible {
  background: var(--card);
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
.ledger__input--label {
  padding: 0 0.75rem;
  text-align: left;
}
.ledger__row--other th {
  padding: 0;
}
.ledger__add-row td {
  height: 2.25rem;
  padding: 0 0.5rem;
}
.ledger__add {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0 0.5rem;
  font: inherit;
  font-weight: 500;
  color: var(--link);
  background: none;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}
.ledger__add .icon {
  width: 1rem;
  height: 1rem;
}
.ledger__add:hover {
  background: var(--row-hover);
}
.ledger__add:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}

.settlement-mismatch {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0.625rem 0.75rem;
  background: var(--warning-muted);
  border-bottom: 1px solid var(--border);
}
.settlement-mismatch[hidden] {
  display: none;
}
.settlement-mismatch > .icon {
  flex: none;
  margin-top: 0.25rem;
  color: var(--warning);
}
.settlement-mismatch output {
  font: inherit;
  font-weight: 600;
}

@media (max-width: 768px) {
  .ledger {
    --ledger-amount: 9rem;
  }
  .ledger th, .ledger td {
    padding: 0 0.5rem;
  }
  .ledger__row--other th, .ledger td.ledger__amount--input {
    padding: 0;
  }
}
.statement {
  --statement-actions: 4.75rem;
  min-width: 0;
}
.statement--locked {
  --statement-actions: 0rem;
}
.statement__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.statement__row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr) auto var(--statement-actions);
  grid-template-areas: "date what amount actions";
  align-items: center;
  column-gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.statement__date {
  grid-area: date;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.statement__what {
  grid-area: what;
  min-width: 0;
  overflow-wrap: anywhere;
}
.statement__ref {
  color: var(--muted-foreground);
}
.statement__amount {
  grid-area: amount;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.statement .row-actions {
  grid-area: actions;
  margin: -0.375rem 0;
}
.statement__totals {
  margin: 0.5rem 0 0;
}
.statement__total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto var(--statement-actions);
  column-gap: 1rem;
  padding: 0.25rem 0;
}
.statement__total dt {
  color: var(--muted-foreground);
  text-align: right;
}
.statement__total dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.statement__total--strong dt {
  color: var(--foreground);
  font-weight: 600;
}
.statement__total--strong dd {
  font-weight: 700;
}
.statement__total--warning dd {
  color: var(--warning);
}
.statement__overpaid {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.statement__overpaid .icon {
  flex: none;
  width: 1rem;
  height: 1rem;
}
.statement__note {
  margin: 0.5rem 0 0;
  color: var(--muted-foreground);
  text-align: right;
}

@media (max-width: 768px) {
  .statement__row {
    grid-template-columns: minmax(0, 1fr) auto var(--statement-actions);
    grid-template-areas: "date amount actions" "what what actions";
    row-gap: 0.125rem;
  }
  .statement__date {
    white-space: normal;
  }
}

/*# sourceMappingURL=screen.css.map */
