:root {
  --bg: #d6e0e7;
  --card: #ffffff;
  --text: #121417;
  --muted: #5f6c7a;
  --accent: #11a8ff;
  --accent-hover: #0a8bd4;
  --border: #b9c5cf;
}

@font-face {
  font-family: "HWT Artz";
  src:
    url("https://db.onlinewebfonts.com/t/65923d225f2e78842d14d51023161b8e.woff2") format("woff2"),
    url("https://db.onlinewebfonts.com/t/65923d225f2e78842d14d51023161b8e.woff") format("woff"),
    url("https://db.onlinewebfonts.com/t/65923d225f2e78842d14d51023161b8e.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #c9d5dd 0%, var(--bg) 100%);
  min-height: 100vh;
}

.container,
.members-container,
.members-page,
.account-page {
  width: min(1180px, 96vw);
  margin: 1.25rem auto 1.5rem;
}

.members-container {
  width: min(1180px, 96vw);
}

.login-container {
  display: grid;
  justify-items: center;
  align-content: center;
  row-gap: 0.18rem;
  min-height: 100vh;
  width: min(1040px, 96vw);
  background: linear-gradient(180deg, #8ea1af 0%, #9baeba 100%);
  border-radius: 12px;
  padding: 1.6rem 1.4rem 1.2rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.members-card {
  padding: 0.7rem;
  border-radius: 10px;
  position: relative;
}

.rehearsal-detail-shell,
.performance-detail-shell {
  position: relative;
  display: grid;
  gap: 0.65rem;
}

.focus-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin: 0 0 0.8rem;
}

.rehearsal-focus-actions {
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
}

.selected-rehearsal-card .rehearsal-focus-actions {
  margin: 0 0 0.8rem;
}

.rehearsal-blazers-warning,
.rehearsal-canceled-warning {
  margin-top: 0;
  margin-right: auto;
  flex: 0 0 auto;
  max-width: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: flex-start;
  white-space: nowrap;
  padding: 0.48rem 0.72rem;
  min-height: 2.25rem;
  border-radius: 8px;
  width: fit-content;
  align-self: center;
  grid-template-columns: none;
}

.rehearsal-floating-nav,
.performance-floating-nav {
  position: static;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  pointer-events: auto;
}

.rehearsal-floating-nav .link-btn,
.performance-floating-nav .link-btn {
  pointer-events: auto;
}

@media (min-width: 761px) {
  .rehearsal-detail-shell > .archive-floating-nav,
  .performance-detail-shell > .archive-floating-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(calc(-100% - 0.55rem));
    margin: 0;
    pointer-events: none;
    z-index: 2;
    justify-content: flex-end;
  }
}

.selected-rehearsal-card {
  display: flex;
  flex-direction: column;
}

.focus-actions .choice-btn {
  white-space: nowrap;
}

.small-card {
  max-width: 720px;
  width: 100%;
}

.login-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #c7d1d9;
  border-radius: 10px;
  padding: 1.1rem 1.2rem 0.95rem;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  margin-bottom: 0;
}

.login-hero {
  margin-bottom: 0.65rem;
}

.login-title {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  color: #1c2733;
}

.login-form {
  gap: 0.65rem;
}

.login-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
}

.login-passkey-actions {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  margin-top: 0.35rem;
  width: 100%;
}

.login-passkey-actions button {
  width: auto;
}

.login-passkey-actions .muted {
  width: 100%;
  text-align: right;
}

.login-form button[type="submit"] {
  justify-self: auto;
}

.login-form p {
  margin: 0;
}

.login-form label {
  font-weight: 500;
  color: #334a5e;
}

.login-checkbox-row {
  margin-top: 0.1rem;
  display: flex;
  align-items: center;
}

.login-checkbox-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  font-weight: 500;
  color: #334a5e;
  font-size: 0.96rem;
  white-space: nowrap;
}

.login-checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.passkey-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.account-diagnostics-list {
  margin: 0 0 0.75rem;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.account-diagnostics-list li {
  line-height: 1.35;
}

.passkey-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.passkey-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: #f8fbfd;
}

.passkey-item p {
  margin: 0.25rem 0 0;
}

.login-form input {
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  background: #fbfcfd;
}

.login-card .brand-logo {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.login-card .large-logo {
  width: 320px;
}

.login-footer-link {
  margin: 0.8rem 0 0;
  text-align: center;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.toolbar-actions {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: min(220px, calc(100vw - 1rem));
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(214, 224, 231, 0.98);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
}

.toolbar-actions:not(.is-open) {
  display: none;
}

.toolbar-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  align-self: flex-start;
  margin-left: auto;
  position: relative;
  overflow: visible;
}

.toolbar-menu-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(540px, 100%);
  margin-left: auto;
  position: relative;
}

.toolbar-quick-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.toolbar-quick-actions form {
  margin: 0;
}

.toolbar-mobile-actions {
  display: contents;
}

.toolbar-actions > .link-btn,
.toolbar-mobile-actions .link-btn,
.toolbar-mobile-actions form,
.toolbar-mobile-actions button {
  width: 100%;
}

.toolbar-actions > .link-btn,
.toolbar-mobile-actions .link-btn,
.toolbar-mobile-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.toolbar-actions > .link-btn {
  order: 1;
}

.toolbar-actions > .toolbar-overview-link {
  order: 0;
}

.toolbar-mobile-actions .toolbar-mobile-archive {
  display: flex;
  order: 0;
}

.toolbar-mobile-actions .account-btn,
.toolbar-mobile-actions form,
.toolbar-mobile-actions button {
  order: 99;
}

.toolbar-menu-icon,
.toolbar-menu-icon::before,
.toolbar-menu-icon::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.toolbar-menu-icon {
  position: relative;
}

.toolbar-menu-icon::before,
.toolbar-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.toolbar-menu-icon::before {
  top: -0.38rem;
}

.toolbar-menu-icon::after {
  top: 0.38rem;
}

.toolbar-account {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: 0;
}

.toolbar-user {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: left;
}

.toolbar-user-meta {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: left;
}

.toolbar-user-meta strong {
  font-size: 0.78rem;
  font-weight: 600;
}

.toolbar-account form,
.toolbar-account .secondary,
.toolbar-account .account-btn {
  width: 100%;
}

.link-btn.account-btn {
  background: #0f8ec7;
  color: #ffffff;
}

.link-btn.account-btn:hover {
  background: #0a78a9;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.rehearsal-manage-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.compact-form p {
  margin: 0;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
}

button,
.link-btn {
  position: relative;
  border: 0;
  border-radius: 8px;
  background: #111111;
  color: #ffffff;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  width: fit-content;
  text-decoration: none;
}

button:hover,
.link-btn:hover {
  background: var(--accent);
}

button.secondary {
  background: #e7eef3;
  color: #111111;
}

button.secondary,
.link-btn-inline.secondary {
  background: #e7eef3;
  color: #111111;
}

button.secondary:hover {
  background: #d6e2ea;
}

button.secondary:hover,
.link-btn-inline.secondary:hover {
  background: #d6e2ea;
}

.link-btn-inline.secondary.manager-open-selected-link.is-disabled {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

button.secondary.danger-button {
  color: #b42318;
}

button.secondary.danger-button:hover {
  background: #fde8e8;
  color: #912018;
}

.trash-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.55rem;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
}

.trash-icon {
  display: inline-block;
  width: 1.18rem;
  height: 1.18rem;
  color: #b42318;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3V4H4V6H5V19C5 20.11 5.9 21 7 21H17C18.11 21 19 20.11 19 19V6H20V4H15V3H9M7 6H17V19H7V6M9 8V17H11V8H9M13 8V17H15V8H13Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3V4H4V6H5V19C5 20.11 5.9 21 7 21H17C18.11 21 19 20.11 19 19V6H20V4H15V3H9M7 6H17V19H7V6M9 8V17H11V8H9M13 8V17H15V8H13Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.brand-lockup {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.brand-home-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.brand-lockup > div {
  display: flex;
  align-items: flex-start;
  padding-top: 0.55rem;
}

.centered-brand {
  justify-content: center;
  margin-bottom: 1rem;
}

.brand-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.large-logo {
  width: 250px;
}

.brand-lockup h1,
.brand-lockup p {
  margin: 0;
}

.toolbar .brand-lockup h1 {
  font-family: "HWT Artz", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

.login-title {
  font-family: "HWT Artz", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.subtle-link {
  color: var(--muted);
  text-decoration: underline;
  font-size: 0.88rem;
}

.subtle-link:hover {
  color: var(--accent-hover);
}

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

.announcement-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.announcement-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.55rem;
}

.announcement-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.announcement-meta {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.announcement-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.25rem;
}

.performance-list {
  display: grid;
  gap: 0.8rem;
}

.overview-list-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.performance-item {
  border: 1px solid var(--border);
  background: #ffffff;
}

.performance-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  cursor: pointer;
  list-style: none;
}

.dashboard-rehearsal-list .performance-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  align-items: start;
}

.dashboard-rehearsal-list .dashboard-rehearsal-main {
  grid-column: 1;
  min-width: 0;
}

.dashboard-rehearsal-list .performance-badges {
  grid-column: 2;
  justify-self: end;
  align-self: start;
}

.dashboard-rehearsal-list .dashboard-rehearsal-note-wrap {
  grid-column: 1;
  margin-top: 0.05rem;
}

.dashboard-rehearsal-list .rehearsal-canceled-line {
  margin-top: 0.04rem;
}

.performance-summary::-webkit-details-marker {
  display: none;
}

.selected-card > .performance-summary {
  cursor: default;
}

.performance-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.status-pill,
.badge-yes,
.badge-maybe,
.badge-no,
.badge-missing,
.badge-choice {
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
}

.status-pill {
  background: #0f1720;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.38rem 0.7rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.status-definitief {
  background: #2f9e44;
  color: #ffffff;
}

.status-idee {
  background: #6f42c1;
  color: #ffffff;
}

.status-beschikbaarheid {
  background: #0f8ec7;
  color: #ffffff;
}

.status-blazers {
  background: #0f8ec7;
  color: #ffffff;
}

.rehearsal-blazers-badge-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  position: relative;
  min-width: 2rem;
  border-radius: 8px;
}

.rehearsal-blazers-badge-icon-only::before {
  content: "";
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6C21 11 15 11 15 11H4C3 11 2 10 2 10H1V14H2C2 14 3 13 4 13H4.3C4.1 13.3 4 13.6 4 14V16C4 17.1 4.9 18 6 18H7V19H9V18H10V19H12V18H13V19H15V18H16C17.1 18 18 17.1 18 16V14C18 13.9 18 13.7 17.9 13.6C19.6 14.2 21.4 15.4 22 18H23V6H22M6 16.5C5.7 16.5 5.5 16.3 5.5 16V14C5.5 13.7 5.7 13.5 6 13.5H7V16.5H6M9 16.5V13.5H10V16.5H9M12 16.5V13.5H13V16.5H12M16.5 16C16.5 16.3 16.3 16.5 16 16.5H15V13.5H16C16.3 13.5 16.5 13.7 16.5 14V16M9 10H7V9H9V10M12 10H10V9H12V10M15 10H13V9H15V10Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6C21 11 15 11 15 11H4C3 11 2 10 2 10H1V14H2C2 14 3 13 4 13H4.3C4.1 13.3 4 13.6 4 14V16C4 17.1 4.9 18 6 18H7V19H9V18H10V19H12V18H13V19H15V18H16C17.1 18 18 17.1 18 16V14C18 13.9 18 13.7 17.9 13.6C19.6 14.2 21.4 15.4 22 18H23V6H22M6 16.5C5.7 16.5 5.5 16.3 5.5 16V14C5.5 13.7 5.7 13.5 6 13.5H7V16.5H6M9 16.5V13.5H10V16.5H9M12 16.5V13.5H13V16.5H12M16.5 16C16.5 16.3 16.3 16.5 16 16.5H15V13.5H16C16.3 13.5 16.5 13.7 16.5 14V16M9 10H7V9H9V10M12 10H10V9H12V10M15 10H13V9H15V10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-blazers-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: #f4b400;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.rehearsal-canceled-badge-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  position: relative;
  min-width: 2rem;
  border-radius: 8px;
}

.rehearsal-canceled-badge-icon-only::before {
  content: "";
  display: block;
  width: 1.18rem;
  height: 1.18rem;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.status-geannuleerd {
  background: #c92a2a;
  color: #ffffff;
}

.badge-yes {
  background: #e6f6ea;
  color: #155724;
}

.badge-maybe {
  background: #fff4db;
  color: #8a5a00;
}

.badge-no {
  background: #fdeaea;
  color: #a12622;
}

.badge-missing {
  background: #e7f1ff;
  color: #0b4f8a;
}

.badge-choice {
  background: #eef2f6;
  color: #334a5e;
}

.badge-choice-yes {
  background: #e6f6ea;
  color: #155724;
}

.badge-choice-maybe {
  background: #fff4db;
  color: #8a5a00;
}

.badge-choice-no {
  background: #fdeaea;
  color: #a12622;
}

.badge-choice-missing {
  background: #e7f1ff;
  color: #0b4f8a;
}

.performance-body {
  border-top: 1px solid var(--border);
  padding: 0.8rem;
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.performance-body > * {
  min-width: 0;
  max-width: 100%;
}

.history-select-block {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.history-select-block h3 {
  margin: 0;
  font-size: 1rem;
}

.history-select-form {
  max-width: 420px;
}

.detail-note-box {
  border: 1px solid #d6e0ea;
  background: #f7fafc;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.replacement-note-chips {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.replacement-note-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #eaf6ee;
  border: 1px solid #abd9b8;
  color: #1f6b36;
  font-weight: 800;
}

.performance-extra-contact-box {
  margin-top: 0.25rem;
  background: transparent;
}

.detail-note-box-canceled {
  border-color: #e5b3b2;
  background: #fff4f3;
}

.old-rehearsal-note-box {
  margin-top: 0.8rem;
}

.old-rehearsal-close-actions {
  margin-top: 0.7rem;
}

.detail-note-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #24384d;
}

.rehearsal-note-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rehearsal-note-edit-box {
  margin-top: 0.15rem;
}

.rehearsal-note-edit-box .editor-toolbar {
  margin: 0.2rem 0 0.1rem;
}

.rehearsal-setlist-status-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.rehearsal-setlist-status-link-icon-only,
.selected-rehearsal-card .rehearsal-setlist-status-link-ready,
.overview-list-card .rehearsal-setlist-status-link-ready {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

.rehearsal-setlist-status-link-icon-only::before,
.selected-rehearsal-card .rehearsal-setlist-status-link-ready::before,
.overview-list-card .rehearsal-setlist-status-link-ready::before {
  content: "";
  display: block;
  width: 1.18rem;
  height: 1.18rem;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rehearsal-setlist-status-link-icon-only > .rehearsal-setlist-status-icon,
.selected-rehearsal-card .rehearsal-setlist-status-link-ready .rehearsal-setlist-status-icon,
.overview-list-card .rehearsal-setlist-status-link-ready .rehearsal-setlist-status-icon {
  display: none;
}

.performance-badges .rehearsal-setlist-status-link {
  flex: 0 1 auto;
  max-width: 100%;
}

.rehearsal-setlist-status-link:hover {
  filter: brightness(0.96);
}

.overview-list-card .rehearsal-setlist-status-link[role="img"] {
  pointer-events: none;
}

.rehearsal-setlist-inline-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}

.rehearsal-setlist-inline-title-icon {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rehearsal-setlist-status-link-ready {
  background: #1f7a4d !important;
}

.rehearsal-setlist-status-icon {
  display: block;
  width: 1.18rem;
  height: 1.18rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rehearsal-setlist-status-link-missing {
  background: #b42318 !important;
}

.rehearsal-setlist-inline-table {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.rehearsal-setlist-inline-table h3 {
  margin: 0;
}

.detail-note-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  color: #52667a;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-note-text .rich-text-list,
.planner-rich-preview .rich-text-list,
.rich-editor-surface ul {
  margin: 0.35rem 0 0.35rem 1.25rem;
  padding: 0;
}

.detail-note-text .rich-text-list li,
.planner-rich-preview .rich-text-list li,
.rich-editor-surface li {
  margin: 0.12rem 0;
}

.attendance-status-line {
  margin: 0;
}

.attendance-status-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
}

.attendance-status-line-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.attendance-status-line-actions .attendance-status-line {
  margin: 0;
}

.attendance-ics-link {
  margin-left: auto;
}

.attendance-status-inline .badge-choice {
  display: inline-flex;
  align-items: center;
}

.attendance-status-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.attendance-status-yes {
  background: #e6f6ea;
  color: #155724;
}

.attendance-status-no {
  background: #fdeaea;
  color: #a12622;
}

.attendance-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.attendance-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.attendance-switch-slider {
  position: relative;
  width: 3.4rem;
  height: 1.8rem;
  border-radius: 999px;
  background: #2f9e44;
  border: 1px solid #2f9e44;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.attendance-switch-slider::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.22rem;
  width: 1.32rem;
  height: 1.32rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.25);
  transition: transform 0.18s ease;
}

.attendance-switch input:checked + .attendance-switch-slider {
  background: #fdeaea;
  border-color: #e2b4b1;
}

.attendance-switch input:checked + .attendance-switch-slider::after {
  transform: translateX(1.58rem);
}

.attendance-switch input:focus-visible + .attendance-switch-slider {
  outline: 3px solid rgba(15, 142, 199, 0.32);
  outline-offset: 2px;
}

.choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
  color: #111111;
  border: 1px solid transparent;
  font-weight: 700;
}

.choice-btn:hover {
  color: #111111;
}

.choice-yes {
  background: #d9f2df;
  border-color: #78b88b;
}

.choice-yes:hover,
.choice-yes.active-choice {
  background: #2f9e44;
  color: #ffffff;
}

.choice-maybe {
  background: #fff0c2;
  border-color: #d8b24c;
}

.choice-maybe:hover,
.choice-maybe.active-choice {
  background: #d4a514;
  color: #111111;
}

.choice-no {
  background: #f8d7da;
  border-color: #d67a84;
}

.choice-no:hover,
.choice-no.active-choice {
  background: #c92a2a;
  color: #ffffff;
}

.choice-neutral {
  background: #e7eef3;
  border-color: #b9c5cf;
  color: #111111;
}

.choice-neutral:hover {
  background: #d6e2ea;
}

.hidden-choice-row {
  display: none;
}

.inline-actions.hidden-choice-row {
  display: none;
}

.performance-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.performance-columns-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.performance-columns-single {
  grid-template-columns: minmax(0, 1fr);
}

.performance-columns h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}

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

.performance-meta-grid p {
  margin: 0;
}

.summary-note-wrap {
  display: block;
  margin-top: 0.32rem;
  max-width: 520px;
}

.summary-meta {
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.rehearsal-vocals-line {
  display: block;
  margin-top: 0.1rem;
}

.summary-note {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: pre-line;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.summary-note-divider {
  display: block;
  width: 100%;
  border-top: 1px solid var(--border);
}

.performance-details-divider {
  border-top: 1px solid var(--border);
  margin: 0.1rem 0 0;
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.planner-card {
  padding: 0.85rem;
}

.planner-performance-stack {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.9rem;
}

.planner-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.planner-heading-beschikbaarheid {
  color: #0f8ec7;
}

.planner-heading-inventarisatie {
  color: #0f8ec7;
}

.planner-heading-definitief {
  color: #2f9e44;
}

.planner-heading-geannuleerd {
  color: #c92a2a;
}

.planner-list {
  display: grid;
  gap: 0.55rem;
}

.planner-link {
  position: relative;
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  background: #f9fbfc;
}

.item-notification-dot {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 0.72rem;
  height: 0.72rem;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #d92d20;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.22);
  z-index: 2;
}

.planner-link:hover {
  border-color: #8fa2b3;
  background: #f1f6f9;
}

.planner-main-link {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.planner-main-link:hover {
  color: inherit;
}

.planner-rehearsal-card {
  align-items: start;
}

.planner-static {
  cursor: default;
}

.planner-announcement-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left;
  align-items: start;
  justify-items: start;
  cursor: pointer;
}

.planner-announcement-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.planner-announcement-card .planner-meta-top,
.planner-announcement-head {
  width: 100%;
  align-items: start;
}

.planner-announcement-card .planner-title {
  margin: 0;
  text-align: left;
  display: block;
  color: #102a43;
}

.planner-announcement-meta {
  flex: 0 0 auto;
}

.planner-announcement-text {
  width: 100%;
  text-align: left;
  line-height: 1.45;
  color: var(--text);
  background: #ffffff;
}

.planner-announcement-card .planner-read-more {
  width: fit-content;
  margin-top: 0.3rem;
}

.planner-announcement-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.planner-announcement-quick-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.planner-announcement-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  min-width: 2rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none;
  box-shadow: none;
}

.planner-announcement-quick-link[role="img"] {
  pointer-events: none;
}

.planner-announcement-quick-link-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  background: #ffffff;
}

.planner-announcement-quick-link-piece {
  background: #0f1720;
}

.planner-announcement-quick-link-icon-piece {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6C4.89 2 4 2.9 4 4V20C4 21.1 4.89 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M13 9V3.5L18.5 9H13M10 19C8.9 19 8 18.1 8 17S8.9 15 10 15C10.35 15 10.69 15.09 11 15.26V11H16V13H13V17C13 18.1 12.1 19 11 19H10Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6C4.89 2 4 2.9 4 4V20C4 21.1 4.89 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M13 9V3.5L18.5 9H13M10 19C8.9 19 8 18.1 8 17S8.9 15 10 15C10.35 15 10.69 15.09 11 15.26V11H16V13H13V17C13 18.1 12.1 19 11 19H10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.planner-announcement-quick-link-rehearsal {
  background: #2f9e44;
}

.planner-announcement-quick-link-icon-rehearsal {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.planner-announcement-link-icon-rehearsals {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5H21V7H7V5M7 11H21V13H7V11M7 17H21V19H7V17M3 5H5V7H3V5M3 11H5V13H3V11M3 17H5V19H3V17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.planner-announcement-quick-link-performance {
  background: #0f8ec7;
}

.planner-announcement-quick-link-icon-performance {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H17V8H4V6M4 11H17V13H4V11M4 16H14V18H4V16M19 11V9H17V11H15V13H17V15H19V13H21V11H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H17V8H4V6M4 11H17V13H4V11M4 16H14V18H4V16M19 11V9H17V11H15V13H17V15H19V13H21V11H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.planner-announcement-card .planner-announcement-text {
  background: #ffffff;
  padding: 0.55rem 0.95rem;
  box-sizing: border-box;
}

.planner-announcement-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.planner-link strong {
  color: #102a43;
}

.dashboard-recent-changes-card {
  margin-bottom: 1rem;
}

.dashboard-recent-changes-card.card {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.dashboard-recent-changes-card .archive-section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-recent-changes-card .archive-collapsible-content {
  max-height: 13rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.dashboard-recent-changes-card .archive-mini-list a {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 2.45rem;
}

.dashboard-recent-changes-card .archive-mini-list a.dashboard-recent-change-row-is-new {
  background: #edf9ee;
  border-color: #b8dfbf;
}

.dashboard-recent-changes-card .archive-mini-list a.dashboard-recent-change-row-is-updated {
  background: #fff9de;
  border-color: #e6d79b;
}

.dashboard-recent-changes-card .archive-mini-list a.dashboard-recent-change-row-is-deleted {
  background: #fdecec;
  border-color: #e6b0b0;
}

.dashboard-recent-changes-card .archive-mini-list a.dashboard-recent-change-row-is-new:hover {
  background: #e4f4e5;
}

.dashboard-recent-changes-card .archive-mini-list a.dashboard-recent-change-row-is-updated:hover {
  background: #fff4c6;
}

.dashboard-recent-changes-card .archive-mini-list a.dashboard-recent-change-row-is-deleted:hover {
  background: #f9dddd;
}

.dashboard-recent-changes-card .archive-mini-list a strong {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  text-align: left;
}

.dashboard-recent-changes-card .archive-mini-list a span {
  text-align: right;
  justify-self: end;
  white-space: nowrap;
  font-size: 0.74rem;
  line-height: 1.1;
}

.dashboard-recent-changes-card .archive-mini-list {
  padding-right: 0.2rem;
}

.dashboard-recent-change-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.dashboard-recent-change-icon-piece {
  --dashboard-recent-change-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3V13.55A4 4 0 1 0 14 17V7H18V3H12Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--dashboard-recent-change-icon-path);
  mask-image: var(--dashboard-recent-change-icon-path);
}

.dashboard-recent-change-icon-rehearsal {
  --dashboard-recent-change-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4H17V2H15V4H9V2H7V4H5C3.9 4 3 4.9 3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4M19 20H5V10H19V20M19 8H5V6H19V8M7 12H12V17H7V12Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--dashboard-recent-change-icon-path);
  mask-image: var(--dashboard-recent-change-icon-path);
}

.dashboard-recent-change-icon-setlist {
  --dashboard-recent-change-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H20V8H4V6M4 11H20V13H4V11M4 16H20V18H4V16Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--dashboard-recent-change-icon-path);
  mask-image: var(--dashboard-recent-change-icon-path);
}

.planner-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.planner-meta-top strong {
  min-width: 0;
  flex: 1 1 auto;
}

.planner-meta-top .planner-canceled-title {
  color: #a12622;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #a12622;
}

.planner-meta-top .performance-badges {
  margin-left: auto;
}

.planner-title {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.planner-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.planner-vocals-line {
  display: block;
  margin-top: 0.1rem;
}

.planner-rich-preview {
  max-height: 3.9em;
  overflow: hidden;
  line-height: 1.3;
}

.planner-rich-preview p,
.planner-rich-preview div {
  margin: 0;
}

.planner-rich-preview br {
  display: none;
}

.planner-read-more {
  padding: 0;
  background: transparent;
  color: var(--accent-hover);
  text-decoration: underline;
  width: fit-content;
  pointer-events: none;
}

.planner-read-more:hover {
  background: transparent;
  color: var(--accent);
}

.planner-note-divider {
  display: block;
  width: 100%;
  max-width: 360px;
  border-top: 1px solid var(--border);
  margin: 0.2rem 0 0.05rem;
}

.planner-expiry {
  font-size: 0.78rem;
  color: #425466;
  text-align: right;
}

.planner-created {
  font-size: 0.78rem;
  color: #425466;
}

.planner-dates {
  display: grid;
  gap: 0.12rem;
  justify-items: end;
}

.planner-highlight {
  background: #eef7fc;
}

.planner-edit-form {
  margin-top: 0.55rem;
  border-top: 1px solid var(--border);
  padding-top: 0.55rem;
}

.planner-edit-form textarea {
  min-height: 3.8rem;
  resize: vertical;
}

.section-counts {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #425466;
  line-height: 1.35;
}

.performance-status-table {
  margin-top: 0;
}

.dense-table.performance-status-table th.status-head-yes {
  background: #e6f6ea;
  color: #155724;
}

.dense-table.performance-status-table th.status-head-section {
  background: #e7f1ff;
  color: #0b4f8a;
}

.dense-table.performance-status-table th.status-head-maybe {
  background: #fff4db;
  color: #8a5a00;
}

.dense-table.performance-status-table th.status-head-no {
  background: #fdeaea;
  color: #a12622;
}

.dense-table.performance-status-table th.status-head-missing {
  background: #e7f1ff;
  color: #0b4f8a;
}

.dense-table.performance-status-table thead th {
  background: #e7f1ff;
  color: #0b4f8a;
}

.dense-table.performance-status-table thead th:last-child {
  background: #e7f1ff;
  color: #0b4f8a;
}

.totp-qr {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.announcement-expiry {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.rehearsal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.rehearsal-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.rehearsal-item.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
}

.left-col,
.right-col {
  display: grid;
  gap: 0.4rem;
}

.right-col {
  border-left: 1px solid var(--border);
  padding-left: 0.8rem;
}

.label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.inline-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.performance-status-actions {
  align-items: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.performance-status-inline-summary {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.performance-status-inline-summary > strong {
  line-height: 2.55rem;
}

.performance-status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: max-content;
  min-width: 12rem;
}

.performance-status-inline-summary .performance-status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.performance-status-form {
  display: inline-grid;
  justify-items: start;
  gap: 0.35rem;
}

.performance-status-form .performance-status-stack {
  width: max-content;
}

select.performance-status-select {
  width: max-content;
  min-width: 12rem;
  min-height: 2.55rem;
  padding: 0.55rem 2.1rem 0.55rem 0.7rem;
  border: 1px solid #b9c5cf;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-weight: 700;
}

select.performance-status-select:focus {
  outline: 3px solid rgba(15, 142, 199, 0.25);
  border-color: #8fb0c9;
}

.performance-status-stack .archive-custom-select {
  width: 100%;
  gap: 0.35rem;
}

.performance-status-stack .archive-custom-select-button,
.performance-status-stack .archive-custom-select-option {
  font-size: 0.95rem;
}

.performance-status-stack .archive-custom-select-button,
.performance-status-stack .archive-custom-select-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.55rem;
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
}

.performance-status-stack .archive-custom-select-button {
  border: 1px solid transparent;
}

.performance-status-stack .archive-custom-select-button::after {
  right: 0.8rem;
}

.performance-status-stack .archive-custom-select-list {
  padding: 0.4rem;
  gap: 0.25rem;
  min-width: 100%;
}

.performance-status-stack .archive-custom-select-option.choice-yes {
  background: #d9f2df;
  border-color: #78b88b;
}

.performance-status-stack .archive-custom-select-option.choice-yes:hover,
.performance-status-stack .archive-custom-select-option.choice-yes.is-selected {
  background: #2f9e44;
  color: #ffffff;
}

.performance-status-stack .archive-custom-select-option.choice-maybe {
  background: #fff0c2;
  border-color: #d8b24c;
}

.performance-status-stack .archive-custom-select-option.choice-maybe:hover,
.performance-status-stack .archive-custom-select-option.choice-maybe.is-selected {
  background: #d4a514;
  color: #111111;
}

.performance-status-stack .archive-custom-select-option.choice-no {
  background: #f8d7da;
  border-color: #d67a84;
}

.performance-status-stack .archive-custom-select-option.choice-no:hover,
.performance-status-stack .archive-custom-select-option.choice-no.is-selected {
  background: #c92a2a;
  color: #ffffff;
}

.performance-status-stack .archive-custom-select-option.choice-neutral {
  background: #e7eef3;
  border-color: #b9c5cf;
}

.performance-status-stack .archive-custom-select-option.choice-neutral:hover,
.performance-status-stack .archive-custom-select-option.choice-neutral.is-selected {
  background: #d6e2ea;
  color: #111111;
}

.performance-status-stack .archive-custom-select-button.choice-yes {
  background: #2f9e44;
  border-color: #78b88b;
  color: #ffffff;
}

.performance-status-stack .archive-custom-select-button.choice-maybe {
  background: #d4a514;
  border-color: #d8b24c;
  color: #111111;
}

.performance-status-stack .archive-custom-select-button.choice-no {
  background: #c92a2a;
  border-color: #d67a84;
  color: #ffffff;
}

.performance-status-stack .archive-custom-select-button.choice-neutral {
  background: #e7eef3;
  border-color: #b9c5cf;
  color: #111111;
}

.availability-actions,
.availability-actions .inline-actions {
  flex-wrap: wrap;
}

.replacement-field-row {
  display: block;
  width: 100%;
  margin-top: 0.05rem;
}

.replacement-field-row[hidden] {
  display: none;
}

.replacement-combobox {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.replacement-input {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid #b9c5cf;
  border-radius: 8px;
  padding: 0.45rem 2.3rem 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  background: #ffffff;
}

.replacement-combobox.has-replacement .replacement-input {
  border-color: #7ac38e;
  background: #ecf8ef;
  color: #155724;
}

.replacement-input:focus {
  outline: 3px solid rgba(15, 142, 199, 0.25);
  border-color: #8fb0c9;
}

.replacement-clear-btn {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 0;
  border-radius: 999px;
  background: #e7eef3;
  color: #253746;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.replacement-combobox.has-replacement .replacement-clear-btn {
  background: #d7f0de;
  color: #155724;
}

.performance-replacement-name {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e8dcff;
  color: #5a3d91;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.performance-replacement-note {
  color: var(--text);
  font: inherit;
}

.performance-invaller-legend {
  margin-top: 0.45rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.35rem;
  align-items: center;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.performance-invaller-legend-badge {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: #e8dcff;
  border: 1px solid #c9b3ef;
  flex: 0 0 auto;
}

.replacement-clear-btn[hidden] {
  display: none;
}

.replacement-options {
  position: absolute;
  z-index: 35;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.25rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 49, 70, 0.18);
}

.replacement-options[hidden] {
  display: none;
}

.replacement-option {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  padding: 0.48rem 0.8rem;
  border: 1px solid #d2dce5;
  border-radius: 9px;
  background: #f8fbfd;
  color: #111111;
  font: inherit;
  font-weight: 700;
  text-align: center !important;
  cursor: pointer;
  line-height: 1.25;
  box-sizing: border-box;
  white-space: normal;
}

.replacement-option:hover {
  border-color: #8fb0c9;
  background: #eef6fb;
}

.performance-utility-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: nowrap;
  margin-top: -0.1rem;
}

.performance-utility-actions .attendance-status-inline {
  width: auto;
}

.performance-utility-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.performance-utility-actions .link-btn-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.performance-setlist-status-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

.performance-setlist-status-link-icon-only {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  position: relative;
}

.performance-setlist-status-link-icon-only::before {
  content: "";
  display: block;
  width: 1.18rem;
  height: 1.18rem;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6C21 11 15 11 15 11H4C3 11 2 10 2 10H1V14H2C2 14 3 13 4 13H4.3C4.1 13.3 4 13.6 4 14V16C4 17.1 4.9 18 6 18H7V19H9V18H10V19H12V18H13V19H15V18H16C17.1 18 18 17.1 18 16V14C18 13.9 18 13.7 17.9 13.6C19.6 14.2 21.4 15.4 22 18H23V6H22M6 16.5C5.7 16.5 5.5 16.3 5.5 16V14C5.5 13.7 5.7 13.5 6 13.5H7V16.5H6M9 16.5V13.5H10V16.5H9M12 16.5V13.5H13V16.5H12M16.5 16C16.5 16.3 16.3 16.5 16 16.5H15V13.5H16C16.3 13.5 16.5 13.7 16.5 14V16M9 10H7V9H9V10M12 10H10V9H12V10M15 10H13V9H15V10Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 6C21 11 15 11 15 11H4C3 11 2 10 2 10H1V14H2C2 14 3 13 4 13H4.3C4.1 13.3 4 13.6 4 14V16C4 17.1 4.9 18 6 18H7V19H9V18H10V19H12V18H13V19H15V18H16C17.1 18 18 17.1 18 16V14C18 13.9 18 13.7 17.9 13.6C19.6 14.2 21.4 15.4 22 18H23V6H22M6 16.5C5.7 16.5 5.5 16.3 5.5 16V14C5.5 13.7 5.7 13.5 6 13.5H7V16.5H6M9 16.5V13.5H10V16.5H9M12 16.5V13.5H13V16.5H12M16.5 16C16.5 16.3 16.3 16.5 16 16.5H15V13.5H16C16.3 13.5 16.5 13.7 16.5 14V16M9 10H7V9H9V10M12 10H10V9H12V10M15 10H13V9H15V10Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.performance-setlist-status-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.performance-setlist-status-icon {
  display: inline-block;
  width: 1.18rem;
  height: 1.18rem;
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H17V8H4V6M4 11H17V13H4V11M4 16H14V18H4V16M19 11V9H17V11H15V13H17V15H19V13H21V11H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H17V8H4V6M4 11H17V13H4V11M4 16H14V18H4V16M19 11V9H17V11H15V13H17V15H19V13H21V11H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.performance-setlist-mobile {
  display: none;
}

.performance-utility-links .attendance-ics-link {
  margin-left: 0;
}

.link-btn-inline {
  display: inline-block;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
}

.login-utility-row {
  width: 100%;
  max-width: 720px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0;
  min-height: 1.5rem;
}

.login-utility-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.login-utility-link {
  color: #24384d;
  font-size: 0.92rem;
  text-decoration: none;
}

.login-utility-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.login-utility-link-right {
  margin-left: auto;
}

.mobile-shortcut-link {
  display: none;
}

.login-utility-row .mobile-shortcut-link {
  margin-left: auto;
}

@media (max-width: 820px), (pointer: coarse) {
  .mobile-shortcut-link {
    display: inline;
  }
}

.login-shortcut-dialog {
  width: min(520px, 92vw);
}

.shortcut-help {
  display: grid;
  gap: 0.8rem;
}

.shortcut-help-block {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f9fbfc;
}

.shortcut-help-block p {
  margin: 0;
  line-height: 1.5;
}

.members-copy-actions {
  margin-top: 1rem;
  padding-top: 0.35rem;
  display: grid;
  gap: 0.45rem;
}

.members-subsection {
  margin-top: 1.2rem;
}

.members-subsection-title {
  margin: 0 0 0.7rem;
  color: #24384d;
  font-size: 1.02rem;
}

.members-copy-label {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.section-header-row h2 {
  margin: 0;
}

.rehearsal-form-title-row {
  align-items: flex-start;
}

.rehearsal-canceled-header {
  margin-left: auto;
  background: #fdf0ef;
  border: 1px solid #efb4b0;
  border-radius: 10px;
  padding: 0.24rem 0.7rem;
  min-height: 2.2rem;
  align-self: center;
}

.status-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.status-filter-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-filter-beschikbaarheid {
  background: #0f8ec7;
  color: #ffffff;
  border-color: #0f8ec7;
}

.status-filter-definitief {
  background: #2f9e44;
  color: #ffffff;
  border-color: #2f9e44;
}

.status-filter-geannuleerd {
  background: #c92a2a;
  color: #ffffff;
  border-color: #c92a2a;
}

.status-filter-btn.active-filter {
  box-shadow: 0 0 0 4px rgba(15, 23, 32, 0.2), 0 8px 18px rgba(15, 23, 32, 0.14);
  transform: translateY(-1px);
  filter: saturate(1.1);
  font-weight: 800;
}

.admin-list {
  display: grid;
  gap: 0.55rem;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  background: #f9fbfc;
}

.admin-list-item p {
  margin: 0.2rem 0 0;
}

.members-create-wrap {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}

.members-create-wrap-top {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-top: 0;
  padding-bottom: 0.15rem;
  border-top: 0;
}

.member-create-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
  align-items: end;
}

.member-dialog {
  width: min(760px, 92vw);
}

#dialog-login-audit {
  width: min(1180px, 96vw);
  max-height: min(820px, calc(100vh - 2rem));
  box-sizing: border-box;
  overflow: auto;
}

#dialog-login-audit:not([open]) {
  display: none;
}

.admin-dialog-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.8rem;
}

.admin-dialog-form label,
.admin-dialog-form p {
  min-width: 0;
}

.admin-dialog-form p {
  margin: 0;
}

.admin-dialog-form textarea {
  min-height: 12rem;
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
  resize: vertical;
}

.admin-dialog-form input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  font-size: 0.96rem;
  padding-right: 2.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dialog-form input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  min-width: 0;
}

.admin-dialog-form input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 0.35rem;
}

.admin-dialog-form input[type="date"],
.admin-dialog-form input[type="text"],
.admin-dialog-form input[type="email"],
.admin-dialog-form input[type="tel"],
.admin-dialog-form input[type="number"],
.admin-dialog-form select,
.admin-dialog-form textarea {
  min-width: 0;
  max-width: 100%;
}

.announcement-form-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.announcement-link-section {
  display: grid;
  gap: 0.35rem;
}

.announcement-link-dropdown {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fbfc;
  width: 100%;
  box-sizing: border-box;
}

.announcement-link-dropdown-summary {
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.announcement-link-dropdown-summary::-webkit-details-marker {
  display: none;
}

.announcement-link-dropdown-summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.announcement-link-dropdown:not([open]) .announcement-link-dropdown-summary::after {
  content: "▸";
}

.announcement-link-dropdown-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: end;
  padding: 0 0.65rem 0.65rem;
}

.announcement-link-search {
  flex: 1 1 16rem;
  min-width: 0;
}

.announcement-link-search input[type="search"] {
  width: 100%;
  min-width: 0;
}

.announcement-piece-search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: end;
  padding: 0 0.65rem 0.65rem;
}

.announcement-piece-search-controls .announcement-link-search {
  flex: 1 1 16rem;
  min-width: 0;
}

.announcement-piece-search-controls .archive-current-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.announcement-link-close-button {
  white-space: normal;
  background: #111;
  color: #fff;
  border-color: #111;
}

.announcement-link-close-button:hover,
.announcement-link-close-button:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
}

.announcement-link-dropdown-list {
  padding: 0 0.65rem 0.65rem;
}

.announcement-linked-list {
  display: grid;
  gap: 0.4rem;
  max-height: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.announcement-linked-list li {
  margin: 0;
}

.announcement-linked-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-weight: 500;
  background: #f9fbfc;
}

.announcement-linked-list label.announcement-linked-item-current {
  color: #2f9e44;
}

.announcement-linked-list input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: #2f9e44;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.editor-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.86rem;
}

.editor-help {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.rich-editor-source {
  display: none;
}

.rich-editor-surface {
  min-height: 12rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.rich-editor-surface:focus {
  outline: 2px solid rgba(52, 152, 219, 0.22);
  outline-offset: 0;
  border-color: #7fa8d8;
}

.rich-editor-surface:empty::before {
  content: "Typ hier je toelichting...";
  color: var(--muted);
}

.field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #b42318;
  font-weight: 600;
}

.admin-checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  font-weight: 600;
}

.admin-checkbox-row input[type="checkbox"],
.admin-checkbox-row input[type="radio"] {
  margin: 0;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.admin-checkbox-row span {
  line-height: 1.2;
}

.admin-option-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.admin-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.member-type-admin-row {
  align-self: center;
}

.member-admin-checkbox {
  padding-left: 1.2rem;
  border-left: 1px solid #c9d5df;
}

.member-admin-checkbox input:disabled + span {
  opacity: 0.45;
}

.manager-rehearsal-setlist-select {
  align-self: end;
}

.admin-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  align-items: center;
}

.rehearsal-canceled-field {
  align-self: end;
  justify-content: center;
  min-height: 2.75rem;
}

.recipient-block {
  margin-top: 0.15rem;
}

.recipient-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  margin-bottom: 0.8rem;
}

.recipient-dropdown {
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fbfc;
  width: 100%;
  box-sizing: border-box;
}

.recipient-dropdown-summary {
  display: block;
  cursor: pointer;
  padding: 0.6rem 0.7rem;
  font-weight: 600;
  list-style: none;
}

.recipient-dropdown-summary::-webkit-details-marker {
  display: none;
}

.recipient-dropdown-summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
}

.recipient-dropdown:not([open]) .recipient-dropdown-summary::after {
  content: "▸";
}

.compact-recipient-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 220px;
  margin-top: 0;
  padding: 0 0.65rem 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.rehearsal-picker {
  display: grid;
  gap: 0.45rem;
}

.past-rehearsal-picker {
  margin-top: 1rem;
}

.label-note {
  font-weight: 400;
}

.rehearsal-picker label {
  font-size: 0.88rem;
}

.rehearsal-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.manager-member-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.status-select-definitief {
  border-color: #5fb86d;
  color: #245a2f;
  background: #e8f6ea;
}

.status-select-beschikbaarheid {
  border-color: #5fa7dc;
  color: #1d4f74;
  background: #e8f3fc;
}

.status-select-geannuleerd {
  border-color: #db7676;
  color: #7c2525;
  background: #fbecec;
}

.admin-inline-form {
  margin-top: 0.7rem;
}

.member-create-form p {
  margin: 0;
}

.member-create-form p:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.2rem;
  grid-column: 1 / -1;
}

.member-create-form p:has(input[type="radio"]) {
  margin: 0;
  grid-column: 1 / -1;
}

.member-create-form p:has(input[type="radio"]) > label {
  margin-bottom: 0.25rem;
}

.member-create-form p:has(input[type="radio"]) ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-create-form p:has(input[type="radio"]) li label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.member-create-form p:has(input[type="radio"]) input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

.member-create-form p:has(input[type="checkbox"]) label {
  order: 2;
  margin: 0;
  line-height: 1.2;
}

.member-create-form p:has(input[type="checkbox"]) input[type="checkbox"] {
  order: 1;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: 0 0 auto;
}

.member-create-form label {
  gap: 0.18rem;
  font-size: 0.84rem;
}

.member-create-form input,
.member-create-form select {
  padding: 0.38rem 0.45rem;
  font-size: 0.84rem;
}

.member-create-form .helptext {
  display: none;
}

.member-create-form ul.errorlist {
  margin: 0.15rem 0 0;
  padding-left: 1rem;
  font-size: 0.76rem;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.consent-form {
  margin-top: 1rem;
}

.consent-action-form {
  margin-top: 0.9rem;
}

.consent-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}

.consent-check input {
  width: auto;
  margin-top: 0.15rem;
}

.privacy-warning {
  border: 1px solid #d67a84;
  background: #fff1f3;
  color: #8a1c2b;
  padding: 0.75rem;
  border-radius: 8px;
  margin: 0 0 1rem;
}

.privacy-container {
  width: min(980px, 94vw);
  margin: 1.25rem auto 2rem;
}

.privacy-card {
  padding: 1.2rem 1.3rem;
}

.privacy-content {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.privacy-content h2,
.privacy-card h1 {
  margin-bottom: 0.2rem;
}

.privacy-content p,
.privacy-content ul {
  margin: 0;
  line-height: 1.45;
}

.privacy-content ul {
  padding-left: 1.2rem;
}

.account-page {
  width: min(1180px, 96vw);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.8rem;
}

.account-column {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.account-card {
  padding: 0.75rem 0.85rem;
  margin-bottom: 0;
}

.account-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.account-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
}

.account-card p {
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.account-notifications-card,
.account-avg-card {
  align-self: start;
}

.account-notice-card,
.account-warning-card {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.account-warning-card {
  border-color: #d9c38a;
  background: linear-gradient(180deg, #fff9ec 0%, #ffffff 100%);
}

.account-onboarding-list {
  margin: 0 0 0.65rem 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.security-recommendation {
  padding: 0.65rem 0.75rem;
  border: 1px solid #c7d7ea;
  border-radius: 10px;
  background: #f4f9fd;
}

.password-manager-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
}

.password-manager-card:hover {
  background: #16233a;
  text-decoration: none;
}

.password-manager-logo {
  width: 132px;
  max-width: 100%;
  height: auto;
  display: block;
}

.account-section-divider {
  border-top: 1px solid var(--border);
  margin: 0.8rem 0;
}

.account-form {
  gap: 0.5rem;
}

.account-form p {
  margin: 0;
}

.password-rules-note {
  margin: 0 0 0.15rem !important;
}

.account-page label {
  gap: 0.2rem;
  font-size: 0.92rem;
}

.account-page input,
.account-page select,
.account-page textarea {
  padding: 0.45rem 0.55rem;
}

.planner-form {
  margin-top: 0.75rem;
}

.announcement-actions {
  margin-top: 0.1rem;
}

.notice-stack {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  position: relative;
  z-index: 1;
}

.archive-page > .notice-stack {
  position: absolute;
  top: 6.95rem;
  left: clamp(18.5rem, 20vw, 24rem);
  right: 2rem;
  width: auto;
  margin: 0;
  z-index: 5;
}

.form-notice,
.form-errors {
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
}

.form-notice p,
.form-errors p {
  margin: 0;
}

.form-notice-success {
  background: #e6f6ea;
  color: #155724;
  border: 1px solid #9bd1a8;
}

.form-notice-error,
.form-errors {
  background: #fdeaea;
  color: #a12622;
  border: 1px solid #e5a3a0;
}

.field-errors {
  font-size: 0.8rem;
  color: #a12622;
  font-weight: 600;
}

.form-error {
  color: #a12622;
  font-size: 0.8rem;
  font-weight: 700;
}

.email-dialog {
  width: min(540px, 92vw);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.email-dialog.admin-dialog {
  width: min(1380px, 98vw);
}

.email-dialog.admin-dialog.old-rehearsal-dialog {
  width: min(1180px, 96vw);
}

.admin-dialog-actions-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  width: 100%;
}

.admin-dialog-actions-line .admin-dialog-trash {
  order: 10;
}

.member-edit-actions {
  flex-wrap: wrap;
}

.member-edit-actions .member-edit-delete {
  margin-left: auto;
}

.admin-delete-form {
  display: none;
}

.email-dialog::backdrop {
  background: rgba(17, 24, 39, 0.28);
}

.email-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.email-dialog-head h3 {
  margin: 0;
  font-size: 1rem;
}

.planner-dialog {
  width: min(720px, 92vw);
  border-radius: 16px;
}

.planner-dialog-head {
  align-items: flex-start;
  padding: 0.9rem 1rem 0.8rem;
  border-bottom: 1px solid var(--border);
  margin: -0.9rem -0.9rem 0.9rem;
  border-radius: 16px 16px 0 0;
  background: #e8f2fb;
}

.planner-dialog-head h3 {
  font-size: 1.15rem;
  margin-top: 0.1rem;
  color: var(--text);
}

.planner-dialog-meta {
  display: grid;
  gap: 0.15rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
  line-height: 1.3;
}

.planner-dialog-inner {
  display: grid;
  gap: 0.9rem;
}

.planner-dialog-body {
  display: grid;
  gap: 0.85rem;
}

.planner-dialog-text {
  line-height: 1.55;
  color: var(--text);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f5f7f9;
}

.planner-announcement-links {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  line-height: 1.45;
}

.planner-announcement-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  align-items: baseline;
}

.planner-announcement-link-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.1rem;
}

.planner-announcement-link-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  background: currentColor;
}

.planner-announcement-link-icon-pieces {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4H5C3.9 4 3 4.9 3 6V18C3 19.1 3.9 20 5 20H19C20.1 20 21 19.1 21 18V6C21 4.9 20.1 4 19 4M19 18H5V6H19V18M15 7V13.5C15 14.4 14.3 15 13.5 15S12 14.4 12 13.5 12.7 12 13.5 12C13.8 12 14.2 12.1 14.5 12.3V9H16V7H15M8 8H11V10H8V8M8 11H11V13H8V11M8 14H11V16H8V14Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 4H5C3.9 4 3 4.9 3 6V18C3 19.1 3.9 20 5 20H19C20.1 20 21 19.1 21 18V6C21 4.9 20.1 4 19 4M19 18H5V6H19V18M15 7V13.5C15 14.4 14.3 15 13.5 15S12 14.4 12 13.5 12.7 12 13.5 12C13.8 12 14.2 12.1 14.5 12.3V9H16V7H15M8 8H11V10H8V8M8 11H11V13H8V11M8 14H11V16H8V14Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.planner-announcement-link-icon-setlists {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H17V8H4V6M4 11H17V13H4V11M4 16H14V18H4V16M19 11V9H17V11H15V13H17V15H19V13H21V11H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H17V8H4V6M4 11H17V13H4V11M4 16H14V18H4V16M19 11V9H17V11H15V13H17V15H19V13H21V11H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.planner-announcement-link-group strong {
  margin-right: 0.1rem;
}

.planner-dialog-links {
  margin-top: 0.4rem;
}

.email-dialog-tools,
.email-dialog-actions {
  margin-top: 0.7rem;
}

.planner-dialog .email-dialog-actions {
  margin-top: 0;
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

.planner-dialog .choice-btn.choice-neutral {
  border: 1px solid #b9c8d6;
  background: #eef3f7;
  color: #111111;
}

.planner-dialog .choice-btn.choice-neutral:hover,
.planner-dialog .choice-btn.choice-neutral:focus-visible {
  border-color: #94a9bb;
  background: #e1e9f0;
}

.email-recipient-list {
  display: grid;
  gap: 0.45rem;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.75rem;
  padding-right: 0.15rem;
}

.email-recipient-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-weight: 500;
  background: #f9fbfc;
}

.email-recipient-item input {
  width: auto;
  margin: 0;
}

.email-recipient-name {
  color: var(--text);
}

.email-recipient-address {
  color: var(--muted);
  font-size: 0.82rem;
}

.account-page .totp-qr {
  width: 180px;
  padding: 0.35rem;
}

@media (max-width: 820px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-column {
    display: contents;
  }

  .account-notifications-card {
    order: 1;
  }

  .account-profile-card,
  .account-notice-card {
    order: 2;
  }

  .account-password-card,
  .account-warning-card {
    order: 3;
  }

  .account-passkeys-card {
    order: 4;
  }

  .account-security-card {
    order: 5;
  }

  .account-avg-card {
    order: 99;
  }
}

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

.future-picker {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.4rem;
  max-width: 380px;
}

.selected-card {
  margin-top: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
}

.section-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.section-table th,
.section-table td {
  border-top: 1px solid var(--border);
  padding: 0.35rem 0.2rem;
  text-align: left;
  vertical-align: top;
}

.section-table th {
  color: var(--muted);
  font-weight: 600;
}

.dense-table {
  margin-top: 0;
  font-size: 0.76rem;
}

.dense-table td,
.dense-table th {
  border: 1px solid #7b8794;
  padding: 0.28rem 0.38rem;
  background: #fff;
}

.dense-table th:first-child {
  background: #e7f1ff;
  color: #0b4f8a;
}

.dense-table th:last-child {
  background: #fdeaea;
  color: #a12622;
}

.overview-detail-setlist-table.dense-table th {
  background: #e7f1ff;
  color: #0b4f8a;
}

.members-table-wrap {
  overflow-x: auto;
  border: 2px solid #7b8794;
  border-radius: 0;
  background: #fff;
}

.login-audit-table-wrap {
  max-height: min(520px, 52vh);
  overflow: auto;
}

.login-audit-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.logging-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.45fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.logging-filter-actions {
  align-self: end;
}

.logging-dialog-head {
  position: sticky;
  top: -0.9rem;
  z-index: 3;
  padding: 0.2rem 0 0.35rem;
  background: #fff;
}

.logging-count {
  margin: 0 0 0.45rem;
}

.logging-results {
  display: block;
}

.logging-pagination {
  margin-top: 0.65rem;
  align-items: center;
  padding-top: 0.55rem;
  background: #fff;
}

.logging-pagination-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.notification-choice-row {
  margin-top: -0.15rem;
  margin-bottom: -0.1rem;
  gap: 0.45rem 0.9rem;
  row-gap: 0.15rem;
}

.members-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.8rem;
  line-height: 1.25;
  background: #fff;
}

.members-table th,
.members-table td {
  border: 1px solid #7b8794;
  padding: 0.38rem 0.55rem;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  background: #fff;
}

.members-table th:last-child,
.members-table td:last-child {
  border-right: 0;
}

.members-table th {
  color: #102a43;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  background: #eef2f6;
}

.members-table td input,
.members-table td select {
  min-width: 100%;
  padding: 0.32rem 0.45rem;
  font-size: 0.82rem;
  border: 1px solid #9aa5b1;
  border-radius: 4px;
}

.name-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.35rem;
}

.sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.sort-link:hover {
  text-decoration: underline;
}

.sort-dual {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.sort-dual .sort-link {
  width: auto;
  font-size: 0.72rem;
  color: #425466;
}

.status-cell {
  display: grid;
  gap: 0.15rem;
  min-width: 150px;
  font-size: 0.78rem;
}

.members-table td strong {
  font-weight: 700;
}

.status-cell label {
  font-weight: 400;
}

.inline-reset-form {
  margin-top: 0.35rem;
}

.rehearsal-table {
  font-size: 0.78rem;
}

.rehearsal-table td,
.rehearsal-table th {
  white-space: normal;
}

.attendance-cell {
  display: grid;
  gap: 0.28rem;
  min-width: 220px;
}

.table-link {
  color: #102a43;
  text-decoration: underline;
  width: fit-content;
}

.note-row td {
  background: #f8fbfd;
}

.note-row-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 1.8fr 0.85fr;
  gap: 0.55rem;
  align-items: center;
}

.note-line {
  grid-column: 1 / span 2;
  margin-bottom: 0;
}

.note-line:first-child {
  border-bottom: 1px solid #7b8794;
  padding-bottom: 0.35rem;
  margin-bottom: 0.1rem;
}

.note-edit-form {
  display: grid;
  grid-column: 4;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  align-items: start;
}

.rehearsal-note-edit-form {
  grid-column: auto;
  width: 100%;
}

.note-edit-form input,
.note-edit-form textarea {
  max-width: none;
}

.note-edit-form textarea {
  min-height: 5.6rem;
  resize: vertical;
}

.rehearsal-note-actions {
  margin-top: 0.05rem;
}

.canceled-row td {
  background: #fff6f6;
}

.canceled-text {
  color: #b42318;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.canceled-flag {
  color: #b42318;
  text-decoration: none;
}

.rehearsal-canceled-line {
  display: block;
  margin-top: 0.08rem;
  line-height: 1.1;
}

.col-name {
  width: 14%;
}

.col-section {
  width: 14%;
}

.col-email {
  width: 26%;
}

.col-phone {
  width: 16%;
}

.col-action {
  width: 20%;
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .members-container,
  .members-page,
  .account-page {
    width: min(1180px, calc(100vw - 0.8rem));
    margin-left: auto;
    margin-right: auto;
  }

  .archive-page {
    --archive-title-offset: calc(112px + 0.65rem);
  }

  .archive-manager-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
    align-items: stretch;
  }

  .archive-manager-actions > .manager-new-button,
  .archive-manager-actions > .link-btn.secondary.manager-new-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .archive-manager-actions .link-btn.secondary.manager-new-button.manager-current-cleanup-button,
  .archive-manager-actions .link-btn.secondary.manager-new-button.manager-archived-cleanup-button {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .manager-section-actions:not(.archive-manager-actions),
  .manager-section-new-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    align-items: stretch;
  }

  .manager-section-actions:not(.archive-manager-actions) > .manager-new-button,
  .manager-section-actions:not(.archive-manager-actions) > .link-btn.secondary.manager-new-button,
  .manager-section-new-row > .manager-new-button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
  }

  .toolbar-menu-toggle {
    display: inline-flex;
    align-self: center;
    margin-top: 0;
  }

  .logging-filter-form {
    grid-template-columns: 1fr;
  }

  .logging-filter-actions {
    align-self: stretch;
  }

  .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
  }

  .brand-lockup > div {
    min-width: 0;
    padding-top: 0;
  }

  .brand-logo {
    width: 112px;
  }

  .toolbar .brand-lockup h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .announcement-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }

  .performance-summary,
  .performance-columns {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .rehearsal-form-page {
    grid-template-columns: 1fr;
  }

  .rehearsal-canceled-header {
    padding: 0.12rem 0.5rem;
    min-height: 1.7rem;
    line-height: 1.1;
  }

  .notification-choice-row {
    gap: 0.35rem 0.8rem;
    row-gap: 0.15rem;
    margin-bottom: 0.35rem;
  }

  .notification-choice-row .admin-checkbox-row {
    min-height: 0;
  }

  .rehearsal-edit-actions {
    margin-top: 0.55rem;
  }

  .planner-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 20;
    width: min(220px, calc(100vw - 1rem));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(214, 224, 231, 0.98);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.14);
  }

  .toolbar-menu-wrap {
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;
  }

  .toolbar-quick-actions {
    gap: 0.45rem;
  }

  .toolbar-quick-actions form,
  .toolbar-quick-actions > .link-btn {
    display: none;
  }

  .toolbar-mobile-actions {
    display: contents;
  }

  .toolbar-mobile-actions .toolbar-mobile-archive {
    display: flex;
    order: 0;
  }

  .toolbar-actions > .link-btn,
  .toolbar-mobile-actions .link-btn,
  .toolbar-mobile-actions form,
  .toolbar-mobile-actions button {
    width: 100%;
  }

  .toolbar-actions > .link-btn {
    order: 1;
  }

  .toolbar-actions > .toolbar-overview-link {
    order: 0;
  }

  .toolbar-mobile-actions .account-btn,
  .toolbar-mobile-actions form,
  .toolbar-mobile-actions button {
    order: 99;
  }

  .toolbar-actions:not(.is-open) {
    display: none;
  }

  .toolbar-account {
    width: auto;
    max-width: 100%;
  }

  .toolbar-account form,
  .toolbar-account .secondary,
  .toolbar-account .account-btn {
    width: auto;
    max-width: 100%;
  }

  .planner-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .planner-meta-top .performance-badges {
    margin-left: 0;
  }

  .performance-badges {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .planner-link,
  .card,
  .performance-item {
    overflow: hidden;
  }

  .rehearsal-item.split {
    grid-template-columns: 1fr;
  }

  .right-col {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 0.7rem;
  }

  .members-table {
    min-width: 1120px;
  }

  .note-row-grid {
    grid-template-columns: 1fr;
  }

  .note-line,
  .note-edit-form {
    grid-column: auto;
  }

  .rehearsal-manage-form {
    grid-template-columns: 1fr;
  }

  .member-create-form {
    grid-template-columns: 1fr;
  }

  .member-create-page-form .member-send-login-row {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0.15rem 0 0.55rem;
    min-height: 0;
    justify-content: flex-start;
    align-items: center;
  }

  .member-create-page-form .member-create-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .member-create-page-form .member-create-actions > * {
    width: 100%;
  }

  .admin-dialog-form {
    grid-template-columns: 1fr;
  }

  .announcement-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .email-dialog.admin-dialog {
    width: min(760px, 96vw);
  }

  .email-dialog.admin-dialog.old-rehearsal-dialog {
    width: min(760px, 96vw);
  }

  .admin-dialog-form,
  .announcement-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  .email-dialog.admin-dialog {
    width: min(680px, 96vw);
  }

  .email-dialog.admin-dialog.old-rehearsal-dialog {
    width: min(680px, 96vw);
  }

  .member-create-form,
  .admin-dialog-form,
  .announcement-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .email-dialog.admin-dialog {
    width: min(680px, 96vw);
  }

  .email-dialog.admin-dialog.old-rehearsal-dialog {
    width: min(680px, 96vw);
  }
}

@media (max-width: 430px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container,
  .members-container,
  .members-page,
  .account-page {
    width: auto;
    max-width: calc(100vw - 0.6rem);
    margin: 0.3rem;
  }

  .archive-page {
    --archive-title-offset: calc(86px + 0.65rem);
  }

  .card,
  .members-card,
  .planner-card {
    padding: 0.65rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .toolbar {
    flex-wrap: nowrap;
    align-items: center;
  }

  .brand-logo {
    width: 86px;
  }

  .toolbar .brand-lockup h1 {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .toolbar-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .toolbar-mobile-actions {
    display: contents;
  }

  .toolbar-mobile-actions .toolbar-mobile-archive {
    order: 0;
  }

  .toolbar-mobile-actions .account-btn,
  .toolbar-mobile-actions form,
  .toolbar-mobile-actions button {
    order: 99;
  }

  .toolbar-menu-wrap {
    width: auto;
    flex-basis: auto;
  }

  .toolbar-quick-actions {
    width: auto;
  }

  .toolbar-quick-actions form,
  .toolbar-quick-actions > .link-btn {
    display: none;
  }

  .toolbar-mobile-actions form,
  .toolbar-mobile-actions .link-btn,
  .toolbar-mobile-actions button {
    width: 100%;
  }

  .toolbar-actions:not(.is-open) {
    display: none;
  }

  #dialog-login-audit {
    width: calc(100vw - 0.8rem);
    height: calc(100dvh - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 0.65rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  #dialog-login-audit .logging-filter-form {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
  }

  #dialog-login-audit .logging-count {
    font-size: 0.78rem;
  }

  #dialog-login-audit .login-audit-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  #dialog-login-audit .logging-results {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
  }

  #dialog-login-audit .logging-pagination {
    justify-content: space-between;
    gap: 0.35rem;
  }

  #dialog-login-audit .logging-pagination .link-btn-inline {
    flex: 1 1 auto;
    justify-content: center;
  }

  .link-btn,
  button {
    padding: 0.48rem 0.72rem;
  }

  .focus-actions {
    gap: 0.35rem;
  }

  .focus-actions .choice-btn {
    flex: 1 1 0;
    padding: 0.48rem 0.55rem;
    font-size: 0.9rem;
  }

  .rehearsal-focus-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 0.45rem;
  }

  .rehearsal-blazers-warning,
  .rehearsal-canceled-warning {
    grid-column: 1 / -1;
    order: 3;
  }

  .rehearsal-focus-actions .choice-btn {
    width: 100%;
    flex: none;
    justify-content: center;
    text-align: center;
    order: 1;
  }

  .rehearsal-floating-nav,
  .performance-floating-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    margin: 0 0 0.65rem;
    justify-content: stretch;
    align-items: center;
    gap: 0.45rem;
  }

  .rehearsal-floating-nav .link-btn,
  .performance-floating-nav .link-btn {
    width: 100%;
    justify-content: center;
    flex: none;
  }

  .toolbar-actions > .link-btn,
  .toolbar-actions > .toolbar-account {
    width: 100%;
    min-width: 0;
  }

  .toolbar-actions > .link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .toolbar-account {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .toolbar-account form,
  .toolbar-account .secondary,
  .toolbar-account .account-btn {
    width: 100%;
  }

  .toolbar-account .secondary,
  .toolbar-account .account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .toolbar-user {
    grid-column: 1 / -1;
    text-align: center;
  }

  .planner-link {
    padding: 0.55rem 0.6rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .planner-meta-top {
    display: grid;
    gap: 0.3rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .planner-meta-top strong {
    width: 100%;
    min-width: 0;
  }

  .planner-meta-top .performance-badges,
  .performance-badges {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    flex-shrink: 1;
    min-width: 0;
  }

  .performance-badges {
    gap: 0.3rem;
  }

  .performance-item,
  .performance-summary,
  .performance-summary > span:first-child {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .performance-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

  .dashboard-rehearsal-list .performance-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .dashboard-rehearsal-list .dashboard-rehearsal-main {
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .dashboard-rehearsal-list .performance-badges {
    order: 2;
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-rehearsal-list .dashboard-rehearsal-note-wrap {
    order: 3;
    width: 100%;
  }

  .performance-utility-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    gap: 0.45rem;
  }

  .performance-utility-actions .attendance-status-inline {
    width: 100%;
  }

  .performance-detail-shell .performance-status-inline-summary {
    display: block !important;
    width: 100%;
  }

  .performance-detail-shell .performance-status-inline-summary > strong {
    display: block;
    line-height: 1.2;
    white-space: normal;
    width: 100%;
    margin-bottom: 0.35rem;
  }

  .performance-detail-shell .performance-status-stack {
    display: block !important;
    width: 100%;
    min-width: 0;
  }

  .performance-detail-shell select.performance-status-select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .performance-detail-shell select.performance-status-select.archive-native-select-hidden {
    display: none !important;
  }

  .performance-detail-shell .performance-status-select-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .performance-detail-shell .performance-status-button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .performance-detail-shell .replacement-field-row,
  .performance-detail-shell .replacement-combobox,
  .performance-detail-shell .replacement-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .performance-detail-shell .replacement-field-row {
    display: block;
  }

  .performance-utility-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
    gap: 0.45rem;
  }

  .performance-utility-actions .link-btn-inline {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .performance-setlist-desktop {
    display: none;
  }

  .performance-setlist-mobile {
    display: inline-flex;
  }

  .attendance-ics-link {
    margin-left: 0;
  }

  .performance-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.65rem;
    overflow: hidden;
  }

  .performance-body > *,
  .detail-note-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section-table.performance-status-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .status-pill,
  .badge-yes,
  .badge-maybe,
  .badge-no,
  .badge-missing,
  .badge-choice {
    max-width: 100%;
  }
}

@media (min-width: 901px) {
  .performance-detail-shell .performance-status-stack {
    flex-direction: row;
    align-items: flex-start;
    width: auto;
    min-width: 0;
  }

  .performance-detail-shell select.performance-status-select {
    width: auto;
    min-width: 12rem;
  }

  .performance-detail-shell .replacement-field-row {
    width: auto;
    margin-top: 0;
  }

  .performance-detail-shell .replacement-combobox {
    width: min(22rem, 100%);
  }

  .performance-detail-shell .performance-status-select-wrap {
    width: 13.5rem;
    min-width: 13.5rem;
    max-width: 13.5rem;
  }

  .performance-detail-shell .performance-status-button {
    width: 13.5rem;
    min-width: 13.5rem;
    max-width: 13.5rem;
    padding-right: 2.35rem;
    border: 1px solid #b9c5cf;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
  }

  .performance-detail-shell .performance-status-button::after {
    width: 0.78rem;
    height: 0.78rem;
    right: 0.75rem;
  }

  .performance-detail-shell .performance-status-button.choice-yes,
  .performance-detail-shell .performance-status-button.choice-maybe,
  .performance-detail-shell .performance-status-button.choice-no,
  .performance-detail-shell .performance-status-button.choice-neutral {
    padding-right: 2.35rem;
  }
}

.archive-page .archive-toolbar {
  margin-bottom: 1.2rem;
}

.archive-page {
  --archive-content-width: 100%;
  --archive-title-offset: calc(180px + 0.9rem);
  position: relative;
}

.archive-page > .focus-actions,
.archive-page > .card,
.archive-page > .archive-grid-main {
  width: min(var(--archive-content-width), 100%);
  max-width: var(--archive-content-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.archive-hero,
.archive-section-heading,
.archive-actions,
.archive-form-actions,
.archive-search-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.archive-section-heading {
  align-items: flex-start;
}

.archive-piece-edit-card .archive-section-heading {
  justify-content: flex-start;
}

.archive-piece-edit-card .archive-section-heading h2 {
  margin-right: auto;
}

.archive-piece-header-flags {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.55rem;
  padding: 0.22rem 0.85rem;
  background: #fff6d1;
  border: 1px solid #ebd48b;
  border-radius: 0.85rem;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: flex-start;
}

.archive-piece-header-flags .archive-piece-current-field,
.archive-piece-header-flags .archive-piece-archive-field {
  min-height: 0;
  margin: 0;
  white-space: nowrap;
  font-size: 0.92rem;
  line-height: 1.1;
}

.archive-piece-header-flags .archive-current-exclude-check input[type="checkbox"] {
  width: 1.12rem;
  height: 1.12rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #7a8897;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 3px #ffffff;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.archive-piece-header-flags .archive-current-exclude-check input[type="checkbox"]:checked {
  background: #1f7a4d;
  border-color: #1f7a4d;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.archive-piece-header-flags .archive-piece-archive-field-active .archive-current-exclude-check input[type="checkbox"]:checked {
  background: #b42318;
  border-color: #b42318;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.archive-search-line {
  align-items: flex-start;
}

.archive-search-line > button,
.archive-search-line > .link-btn,
.archive-search-actions {
  align-self: flex-start;
}

.archive-search-line > button,
.archive-search-line > .link-btn,
.archive-search-actions > button,
.archive-search-actions > .link-btn {
  min-height: 2.55rem;
}

.archive-search-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  align-items: flex-start;
  gap: 0.7rem;
  width: auto;
}

.archive-search-actions > .archive-current-toggle {
  width: 100%;
  grid-column: 1 / -1;
  justify-content: center;
  text-align: center;
}

.archive-section-heading > .archive-actions {
  align-self: flex-start;
}

.archive-hero,
.archive-section-heading {
  justify-content: space-between;
}

.archive-hero h2,
.archive-section-heading h2,
.archive-list-card h2,
.archive-side-card h2,
.archive-search-card h2 {
  margin-top: 0;
}

.archive-page .archive-setlist-overview-grid .archive-section-heading h2,
.archive-page .archive-setlist-overview-grid .archive-list-card h2,
.archive-page .archive-search-card h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.archive-page .archive-rehearsal-list-meta h2 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.archive-page .archive-rehearsal-list-meta {
  margin-bottom: 0.45rem;
}

.archive-page .archive-detail-header-card .archive-section-heading h2,
.archive-page .archive-detail-card.archive-list-card .archive-section-heading h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.archive-page .archive-detail-card.archive-list-card .archive-section-heading {
  align-items: flex-start;
}

.archive-page .archive-detail-card.archive-list-card .archive-table-heading-actions {
  align-self: flex-start;
  align-items: flex-start;
  margin-top: 0;
}

.archive-page .archive-detail-card.archive-list-card .archive-table-wrap {
  margin-top: 0.45rem;
}

.archive-page .archive-detail-header-card .archive-section-heading > div {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.archive-page .archive-detail-header-card .archive-section-heading h2 {
  margin-bottom: 0;
}

.archive-page .archive-detail-header-card .archive-section-heading p {
  margin: 0;
}

.archive-page .archive-detail-header-card .archive-section-heading .muted + .muted {
  margin-top: 0.45rem;
}

.archive-page .archive-detail-card.archive-list-card .archive-table-heading-actions .muted {
  font-size: 0.74rem;
  line-height: 1.1;
}

.archive-page .archive-detail-header-card .archive-section-heading .muted {
  font-size: 0.76rem;
  line-height: 1.2;
}

.archive-page .archive-piece-detail-card .archive-file-panel h3,
.archive-page .archive-piece-detail-card .archive-recordings-foldout > summary {
  font-size: 1rem;
  line-height: 1.2;
}

.archive-actions,
.archive-form-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.archive-inline-actions {
  margin-bottom: 0.7rem;
}

.archive-actions-with-delete {
  align-items: center;
  flex-direction: row;
  gap: 0.7rem;
}

.archive-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.archive-inline-form,
.archive-icon-form {
  display: inline-flex;
  margin: 0;
}

.archive-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  min-height: 2.6rem;
  position: relative;
  z-index: 2;
  margin: 0 0 -2.6rem;
  transform: translateY(calc(-100% - 0.55rem));
  pointer-events: none;
}

.archive-top-notice {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(68rem, calc(100% - clamp(28rem, 34vw, 36rem)));
  margin: 0 auto 0 var(--archive-title-offset);
  pointer-events: auto;
}

.archive-top-notice .form-notice {
  box-sizing: border-box;
  width: 100%;
}

.archive-top-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
  pointer-events: none;
}

.archive-top-links .link-btn {
  pointer-events: auto;
  white-space: nowrap;
}

.archive-inline-delete-form {
  margin: 0;
}

.archive-edit-actions-line {
  align-items: center;
  width: 100%;
}

.archive-form-top-actions {
  justify-content: flex-end;
  margin-left: auto;
}

.archive-edit-actions-line .archive-form-trash,
.archive-actions-with-delete .archive-inline-delete-form {
  margin-left: auto;
}

.archive-page .card .archive-actions .link-btn,
.archive-page .card .archive-actions .choice-btn,
.archive-page .card .archive-form-actions button:not(.danger-button):not([type="submit"]),
.archive-page .card .archive-form-actions .choice-btn,
.archive-page .card .archive-search-line button,
.archive-page .card .archive-search-line .link-btn,
.archive-page .card .archive-inline-actions .link-btn,
.archive-page .card .archive-special-actions button,
.archive-page .card .archive-setlist-picker-actions button,
.archive-page .card .archive-selected-media-actions button:not(.danger-button),
.archive-page .card .archive-selected-media-actions .link-btn,
.archive-page .archive-top-links .link-btn {
  background: #e7eef3;
  border: 1px solid #b9c5cf;
  color: #111111;
  font-weight: 800;
}

.archive-page .card .archive-actions .link-btn:hover,
.archive-page .card .archive-actions .choice-btn:hover,
.archive-page .card .archive-form-actions button:not(.danger-button):not([type="submit"]):hover,
.archive-page .card .archive-form-actions .choice-btn:hover,
.archive-page .card .archive-search-line button:hover,
.archive-page .card .archive-search-line .link-btn:hover,
.archive-page .card .archive-inline-actions .link-btn:hover,
.archive-page .card .archive-special-actions button:hover,
.archive-page .card .archive-setlist-picker-actions button:hover,
.archive-page .card .archive-selected-media-actions button:not(.danger-button):hover,
.archive-page .card .archive-selected-media-actions .link-btn:hover,
.archive-page .archive-top-links .link-btn:hover {
  background: #d6e2ea;
  color: #111111;
}

.archive-page .card .archive-search-line > button[type="submit"],
.archive-page .card .archive-search-line > button:not([type]),
.archive-page .card .archive-search-actions > button[type="submit"],
.archive-page .card .archive-search-actions > button:not([type]) {
  border: 2px solid #111111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  font-weight: 900;
}

.archive-current-toggle {
  background: #dfeeff !important;
  border-color: #6fa8dc !important;
  color: #123f6d !important;
}

.archive-current-toggle.active {
  background: #dceee3 !important;
  border-color: #79a985 !important;
  color: #163d24 !important;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.archive-stat-card {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text);
}

.archive-stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.archive-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  align-items: start;
}

.archive-setlist-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.archive-setlist-overview-grid > .archive-list-card:not(.archive-collapsible-card) {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.archive-setlist-overview-grid > .archive-collapsible-card {
  align-self: start;
  grid-column: 1 / -1;
  min-height: 0;
}

.archive-summary-action {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  background: #e7eef3;
  border: 1px solid #b9c5cf;
  color: #111111;
  font-weight: 800;
}

.archive-summary-action:hover {
  background: #d6e2ea;
  color: #111111;
}

.archive-setlist-overview-grid .archive-mini-list {
  align-content: start;
}

.archive-search-form,
.archive-model-form {
  display: grid;
  gap: 0.8rem;
}

.archive-search-form {
  grid-template-columns: minmax(220px, 1.5fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr);
  align-items: end;
}

.archive-search-form label,
.archive-model-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.archive-check-row {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.45rem !important;
  font-weight: 700;
}

.archive-check-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.archive-table-wrap {
  overflow-x: auto;
}

.archive-heading-with-filters {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  min-width: 0;
  margin-bottom: 0.55rem;
}

.archive-heading-with-filters h2 {
  margin: 0;
}

.archive-active-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  color: #42566d;
}

.archive-active-filters > strong,
.archive-active-filters > span,
.archive-active-filters > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #c7d4df;
  border-radius: 999px;
  background: #f8fbfd;
  color: #42566d;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.archive-active-filters > span,
.archive-active-filters > a {
  color: #263746;
  background: #ffffff;
}

.archive-active-filters a:hover {
  border-color: #8fb0c9;
  background: #eef6fb;
}

.archive-active-filters a span {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

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

.archive-overview-table td,
.archive-overview-table th {
  vertical-align: middle;
}

.archive-overview-table .archive-edit-cell {
  padding-top: 0.16rem;
  padding-bottom: 0.16rem;
}

.archive-overview-table .icon-action-btn {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
}

.archive-overview-table .icon-action-btn span {
  width: 0.82rem;
  height: 0.82rem;
}

.archive-table thead th {
  background: #e7f1ff;
  color: #0b4f8a;
}

.archive-table thead th:last-child {
  background: #e7f1ff;
  color: #0b4f8a;
}

.archive-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.archive-alphabet-filter {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.archive-alphabet-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
}

.archive-alphabet-number-row {
  margin-top: 0.05rem;
  justify-content: center;
}

.archive-alphabet-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.82rem;
  padding: 0.26rem 0.34rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #eef3f7;
  color: #253746;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
}

.archive-alphabet-filter a.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.disabled-link {
  opacity: 0.45;
  pointer-events: none;
}

.archive-danger-card {
  border-color: rgba(182, 52, 52, 0.35);
}
.archive-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-weight: 700;
  white-space: nowrap;
}

.archive-status-uitgedeeld {
  background: #e5f5e8;
  color: #2e6f39;
}

.archive-status-niet_uitgedeeld {
  background: #fff4d8;
  color: #8a620d;
}

.archive-status-nvt {
  background: #e9eef5;
  color: #42566d;
}

.archive-mini-list {
  display: grid;
  gap: 0.55rem;
}

.archive-mini-list a {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  background: #f8fbfd;
}

.archive-mini-list a:hover {
  border-color: #8fb0c9;
  background: #eef6fb;
}

.archive-mini-list span,
.archive-detail-grid span {
  color: var(--muted);
}

.archive-setlist-overview-grid .archive-mini-list span {
  font-size: 0.82rem;
  line-height: 1.15;
}

.archive-setlist-overview-grid .archive-mini-list strong {
  font-size: 0.93rem;
  line-height: 1.15;
}

.archive-usage-card {
  padding: 0;
  overflow: hidden;
}

.archive-usage-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.archive-usage-dropdown summary::-webkit-details-marker {
  display: none;
}

.archive-usage-dropdown summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.archive-usage-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.archive-usage-dropdown small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 700;
}

.archive-usage-list,
.archive-usage-empty {
  margin: 0;
  padding: 0 1rem 1rem;
}

.archive-usage-list {
  gap: 0.35rem;
}

.archive-usage-list a {
  gap: 0.05rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.archive-usage-list span {
  font-size: 0.78rem;
}

.archive-form-card,
.archive-detail-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.archive-detail-shell {
  position: relative;
  display: grid;
  gap: 0.65rem;
}

.archive-focus-actions {
  width: 100%;
  box-sizing: border-box;
}

.archive-model-form input,
.archive-model-form select,
.archive-model-form textarea,
.archive-search-form input,
.archive-search-form select,
.archive-search-line input {
  font: inherit;
}

.archive-form-grid-two,
.archive-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.archive-piece-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 0.8rem;
  row-gap: 0.8rem;
  align-items: end;
}

.archive-piece-edit-title {
  display: grid;
  gap: 0.25rem;
  font-weight: 800;
}

.archive-piece-edit-card .archive-model-form {
  gap: 0;
}

.archive-piece-edit-media {
  margin-top: 1rem;
}

.archive-piece-edit-info-grid {
  grid-template-columns: max-content max-content minmax(0, 1fr);
  padding: 0 0.8rem 0.8rem;
  align-items: start;
}

.archive-piece-edit-info-grid .archive-piece-tags-field,
.archive-piece-edit-info-grid .archive-piece-sound-field,
.archive-piece-edit-info-grid .archive-piece-notes-field {
  grid-column: auto;
}

.archive-piece-edit-info-grid .archive-piece-side-fields {
  display: contents;
}

.archive-piece-edit-info-grid .archive-piece-duration-field {
  grid-column: 1;
}

.archive-piece-edit-info-grid .archive-piece-current-field {
  grid-column: 2;
  align-self: end;
  margin-left: 0.35rem;
  margin-right: 0.55rem;
  margin-bottom: 0.02rem;
}

.archive-piece-edit-info-grid .archive-piece-status-stack {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: end;
  margin-left: 0.35rem;
  margin-right: 0.55rem;
}

.archive-piece-edit-info-grid .archive-piece-tags-field {
  grid-column: 3;
}

.archive-piece-edit-info-grid .archive-piece-sound-field,
.archive-piece-edit-info-grid .archive-piece-notes-field {
  grid-column: 1 / -1;
}

.archive-piece-form-grid > label,
.archive-piece-side-fields > label {
  display: grid;
  gap: 0.25rem;
  font-weight: 700;
}

.archive-piece-form-grid > label > span,
.archive-piece-side-fields > label > span {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.archive-piece-title-field {
  grid-column: 1;
}

.archive-piece-side-fields {
  grid-column: 2;
  display: flex;
  align-items: end;
  gap: 1.25rem;
}

.archive-piece-current-field {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  text-align: left;
  max-width: none;
  min-height: 2.55rem;
  white-space: nowrap;
}

.archive-current-exclude-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.archive-current-exclude-check input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #2f9e44;
}

.archive-piece-current-field-disabled {
  color: #8c98a6;
  opacity: 0.72;
  cursor: not-allowed;
}

.archive-piece-current-field-disabled .archive-current-exclude-check,
.archive-piece-current-field-disabled span {
  cursor: not-allowed;
}

.archive-piece-current-field-disabled .archive-current-exclude-check input[type="checkbox"] {
  accent-color: #b7c1cb;
  filter: grayscale(1);
}

.archive-piece-archive-field {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  text-align: left;
  max-width: none;
  min-height: 2.55rem;
  white-space: nowrap;
}

.archive-piece-archive-warning {
  margin: 0;
  color: #8b4a1f;
  font-size: 0.88rem;
  line-height: 1.25;
}

.archive-piece-kind-field,
.archive-piece-style-field,
.archive-piece-sound-field,
.archive-piece-tags-field {
  grid-column: span 1;
}

.archive-full {
  grid-column: 1 / -1;
}

.duration-input-group {
  display: grid;
  grid-template-columns: repeat(2, 4.4rem);
  justify-content: start;
  gap: 0.4rem;
}

.duration-input-group label {
  display: grid;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

.duration-input-group input {
  width: 100%;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: center;
}

.archive-piece-picker {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  background: #f8fbfd;
}

.archive-piece-picker h3 {
  margin: 0 0 0.35rem;
}

.archive-performance-form .archive-piece-picker h3,
.archive-performance-form .archive-picker-title-row h3,
.archive-performance-form .archive-form-grid-two > label > span,
.archive-performance-form .archive-piece-form-grid > label > span,
.archive-performance-form .archive-piece-side-fields > label > span {
  font-size: 0.82rem;
  line-height: 1.15;
}

.archive-piece-checkboxes {
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 0.25rem;
  padding: 0.45rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #ffffff;
}

.archive-piece-checkboxes ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.25rem;
}

.archive-piece-checkboxes li label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
}

.archive-piece-checkboxes input[type="checkbox"] {
  width: auto;
}

.archive-setlist-search {
  margin-top: 0.8rem;
}

.archive-picker-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.archive-picker-title-row h3 {
  margin: 0;
}

.archive-selection-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.archive-selection-count-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.18rem 0.58rem;
  border: 1px solid #b9c5cf;
  border-radius: 999px;
  background: #e7eef3;
  color: #1f3146;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.archive-setlist-search-panel {
  display: grid;
  gap: 0.7rem;
  position: relative;
  padding: 0.75rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #ffffff;
}

.archive-setlist-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 0.6rem;
  align-items: end;
}

.archive-setlist-piece-search {
  display: block !important;
  min-width: 0;
}

.archive-setlist-piece-search input[type="search"] {
  width: 100%;
  height: 2.55rem;
}

.archive-setlist-search-controls .archive-current-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-height: 2.55rem;
  font-weight: 900;
  white-space: nowrap;
}

.archive-piece-search-results {
  position: absolute;
  z-index: 30;
  top: 7.35rem;
  left: 0.75rem;
  right: 0.75rem;
  display: grid;
  gap: 0.25rem;
  max-height: 19rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 49, 70, 0.18);
}

.archive-piece-search-results[hidden] {
  display: none !important;
}

.archive-piece-result {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem !important;
  padding: 0.48rem 0.55rem;
  border: 1px solid #d2dce5;
  border-radius: 9px;
  background: #f8fbfd;
  font-weight: 500 !important;
}

.archive-piece-result[hidden] {
  display: none !important;
}

.archive-piece-result:hover {
  border-color: #8fb0c9;
  background: #eef6fb;
}

.archive-piece-result.is-selected {
  opacity: 0.52;
}

.archive-piece-result input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: #2f9e44;
}

.archive-piece-result span,
.archive-setlist-row-label {
  display: grid;
  gap: 0.1rem;
}

.archive-piece-result small {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
  line-height: 1.15;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.archive-performance-form .archive-piece-result strong,
.archive-performance-form .archive-setlist-row:not(.archive-setlist-row-special) .archive-setlist-row-label strong {
  font-weight: 400 !important;
}

.archive-performance-form .archive-piece-result small,
.archive-performance-form .archive-setlist-row-label small {
  font-weight: 400 !important;
}

.archive-setlist-row-label small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.archive-setlist-picker-actions {
  justify-content: flex-end;
  margin-bottom: 0.65rem;
}

.archive-setlist-add-actions {
  align-items: center;
  flex-wrap: wrap;
}

.archive-setlist-add-actions .archive-add-selected-primary {
  margin-right: auto;
}

.archive-page .card .archive-setlist-picker-actions button.archive-add-selected-primary,
.archive-page .card .archive-form-actions.archive-setlist-picker-actions button.archive-add-selected-primary,
button.secondary.archive-add-selected-primary {
  background: #111111 !important;
  border-color: #111111 !important;
  color: #ffffff !important;
  font-weight: 900;
}

.archive-page .card .archive-setlist-picker-actions button.archive-add-selected-primary:hover,
.archive-page .card .archive-form-actions.archive-setlist-picker-actions button.archive-add-selected-primary:hover,
button.secondary.archive-add-selected-primary:hover {
  background: #2a2a2a !important;
  border-color: #2a2a2a !important;
  color: #ffffff !important;
}

.archive-special-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.archive-setlist-editor {
  display: grid;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #ffffff;
}

.archive-setlist-selected {
  display: grid;
  gap: 0.4rem;
}

.archive-setlist-row {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(150px, 0.75fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid #d2dce5;
  border-radius: 8px;
  background: #f8fbfd;
}

.archive-setlist-row.is-dragging {
  opacity: 0.55;
}

.archive-setlist-row.is-drag-over {
  border-color: #0f8ec7;
  box-shadow: inset 0 0 0 2px rgba(15, 142, 199, 0.22);
}

.archive-setlist-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border-radius: 6px;
  background: #e9eef5;
  color: #42566d;
  cursor: grab;
  font-size: 0.9rem;
  line-height: 1;
}

.archive-setlist-drag-handle:active {
  cursor: grabbing;
}

.archive-setlist-row-special {
  background: #eef3f7;
  border-style: dashed;
}

.archive-setlist-row-special .archive-setlist-row-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.archive-setlist-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.archive-setlist-row-fields {
  display: grid;
  grid-template-columns: minmax(140px, 1fr);
  gap: 0.25rem;
}

.archive-setlist-row:not(.archive-setlist-row-special) .archive-setlist-row-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  align-items: start;
}

.archive-setlist-row-special .archive-setlist-row-fields {
  grid-template-columns: minmax(160px, 1fr);
}

.archive-setlist-row-field {
  display: grid;
  gap: 0.12rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.archive-setlist-row-field input {
  min-width: 0;
  padding: 0.24rem 0.35rem;
  border: 1px solid #c4d0dc;
  border-radius: 7px;
  background: #fff;
  font: inherit;
}

.archive-setlist-row-actions button {
  min-width: 1.55rem;
  min-height: 1.55rem;
  padding: 0.2rem;
  border-radius: 6px;
  background: #e9eef5;
  color: #263746;
  font-size: 0.72rem;
}

.archive-setlist-row-actions .trash-button {
  min-width: 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
}

.archive-setlist-row-actions .trash-icon {
  width: 0.88rem;
  height: 0.88rem;
}

.archive-setlist-row-actions button:disabled {
  opacity: 0.45;
}

.archive-setlist-empty {
  padding: 0.55rem 0.65rem;
}

.archive-setlist-special-table-row td {
  background: #eef3f7;
  color: #263746;
  font-weight: 800;
}

.archive-setlist-subtotal {
  display: inline-flex;
  margin-left: 0;
  color: #111;
  font-size: inherit;
  font-weight: 400;
  white-space: nowrap;
}

.archive-piece-duration-missing {
  color: #b42318;
  font-weight: 800;
}

.archive-setlist-row-special .archive-setlist-subtotal {
  margin-left: auto;
}

.archive-setlist-subtotal-row {
  grid-template-columns: auto minmax(140px, 1fr);
  align-items: center;
}

.archive-setlist-subtotal-row .archive-setlist-row-fields,
.archive-setlist-subtotal-row .archive-setlist-row-actions {
  display: none;
}

.archive-setlist-subtotal-row .archive-setlist-drag-handle {
  visibility: hidden;
  pointer-events: none;
}

.archive-setlist-subtotal-row .archive-setlist-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: max-content;
  justify-self: center;
  text-align: center;
  transform: translateX(-1.9ch);
}

.archive-setlist-subtotal-row .archive-setlist-subtotal {
  margin-left: 0;
  font-weight: 400;
}

.archive-setlist-subtotal-row .archive-setlist-row-label strong {
  font-weight: 400;
}

.archive-setlist-total-row td {
  background: #f8fbfd;
  border-top: 2px solid #8fa0af;
  font-weight: 900;
}

.archive-detail-grid > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem;
  border: 1px solid #d7e1ea;
  border-radius: 10px;
  background: #f8fbfd;
}

.archive-form-actions-top {
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
}

.archive-floating-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  transform: translateY(calc(-100% - 0.55rem));
  pointer-events: none;
  z-index: 2;
}

.archive-floating-notice {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: min(68rem, calc(100% - clamp(23rem, 30vw, 33rem)));
  margin: 0 auto 0 var(--archive-title-offset);
  pointer-events: auto;
}

.archive-floating-notice .form-notice {
  box-sizing: border-box;
  width: 100%;
}

.archive-floating-nav .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
}

.archive-selection-nav-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #c7d4df;
  border-radius: 999px;
  background: #f8fbfd;
  color: #42566d;
  font-size: 0.82rem;
  font-weight: 800;
  pointer-events: auto;
  white-space: nowrap;
}

.archive-floating-nav .link-btn[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.38;
}

.archive-after-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.archive-detail-top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.archive-detail-header-card .archive-detail-top-actions {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: center;
  justify-content: end;
  width: auto;
  max-width: 100%;
  gap: 0.5rem;
}

.archive-detail-header-card .archive-detail-top-actions .choice-btn,
.archive-detail-header-card .archive-detail-top-actions .link-btn {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.archive-detail-top-actions .choice-btn,
.archive-detail-top-actions .link-btn {
  min-height: 2.55rem;
}

.archive-detail-list-button {
  white-space: nowrap;
}

.archive-nav-icon {
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
}

.archive-nav-icon-prev {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-nav-icon-next {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .archive-floating-nav {
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0 0 0.65rem;
    justify-content: stretch;
    align-items: center;
    gap: 0.45rem;
  }

  .archive-floating-notice {
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }

  .archive-floating-nav .link-btn {
    justify-content: center;
    width: 100%;
  }

  .archive-selection-nav-label {
    order: 3;
    grid-column: 1;
    justify-content: center;
    width: 100%;
  }

  .archive-floating-nav .link-btn:nth-of-type(1) {
    order: 1;
    grid-column: 1;
  }

  .archive-floating-nav .link-btn:nth-of-type(2) {
    order: 2;
    grid-column: 2;
  }

}

.members-card > .archive-floating-nav {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  transform: translateY(calc(-100% - 0.55rem));
  justify-content: flex-end;
}

.members-card > .archive-floating-nav .link-btn {
  flex: 0 0 auto;
}

.archive-piece-meta-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.archive-piece-meta-grid > div {
  justify-items: center;
  text-align: center;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: #fbfdff;
}

.archive-piece-meta-grid strong {
  font-size: 0.78rem;
  color: #607084;
}

.archive-piece-meta-grid span {
  font-size: 0.88rem;
}

.archive-tag-display,
.archive-tag-chip-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.archive-tag-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.archive-search-token-editor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.archive-search-stack {
  display: grid;
  flex: 1 1 24rem;
  gap: 0.55rem;
  position: relative;
}

.archive-old-setlist-picker {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
  max-width: 42rem;
}

.archive-old-setlist-picker > label {
  color: #24384d;
  font-weight: 900;
}

.archive-search-stack > input[type="search"] {
  width: 100%;
}

.archive-search-stack .archive-alphabet-filter {
  margin-top: 0;
}

.archive-search-token-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.archive-tag-editor input[data-tag-input] {
  flex: 1 1 180px;
  min-width: 160px;
  border: 0;
  padding: 0.35rem;
  outline: 0;
  background: transparent;
}

.archive-search-token-editor input[data-multi-search-input] {
  flex: 1 1 220px;
  min-width: 180px;
  border: 0;
  padding: 0.35rem;
  outline: 0;
  background: transparent;
  font: inherit;
}

.archive-tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd0df;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: #eef6fb;
  color: #253746;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.archive-tag-link:hover {
  border-color: #8fb0c9;
  background: #dff0fb;
}

.archive-tag-chip-removable {
  cursor: pointer;
}

.archive-tag-chip-removable::after {
  content: "×";
  margin-left: 0.35rem;
  color: #607084;
}

.archive-piece-summary-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(100px, 0.55fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}

.archive-info-foldout {
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.archive-info-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(88px, 0.28fr) minmax(180px, 0.8fr) minmax(220px, 1fr);
  gap: 0.65rem;
  padding: 0 0.8rem 0.8rem;
}

.archive-info-wide {
  grid-column: 1 / -1;
}

.archive-piece-summary-item {
  display: grid;
  align-content: start;
  gap: 0.18rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #f8fbfd;
  color: #1f3146;
}

.archive-piece-summary-item strong {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.archive-piece-summary-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.archive-piece-current-summary span {
  display: inline-flex;
  align-items: center;
}

.archive-piece-current-summary input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #2f9e44;
}

.archive-muted-flag {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: #e7eef3;
  color: #52667a;
  font-size: 0.78rem;
  font-weight: 800;
}

.archive-selectable-media {
  display: grid;
  gap: 0.8rem;
}

.archive-selectable-media[data-media-kind="document"] {
  gap: 0.4rem;
}

.archive-selectable-media label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.archive-score-label-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.archive-selectable-media select {
  width: 100%;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
}

.archive-native-select-hidden {
  display: none;
}

.archive-custom-select {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.archive-custom-select-button,
.archive-custom-select-option {
  width: 100%;
  border: 1px solid #b8c8d6;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.archive-custom-select-button {
  position: relative;
  padding: 0.55rem 2.2rem 0.55rem 0.65rem;
}

.archive-custom-select-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7,10L12,15L17,10H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7,10L12,15L17,10H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-custom-select-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  max-height: calc(100dvh - 8rem);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid #b8c8d6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.archive-custom-select-list[hidden] {
  display: none;
}

.archive-custom-select-option {
  position: relative;
  padding: 0.5rem 0.55rem;
}

.manager-section-archive .archive-custom-select-option-linked,
.manager-section-archive .archive-custom-select-button-linked {
  border-color: #9bc9a7;
  background: #e9f6ec;
}

.manager-section-archive .archive-custom-select-option-unlinked,
.manager-section-archive .archive-custom-select-button-unlinked {
  border-color: #e6ce86;
  background: #fff6d9;
}

.archive-custom-select-option:has(.archive-custom-select-check) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  text-align: left;
}

.archive-custom-select-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid #91a3b4;
  border-radius: 4px;
  background: #ffffff;
  color: #ffffff;
  flex: 0 0 auto;
}

.archive-custom-select-option.is-download-selected .archive-custom-select-check {
  border-color: #263746;
  background: #263746;
}

.archive-custom-select-option.is-download-selected .archive-custom-select-check::before {
  content: "";
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.08rem) rotate(-45deg);
}

.archive-custom-select-option:hover,
.archive-custom-select-option.is-selected {
  background: #eef6fb;
}

.archive-custom-select-option-canceled {
  color: #c92a2a;
  text-decoration: line-through;
  text-decoration-thickness: 0.12em;
}

.archive-custom-select-button-canceled {
  color: #c92a2a;
  text-decoration: line-through;
  text-decoration-thickness: 0.12em;
}

.archive-custom-select-option.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
}

.archive-custom-select-option.is-disabled.archive-custom-select-option-canceled {
  color: #c92a2a;
  opacity: 1;
}

.archive-custom-select-button-bad,
.archive-custom-select-option-bad {
  color: #8d2f2f;
  background: #fff3f3;
}

.archive-custom-select-button-bad::before,
.archive-custom-select-option-bad::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 50%;
  border-top: 2px solid currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}

.archive-selected-media-name {
  color: #1f3146;
}

.archive-selected-media-actions .archive-selected-view.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}

.archive-selected-media-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.archive-selected-media-actions .link-btn,
.archive-selected-media-actions button:not(.danger-button) {
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 2.8rem;
  margin-left: 0;
  text-align: center;
  white-space: nowrap;
}

.archive-selected-media-actions .archive-selected-view {
  min-width: 0;
  padding-inline: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
  width: fit-content;
}

.archive-selected-media-actions .archive-selected-view .archive-view-icon {
  flex: 0 0 auto;
  margin-top: -0.05em;
}

.archive-selected-media-actions [data-score-download-button] {
  min-width: 12.25rem;
  padding-inline: 1.1rem;
}

.archive-selected-media-actions [data-score-download-button] {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.archive-view-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4C7 4 2.73 7.11 1 12C2.73 16.89 7 20 12 20S21.27 16.89 23 12C21.27 7.11 17 4 12 4M12 17A5 5 0 1 1 12 7A5 5 0 0 1 12 17M12 9A3 3 0 1 0 12 15A3 3 0 0 0 12 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4C7 4 2.73 7.11 1 12C2.73 16.89 7 20 12 20S21.27 16.89 23 12C21.27 7.11 17 4 12 4M12 17A5 5 0 1 1 12 7A5 5 0 0 1 12 17M12 9A3 3 0 1 0 12 15A3 3 0 0 0 12 9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-selected-media-actions [data-score-download-button] .archive-download-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.archive-score-selected-count {
  color: #617286;
  font-size: 0.78rem;
  font-weight: 800;
}

.archive-selected-media-warning {
  color: #8d2f2f;
  font-weight: 800;
}

.archive-bad-score-select {
  color: #8d2f2f;
  text-decoration: line-through;
}

.archive-note-box {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .archive-grid-main,
  .archive-search-form,
  .archive-form-grid-two,
  .archive-detail-grid,
  .archive-stats {
    grid-template-columns: 1fr;
  }

  .archive-hero,
  .archive-section-heading,
  .archive-search-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .archive-search-card {
    height: auto;
    min-height: 0;
    padding-bottom: 0.9rem;
  }

  .archive-search-card .archive-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
  }

  .archive-search-card .archive-section-heading h2 {
    min-width: 0;
  }

  .archive-search-card .archive-section-heading .archive-actions {
    width: auto;
    justify-content: end;
  }

  .archive-search-card .archive-section-heading .archive-actions .choice-btn {
    width: auto;
    max-width: 12rem;
    min-height: 2.45rem;
    padding: 0.45rem 0.7rem;
    text-align: center;
    white-space: normal;
  }

  .archive-actions,
  .archive-form-actions,
  .archive-search-stack,
  .archive-search-token-editor,
  .archive-search-actions,
  .archive-search-line button,
  .archive-search-line .link-btn {
    width: 100%;
  }

  .archive-search-card .archive-search-line {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: start;
  }

  .archive-search-card .archive-search-stack {
    flex: none;
    height: auto;
    min-height: 0;
  }

  .archive-search-card .archive-home-actions {
    margin-bottom: 0.95rem;
  }

  .archive-setlist-search-controls {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .archive-setlist-piece-search {
    grid-column: 1 / -1;
  }

  .archive-search-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: none;
    gap: 0.5rem;
  }

  .archive-search-actions > .archive-current-toggle {
    grid-column: 1 / -1;
  }

  .archive-search-actions > button,
  .archive-search-actions > .link-btn,
  .archive-search-line button,
  .archive-search-line .link-btn {
    justify-content: center;
    text-align: center;
  }

  .archive-search-stack .archive-alphabet-filter {
    margin-top: 0.45rem;
  }

  .archive-alphabet-filter {
    gap: 0.28rem;
  }

  .archive-alphabet-row {
    gap: 0.16rem;
  }

  .archive-alphabet-filter a {
    min-width: 1.62rem;
    padding: 0.22rem 0.3rem;
    border-radius: 7px;
    font-size: 0.8rem;
  }

  .archive-actions .link-btn,
  .archive-form-actions .link-btn,
  .archive-form-actions button {
    width: 100%;
  }

  .archive-setlist-row {
    grid-template-columns: 1fr;
  }

  .archive-setlist-row-fields {
    grid-template-columns: 1fr;
  }

  .archive-setlist-row-actions {
    justify-content: flex-start;
  }
}

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

.archive-search-form-compact {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 0.8fr);
}

.archive-media-grid,
.archive-media-overview,
.archive-recording-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.archive-media-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
  align-items: start;
}

.archive-streaming-platform-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  padding: 0.52rem 0.95rem;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.10);
}

.archive-streaming-platform-button:hover,
.archive-streaming-platform-button:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.archive-streaming-platform-button-spotify {
  background: #1db954;
  border: 1px solid #179244;
}

.archive-streaming-platform-button-spotify:hover,
.archive-streaming-platform-button-spotify:focus-visible {
  background: #18a64a;
}

.archive-streaming-platform-button-apple {
  background: #111111;
  border: 1px solid #000000;
}

.archive-streaming-platform-button-apple:hover,
.archive-streaming-platform-button-apple:focus-visible {
  background: #000000;
}

.archive-streaming-platform-button-youtube {
  background: #cc181e;
  border: 1px solid #a51419;
}

.archive-streaming-platform-button-youtube:hover,
.archive-streaming-platform-button-youtube:focus-visible {
  background: #b51217;
}

.archive-streaming-platform-icon {
  display: inline-block;
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  background: currentColor;
}

.archive-streaming-platform-icon-spotify {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20a10 10 0 0 0 0-20Zm0 3.1a6.9 6.9 0 0 1 6.9 6.9 6.6 6.6 0 0 1-.2 1.5c-.2.5-.8.7-1.2.4a9.4 9.4 0 0 0-5.5-1.7c-1.9 0-3.8.5-5.4 1.4-.4.2-1 .1-1.2-.4a6.6 6.6 0 0 1-.2-1.5A6.9 6.9 0 0 1 12 5.1Zm-4.6 8.3c.1-.3.4-.5.7-.4a10.8 10.8 0 0 1 8 0c.3.1.5.4.4.7-.1.4-.5.6-.9.4a9.7 9.7 0 0 0-7 0c-.4.2-.8 0-.9-.4Zm.9 2.6c.2-.3.5-.4.9-.3a8.2 8.2 0 0 1 5.7 0c.3.1.5.5.4.8-.2.4-.6.6-1 .4a6.9 6.9 0 0 0-4.5 0c-.4.2-.8 0-1-.4-.1-.2-.1-.4-.1-.5 0-.1 0-.2.1-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20a10 10 0 0 0 0-20Zm0 3.1a6.9 6.9 0 0 1 6.9 6.9 6.6 6.6 0 0 1-.2 1.5c-.2.5-.8.7-1.2.4a9.4 9.4 0 0 0-5.5-1.7c-1.9 0-3.8.5-5.4 1.4-.4.2-1 .1-1.2-.4a6.6 6.6 0 0 1-.2-1.5A6.9 6.9 0 0 1 12 5.1Zm-4.6 8.3c.1-.3.4-.5.7-.4a10.8 10.8 0 0 1 8 0c.3.1.5.4.4.7-.1.4-.5.6-.9.4a9.7 9.7 0 0 0-7 0c-.4.2-.8 0-.9-.4Zm.9 2.6c.2-.3.5-.4.9-.3a8.2 8.2 0 0 1 5.7 0c.3.1.5.5.4.8-.2.4-.6.6-1 .4a6.9 6.9 0 0 0-4.5 0c-.4.2-.8 0-1-.4-.1-.2-.1-.4-.1-.5 0-.1 0-.2.1-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-streaming-platform-icon-apple {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.7 2.5c-.8.1-1.8.6-2.4 1.3-.5.6-1 1.5-.9 2.4.9.1 1.8-.5 2.3-1.1.6-.7 1.1-1.6 1-2.6ZM19.6 17.7c-.5 1.2-1.2 2.3-2.3 3.4-1.1 1.1-2.2 1.7-3.2 1.6-.7 0-1.3-.2-2-.5-.7-.3-1.4-.5-2.1-.5-.7 0-1.5.2-2.3.5-.8.3-1.4.5-2 .5-1 .1-2.1-.5-3.2-1.6-1.1-1.1-2.2-2.6-2.8-4.4-.6-1.8-.7-3.7-.2-5.1.5-1.5 1.4-2.7 2.8-3.5 1.3-.8 2.9-.7 4.2-.3.7.2 1.4.5 2 .5.7 0 1.4-.3 2.1-.5 1.3-.4 2.8-.5 4.1.3 1.1.6 1.8 1.5 2.3 2.5-2.1 1.2-2.3 4.5-.2 6.5ZM12.8 6.7c.8 0 1.8.2 2.6.7-.5.5-1 1.1-1.3 1.8-.5 1-.6 2.3-.2 3.3.5 1.3 1.5 2.2 2.8 2.6-.4.9-.9 1.6-1.5 2.1-.8.7-1.5 1-2.2.9-.5 0-1-.2-1.6-.4-.8-.3-1.8-.6-2.8-.6s-2 .3-2.8.6c-.6.2-1.1.4-1.6.4-.7.1-1.4-.2-2.2-.9-.8-.8-1.4-1.9-1.8-3.4-.4-1.6-.4-3.2.1-4.4.4-1.1 1.1-1.9 2.1-2.5 1-.6 2.4-.5 3.5-.2.7.2 1.4.4 2 .4s1.3-.2 2-.4c.6-.2 1.2-.3 1.9-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.7 2.5c-.8.1-1.8.6-2.4 1.3-.5.6-1 1.5-.9 2.4.9.1 1.8-.5 2.3-1.1.6-.7 1.1-1.6 1-2.6ZM19.6 17.7c-.5 1.2-1.2 2.3-2.3 3.4-1.1 1.1-2.2 1.7-3.2 1.6-.7 0-1.3-.2-2-.5-.7-.3-1.4-.5-2.1-.5-.7 0-1.5.2-2.3.5-.8.3-1.4.5-2 .5-1 .1-2.1-.5-3.2-1.6-1.1-1.1-2.2-2.6-2.8-4.4-.6-1.8-.7-3.7-.2-5.1.5-1.5 1.4-2.7 2.8-3.5 1.3-.8 2.9-.7 4.2-.3.7.2 1.4.5 2 .5.7 0 1.4-.3 2.1-.5 1.3-.4 2.8-.5 4.1.3 1.1.6 1.8 1.5 2.3 2.5-2.1 1.2-2.3 4.5-.2 6.5ZM12.8 6.7c.8 0 1.8.2 2.6.7-.5.5-1 1.1-1.3 1.8-.5 1-.6 2.3-.2 3.3.5 1.3 1.5 2.2 2.8 2.6-.4.9-.9 1.6-1.5 2.1-.8.7-1.5 1-2.2.9-.5 0-1-.2-1.6-.4-.8-.3-1.8-.6-2.8-.6s-2 .3-2.8.6c-.6.2-1.1.4-1.6.4-.7.1-1.4-.2-2.2-.9-.8-.8-1.4-1.9-1.8-3.4-.4-1.6-.4-3.2.1-4.4.4-1.1 1.1-1.9 2.1-2.5 1-.6 2.4-.5 3.5-.2.7.2 1.4.4 2 .4s1.3-.2 2-.4c.6-.2 1.2-.3 1.9-.3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-streaming-platform-icon-youtube {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 15L15.19 12L10 9V15M21.56 7.17C21.69 7.64 21.78 8.27 21.84 9.07C21.91 9.87 21.94 10.56 21.94 11.16L22 12C22 14.19 21.84 15.8 21.56 16.83C21.31 17.73 20.73 18.31 19.83 18.56C19.36 18.69 18.5 18.78 17.18 18.84C15.88 18.91 14.69 18.94 13.59 18.94L12 19C7.81 19 5.2 18.84 4.17 18.56C3.27 18.31 2.69 17.73 2.44 16.83C2.31 16.36 2.22 15.73 2.16 14.93C2.09 14.13 2.06 13.44 2.06 12.84L2 12C2 9.81 2.16 8.2 2.44 7.17C2.69 6.27 3.27 5.69 4.17 5.44C4.64 5.31 5.5 5.22 6.82 5.16C8.12 5.09 9.31 5.06 10.41 5.06L12 5C16.19 5 18.8 5.16 19.83 5.44C20.73 5.69 21.31 6.27 21.56 7.17Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 15L15.19 12L10 9V15M21.56 7.17C21.69 7.64 21.78 8.27 21.84 9.07C21.91 9.87 21.94 10.56 21.94 11.16L22 12C22 14.19 21.84 15.8 21.56 16.83C21.31 17.73 20.73 18.31 19.83 18.56C19.36 18.69 18.5 18.78 17.18 18.84C15.88 18.91 14.69 18.94 13.59 18.94L12 19C7.81 19 5.2 18.84 4.17 18.56C3.27 18.31 2.69 17.73 2.44 16.83C2.31 16.36 2.22 15.73 2.16 14.93C2.09 14.13 2.06 13.44 2.06 12.84L2 12C2 9.81 2.16 8.2 2.44 7.17C2.69 6.27 3.27 5.69 4.17 5.44C4.64 5.31 5.5 5.22 6.82 5.16C8.12 5.09 9.31 5.06 10.41 5.06L12 5C16.19 5 18.8 5.16 19.83 5.44C20.73 5.69 21.31 6.27 21.56 7.17Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.archive-streaming-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
}

.archive-streaming-youtube-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  width: 100%;
}

.archive-streaming-youtube-choice-field {
  display: grid;
  gap: 0.25rem;
  flex: 1 1 19rem;
  min-width: min(100%, 19rem);
  font-weight: 400;
}

.archive-streaming-youtube-choice-field > span {
  font-weight: 600;
}

.archive-streaming-youtube-choice-field .archive-media-select {
  width: 100%;
}

.archive-streaming-youtube-choice .archive-streaming-platform-button-youtube {
  flex: 0 0 auto;
}

.archive-streaming-platform-button:hover .archive-streaming-platform-icon,
.archive-streaming-platform-button:focus-visible .archive-streaming-platform-icon {
  transform: scale(1.05);
}

.archive-piece-streaming-links .archive-streaming-platform-button {
  min-width: 11.5rem;
}

.archive-youtube-overview {
  grid-template-columns: 1fr;
}

.archive-youtube-list,
.archive-original-audio-list {
  display: grid;
  gap: 0.45rem;
}

.archive-recording-upload-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.archive-upload-box,
.archive-file-panel,
.archive-file-overview,
.archive-recording-upload-box {
  display: grid;
  align-self: start;
  align-content: start;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  background: #f8fbfd;
}

.archive-media-grid {
  align-items: stretch;
}

.archive-media-grid .archive-upload-box {
  min-height: 7.25rem;
}

.archive-upload-box small,
.archive-file-list small {
  color: var(--muted);
  font-weight: 500;
}

.archive-upload-box > span,
.archive-upload-box label > span,
.archive-recording-upload-box label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.archive-upload-box input[type="file"] {
  color: transparent;
}

.archive-upload-box input[type="file"]::file-selector-button {
  color: #111111;
}

.archive-upload-box input[type="file"]::-webkit-file-upload-button {
  color: #111111;
}

.archive-file-panel > .archive-upload-box {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.archive-recording-upload-box label:not(:has(> span)) {
  align-self: end;
}

.archive-file-overview h3,
.archive-file-panel h3,
.archive-recording-upload-box h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.archive-file-list,
.archive-current-file-list,
.archive-media-links {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.archive-file-list a {
  display: grid;
  gap: 0.12rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d2dce5;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
}

.archive-file-list a:hover {
  border-color: #8fb0c9;
  background: #eef6fb;
}

.archive-current-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d2dce5;
  border-radius: 9px;
  background: #ffffff;
}

.archive-current-file-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  min-width: 0;
}

.archive-current-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
  white-space: nowrap;
  border-radius: 50%;
  background: #e9eef5;
  border: 1px solid #b9c5cf;
  color: #263746;
}

.archive-current-view-btn:hover {
  background: #dce5ee;
  color: #263746;
}

.archive-current-view-btn span:not(.archive-view-icon) {
  display: none;
}

.archive-score-version-check {
  white-space: nowrap;
}

.archive-current-score-row .archive-current-file-name,
.archive-current-audio-row .archive-current-file-name {
  min-width: 0;
}

.archive-current-score-row .archive-current-file-name input,
.archive-current-audio-row .archive-current-file-name input {
  width: 100%;
  min-width: 0;
}

.archive-bad-score-text,
.archive-bad-score-option {
  color: #8d2f2f;
  text-decoration: line-through;
}

.archive-current-recording-row {
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 0.3fr) auto auto;
}

.archive-current-file-name,
.archive-current-file-date {
  display: grid;
  gap: 0.18rem;
}

.archive-current-audio-row audio {
  width: 14rem;
  min-width: 0;
  max-width: min(14rem, 30vw);
  flex: 0 0 auto;
}

.archive-current-audio-controls {
  flex-wrap: nowrap;
  justify-self: end;
}

.archive-current-score-controls {
  justify-self: end;
}

.archive-current-file-name span,
.archive-current-file-date span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.archive-current-file-open {
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.archive-current-file-open:hover {
  text-decoration: underline;
}

.archive-current-recording-category {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.archive-delete-file-check {
  color: #a22b2b;
}

.archive-delete-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.archive-delete-file-button {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
}

.archive-current-file-row.is-marked-delete {
  border-color: #c54545;
  background: #fff3f3;
  opacity: 0.7;
}

.archive-field-error input,
.archive-field-error select,
.archive-field-error textarea,
.archive-field-error .archive-tag-editor,
.archive-field-error .duration-input-group input {
  border-color: #c54545 !important;
  box-shadow: 0 0 0 2px rgba(197, 69, 69, 0.16);
}

.archive-field-error > span:first-child {
  color: #a12622;
}

.archive-audio-list,
.archive-recording-list {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.archive-audio-row,
.archive-recording-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d2dce5;
  border-radius: 10px;
  background: #ffffff;
}

.archive-recording-row {
  grid-template-columns: minmax(92px, auto) minmax(260px, 1fr) auto;
}

.archive-recording-row strong {
  color: #1f3146;
  font-size: 1rem;
}

.archive-audio-row audio,
.archive-recording-row audio {
  width: 100%;
  min-width: 0;
}

.archive-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 50%;
  background: #e9eef5;
  color: #263746;
  text-decoration: none;
  white-space: nowrap;
}

.archive-download-icon {
  width: 1.35rem;
  height: 1.35rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.print-icon {
  width: 1.3rem;
  height: 1.3rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3Zm-3 11H8v-5h8v5Zm3-6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1ZM18 3H6v4h12V3Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3Zm-3 11H8v-5h8v5Zm3-6c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1ZM18 3H6v4h12V3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.performance-ics-icon {
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' ry='2'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Cpath d='M8 14h4M8 18h4'/%3E%3C/svg%3E");
}

.archive-print-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid #b9c8d6;
  border-radius: 10px;
  background: #e8f0f6;
  color: #111111;
  text-decoration: none;
}

.archive-print-icon-btn:hover {
  border-color: #111111;
  background: #dce7ef;
}

.archive-table-heading-actions,
.performance-inline-setlist-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-left: auto;
}

.archive-table-heading-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.performance-inline-setlist {
  margin-top: 0.6rem;
  border: 0;
  background: transparent;
  overflow: visible;
}

.performance-inline-setlist > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid #c5d3df;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  color: #13263a;
}

.performance-inline-setlist > summary::-webkit-details-marker {
  display: none;
}

.performance-inline-setlist-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.performance-inline-setlist-title-icon {
  display: inline-block;
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H20V8H4V6M4 11H20V13H4V11M4 16H20V18H4V16Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6H20V8H4V6M4 11H20V13H4V11M4 16H20V18H4V16Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.performance-inline-setlist-title::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.performance-inline-setlist[open] .performance-inline-setlist-title::after {
  transform: rotate(225deg);
}

.performance-inline-setlist-head {
  color: var(--muted);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
  min-width: 0;
}

.performance-inline-setlist table {
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.performance-inline-info-foldout {
  margin-top: 0.6rem;
  border: 0;
  background: transparent;
  overflow: visible;
}

.performance-inline-info-foldout > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid #c5d3df;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  color: #13263a;
}

.performance-inline-info-foldout > summary::-webkit-details-marker {
  display: none;
}

.performance-inline-info-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.performance-inline-info-title::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.performance-inline-info-foldout[open] .performance-inline-info-title::after {
  transform: rotate(225deg);
}

.performance-inline-info-grid {
  margin-top: 0.7rem;
}

.performance-performance-meta-foldout > summary {
  grid-template-columns: minmax(0, 1fr) auto;
}

.performance-ics-summary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #111111;
  justify-self: end;
}

.rehearsal-setlist-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.rehearsal-setlist-inline-head h3 {
  margin: 0;
}

.rehearsal-setlist-inline-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.archive-download-btn:hover {
  background: #dce5ee;
}

.archive-selected-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
  margin-top: 0.45rem;
}

.archive-upload-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid #c7d5e0;
  border-radius: 12px;
  background: #eef5fa;
}

.archive-upload-preview-file-name {
  min-width: 0;
  color: #253746;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.archive-upload-preview-row audio {
  width: 14rem;
  min-width: 0;
  max-width: min(14rem, 30vw);
  flex: 0 0 auto;
}

.archive-upload-preview-view {
  justify-self: end;
  white-space: nowrap;
}

.archive-upload-preview-row-audio .archive-current-file-controls,
.archive-upload-preview-row-score .archive-current-file-controls {
  flex-wrap: nowrap;
  justify-self: end;
}

.archive-upload-preview-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #c7d5e0;
  border-radius: 999px;
  background: #eef5fa;
  color: #253746;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.archive-youtube-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #d2dce5;
  color: #263746;
  font-weight: 800;
  text-decoration: none;
}

.archive-youtube-btn span:last-child {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.archive-youtube-btn strong {
  overflow-wrap: anywhere;
}

.archive-youtube-btn small {
  color: var(--muted);
  font-weight: 600;
}

.archive-youtube-btn:hover {
  border-color: #d64545;
  background: #fff5f5;
}

.archive-youtube-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.15rem;
  border-radius: 0.35rem;
  background: #ff0033;
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.archive-youtube-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.12rem;
  border-top: 0.28rem solid transparent;
  border-bottom: 0.28rem solid transparent;
  border-left: 0.46rem solid #ffffff;
}

.archive-youtube-thumb {
  position: relative;
  display: block;
  width: 7.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 9px;
  background: #101820;
}

.archive-youtube-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-youtube-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 2rem;
  height: 1.38rem;
  transform: translate(-50%, -50%);
  border-radius: 0.38rem;
  background: #ff0033;
  box-shadow: 0 0.2rem 0.55rem rgba(0, 0, 0, 0.25);
}

.archive-youtube-play::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0;
  height: 0;
  margin-left: 0.08rem;
  transform: translate(-50%, -50%);
  border-top: 0.34rem solid transparent;
  border-bottom: 0.34rem solid transparent;
  border-left: 0.56rem solid #ffffff;
}

.archive-recording-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.archive-recordings-foldout {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbfd;
  overflow: hidden;
}

.archive-piece-detail-card .archive-recordings-foldout {
  overflow: visible;
}

.archive-piece-edit-card .archive-piece-foldout {
  margin-top: 1rem;
}

.archive-piece-edit-card .archive-info-foldout {
  margin-bottom: 0;
}

.archive-piece-edit-card .archive-info-foldout-error {
  border-color: #d94d4d;
  box-shadow: 0 0 0 2px rgba(217, 77, 77, 0.18);
  background: #fff5f5;
}

.archive-youtube-foldout {
  margin-top: 0.8rem;
}

.archive-streaming-foldout {
  margin-top: 0.8rem;
}

.archive-youtube-download-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.archive-youtube-search-actions {
  margin-top: 0.55rem;
}

.archive-youtube-search-button {
  min-height: 2.5rem;
}

.archive-youtube-preview-button {
  min-height: 2.5rem;
  margin-top: 0.2rem;
}

.archive-youtube-preview-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.archive-streaming-player {
  gap: 0.75rem;
}

.archive-streaming-search-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.archive-streaming-query-field {
  display: grid;
  gap: 0.25rem;
  flex: 1 1 22rem;
  max-width: 28rem;
  font-weight: 400;
}

.archive-streaming-query-field > span {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.archive-streaming-query-field input {
  width: 100%;
}

.archive-streaming-search-submit {
  min-height: 2.5rem;
  justify-self: start;
  align-self: flex-end;
}

.archive-streaming-search-note {
  margin: 0;
}

.archive-streaming-links-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.archive-streaming-link-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.archive-streaming-link-field {
  display: grid;
  gap: 0.25rem;
  flex: 1 1 22rem;
  min-width: min(100%, 22rem);
  font-weight: 400;
}

.archive-streaming-link-field > span {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.archive-streaming-link-field input {
  width: 100%;
  font-weight: 400;
}

.archive-streaming-link-field textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
  font-weight: 400;
}

.archive-youtube-link-field {
  flex: 1 1 22rem;
  min-width: min(100%, 22rem);
}

.archive-streaming-link-row-youtube {
  align-items: flex-end;
}

.archive-streaming-link-row-youtube .archive-streaming-search-button {
  align-self: flex-end;
  margin-top: 0.2rem;
}

.archive-streaming-search-button {
  min-height: 2.5rem;
  align-self: flex-end;
}

.archive-piece-edit-card .archive-info-foldout + .archive-piece-foldout,
.archive-piece-edit-card .archive-piece-foldout + .archive-youtube-foldout {
  margin-top: 1rem;
}

.archive-piece-edit-card .archive-edit-actions-line {
  margin-top: 1rem;
}

.archive-recordings-foldout > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  color: #1f3146;
}

.archive-foldout-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.45rem;
}

.archive-piece-section-icon {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  background: #32465c;
  -webkit-mask: var(--archive-piece-icon-path) center/contain no-repeat;
  mask: var(--archive-piece-icon-path) center/contain no-repeat;
}

.archive-piece-section-icon-score {
  --archive-piece-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6C4.89 2 4 2.9 4 4V20C4 21.1 4.89 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2M13 9V3.5L18.5 9H13M10 19C8.9 19 8 18.1 8 17S8.9 15 10 15C10.35 15 10.69 15.09 11 15.26V11H16V13H13V17C13 18.1 12.1 19 11 19H10Z'/%3E%3C/svg%3E");
}

.archive-piece-section-icon-original {
  --archive-piece-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3V13.55A4 4 0 1 0 14 17V7H18V3H12Z'/%3E%3C/svg%3E");
}

.archive-piece-section-icon-info {
  --archive-piece-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 17H13V11H11V17M12 2A10 10 0 1 0 12 22A10 10 0 0 0 12 2M12 20A8 8 0 1 1 12 4A8 8 0 0 1 12 20M11 9H13V7H11V9Z'/%3E%3C/svg%3E");
}

.archive-piece-section-icon-recordings {
  --archive-piece-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3A4 4 0 0 0 8 7V11A4 4 0 0 0 16 11V7A4 4 0 0 0 12 3M6 10H4V11A8 8 0 0 0 11 18.93V21H13V18.93A8 8 0 0 0 20 11V10H18V11A6 6 0 0 1 6 11V10Z'/%3E%3C/svg%3E");
}

.archive-piece-section-icon-youtube {
  --archive-piece-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 15L15.19 12L10 9V15M21.56 7.17C21.69 7.64 21.78 8.27 21.84 9.07C21.91 9.87 21.94 10.56 21.94 11.16L22 12C22 14.19 21.84 15.8 21.56 16.83C21.31 17.73 20.73 18.31 19.83 18.56C19.36 18.69 18.5 18.78 17.18 18.84C15.88 18.91 14.69 18.94 13.59 18.94L12 19C7.81 19 5.2 18.84 4.17 18.56C3.27 18.31 2.69 17.73 2.44 16.83C2.31 16.36 2.22 15.73 2.16 14.93C2.09 14.13 2.06 13.44 2.06 12.84L2 12C2 9.81 2.16 8.2 2.44 7.17C2.69 6.27 3.27 5.69 4.17 5.44C4.64 5.31 5.5 5.22 6.82 5.16C8.12 5.09 9.31 5.06 10.41 5.06L12 5C16.19 5 18.8 5.16 19.83 5.44C20.73 5.69 21.31 6.27 21.56 7.17Z'/%3E%3C/svg%3E");
}

.archive-piece-section-icon-usage {
  --archive-piece-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5H21V7H3V5M3 11H21V13H3V11M3 17H21V19H3V17M5 8H7V10H5V8M5 14H7V16H5V14Z'/%3E%3C/svg%3E");
}

.archive-recordings-foldout > summary::-webkit-details-marker {
  display: none;
}

.archive-recordings-foldout > summary::after {
  content: "▾";
  color: var(--muted);
  transition: transform 0.15s ease;
}

.archive-recordings-foldout[open] > summary::after {
  transform: rotate(180deg);
}

.archive-recordings-foldout small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.82rem;
}

.archive-recordings-player {
  padding: 0 0.8rem 0.8rem;
}

.archive-piece-detail-card .archive-recordings-player,
.archive-piece-detail-card .archive-recording-choice-grid,
.archive-piece-detail-card .archive-selectable-media {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.archive-piece-detail-card .archive-selectable-media:last-child {
  z-index: 2;
}

.archive-recording-select optgroup {
  color: #1f3146;
  font-weight: 800;
}

@media (max-width: 900px) {
  .archive-stats-two,
  .archive-search-form-compact,
  .archive-piece-form-grid,
  .archive-media-grid,
  .archive-media-overview,
  .archive-recording-choice-grid,
  .archive-recording-upload-grid {
    grid-template-columns: 1fr;
  }

  .archive-piece-title-field,
  .archive-piece-side-fields,
  .archive-piece-kind-field,
  .archive-piece-style-field,
  .archive-piece-sound-field,
  .archive-piece-tags-field,
  .archive-piece-notes-field {
    grid-column: 1 / -1;
  }

  .archive-piece-edit-info-grid {
    grid-template-columns: 1fr;
  }

  .archive-piece-side-fields {
    justify-content: start;
    flex-wrap: wrap;
  }

  .archive-piece-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    margin-top: 0.55rem;
  }

  .archive-piece-summary-item {
    padding: 0.48rem 0.55rem;
  }

  .archive-piece-summary-wide {
    grid-column: 1 / -1;
  }

  .archive-info-grid {
    grid-template-columns: 1fr;
  }

  .archive-info-wide {
    grid-column: auto;
  }

  .archive-audio-row,
  .archive-recording-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .archive-current-file-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .archive-current-file-controls {
    width: 100%;
  }

  .archive-upload-preview-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .archive-top-row {
    justify-content: stretch;
    margin: 0 0 0.75rem;
    transform: none;
    pointer-events: auto;
    flex-wrap: wrap;
  }

  .archive-top-notice {
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }

  .archive-page > .notice-stack {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0 0 0.8rem;
  }

  .archive-top-links {
    justify-content: stretch;
    flex: 1 1 100%;
  }

  .archive-top-links .link-btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .archive-current-recording-row {
    grid-template-columns: 1fr;
  }

  .archive-download-btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .archive-piece-detail-title {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    gap: 0.55rem;
  }

  .archive-piece-reactions {
    margin-left: auto;
    align-self: center;
    width: auto;
    flex-wrap: nowrap;
  }

  .archive-piece-reaction-form {
    flex: 0 0 auto;
  }

  .archive-piece-reaction-btn {
    min-height: 1.75rem;
    padding: 0.16rem 0.44rem;
    font-size: 0.88rem;
  }

  .archive-piece-reaction-icon {
    width: 0.88rem;
    height: 0.88rem;
  }

  .archive-detail-card .archive-section-heading {
    gap: 0.55rem;
  }

  .archive-detail-card .archive-actions,
  .archive-detail-card .archive-actions-row {
    width: 100%;
  }

  .archive-detail-card .archive-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
  }

  .archive-detail-card .archive-actions-row .link-btn,
  .archive-detail-card .archive-actions-row .choice-btn {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .archive-piece-edit-card .archive-section-heading > .archive-actions {
    display: none;
  }

  .archive-performance-form .archive-section-heading > .archive-actions,
  .archive-performance-form .archive-form-top-actions {
    display: none;
  }

  .archive-piece-edit-card .archive-piece-header-flags {
    margin-top: -0.25rem;
    margin-bottom: 0.1rem;
  }

  .archive-piece-edit-card .archive-piece-header-flags .archive-piece-current-field,
  .archive-piece-edit-card .archive-piece-header-flags .archive-piece-archive-field {
    min-height: 2.2rem;
  }

  .archive-piece-edit-card .archive-piece-edit-title {
    margin-top: 0.2rem;
  }

  .archive-piece-edit-card .archive-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
  }

  .archive-piece-edit-card .archive-form-actions .choice-btn,
  .archive-piece-edit-card .archive-form-actions button[type="submit"] {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .archive-piece-edit-card .archive-form-actions .choice-btn {
    background: #111111;
    border: 0;
    color: #ffffff;
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
  }

  .archive-piece-edit-card .archive-form-actions .choice-btn:hover {
    background: #222222;
    color: #ffffff;
  }

  .archive-performance-form .archive-form-actions.archive-edit-actions-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
  }

  .archive-performance-form .archive-form-actions.archive-edit-actions-line > :not(.archive-form-trash) {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .archive-performance-form .archive-form-actions.archive-edit-actions-line .choice-btn {
    background: #111111;
    border: 0;
    color: #ffffff;
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
  }

  .archive-performance-form .archive-form-actions.archive-edit-actions-line .choice-btn:hover {
    background: #222222;
    color: #ffffff;
  }

  .archive-after-note-actions .archive-detail-close {
    justify-content: center;
    width: min(100%, 13rem);
    min-height: 2.55rem;
    text-align: center;
  }

  .archive-detail-card:not(.archive-list-card) .archive-section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-streaming-youtube-choice {
    flex-direction: column;
    align-items: stretch;
  }

  .archive-streaming-youtube-choice .archive-streaming-platform-button-youtube {
    width: 100%;
    justify-content: center;
  }

  .archive-detail-card:not(.archive-list-card) .archive-detail-top-actions {
    order: -1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 0.5rem;
  }

  .archive-detail-card:not(.archive-list-card) .archive-detail-top-actions .choice-btn,
  .archive-detail-card:not(.archive-list-card) .archive-detail-top-actions .link-btn {
    width: auto;
    flex: 0 0 auto;
  }

  .archive-detail-header-card .archive-detail-top-actions .choice-btn,
  .archive-detail-header-card .archive-detail-top-actions .link-btn {
    width: auto;
    min-width: 0;
  }

  .archive-piece-detail-card .archive-section-heading {
    align-items: stretch;
  }

  .archive-piece-detail-card .archive-piece-actions {
    order: -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 0.5rem;
  }

  .archive-piece-detail-card .archive-piece-actions .link-btn,
  .archive-piece-detail-card .archive-piece-actions .choice-btn {
    width: 100%;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.94rem;
    line-height: 1.15;
    white-space: normal;
    text-wrap: balance;
  }

  .archive-selection-nav-label {
    display: none;
  }

  .archive-list-card .archive-section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
  }

  .archive-rehearsal-list-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
  }

  .archive-list-card .archive-section-heading h2 {
    min-width: 0;
  }

  .archive-list-card .archive-table-heading-actions {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    white-space: normal;
    margin-top: 0;
  }

  .archive-list-card .archive-table-heading-actions .muted {
    flex: 1 1 auto;
    line-height: 1.2;
    white-space: normal;
    margin-top: -0.12rem;
  }

  .archive-list-card .archive-print-icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0;
    margin-bottom: 0;
  }

  .archive-piece-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .archive-piece-actions .link-btn,
  .archive-piece-actions .choice-btn {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .dashboard-recent-changes-card .archive-section-heading {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
  }

  .dashboard-recent-changes-card .archive-section-heading > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dashboard-recent-changes-card .archive-section-heading h2 {
    flex: 1 1 auto;
    min-width: 0;
  }

  .archive-piece-action-all {
    order: 1;
  }

  .archive-piece-action-close {
    order: 2;
  }

  .archive-piece-action-rehearsal {
    order: 3;
  }

  .archive-piece-action-edit {
    order: 4;
  }

  .archive-selected-media-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
    align-items: center;
    gap: 0.4rem 0.45rem;
  }

  .archive-selected-media-actions .link-btn,
  .archive-selected-media-actions button:not(.danger-button) {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    text-align: center;
    min-height: 2.55rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.92rem;
    line-height: 1.12;
    white-space: normal;
    text-wrap: balance;
  }

  .archive-selected-media-actions [data-score-download-button] {
    margin-left: 0;
    min-width: 0;
    padding-inline: 0.55rem;
  }

  .archive-selected-media-actions .archive-selected-view,
  .archive-selected-media-actions [data-score-download-button] {
    align-items: center;
  }

  .archive-piece-action-all {
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.94rem;
    line-height: 1.15;
    white-space: normal;
    text-wrap: balance;
  }

  .archive-audio-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .archive-audio-row .archive-download-btn,
  .archive-selected-audio-row .archive-download-btn,
  .archive-download-btn {
    justify-self: end;
  }

  .archive-page .card,
  .archive-page .archive-list-card {
    overflow: visible;
  }

  .archive-page .archive-table-wrap {
    overflow-x: auto;
  }

  .archive-old-setlist-picker {
    position: relative;
    z-index: 5;
  }

  .archive-old-setlist-picker .rehearsal-picker-row {
    overflow: visible;
  }
}

.manager-section-details {
  overflow: visible;
}

.manager-section-details > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
  font-size: 1.25rem;
  font-weight: 900;
}

.manager-section-details > summary::-webkit-details-marker {
  display: none;
}

.manager-section-details > summary::after {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  margin-left: auto;
  border-right: 3px solid var(--muted);
  border-bottom: 3px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.manager-section-details[open] > summary::after {
  transform: rotate(225deg);
}

.manager-section-content {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.85rem;
}

.manager-section-actions {
  justify-content: flex-start;
}

.manager-section-new-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.8rem;
}

.manager-new-button,
button.secondary.manager-new-button,
.link-btn.secondary.manager-new-button {
  background: #2f9e44;
  color: #ffffff;
}

.manager-new-button:hover,
button.secondary.manager-new-button:hover,
.link-btn.secondary.manager-new-button:hover {
  background: #2b8a3e;
  color: #ffffff;
}

.member-create-substitute-block {
  display: grid;
  gap: 0.7rem;
}

.member-create-row-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
}

.member-create-left-stack {
  display: grid;
  gap: 0.7rem;
  align-items: start;
  min-width: 0;
}

.member-create-row-wide--substitute {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.member-create-field-stack {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.member-create-field-stack.is-hidden {
  display: none !important;
}

.member-create-field-label {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.member-create-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  grid-column: 1 / -1;
  margin-top: 0.15rem;
}

.member-create-type-row .member-type-admin-row {
  flex: 0 0 auto;
  min-width: 0;
}

.member-create-type-row .admin-option-stack {
  width: auto;
}

.member-create-type-row .admin-radio-row {
  width: auto;
}

.member-create-type-row .member-admin-checkbox {
  min-width: 0;
}

.member-create-type-row .member-create-until-row {
  flex: 0 0 min(18rem, 100%);
  min-width: min(18rem, 100%);
  margin-top: 0;
}

.member-create-until-row.is-hidden {
  display: none !important;
}

.member-create-substitute-block.is-hidden {
  display: none !important;
}

.member-create-substitute-head {
  display: grid;
  gap: 0.2rem;
}

.member-create-substitute-head strong {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

.member-create-performance-dropdown {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.member-create-performance-button {
  position: relative;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 2.2rem 0.55rem 0.65rem;
  border: 1px solid #b8c8d6;
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.member-create-performance-button::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.75rem;
  width: 0.75rem;
  height: 0.75rem;
  transform: translateY(-50%);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7,10L12,15L17,10H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7,10L12,15L17,10H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.member-create-performance-list-dropdown {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.2rem;
  max-height: min(70vh, 32rem);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid #b8c8d6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.member-create-performance-list-dropdown[hidden] {
  display: none;
}

.member-create-performance-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.55rem;
  border-radius: 9px;
  border: 1px solid #b8c8d6;
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.member-create-performance-option:hover {
  background: #eef6fb;
}

.member-create-performance-option input[type="checkbox"] {
  margin: 0;
  width: 1rem;
  height: 1rem;
}

.rehearsal-form-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.rehearsal-form-page > label,
.rehearsal-form-page > div {
  min-width: 0;
}

.rehearsal-form-page .full-width {
  grid-column: 1 / -1;
}

.rehearsal-form-page .recipient-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rehearsal-form-page .recipient-controls {
  margin-bottom: 0.55rem;
}

.rehearsal-form-page .recipient-dropdown {
  background: #ffffff;
}

.rehearsal-form-page .rehearsal-note-edit-label textarea {
  min-height: 13rem;
}

.performance-form-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.performance-form-page > label,
.performance-form-page > div {
  min-width: 0;
}

.performance-form-page .full-width {
  grid-column: 1 / -1;
}

.performance-form-page .recipient-dropdown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.performance-form-page .recipient-controls {
  margin-bottom: 0.55rem;
}

.performance-form-page .recipient-dropdown {
  background: #ffffff;
}

.archive-rehearsal-dropdown {
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.archive-rehearsal-dropdown.archive-field-error {
  border-color: #c54545 !important;
  box-shadow: 0 0 0 2px rgba(197, 69, 69, 0.16);
}

.archive-rehearsal-dropdown.archive-field-error .recipient-dropdown-summary {
  color: #a12622;
}

.archive-rehearsal-dropdown .archive-rehearsal-checkbox-list {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 0;
  padding: 0 0.65rem 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.archive-rehearsal-dropdown .archive-rehearsal-checkbox-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-weight: 500;
  background: #f9fbfc;
}

.archive-rehearsal-dropdown .archive-rehearsal-checkbox-list > div {
  width: 100%;
}

.archive-rehearsal-dropdown .archive-rehearsal-checkbox-list input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.archive-rehearsal-dropdown .archive-rehearsal-checkbox-list label:has(input[data-canceled="1"]) {
  color: #c92a2a;
  text-decoration: line-through;
  text-decoration-thickness: 0.12em;
}

.archive-rehearsal-dropdown .archive-rehearsal-checkbox-list label:has(input[data-canceled="1"]:disabled) {
  color: #c92a2a;
}

.archive-performance-dropdown {
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}

.archive-performance-dropdown .archive-performance-checkbox-list {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 0;
  padding: 0 0.65rem 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.archive-performance-dropdown .archive-performance-checkbox-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.2rem 0.55rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  font-weight: 500;
  background: #f9fbfc;
}

.archive-performance-dropdown .archive-performance-checkbox-list > div {
  width: 100%;
}

.archive-performance-dropdown .archive-performance-checkbox-list input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.archive-dropdown-actions {
  display: flex;
  justify-content: flex-start;
  padding: 0 0.65rem 0.65rem;
}

.archive-dropdown-close-button {
  white-space: normal;
  background: #111;
  color: #fff;
  border-color: #111;
}

.archive-dropdown-close-button:hover,
.archive-dropdown-close-button:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
}

.performance-form-page textarea[name="note"] {
  min-height: 13rem;
}

@media (max-width: 760px) {
  .performance-form-page {
    grid-template-columns: 1fr;
  }
}

.member-create-performance-list {
  display: grid;
  gap: 0.45rem;
}

.member-create-until-row {
  margin-top: 0.15rem;
}

.member-create-type-row .member-create-until-row {
  margin-top: 0;
}

@media (max-width: 760px) {
  .member-create-row-wide,
  .member-create-type-row {
    grid-template-columns: 1fr;
  }

  .member-create-row-wide--substitute {
    grid-template-columns: 1fr;
  }
}

.manager-piece-search {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  max-width: none;
  position: relative;
}

.manager-piece-search label {
  font-weight: 900;
}

.manager-piece-search-controls {
  display: flex;
  gap: 0.45rem;
  align-items: end;
  width: 100%;
}

.manager-piece-search-controls input[type="search"] {
  flex: 1 1 16rem;
  min-width: 0;
}

.manager-piece-search-controls .archive-current-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.manager-piece-search input[type="search"] {
  width: 100%;
}

.manager-piece-search-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.25rem;
  max-height: 19rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #b9c5cf;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(31, 49, 70, 0.18);
}

.archive-live-search-results {
  top: calc(100% + 0.35rem);
  z-index: 50;
}

.archive-home-button {
  min-width: 13.5rem;
}

.archive-home-actions {
  margin-bottom: 0.8rem;
}

.manager-piece-search-results[hidden] {
  display: none !important;
}

.manager-piece-search-results:empty {
  display: none;
}

.manager-piece-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #b9c5cf;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--text);
  text-decoration: none;
}

.manager-piece-search-result-info {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.manager-piece-search-result-title {
  min-width: 0;
}

.manager-piece-search-result-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.manager-piece-search-result-current .manager-piece-search-result-title {
  color: #2f9e44;
}

.manager-piece-search-result[hidden] {
  display: none !important;
}

.manager-piece-search-result:hover {
  background: #e7eef3;
}

.manager-piece-search-result strong {
  flex: 0 0 auto;
  font-size: 0.95rem;
}

.manager-piece-search-empty {
  margin: 0;
}

.logging-section-row {
  margin-top: 1rem;
}

.mdi-manager-icon {
  --manager-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3L2 9V11H22V9L12 3M4 13V20H20V13H18V18H15V13H13V18H11V13H9V18H6V13H4Z'/%3E%3C/svg%3E");
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  background: #253746;
  -webkit-mask: var(--manager-icon-path) center/contain no-repeat;
  mask: var(--manager-icon-path) center/contain no-repeat;
}

.manager-section-announcements .mdi-manager-icon {
  --manager-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8V5L9 9V19L20 15V12H22V8H20M4 10V18H7V10H4M4 20V22H7V20H4Z'/%3E%3C/svg%3E");
}

.manager-section-rehearsals .mdi-manager-icon {
  --manager-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 3H18V1H16V3H8V1H6V3H5C3.89 3 3 3.9 3 5V19C3 20.11 3.89 21 5 21H19C20.11 21 21 20.11 21 19V5C21 3.9 20.11 3 19 3M19 19H5V8H19V19Z'/%3E%3C/svg%3E");
}

.manager-section-performances .mdi-manager-icon {
  --manager-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3V13.55A4 4 0 1 0 14 17V7H18V3H12Z'/%3E%3C/svg%3E");
}

.manager-section-archive .mdi-manager-icon {
  --manager-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.54 5.23L19.15 3.55C18.88 3.21 18.47 3 18 3H6C5.53 3 5.12 3.21 4.84 3.55L3.46 5.23C3.17 5.57 3 6 3 6.5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V6.5C21 6 20.83 5.57 20.54 5.23M12 17.5L6.5 12H10V10H14V12H17.5L12 17.5M5.12 5L5.93 4H18.07L18.88 5H5.12Z'/%3E%3C/svg%3E");
}

.manager-section-members-logging .mdi-manager-icon {
  --manager-icon-path: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11C17.66 11 19 9.66 19 8S17.66 5 16 5 13 6.34 13 8 14.34 11 16 11M8 11C9.66 11 11 9.66 11 8S9.66 5 8 5 5 6.34 5 8 6.34 11 8 11M8 13C5.67 13 1 14.17 1 16.5V19H15V16.5C15 14.17 10.33 13 8 13M16 13C15.71 13 15.38 13.02 15.03 13.05C16.19 13.89 17 15 17 16.5V19H23V16.5C23 14.17 18.33 13 16 13Z'/%3E%3C/svg%3E");
}

.archive-edit-heading,
.archive-edit-cell {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #e7eef3;
  color: #253746;
  text-decoration: none;
}

.icon-action-btn:hover {
  background: #d6e2ea;
}

.icon-action-btn span {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
}

.edit-icon-btn span {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.71 7.04C21.1 6.65 21.1 6 20.71 5.63L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.71 7.04C21.1 6.65 21.1 6 20.71 5.63L18.37 3.29C18 2.9 17.35 2.9 16.96 3.29L15.12 5.12L18.87 8.87M3 17.25V21H6.75L17.81 9.93L14.06 6.18L3 17.25Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.copy-icon-btn {
  border: 0;
  cursor: pointer;
  color: #253746;
}

.copy-icon-btn span {
  width: 1.15rem;
  height: 1.15rem;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1M19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5M19 21H8V7H19V21Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1M19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5M19 21H8V7H19V21Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.archive-copy-action-btn {
  gap: 0.45rem;
}

.copy-icon {
  display: inline-block;
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1M19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5M19 21H8V7H19V21Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1M19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5M19 21H8V7H19V21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.manager-section-archive .rehearsal-picker-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
}

.archive-manager-list-select {
  width: 100%;
}

.manager-section-archive .archive-custom-select-list {
  max-height: 15rem;
  z-index: 120;
}

.manager-section-archive,
.manager-section-archive .manager-section-content,
.manager-section-archive .rehearsal-picker,
.manager-section-archive .rehearsal-picker-row,
.manager-section-archive .archive-custom-select {
  overflow: visible;
}

.manager-section-performances .rehearsal-picker + .rehearsal-picker {
  margin-top: 1rem;
}

.manager-section-performances .rehearsal-picker label {
  margin-bottom: 0.45rem;
}

.manager-section-performances .manager-dropdown-stack {
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 900px) {
  .manager-member-picker-grid {
    grid-template-columns: 1fr;
  }
}

.archive-collapsible-card > summary {
  cursor: pointer;
  list-style: none;
  align-items: flex-start;
}

.archive-collapsible-card > summary::-webkit-details-marker {
  display: none;
}

.archive-collapsible-card > summary::after {
  content: "";
  width: 0.68rem;
  height: 0.68rem;
  margin-left: 0.5rem;
  border-right: 3px solid var(--muted);
  border-bottom: 3px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.archive-collapsible-card[open] > summary::after {
  transform: rotate(225deg);
}

.archive-collapsible-content {
  margin-top: 0.8rem;
}

.archive-collapsible-card:not([open]) .archive-collapsible-content {
  display: none;
}

.archive-date-filter {
  align-items: end;
  gap: 0.8rem;
  margin: 0.9rem 0 1.15rem;
}

.archive-date-filter label {
  flex: 0 1 12rem;
}

.archive-date-filter button,
.archive-date-filter .link-btn {
  margin-top: 1.45rem;
}

.archive-manager-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.archive-manager-actions .link-btn.secondary.manager-new-button.manager-current-cleanup-button {
  margin-left: auto;
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.archive-manager-actions .link-btn.secondary.manager-new-button.manager-current-cleanup-button:hover {
  background: #8f1c13;
  border-color: #8f1c13;
  color: #fff;
}

.archive-manager-actions .link-btn.secondary.manager-new-button.manager-archived-cleanup-button {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.archive-manager-actions .link-btn.secondary.manager-new-button.manager-archived-cleanup-button:hover {
  background: #8f1c13;
  border-color: #8f1c13;
  color: #fff;
}

.manager-current-cleanup-card {
  padding: 1.1rem 1.1rem 1rem;
}

.manager-current-cleanup-header {
  align-items: center;
}

.manager-current-cleanup-header .archive-actions {
  margin-left: auto;
  justify-content: flex-end;
}

.manager-current-cleanup-table-wrap {
  overflow-x: auto;
  margin-top: 0.9rem;
  max-width: 100%;
}

.manager-current-cleanup-table {
  width: 100%;
  table-layout: fixed;
  background: #fff;
}

.manager-current-cleanup-table th,
.manager-current-cleanup-table td {
  vertical-align: middle;
  padding: 0.72rem 0.85rem;
  box-sizing: border-box;
}

.manager-current-cleanup-table th:first-child,
.manager-current-cleanup-table td:first-child {
  width: calc(100% - 7rem);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.manager-current-cleanup-table th:last-child,
.manager-current-cleanup-table td:last-child {
  width: 7rem;
  min-width: 7rem;
  text-align: center;
}

.manager-current-cleanup-table th {
  color: inherit;
  font-size: inherit;
  font-weight: 700;
}

.manager-current-cleanup-table thead th:first-child {
  background: #e7f1ff;
  color: #0b4f8a;
}

.manager-current-cleanup-table thead th:last-child {
  background: #e7f1ff;
  color: #0b4f8a;
}

.manager-archived-cleanup-table thead th:first-child,
.manager-archived-cleanup-table thead th:last-child {
  background: #e7f1ff;
  color: #0b4f8a;
}

.manager-current-cleanup-check {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  min-height: 0;
  line-height: 1;
  font-weight: 400;
}

.manager-current-cleanup-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
}

.manager-current-cleanup-check-cell {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.manager-current-cleanup-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e5c25b;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff9df 0%, #fff4c1 100%);
}

.manager-current-cleanup-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.22rem;
  height: 1.22rem;
  border-radius: 999px;
  background: #f4b400;
  color: #111;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.manager-current-cleanup-warning-text strong {
  display: inline;
  margin-bottom: 0;
  color: #6d4c00;
  font-size: 0.95rem;
  line-height: 1;
}

.manager-current-cleanup-warning-text p {
  margin: 0;
  color: #463600;
  line-height: 1;
  font-size: 0.95rem;
}

.manager-archived-cleanup-explanation {
  margin-bottom: 1rem;
}

.archive-piece-title-archived-warning {
  color: #c62828;
}

.manager-archived-cleanup-row-warning td:first-child {
  color: #c62828;
}

.manager-archived-cleanup-highlight {
  color: #c62828;
  font-weight: 800;
}

.manager-archived-cleanup-spacer {
  margin: 0.55rem 0;
  line-height: 0;
  font-size: 0;
}

.rehearsal-blazers-warning .manager-current-cleanup-warning-text,
.rehearsal-canceled-warning .manager-current-cleanup-warning-text {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  line-height: 1;
}

.rehearsal-blazers-warning .manager-current-cleanup-warning-text strong,
.rehearsal-blazers-warning .manager-current-cleanup-warning-text p,
.rehearsal-canceled-warning .manager-current-cleanup-warning-text strong,
.rehearsal-canceled-warning .manager-current-cleanup-warning-text p {
  display: inline;
  margin: 0;
}

.archive-piece-detail-title {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.archive-piece-reactions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
  margin-left: auto;
}

.archive-piece-reaction-form {
  margin: 0;
}

.archive-piece-reaction-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 1.85rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #b8c7d6;
  border-radius: 999px;
  background: #f7fbff;
  color: #183b56;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.archive-piece-reaction-btn:hover,
.archive-piece-reaction-btn:focus-visible {
  background: #e8f1f8;
  border-color: #8ea7bf;
}

.archive-piece-reaction-btn.is-active {
  background: #dceee3;
  border-color: #79a985;
  color: #163d24;
}

.archive-piece-reaction-btn-dislike.is-active {
  background: #f8e1df;
  border-color: #d78f88;
  color: #7a1f16;
}

.archive-piece-reaction-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  line-height: 1;
}

.archive-piece-reaction-count {
  min-width: 0.75rem;
  text-align: center;
  font-size: 0.86rem;
}

.archive-piece-title-current,
.archive-piece-title-current:hover,
.archive-piece-title-current:visited {
  color: #2f9e44;
  font-weight: inherit;
}

@media (max-width: 900px) {
  .members-card > .archive-floating-nav {
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    margin: 0 0 0.65rem;
    justify-content: stretch;
    align-items: center;
    gap: 0.45rem;
  }

  .members-card > .archive-floating-nav .link-btn {
    width: 100%;
    justify-content: center;
    flex: none;
  }
}
