:root {
  --ink: #121820;
  --muted: #647084;
  --paper: #eef2f6;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --line: #d8e0ea;
  --line-strong: #a7b3c2;
  --accent: #0d7c72;
  --accent-hover: #07554f;
  --accent-soft: #e4f4f1;
  --accent-ink: #063f3a;
  --gold: #d69b2d;
  --gold-soft: #fff3d8;
  --warning: #b42318;
  --warning-hover: #7a1b14;
  --warning-soft: #fff1f0;
  --focus: #f5b84b;
  --shadow: 0 18px 45px rgba(18, 24, 32, 0.10);
  --shadow-soft: 0 8px 22px rgba(18, 24, 32, 0.08);
  --print-scale: 1;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(13, 124, 114, 0.13), transparent 28rem),
    radial-gradient(circle at 90% 0%, rgba(214, 155, 45, 0.12), transparent 24rem),
    linear-gradient(180deg, #f8fafc 0%, var(--paper) 48%, #e8edf4 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
  overflow-x: hidden;
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 5px 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(27, 168, 240, 0.45);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(16, 23, 34, 0.98), rgba(8, 12, 20, 0.98)),
    #101722;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 30px rgba(18, 168, 244, 0.12);
  color: #f7f2ea;
  animation: toast-in 180ms ease-out;
}

.toast::before {
  content: "";
  width: 5px;
  min-height: 100%;
  border-radius: 999px;
  background: #12a8f4;
}

.toast.is-success::before {
  background: #10b981;
}

.toast.is-warning::before {
  background: #ffcf5a;
}

.toast.is-error::before {
  background: #ff4f73;
}

.toast strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 15px;
}

.toast span {
  display: block;
  color: #c9d7e8;
  font-size: 14px;
  line-height: 1.35;
}

.toast button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.toast button:hover {
  border-color: rgba(27, 168, 240, 0.75);
  background: rgba(18, 168, 244, 0.16);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 14, 0.78);
  backdrop-filter: blur(10px);
}

.app-modal {
  width: min(520px, 100%);
  display: grid;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(27, 168, 240, 0.45);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(18, 168, 244, 0.18), transparent 42%),
    linear-gradient(145deg, #101722, #070b13);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.62), 0 0 44px rgba(18, 168, 244, 0.12);
}

.app-modal h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.98;
}

.app-modal p:not(.eyebrow) {
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.45;
}

.app-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.app-modal-actions button {
  min-width: 130px;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.74;
  transform: none !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #070b11;
}

.password-field:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.password-field input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.password-field input:focus-visible {
  outline: 0;
}

.password-toggle {
  min-width: 74px;
  min-height: 100%;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: #121b27;
  color: #dbeafe;
  font-size: 13px;
  font-weight: 900;
}

.password-toggle:hover {
  background: #092337;
  color: #ffffff;
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -4px;
  padding: 12px;
  border: 1px solid rgba(27, 168, 240, 0.32);
  border-radius: 8px;
  background: rgba(18, 168, 244, 0.08);
}

.password-rules p {
  flex: 1 0 100%;
  margin: 0 0 2px;
  color: #c9d8e8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.password-rules span {
  padding: 6px 9px;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #aebdcc;
  font-size: 12px;
  font-weight: 900;
}

.password-rules span.is-valid {
  border-color: rgba(42, 199, 127, 0.75);
  background: rgba(42, 199, 127, 0.14);
  color: #b9f6d3;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(135deg, #0c141d 0%, #121820 48%, #073f3b 100%);
  color: #ffffff;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 14px 40px rgba(7, 20, 29, 0.22);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-text {
  min-width: 0;
}

.brand-text h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-logo {
  width: clamp(280px, 31vw, 520px);
  max-height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(0, 170, 255, 0.22));
}

.app-header h1 {
  margin: 2px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: #b9c4cf;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.save-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 191, 74, 0.7);
  border-radius: 999px;
  background: rgba(255, 191, 74, 0.12);
  color: #ffd37a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(255, 191, 74, 0.12);
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.tab,
.repeater-head button,
.move-actions button,
.effect-row button,
.library-actions button,
.library-params button {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.primary-button {
  padding: 0 18px;
  border-color: var(--accent);
  background: linear-gradient(180deg, #118a7e 0%, var(--accent) 100%);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(13, 124, 114, 0.22);
}

.secondary-button,
.danger-button,
.repeater-head button {
  padding: 0 14px;
}

.danger-button {
  border-color: #ffc9c4;
  background: var(--warning-soft);
  color: var(--warning);
}

.icon-button {
  width: 48px;
}

.primary-button:hover,
.tab.is-active,
.show-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, #118a7e 0%, var(--accent) 100%);
  color: #ffffff;
}

.tab.is-active {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.32), 0 10px 20px rgba(13, 124, 114, 0.20);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover,
.repeater-head button:hover,
.library-actions button:hover,
.move-actions button:hover {
  border-color: var(--accent);
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(7, 85, 79, 0.24);
}

.danger-button:hover {
  border-color: var(--warning-hover);
  background: var(--warning-hover);
  color: #ffffff;
}

.workspace {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(16px, 3vw, 36px) 52px;
}

.auth-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-logo {
  width: min(100%, 540px);
  justify-self: center;
  margin: -8px 0 2px;
  filter: drop-shadow(0 18px 42px rgba(0, 170, 255, 0.24));
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.95;
}

.auth-hint {
  margin: -4px 0 8px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.auth-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: var(--warning);
  font-weight: 900;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(0, 168, 255, 0.46);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: #f8fbff;
  font-weight: 900;
}

.install-app-button {
  border-color: rgba(255, 181, 71, 0.8);
  background: rgba(255, 181, 71, 0.12);
  color: #fff4d6;
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  margin-bottom: 24px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.tab {
  min-height: 50px;
  padding: 0 12px;
  background: transparent;
  border-color: transparent;
  white-space: nowrap;
}

.tab:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.panel {
  display: none;
}

.panel.is-active {
  display: grid;
  gap: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 4px;
}

.song-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.counter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.band-home {
  display: grid;
  gap: 20px;
}

.account-panel {
  display: grid;
  gap: 20px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid rgba(18, 168, 244, 0.32);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(18, 168, 244, 0.1), rgba(255, 61, 105, 0.04)), rgba(10, 17, 28, 0.92);
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  color: #b8cbe0;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-stat-card strong {
  color: #ffffff;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-users-panel,
.admin-detail-panel {
  min-height: 520px;
  padding: 16px;
  border: 1px solid rgba(167, 179, 194, 0.35);
  border-radius: 12px;
  background: rgba(10, 17, 28, 0.86);
  box-shadow: var(--shadow);
}

.admin-users-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.admin-user-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(167, 179, 194, 0.34);
  border-radius: 10px;
  background: rgba(5, 10, 17, 0.78);
  color: #f7f2ea;
  text-align: left;
}

.admin-user-card:hover,
.admin-user-card.is-selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(18, 168, 244, 0.18), rgba(193, 39, 63, 0.14));
}

.admin-user-card strong {
  color: #ffffff;
  font-size: 17px;
}

.admin-user-card span,
.admin-user-card small,
.admin-user-card b {
  color: #bfd6ec;
  font-size: 13px;
  font-weight: 900;
}

.admin-user-card b {
  color: var(--gold);
}

.admin-detail-panel {
  display: grid;
  gap: 16px;
}

.admin-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(167, 179, 194, 0.24);
}

.admin-detail-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-detail-head h3 {
  margin: 4px 0 2px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.admin-detail-head p {
  margin: 0;
  color: #bfd6ec;
  font-weight: 900;
}

.admin-status {
  align-self: start;
  padding: 10px 14px;
  border-radius: 999px;
  background: #0d7c72;
  color: #ffffff;
  font-size: 13px;
  text-transform: uppercase;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-detail-grid span {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(167, 179, 194, 0.28);
  border-radius: 8px;
  background: rgba(5, 10, 17, 0.72);
}

.admin-detail-grid b {
  color: #b8cbe0;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-detail-grid strong {
  color: #ffffff;
  font-size: 22px;
}

.admin-table-wrap {
  overflow: auto;
}

.admin-table-wrap h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-wrap th,
.admin-table-wrap td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(167, 179, 194, 0.22);
  color: #d8ecff;
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.admin-table-wrap th {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.account-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(180deg, #121923, #090d14);
  box-shadow: var(--shadow);
}

.account-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.account-card p {
  margin: 5px 0 0;
  color: #a8bac7;
  font-weight: 800;
  line-height: 1.45;
}

.account-card input[readonly] {
  opacity: 0.72;
}

.account-message {
  min-height: 20px;
  color: var(--gold);
  font-weight: 900;
}

.band-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manual-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-search input,
.manual-search select {
  min-height: 44px;
  background:
    linear-gradient(180deg, #ffffff, #f8fafc);
}

.band-search {
  max-width: 520px;
}

.inline-search {
  margin: 12px 0;
}

.library-search-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 4px 0;
}

.library-search-actions .inline-search {
  margin: 0;
}

.library-search-actions button {
  min-height: 44px;
}

.band-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at top right, rgba(13, 124, 114, 0.13), transparent 14rem);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.band-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 124, 114, 0.48);
  box-shadow: 0 24px 54px rgba(18, 24, 32, 0.14);
}

.band-logo-preview {
  display: grid;
  place-items: center;
  width: 78px;
  aspect-ratio: 1;
  border: 2px solid rgba(13, 124, 114, 0.54);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-soft), var(--gold-soft));
  color: var(--accent-ink);
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
}

.band-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.band-card strong {
  font-size: 24px;
  line-height: 1.05;
}

.band-card span {
  margin-top: 8px;
  color: var(--accent-ink);
  font-weight: 900;
}

.band-card small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 900;
}

.band-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  justify-content: space-between;
}

.band-repeater {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.band-social-row,
.band-member-row {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.band-social-row {
  grid-template-columns: minmax(120px, 220px) 1fr 44px;
}

.band-member-row {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) 44px;
}

.band-social-row button,
.band-member-row button {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--warning);
  font-weight: 900;
}

.band-social-row button:hover,
.band-member-row button:hover {
  border-color: var(--warning-hover);
  background: var(--warning-hover);
  color: #ffffff;
}

.band-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  box-shadow: var(--shadow);
}

.band-context h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.band-context-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.show-layout,
.setlist-layout,
.print-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.show-layout {
  grid-template-columns: 330px minmax(0, 1fr);
}

.setlist-layout,
.print-layout {
  grid-template-columns: 330px minmax(0, 1fr);
}

.list-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  height: min(700px, calc(100vh - 130px));
  min-height: 420px;
}

.list-shell .show-list {
  height: auto;
  max-height: none;
  min-height: 0;
}

.agenda-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 12px;
  height: min(720px, calc(100vh - 210px));
  min-height: 420px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 252, 0.94));
  box-shadow: var(--shadow);
}

.agenda-heading-actions {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.agenda-heading-actions label {
  min-width: 180px;
}

.agenda-heading-actions label:first-child {
  min-width: min(320px, 46vw);
}

.agenda-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.agenda-item:hover,
.agenda-item.is-selected {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
}

.agenda-date {
  display: grid;
  place-items: center;
  min-height: 72px;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
}

.agenda-date b {
  font-size: 24px;
  line-height: 1;
}

.agenda-date small {
  color: #dcefed;
  font-weight: 900;
}

.agenda-main {
  min-width: 0;
}

.agenda-main strong,
.agenda-main small,
.agenda-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-main strong {
  font-size: 22px;
  line-height: 1.05;
}

.agenda-main small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.agenda-main em {
  margin-top: 8px;
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.agenda-badge {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.agenda-badge.is-rehearsal {
  background: #101820;
}

.setlist-builder {
  min-width: 0;
}

.setlist-time-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 150px 150px minmax(170px, auto);
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.setlist-save-button {
  min-height: 54px;
  width: 100%;
  white-space: nowrap;
}

.setlist-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  grid-column: 4;
  grid-row: 1;
}

.time-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.time-summary span {
  display: grid;
  gap: 4px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #39475a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.time-summary strong {
  color: #101820;
  font-size: 22px;
  line-height: 1;
}

.setlist-columns {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.28fr);
  gap: 14px;
  align-items: start;
}

.setlist-share-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(27, 168, 240, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(27, 168, 240, 0.12), rgba(191, 31, 58, 0.08)),
    #111821;
  color: #f7f2ea;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.setlist-share-panel .mini-heading {
  margin-bottom: 0;
}

.setlist-share-panel .mini-heading h3,
.setlist-share-panel .mini-heading p {
  color: #f7f2ea;
}

.setlist-share-panel .mini-heading p {
  opacity: 0.78;
}

.setlist-share-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.setlist-share-form label {
  display: grid;
  gap: 7px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.setlist-share-form input {
  min-height: 46px;
  border: 1px solid rgba(139, 180, 220, 0.5);
  border-radius: 8px;
  background: #070d14;
  color: #ffffff;
  padding: 0 14px;
  font-weight: 800;
}

.setlist-share-form input::placeholder {
  color: rgba(247, 242, 234, 0.55);
}

.setlist-share-message {
  min-height: 20px;
  margin: 0;
  color: #ffcf5a;
  font-weight: 900;
}

.shared-with-box {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.share-list {
  display: grid;
  gap: 8px;
}

.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(139, 180, 220, 0.28);
  border-radius: 8px;
  background: rgba(7, 13, 20, 0.76);
}

.share-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.share-card strong,
.share-card span,
.share-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-card strong {
  color: #ffffff;
  font-size: 16px;
}

.share-card span {
  color: #dbeafe;
  font-weight: 800;
}

.share-card small {
  color: rgba(247, 242, 234, 0.7);
  font-weight: 800;
}

.share-card-actions {
  display: grid;
  grid-template-columns: 96px 86px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.share-card-actions .danger-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
}

.share-status {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  text-align: center;
  font-style: normal;
  font-weight: 950;
  color: #ffffff;
}

.share-status.is-pending {
  background: #0e8bd8;
}

.share-status.is-accepted {
  background: #0d7c72;
}

.share-status.is-canceled,
.share-status.is-expired {
  background: #8b1d2c;
}

.catalog-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mini-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-heading h3 {
  margin: 0;
  font-size: 18px;
}

.mini-heading p {
  margin: 3px 0 0;
  color: #4c5b70;
  font-size: 13px;
  font-weight: 900;
}

.show-form,
.editor-form,
.repeater,
.library-card {
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.show-form,
.editor-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.show-form {
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.9fr) minmax(130px, 0.75fr) minmax(150px, 0.85fr);
}

.form-hint {
  display: block;
  margin-top: 7px;
  color: #b8cbe0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.repeater-save-actions {
  margin-top: 12px;
}

.field-with-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.field-with-action label {
  min-width: 0;
}

.field-with-action button {
  min-height: 46px;
  white-space: nowrap;
}

.song-duration-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

.song-duration-results {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(27, 168, 240, 0.38);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(14, 23, 36, 0.96), rgba(6, 14, 24, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.song-duration-results[hidden] {
  display: none;
}

.song-duration-results h4 {
  margin: 0;
  color: var(--cream);
  font-size: 14px;
}

.song-duration-results p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.duration-result-list {
  display: grid;
  gap: 8px;
}

.duration-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}

.duration-result-card:hover {
  border-color: var(--accent);
  background: rgba(27, 168, 240, 0.1);
}

.duration-result-card strong,
.duration-result-card small,
.duration-result-card span {
  display: block;
}

.duration-result-card strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.15;
}

.duration-result-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.duration-version-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.duration-version-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 207, 90, 0.42);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 207, 90, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.duration-result-action {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.duration-result-action b {
  color: #ffffff;
  font-size: 18px;
}

.duration-result-action button {
  min-height: 38px;
}

.inline-band-editor {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.inline-band-editor > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.editor-form {
  grid-template-columns: 120px repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  text-transform: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

textarea {
  min-height: 126px;
  padding: 14px;
  line-height: 1.4;
  resize: vertical;
}

.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: 1 / -1;
}

.loud-input {
  font-size: 24px;
}

.show-list {
  display: grid;
  align-content: start;
  gap: 10px;
  height: min(640px, calc(100vh - 130px));
  max-height: 640px;
  min-height: 420px;
  overflow: auto;
  padding: 10px 6px 10px 10px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 252, 0.94));
  box-shadow: var(--shadow);
}

.registry-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 760px;
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.show-card,
.registry-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 1px 0 rgba(23, 32, 42, 0.04);
}

.registry-item {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
}

.registry-item-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.registry-item-shell .registry-item {
  min-width: 0;
}

.compact-action {
  min-height: 58px;
  padding-inline: 12px;
  white-space: nowrap;
}

.registry-item:has(.registry-number) {
  grid-template-columns: 42px minmax(0, 1fr);
}

.show-card:hover,
.registry-item:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.show-card:hover span,
.show-card:hover small,
.show-card.is-selected span,
.show-card.is-selected small,
.registry-item:hover small,
.registry-item.is-selected small {
  color: #dcefed;
}

.show-card.is-selected,
.registry-item.is-selected {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.show-card strong,
.registry-item strong {
  display: block;
  font-size: 18px;
  line-height: 1.12;
}

.registry-item strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-card span {
  color: var(--accent-ink);
  font-weight: 900;
}

.show-card small {
  color: var(--muted);
  font-weight: 800;
}

.registry-item small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.registry-number {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-weight: 900;
}

.registry-item:hover .registry-number,
.registry-item.is-selected .registry-number {
  background: #ffffff;
  color: var(--accent-ink);
}

.song-admin-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.song-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  height: min(640px, calc(100vh - 130px));
  max-height: 640px;
  min-height: 420px;
  padding: 14px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 252, 0.94));
  box-shadow: var(--shadow);
}

.song-band-filter {
  position: static;
  min-width: 0;
}

.song-list-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.song-list-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.song-list-item:hover,
.song-list-item.is-selected {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.song-list-number {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.song-list-item:hover .song-list-number,
.song-list-item.is-selected .song-list-number {
  background: #ffffff;
  color: var(--accent-ink);
}

.song-list-main {
  min-width: 0;
}

.song-list-main strong,
.song-list-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-list-main strong {
  font-size: 18px;
  line-height: 1.05;
}

.song-list-main small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.song-list-item:hover small,
.song-list-item.is-selected small {
  color: #dcefed;
}

.song-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.song-profile-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top right, rgba(13, 124, 114, 0.12), transparent 18rem);
  box-shadow: var(--shadow);
}

.song-profile-number {
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.song-profile-main span {
  color: var(--muted);
  font-weight: 900;
}

.song-profile-main h3 {
  margin: 6px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.92;
}

.song-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.song-profile-tags strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  font-size: 13px;
}

.song-profile-main p {
  margin: 12px 0 0;
  padding: 10px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--gold-soft);
  color: #513a00;
  font-weight: 900;
}

.song-profile-effects {
  display: grid;
  grid-column: 2 / -1;
  gap: 8px;
}

.song-profile-effects span {
  display: block;
  padding: 9px 11px;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 900;
}

.song-profile-effects b {
  margin-right: 8px;
  color: var(--ink);
}

.song-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.song-edit-panel {
  display: grid;
  gap: 14px;
}

.song-editor-form {
  grid-template-columns: 110px minmax(190px, 0.8fr) minmax(260px, 1.4fr);
}

.song-chart-fieldset {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(18, 168, 244, 0.08), rgba(255, 180, 46, 0.04)),
    rgba(8, 17, 28, 0.78);
}

.song-chart-fieldset legend {
  padding: 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.song-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.song-chart-head p {
  margin: 0;
  color: #d8ecff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.song-chart-materials {
  display: grid;
  gap: 14px;
}

.song-chart-material {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(18, 168, 244, 0.32);
  border-radius: 10px;
  background: rgba(3, 8, 14, 0.44);
}

.material-row-actions {
  display: flex;
  justify-content: flex-end;
}

.material-row-actions .danger-button {
  min-height: 42px;
}

.song-effects-panel,
.song-save-bar {
  grid-column: 1 / -1;
}

.song-effects-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(18, 168, 244, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(18, 168, 244, 0.08), rgba(255, 61, 105, 0.04)),
    rgba(7, 12, 19, 0.72);
}

.song-effects-panel .repeater-head {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(147, 173, 199, 0.22);
}

.song-effects-panel .repeater-head p {
  margin: 4px 0 0;
  color: #b8cbe0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.song-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 168, 244, 0.48);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(18, 168, 244, 0.16), rgba(255, 180, 46, 0.07)),
    rgba(10, 17, 28, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.song-save-bar strong,
.song-save-bar span {
  display: block;
}

.song-save-bar strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.song-save-bar span {
  margin-top: 4px;
  color: #d8ecff;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.song-save-bar .primary-button {
  min-width: 190px;
  min-height: 52px;
}

.chart-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(260px, 1.45fr);
  gap: 12px;
}

.chart-form-grid textarea {
  min-height: 260px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.song-chart-fieldset .span-2 {
  grid-column: 1 / -1;
}

.song-chart-fieldset input[type="file"] {
  width: 100%;
}

.song-chart-note {
  border-left-color: var(--accent) !important;
  background: rgba(18, 168, 244, 0.1) !important;
  color: var(--ink) !important;
}

.charts-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.chart-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.chart-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(18, 168, 244, 0.08), rgba(255, 180, 46, 0.03)),
    rgba(9, 17, 28, 0.9);
  color: var(--ink);
  text-align: left;
  align-content: center;
}

.chart-list-item:hover,
.chart-list-item.is-selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(18, 168, 244, 0.16), rgba(193, 39, 63, 0.14));
}

.chart-list-item strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.15;
}

.chart-list-item span,
.chart-list-item small {
  color: #c4d7ec;
  font-weight: 900;
}

.chart-list-item small {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.chart-preview {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.chart-print-sheet {
  display: grid;
  gap: 16px;
  min-height: 620px;
  padding: 28px;
  background: #ffffff;
  color: #05080d;
}

.chart-preview-head {
  display: grid;
  gap: 5px;
  padding-bottom: 16px;
  border-bottom: 4px solid #05080d;
}

.chart-preview-head span {
  color: #0a84d6;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-preview-head h3 {
  margin: 0;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.95;
  text-transform: uppercase;
}

.chart-preview-head p,
.chart-preview-head strong {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.chart-file-link {
  justify-self: start;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.chart-content {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 800;
}

.setlist-grid {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 12px 2px 0;
  scrollbar-gutter: stable;
}

.song-pool {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.pool-song {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #b8c5d4;
  border-radius: 8px;
  background: #ffffff;
  color: #101820;
}

.pool-song:hover {
  border-color: var(--accent-hover);
  background: #f4fbfa;
  box-shadow: 0 8px 22px rgba(8, 76, 69, 0.18);
}

.pool-song strong,
.pool-song span,
.pool-song small {
  display: block;
}

.pool-song strong {
  font-size: 15px;
  line-height: 1.12;
}

.pool-song span {
  margin-top: 3px;
  color: #4c5b70;
  font-size: 13px;
  font-weight: 900;
}

.pool-song small {
  margin-top: 4px;
  color: #063f3a;
  font-weight: 900;
}

.pool-song button {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.pool-song button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.entry-select {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.entry-select select {
  min-height: 34px;
  border-radius: 7px;
}

.setlist-entry-view {
  width: min(220px, 100%);
  margin: 8px 0 12px;
}

.pool-song button:disabled,
.pool-song.is-added button {
  cursor: default;
  border-color: #8d9bad;
  background: #dfe5ec;
  color: #263445;
}

.pool-song.is-added {
  border-color: #c1ccd9;
  background: #f2f5f8;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.song-card {
  display: grid;
  grid-template-columns: 58px minmax(150px, 0.82fr) minmax(230px, 1.18fr) 58px;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid #aebccd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.song-card:hover {
  border-color: var(--accent-hover);
  background: #fbfefd;
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.18);
}

.song-card.dragging {
  opacity: 0.55;
}

.song-number {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
}

.song-main {
  min-width: 0;
}

.song-main h3 {
  margin: 0;
  color: #101820;
  font-size: clamp(18px, 2.05vw, 26px);
  line-height: 0.98;
}

.song-main p {
  margin: 5px 0 8px;
  color: #4c5b70;
  font-weight: 900;
}

.song-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.song-meta span,
.song-meta strong {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #b8c5d4;
  border-radius: 999px;
  background: #ffffff;
  color: #101820;
  font-size: 13px;
  font-weight: 900;
}

.song-meta strong {
  border-color: #e29a94;
  background: var(--warning-soft);
  color: #8d1c13;
}

.entry-badge {
  border-color: var(--gold) !important;
  background: var(--gold-soft) !important;
  color: #513a00 !important;
}

.entry-callout {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 8px;
  padding: 0 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #513a00;
  font-size: 13px;
  font-weight: 900;
}

.total-time {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  white-space: nowrap;
}

.intro-note {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: var(--gold-soft);
  color: #513a00;
  font-size: 13px;
  font-weight: 900;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-transform: none;
}

.checkbox-field input {
  width: 18px;
  min-height: 18px;
}

.pedal-lines {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.pedal-lines span {
  display: block;
  padding: 7px 9px;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  background: #d8efeb;
  color: #06342f;
  font-size: 14px;
  font-weight: 800;
}

.pedal-lines b {
  color: #101820;
}

.move-actions {
  display: grid;
  gap: 5px;
}

.move-actions button {
  width: 100%;
  min-height: 32px;
  padding: 0 6px;
  font-size: 11px;
  color: #101820;
}

.move-actions [data-remove-song]:hover {
  border-color: var(--warning-hover);
  background: var(--warning-hover);
  color: #ffffff;
}

.repeater,
.library-list {
  margin-top: 14px;
}

.repeater {
  padding: 18px;
}

.repeater-head,
.library-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.repeater-head {
  margin-bottom: 12px;
}

.repeater-head h3 {
  margin: 0;
  font-size: 20px;
}

.effect-row {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr 44px;
  gap: 8px;
  margin-top: 8px;
}

.effect-row [data-effect-config] {
  color: var(--ink);
  font-weight: 900;
}

.effect-row button,
.library-params button,
.library-actions [data-remove-config] {
  color: var(--warning);
}

.effect-row button:hover,
.library-params button:hover,
.library-actions [data-remove-config]:hover {
  border-color: var(--warning-hover);
  background: var(--warning-hover);
  color: #ffffff;
}

.library-config-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
}

.library-list,
.library-detail-slot {
  height: min(640px, calc(100vh - 170px));
  max-height: 640px;
  min-height: 420px;
  padding: 14px 8px 14px 14px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 252, 0.94));
  box-shadow: var(--shadow);
}

.library-list {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.library-detail-slot {
  overflow-y: auto;
  overflow-x: hidden;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(320px, 1.25fr) minmax(220px, 0.8fr);
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.category-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.category-form button {
  width: 100%;
}

.category-edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-control {
  min-width: 0;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
}

.category-chip:hover,
.category-chip.is-active {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.library-card,
.library-card-proxy {
  padding: 18px;
}

.library-card,
.library-card-proxy {
  display: grid;
  gap: 16px;
}

.library-card:not(.is-open),
.library-card-proxy {
  padding: 10px;
}

.library-card-proxy {
  border: 1px solid var(--accent-hover);
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

.library-card.is-open {
  align-self: start;
  padding: 10px;
}

.library-card:not(.is-open) .library-card-head,
.library-card:not(.is-open) .library-params,
.library-card:not(.is-open) .pedal-settings,
.library-card:not(.is-open) .library-actions,
.library-card:not(.is-open) .library-readonly {
  display: none;
}

.library-detail-slot .library-card > .library-summary {
  display: none;
}

.library-card.is-open:not(.is-editing) .library-card-head,
.library-card.is-open:not(.is-editing) .library-params,
.library-card.is-open:not(.is-editing) .pedal-settings,
.library-card.is-open:not(.is-editing) .library-actions {
  display: none;
}

.library-card.is-editing .library-readonly {
  display: none;
}

.library-card.is-open.is-editing .library-card-head,
.library-card.is-open.is-editing .library-params,
.library-card.is-open.is-editing .pedal-settings,
.library-card.is-open.is-editing .library-actions {
  display: grid;
}

.library-card:not(.is-open).is-editing .library-card-head,
.library-card:not(.is-open).is-editing .library-params,
.library-card:not(.is-open).is-editing .pedal-settings,
.library-card:not(.is-open).is-editing .library-actions {
  display: none;
}

.library-readonly {
  display: grid;
  gap: 16px;
}

.readonly-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.readonly-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.readonly-media {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1.15;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
}

.readonly-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.readonly-media.is-empty {
  background: linear-gradient(135deg, #101820, #0d7c72);
}

.readonly-hero span {
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.readonly-hero h4 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.readonly-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.readonly-param-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.readonly-section-title {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-top: 4px;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.readonly-param-grid span {
  display: grid;
  grid-template-columns: minmax(110px, 0.65fr) minmax(0, 1fr);
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.readonly-param-grid b {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #101820;
  color: #ffffff;
  text-transform: uppercase;
}

.readonly-param-grid i {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.library-summary {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.library-summary:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

.summary-media {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  justify-self: start;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  overflow: hidden;
}

.summary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-media.is-empty {
  background: linear-gradient(135deg, #101820, #0d7c72);
}

.library-summary strong,
.library-summary small {
  display: block;
  min-width: 0;
}

.library-summary strong {
  font-size: 18px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.library-summary small {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.library-summary em {
  grid-column: 2;
  color: var(--accent-ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.library-card.is-open .library-summary {
  grid-template-columns: 78px minmax(0, 1fr) auto;
}

.library-card.is-open .library-summary em {
  grid-column: auto;
}

.library-card-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
  margin-bottom: 12px;
}

.library-params {
  display: grid;
  gap: 8px;
}

.pedal-settings {
  display: grid;
  gap: 12px;
}

.pedal-setting {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(65, 185, 255, 0.24);
  border-radius: 8px;
  background: rgba(3, 8, 16, 0.42);
}

.pedal-setting-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto 38px;
  gap: 8px;
  align-items: end;
}

.pedal-setting-head > button {
  min-height: 44px;
  padding: 0 12px;
}

.library-params div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(90px, 1fr) auto 38px;
  gap: 6px;
}

.library-params input:first-child {
  background: #101820;
  border-color: #101820;
  color: #ffffff;
  text-transform: uppercase;
}

.library-actions {
  margin-top: 12px;
}

.library-actions button {
  padding: 0 12px;
}

.readonly-setting-stack {
  display: grid;
  gap: 12px;
}

.readonly-setting-stack section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(65, 185, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.readonly-setting-stack section > strong {
  color: var(--cream);
  font-size: 18px;
  text-transform: uppercase;
}

.readonly-setting-stack section > em {
  color: var(--accent-gold);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.readonly-print-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(6, 16, 29, 0.76);
}

.readonly-print-row b,
.readonly-print-row i {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px 14px;
  color: var(--cream);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.readonly-print-row b {
  background: #03070d;
  color: var(--accent-gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.readonly-print-row i {
  overflow-wrap: anywhere;
}

.library-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.library-mode-tabs button {
  min-height: 48px;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}

.library-mode-tabs button:hover,
.library-mode-tabs button.is-active {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.library-view {
  display: none;
}

.library-view.is-active {
  display: grid;
  gap: 14px;
}

.compact-heading {
  margin-top: 0;
}

.compact-heading h3 {
  margin: 0;
  font-size: 22px;
}

.library-editor,
.nested-editor {
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.library-editor {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.nested-editor {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.96));
}

.inline-editor {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.studio-grid {
  grid-template-columns: minmax(180px, 1.15fr) minmax(120px, 0.75fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.soft-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.photo-rows,
.amp-config-rows,
.amp-param-rows {
  display: grid;
  gap: 8px;
}

.photo-row,
.amp-param-row,
.amp-config-head {
  display: grid;
  gap: 8px;
}

.photo-row {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.65fr) 44px;
}

.photo-row:has(.featured-photo-check) {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.65fr) minmax(150px, auto) 44px;
}

.photo-file-status {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-guidance {
  display: block;
  margin-top: 6px;
  color: #b9c8d8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.photo-upload-guidance {
  grid-column: 1 / -1;
  margin-top: -2px;
}

.featured-photo-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.featured-photo-check input {
  width: 18px;
  min-height: 18px;
}

.amp-param-row {
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 1fr) 44px;
}

.amp-config-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.amp-config-head {
  grid-template-columns: minmax(0, 1fr) 44px;
}

.photo-row button,
.amp-param-row button,
.amp-config-head button {
  color: var(--warning);
}

.photo-row button:hover,
.amp-param-row button:hover,
.amp-config-head button:hover {
  border-color: var(--warning-hover);
  background: var(--warning-hover);
  color: #ffffff;
}

.amp-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.amp-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
}

.amp-choice:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 8px 22px rgba(8, 76, 69, 0.14);
}

.amp-choice input {
  width: 18px;
  min-height: 18px;
}

.entity-list,
.entity-detail-slot {
  display: grid;
  align-content: start;
  gap: 14px;
  height: min(640px, calc(100vh - 170px));
  max-height: 640px;
  min-height: 420px;
  overflow: auto;
  padding: 10px 6px 10px 10px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 252, 0.94));
  box-shadow: var(--shadow);
}

#libraryAmps .entity-list,
#libraryAmps .entity-detail-slot {
  height: min(780px, calc(100vh - 118px));
  max-height: 780px;
  min-height: 560px;
}

.entity-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.entity-detail-card {
  display: grid;
  gap: 14px;
}

.entity-card {
  display: grid;
  grid-column: 1;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  padding: 10px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top left, rgba(13, 124, 114, 0.13), transparent 16rem);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.entity-list-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 10px;
  border: 1px solid rgba(167, 179, 194, 0.72);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.entity-list-item:hover,
.entity-list-item.is-selected {
  border-color: var(--accent-hover);
  background: var(--accent-soft);
}

.entity-list-media {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-weight: 900;
  overflow: hidden;
}

.entity-list-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entity-list-media.is-empty {
  background: linear-gradient(135deg, #101820, #0d7c72);
}

.entity-list-item strong,
.entity-list-item small {
  display: block;
}

.entity-list-item strong {
  font-size: 18px;
  line-height: 1.05;
}

.entity-list-item small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 900;
}

.entity-card.is-open {
  grid-column: 2;
  grid-row: 1 / span 80;
  grid-template-columns: 150px minmax(0, 1fr);
  align-self: start;
  padding: 16px;
}

.entity-card:hover {
  border-color: rgba(13, 124, 114, 0.5);
  box-shadow: 0 22px 48px rgba(18, 24, 32, 0.13);
}

.entity-media {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 8px;
  background: #101820;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  overflow: hidden;
}

.entity-card.is-open .entity-media {
  min-height: 150px;
}

.entity-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entity-media.is-empty {
  background:
    linear-gradient(135deg, #101820, #0d7c72);
}

.entity-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.entity-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.entity-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.entity-actions button {
  min-height: 40px;
}

.entity-details {
  display: none;
  gap: 12px;
  padding-top: 4px;
}

.entity-card.is-open .entity-details {
  display: grid;
}

.detail-note {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.show-studio-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(27, 168, 240, 0.38);
  border-radius: 8px;
  background: rgba(18, 168, 244, 0.08);
  color: var(--cream);
}

.show-studio-summary strong {
  color: #ffffff;
  font-size: 16px;
}

.show-studio-summary span,
.show-studio-summary small {
  color: #c9d8e8;
  font-weight: 800;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1.35;
  border-radius: 8px;
  object-fit: cover;
}

.entity-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1;
}

.entity-card.is-open .entity-title h3 {
  font-size: clamp(24px, 3vw, 34px);
}

.entity-title p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.entity-card:not(.is-open) .entity-actions {
  justify-content: flex-start;
}

.entity-card:not(.is-open) .entity-actions .danger-button {
  display: none;
}

.amp-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.amp-settings section {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.amp-settings strong {
  color: var(--accent-ink);
  font-size: 15px;
  text-transform: uppercase;
}

.amp-settings div,
.linked-amps,
.studio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.amp-settings span,
.linked-amps span,
.studio-facts span,
.studio-facts strong {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.amp-settings b {
  margin-right: 4px;
  color: var(--muted);
  text-transform: uppercase;
}

.linked-amps span,
.linked-amps button {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.linked-amps button {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.linked-amps button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #ffffff;
}

.studio-facts .stars {
  background: #fff3c4;
  color: #7a4d00;
  letter-spacing: 1px;
}

.compact-empty {
  min-height: 70px;
  grid-column: 1 / -1;
}

.print-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.print-page-counter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid #101820;
  border-radius: 8px;
  background: #ffffff;
  color: #101820;
  font-weight: 900;
}

.print-mode-toggle {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  text-transform: none;
}

.print-mode-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.print-options {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.print-options .manual-search select {
  border-color: rgba(27, 168, 240, 0.65);
  background: #07111d;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.print-options .manual-search select option {
  background: #07111d;
  color: #ffffff;
}

.print-options .manual-search select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(18, 168, 244, 0.22);
}

.print-font-controls {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.print-font-controls label {
  display: grid;
  gap: 7px;
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-font-controls input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
  cursor: pointer;
}

.print-layout .list-shell {
  grid-template-rows: auto minmax(150px, 280px) auto;
  height: auto;
  min-height: 0;
  align-content: start;
}

.print-layout .show-list {
  min-height: 150px;
  max-height: 280px;
  overflow: auto;
}

.print-option-grid {
  display: grid;
  gap: 9px;
}

.print-option-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  font-weight: 900;
}

.print-option-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.print-sheet {
  display: grid;
  width: min(100%, 210mm);
  min-height: 297mm;
  gap: 10mm;
  padding: 8mm;
  border: 4px solid #000000;
  background: #ffffff;
  color: #000000;
  transform-origin: top left;
}

#printSongs {
  display: grid;
  gap: 8mm;
}

.print-page-break {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.print-page-break::before,
.print-page-break::after {
  content: "";
  height: 2px;
  border-top: 2px dashed rgba(255, 207, 90, 0.75);
}

.print-show {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 7mm 6mm;
  min-height: 277mm;
  padding: 8mm;
  border: 5px solid #000000;
  background: #ffffff;
  color: #000000;
  break-after: page;
  page-break-after: always;
}

.print-show p {
  margin: 0;
  color: #000000;
  font-weight: 900;
  text-transform: uppercase;
}

.print-show h1 {
  margin: 0;
  color: #000000;
  font-size: calc(62px * var(--print-scale));
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.print-show > strong {
  display: grid;
  place-items: center;
  padding: 3mm 5mm;
  background: #000000;
  color: #ffffff;
  font-size: calc(32px * var(--print-scale));
  font-weight: 900;
  white-space: nowrap;
}

.print-summary-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5mm;
}

.print-summary-grid span {
  display: grid;
  gap: 2mm;
  min-height: 33mm;
  padding: 4mm;
  border: 4px solid #000000;
  background: #ffffff;
}

.print-summary-grid span:last-child {
  grid-column: 1 / -1;
  background: #000000;
  color: #ffffff;
}

.print-summary-grid b {
  color: inherit;
  font-size: calc(20px * var(--print-scale));
  text-transform: uppercase;
}

.print-summary-grid strong {
  color: inherit;
  font-size: calc(44px * var(--print-scale));
  line-height: 1;
}

.print-show #printShowNotes {
  grid-column: 1 / -1;
  padding-top: 4mm;
  border-top: 3px solid #000000;
  color: #000000;
  font-size: calc(22px * var(--print-scale));
  line-height: 1.25;
  text-transform: none;
}

.print-song {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4mm;
  min-height: 118mm;
  padding: 4mm;
  border: 5px solid #000000;
  background: #ffffff;
  color: #000000;
  break-inside: avoid;
  page-break-inside: avoid;
}

.print-song-head {
  display: grid;
  grid-template-columns: calc(18mm * var(--print-scale)) minmax(0, 1fr);
  gap: 3.5mm;
  align-items: start;
}

.print-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: calc(18mm * var(--print-scale));
  height: calc(21mm * var(--print-scale));
  min-height: 0;
  background: #000000;
  color: #ffffff;
  font-size: calc(48px * var(--print-scale));
  font-weight: 900;
  line-height: 1;
}

.print-band {
  margin: 0 0 1mm;
  color: #000000;
  font-size: calc(24px * var(--print-scale));
  font-weight: 900;
  text-transform: uppercase;
}

.print-title-block {
  min-height: calc(20mm * var(--print-scale));
  padding: 0 0 1mm;
  border-bottom: 4px solid #000000;
}

.print-body {
  min-width: 0;
}

.print-title-block h2,
.print-body h2 {
  margin: 0;
  color: #000000;
  font-size: calc(82px * var(--print-scale));
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

.print-sheet.is-highlight-name .print-title-block h2 {
  font-size: calc(94px * var(--print-scale));
}

.print-sheet.is-print-simple .print-song {
  min-height: 23mm;
  padding: 3mm;
}

.print-sheet.is-print-simple .print-song-head {
  grid-template-columns: calc(15mm * var(--print-scale)) minmax(0, 1fr);
  align-items: center;
}

.print-sheet.is-print-simple .print-number {
  width: calc(15mm * var(--print-scale));
  height: calc(15mm * var(--print-scale));
  font-size: calc(34px * var(--print-scale));
}

.print-sheet.is-print-simple .print-title-block {
  min-height: 0;
  border-bottom: 0;
}

.print-sheet.is-print-simple .print-title-block h2 {
  font-size: calc(48px * var(--print-scale));
  line-height: 0.95;
}

.print-sheet.is-print-simple .print-body {
  display: none;
}

.print-sheet.is-print-medium .print-song {
  min-height: 56mm;
}

.print-sheet.is-print-medium .print-title-block h2 {
  font-size: calc(68px * var(--print-scale));
}

.print-sheet.is-highlight-tuning .print-meta-tuning,
.print-sheet.is-highlight-duration .print-meta-duration {
  background: #000000;
  color: #ffffff;
  font-size: calc(30px * var(--print-scale));
}

.print-sheet.is-highlight-effects .print-effects th,
.print-sheet.is-highlight-effects .print-effects td {
  font-size: calc(52px * var(--print-scale));
}

.print-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5mm;
  margin: 1mm 0;
}

.print-meta strong {
  padding: 1.6mm 2mm;
  border: 3px solid #000000;
  color: #000000;
  font-size: calc(17px * var(--print-scale));
  font-weight: 900;
  line-height: 1.1;
}

.print-effects {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.print-effects th,
.print-effects td {
  box-sizing: border-box;
  border: 4px solid #000000;
  padding: 3mm 2.6mm;
  text-align: left;
  color: #000000;
  font-size: calc(42px * var(--print-scale));
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: middle;
}

.print-effects th {
  width: 34%;
  background: #000000;
  color: #ffffff;
  font-size: calc(var(--effect-label-size, 42px) * var(--print-scale));
  font-weight: 900;
  text-transform: uppercase;
  white-space: var(--effect-label-wrap, nowrap);
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: var(--effect-label-overflow-wrap, normal);
  word-break: var(--effect-label-word-break, keep-all);
}

.print-effects th::before {
  content: attr(data-effect-label);
  display: block;
  max-width: calc(100% - 1mm);
  color: #ffffff;
  font-size: inherit;
  font-weight: 900;
  line-height: 0.98;
  white-space: var(--effect-label-wrap, normal);
  overflow: hidden;
  overflow-wrap: var(--effect-label-overflow-wrap, normal);
  word-break: var(--effect-label-word-break, keep-all);
  text-shadow: none;
}

.print-effect-label {
  display: none;
}

.print-effects td {
  font-weight: 900;
  text-transform: uppercase;
}

.print-sheet.is-color {
  border-color: #00a8ff;
  background: #f7fbff;
}

.print-sheet.is-color .print-show,
.print-sheet.is-color .print-song {
  border-color: #06243d;
  background: #ffffff;
}

.print-sheet.is-color .print-show > strong,
.print-sheet.is-color .print-number,
.print-sheet.is-color .print-summary-grid span:last-child,
.print-sheet.is-color .print-effects th {
  background: linear-gradient(135deg, #05101c, #006ec7 58%, #00a8ff);
  color: #ffffff;
}

.print-sheet.is-color .print-title-block {
  border-bottom-color: #ff9f2f;
}

.print-sheet.is-color .print-summary-grid span,
.print-sheet.is-color .print-meta strong,
.print-sheet.is-color .print-effects th,
.print-sheet.is-color .print-effects td {
  border-color: #06243d;
}

.print-sheet.is-color .print-meta strong {
  background: #fff3d8;
  color: #101820;
}

.print-sheet.is-color .print-effects td {
  background: #eaf8ff;
}

.print-sheet {
  gap: 6mm;
  padding: 6mm;
  border: 3px solid #0b1f33;
  background: #ffffff;
  box-shadow: none;
}

.print-show {
  grid-template-columns: 1fr;
  gap: 5mm;
  min-height: 285mm;
  padding: 7mm;
  border: 3px solid #0b1f33;
}

.print-show > strong {
  justify-self: start;
  min-width: auto;
  min-height: 0;
  padding: 2mm 4mm;
  background: #0b1f33;
  font-size: calc(22px * var(--print-scale));
}

.print-show h1 {
  max-width: 100%;
  font-size: calc(66px * var(--print-scale));
  line-height: 0.94;
}

.print-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3mm;
}

.print-summary-grid span,
.print-summary-grid span:last-child {
  grid-column: auto;
  min-width: 0;
  min-height: 22mm;
  padding: 3mm;
  border: 3px solid #0b1f33;
  overflow: hidden;
}

.print-summary-grid span:last-child {
  grid-column: span 2;
  background: #0b1f33;
}

.print-summary-grid b {
  font-size: calc(13px * var(--print-scale));
  line-height: 1.05;
}

.print-summary-grid strong {
  align-self: end;
  max-width: 100%;
  font-size: clamp(24px, calc(31px * var(--print-scale)), 36px);
  line-height: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.print-show #printShowNotes {
  min-height: 22mm;
  margin-top: auto;
  padding-top: 3mm;
  border-top: 3px solid #0b1f33;
  font-size: calc(20px * var(--print-scale));
}

.print-song {
  min-height: 122mm;
  padding: 4mm;
  border: 3px solid #0b1f33;
}

.print-song::before {
  display: none;
}

.print-song-head {
  grid-template-columns: calc(16mm * var(--print-scale)) minmax(0, 1fr);
  gap: 3mm;
}

.print-number {
  width: calc(16mm * var(--print-scale));
  height: calc(19mm * var(--print-scale));
  background: #0b1f33;
  font-size: calc(39px * var(--print-scale));
}

.print-title-block {
  min-height: calc(19mm * var(--print-scale));
  padding-bottom: 1.5mm;
  border-bottom: 3px solid #0b1f33;
}

.print-band {
  margin-bottom: 0.6mm;
  font-size: calc(17px * var(--print-scale));
  line-height: 1;
}

.print-title-block h2,
.print-body h2 {
  font-size: calc(72px * var(--print-scale));
  line-height: 0.9;
}

.print-sheet.is-highlight-name .print-title-block h2 {
  font-size: calc(82px * var(--print-scale));
}

.print-body {
  display: grid;
  gap: 2mm;
}

.print-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2mm;
  margin: 0;
}

.print-meta strong {
  display: grid;
  align-items: center;
  min-height: 9mm;
  padding: 1.3mm 1.8mm;
  border: 2px solid #0b1f33;
  font-size: calc(14px * var(--print-scale));
  overflow: hidden;
}

.print-effects th,
.print-effects td {
  border: 2px solid #0b1f33;
  padding: 2mm;
  font-size: calc(34px * var(--print-scale));
}

.print-effects th {
  width: 31%;
  background: #0b1f33;
}

.print-effects td {
  width: 69%;
}

.print-sheet.is-highlight-effects .print-effects th,
.print-sheet.is-highlight-effects .print-effects td {
  font-size: calc(43px * var(--print-scale));
}

.print-sheet.is-print-simple .print-song {
  min-height: 23mm;
  padding: 3mm;
  border-width: 2px;
}

.print-sheet.is-print-simple .print-song-head {
  grid-template-columns: calc(13mm * var(--print-scale)) minmax(0, 1fr);
}

.print-sheet.is-print-simple .print-number {
  width: calc(13mm * var(--print-scale));
  height: calc(13mm * var(--print-scale));
  font-size: calc(28px * var(--print-scale));
}

.print-sheet.is-print-simple .print-title-block {
  min-height: 0;
  border-bottom: 0;
}

.print-sheet.is-print-simple .print-title-block h2 {
  font-size: calc(42px * var(--print-scale));
}

.print-sheet.is-print-medium .print-song {
  min-height: 62mm;
}

.print-sheet.is-print-medium .print-title-block h2 {
  font-size: calc(60px * var(--print-scale));
}

.print-sheet.is-color {
  border-color: #0c5d8d;
  background: #ffffff;
}

.print-sheet.is-color .print-show,
.print-sheet.is-color .print-song {
  border-color: #0c5d8d;
  background: #ffffff;
}

.print-sheet.is-color .print-show > strong,
.print-sheet.is-color .print-number,
.print-sheet.is-color .print-summary-grid span:last-child,
.print-sheet.is-color .print-effects th {
  background: #0077b6;
  color: #ffffff;
}

.print-sheet.is-color .print-title-block {
  border-bottom-color: #ff9f2f;
}

.print-sheet.is-color .print-summary-grid span,
.print-sheet.is-color .print-meta strong,
.print-sheet.is-color .print-effects th,
.print-sheet.is-color .print-effects td {
  border-color: #0c5d8d;
}

.print-sheet.is-color .print-meta strong {
  background: #fff6e6;
}

.print-sheet.is-color .print-effects td {
  background: #eef8ff;
}

.print-sheet {
  gap: 7mm;
  padding: 6mm;
  border: 0;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #000000, #000000) border-box;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
}

.print-show,
.print-song {
  border-width: 3px;
  border-radius: 0;
}

.print-show {
  gap: 6mm;
  min-height: 285mm;
  padding: 7mm;
}

.print-show h1 {
  max-width: 100%;
  font-size: calc(70px * var(--print-scale));
  line-height: 0.92;
}

.print-show > strong {
  align-self: start;
  min-width: 38mm;
  min-height: 18mm;
  padding: 2.5mm 4mm;
  font-size: calc(30px * var(--print-scale));
}

.print-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2.8mm;
}

.print-summary-grid span,
.print-summary-grid span:last-child {
  grid-column: auto;
  min-height: 36mm;
  padding: 3mm;
}

.print-summary-grid b {
  font-size: calc(14px * var(--print-scale));
  line-height: 1.05;
}

.print-summary-grid strong {
  align-self: end;
  font-size: calc(36px * var(--print-scale));
}

.print-show #printShowNotes {
  align-self: end;
  min-height: 24mm;
  padding: 4mm 0 0;
  font-size: calc(20px * var(--print-scale));
}

.print-song {
  position: relative;
  min-height: 127mm;
  padding: 4.5mm;
  overflow: hidden;
}

.print-song::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2mm;
  background: #000000;
}

.print-song-head {
  grid-template-columns: calc(17mm * var(--print-scale)) minmax(0, 1fr);
  gap: 3mm;
  align-items: stretch;
}

.print-number {
  width: calc(17mm * var(--print-scale));
  height: 100%;
  min-height: calc(22mm * var(--print-scale));
  font-size: calc(44px * var(--print-scale));
}

.print-title-block {
  display: grid;
  align-content: start;
  min-height: calc(22mm * var(--print-scale));
  padding-bottom: 2mm;
  border-bottom-width: 3px;
}

.print-band {
  margin-bottom: 0.6mm;
  font-size: calc(18px * var(--print-scale));
  line-height: 1;
}

.print-title-block h2,
.print-body h2 {
  font-size: calc(76px * var(--print-scale));
  line-height: 0.88;
}

.print-sheet.is-highlight-name .print-title-block h2 {
  font-size: calc(88px * var(--print-scale));
}

.print-body {
  display: grid;
  gap: 2mm;
}

.print-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2mm;
  margin: 0;
}

.print-meta strong {
  display: grid;
  align-items: center;
  min-height: 10mm;
  padding: 1.5mm 2mm;
  border-width: 2px;
  font-size: calc(15px * var(--print-scale));
}

.print-effects th,
.print-effects td {
  border-width: 3px;
  padding: 2.3mm 2.2mm;
  font-size: calc(36px * var(--print-scale));
}

.print-effects th {
  width: 30%;
}

.print-effects td {
  width: 70%;
}

.print-sheet.is-highlight-effects .print-effects th,
.print-sheet.is-highlight-effects .print-effects td {
  font-size: calc(46px * var(--print-scale));
}

.print-sheet.is-print-simple {
  gap: 3mm;
}

.print-sheet.is-print-simple .print-song {
  min-height: 24mm;
  padding: 3mm 3mm 3mm 4mm;
  border-width: 2px;
}

.print-sheet.is-print-simple .print-song::before {
  width: 1.4mm;
}

.print-sheet.is-print-simple .print-title-block h2 {
  font-size: calc(44px * var(--print-scale));
}

.print-sheet.is-print-medium .print-song {
  min-height: 67mm;
}

.print-sheet.is-print-medium .print-title-block h2 {
  font-size: calc(64px * var(--print-scale));
}

.print-page-break {
  margin: -1mm 0;
  color: #ffcf5a;
}

.print-sheet.is-color {
  border: 0;
  background:
    linear-gradient(#f8fcff, #f8fcff) padding-box,
    linear-gradient(135deg, #ff9f2f, #00a8ff) border-box;
}

.print-sheet.is-color .print-show,
.print-sheet.is-color .print-song {
  border-color: #0b385c;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
  color: #07111d;
}

.print-sheet.is-color .print-song::before {
  background: linear-gradient(180deg, #ff9f2f, #00a8ff);
}

.print-sheet.is-color .print-show > strong,
.print-sheet.is-color .print-number,
.print-sheet.is-color .print-summary-grid span:last-child,
.print-sheet.is-color .print-effects th {
  background: linear-gradient(135deg, #08101d, #006ec7 58%, #00a8ff);
  color: #ffffff;
}

.print-sheet.is-color .print-summary-grid span {
  background: #ffffff;
}

.print-sheet.is-color .print-title-block {
  border-bottom-color: #ff9f2f;
}

.print-sheet.is-color .print-meta strong {
  background: #fff4dc;
  color: #07111d;
}

.print-sheet.is-color.is-highlight-tuning .print-meta-tuning,
.print-sheet.is-color.is-highlight-duration .print-meta-duration {
  background: linear-gradient(135deg, #08101d, #006ec7);
  color: #ffffff;
}

.print-sheet.is-color .print-effects td {
  background: #eaf8ff;
}

.print-sheet:not(.is-color) .print-number {
  background: #000000;
  color: #ffffff;
  border: 4px solid #000000;
}

#printSongs .print-song:nth-child(2n) {
  break-after: page;
  page-break-after: always;
}

.print-sheet.is-print-simple #printSongs .print-song:nth-child(2n),
.print-sheet.is-print-medium #printSongs .print-song:nth-child(2n) {
  break-after: auto;
  page-break-after: auto;
}

.print-sheet.is-print-simple #printSongs .print-song:nth-child(10n),
.print-sheet.is-print-medium #printSongs .print-song:nth-child(4n) {
  break-after: page;
  page-break-after: always;
}

.print-summary-grid span:last-child {
  grid-column: 1 / -1;
}

.print-summary-grid strong {
  max-width: none;
  font-size: clamp(26px, calc(38px * var(--print-scale)), 42px);
  white-space: nowrap;
  overflow: visible;
}

.print-summary-grid {
  grid-template-columns:
    minmax(23mm, 0.65fr)
    minmax(23mm, 0.65fr)
    minmax(43mm, 1.35fr)
    minmax(32mm, 0.9fr);
  gap: 3mm;
}

.print-summary-grid span {
  min-width: 0;
}

.print-summary-grid span:nth-child(3) {
  min-width: 43mm;
}

.print-summary-grid span:nth-child(4) {
  min-width: 32mm;
}

.print-summary-grid span:last-child {
  display: flex;
  min-height: 25mm;
  align-items: center;
  justify-content: space-between;
  gap: 6mm;
  padding: 4mm 5mm;
}

.print-summary-grid span:last-child strong {
  font-size: clamp(34px, calc(48px * var(--print-scale)), 56px);
}

.print-title-block h2,
.print-body h2,
.print-sheet.is-highlight-name .print-title-block h2,
.print-sheet.is-print-simple .print-title-block h2,
.print-sheet.is-print-medium .print-title-block h2 {
  font-size: var(--print-title-size, calc(82px * var(--print-scale)));
}

.print-meta strong,
.print-sheet.is-highlight-tuning .print-meta-tuning,
.print-sheet.is-highlight-duration .print-meta-duration {
  font-size: var(--print-meta-size, calc(17px * var(--print-scale)));
}

.print-effects th,
.print-effects td,
.print-sheet.is-highlight-effects .print-effects th,
.print-sheet.is-highlight-effects .print-effects td {
  font-size: var(--print-effect-size, calc(42px * var(--print-scale)));
}

.print-effects th,
.print-sheet.is-highlight-effects .print-effects th {
  font-size: min(var(--print-effect-size, calc(42px * var(--print-scale))), calc(var(--effect-label-size, 42px) * var(--print-scale)));
}

@media (max-width: 1180px) {
  .show-layout,
  .setlist-layout,
  .song-admin-layout,
  .admin-layout,
  .print-layout,
  .library-config-layout {
    grid-template-columns: 1fr;
  }

  .setlist-columns,
  .setlist-time-panel,
  .admin-overview-grid,
  .admin-detail-grid,
  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .setlist-action-buttons {
    grid-column: auto;
    grid-row: auto;
  }

  .list-shell,
  .song-sidebar,
  .library-list,
  .library-detail-slot,
  .entity-list,
  .entity-detail-slot {
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .show-list,
  .song-list-column,
  .setlist-grid,
  .song-pool,
  .library-list,
  .library-detail-slot,
  .entity-list,
  .entity-detail-slot {
    max-height: min(560px, 70vh);
  }

  .print-layout .show-list {
    max-height: 320px;
  }
}

@media (max-width: 980px) {
  .show-layout,
  .setlist-layout,
  .song-admin-layout,
  .admin-layout,
  .print-layout,
  .agenda-item,
  .setlist-time-panel,
  .time-summary,
  .setlist-columns,
  .admin-overview-grid,
  .admin-detail-grid,
  .library-toolbar,
  .band-grid,
  .library-config-layout,
  .library-list,
  .pedal-setting-head,
  .entity-list,
  .amp-choice-list,
  .amp-settings {
    grid-template-columns: 1fr;
  }

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

  .share-card,
  .share-card-actions {
    align-items: stretch;
  }

  .share-card {
    flex-direction: column;
  }

  .share-card-actions,
  .setlist-action-buttons {
    grid-template-columns: 1fr;
  }

  .setlist-action-buttons {
    grid-column: auto;
    grid-row: auto;
  }

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

  .print-summary-grid span:nth-child(3),
  .print-summary-grid span:nth-child(4) {
    min-width: 0;
  }

  .print-summary-grid span:last-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .library-card.is-open,
  .entity-card.is-open {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .charts-layout,
  .chart-form-grid {
    grid-template-columns: 1fr;
  }

  .chart-print-sheet {
    padding: 18px;
  }

  .chart-content {
    font-size: 17px;
  }

  .app-header,
  .section-heading,
  .band-context,
  .song-chart-head,
  .repeater-head,
  .library-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .app-logo {
    width: min(100%, 320px);
    max-height: 92px;
  }

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

  .song-card {
    grid-template-columns: 62px 1fr;
  }

  .move-actions,
  .pedal-lines {
    grid-column: 2 / -1;
  }

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

  .show-form,
  .band-form,
  .editor-form,
  .song-editor-form,
  .inline-editor,
  .studio-grid,
  .category-form,
  .library-card-head,
  .print-show,
  .print-summary-grid,
  .print-meta,
  .entity-card {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-4 {
    grid-column: auto;
  }

  .song-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .song-save-bar .primary-button {
    width: 100%;
  }

  .effect-row,
  .band-social-row,
  .band-member-row,
  .song-duration-field,
  .duration-result-card,
  .library-params div,
  .library-summary,
  .photo-row,
  .amp-param-row,
  .amp-config-head {
    grid-template-columns: 1fr;
  }

  .effect-row button,
  .band-social-row button,
  .band-member-row button,
  .duration-result-action button,
  .library-params button,
  .photo-row button,
  .amp-param-row button,
  .amp-config-head button {
    width: 100%;
  }

  .duration-result-action {
    justify-items: stretch;
  }

  .library-mode-tabs {
    grid-template-columns: 1fr;
  }

  .entity-title {
    flex-direction: column;
  }

  .song-profile-card {
    grid-template-columns: 1fr;
  }

  .song-profile-effects {
    grid-column: auto;
  }

  .summary-media {
    width: 100%;
    max-height: 180px;
  }

  .song-sidebar {
    position: static;
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .show-list {
    height: auto;
    max-height: none;
    min-height: auto;
  }

  .agenda-list {
    height: auto;
    min-height: auto;
  }

  .library-list,
  .library-detail-slot,
  .entity-detail-slot,
  .entity-list {
    height: auto;
    max-height: none;
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .workspace,
  .app-header,
  .auth-gate {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-card,
  .band-form,
  .band-repeater,
  .show-form,
  .editor-form,
  .setlist-time-panel,
  .setlist-share-panel,
  .song-profile-card,
  .library-toolbar,
  .library-card,
  .library-card-proxy,
  .entity-card,
  .print-options {
    padding: 14px;
  }

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

  .agenda-heading-actions,
  .header-actions,
  .band-context-actions,
  .song-profile-actions,
  .print-heading-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .agenda-heading-actions label,
  .agenda-heading-actions label:first-child,
  .header-actions > *,
  .band-context-actions > *,
  .song-profile-actions > *,
  .print-heading-actions > * {
    width: 100%;
    min-width: 0;
  }

  .agenda-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .agenda-main strong,
  .agenda-main small,
  .agenda-main em {
    white-space: normal;
  }

  .time-summary {
    grid-template-columns: 1fr;
  }

  .pool-song,
  .song-card,
  .song-profile-card,
  .library-summary,
  .readonly-hero,
  .entity-list-item,
  .entity-title,
  .pedal-setting-head,
  .photo-row,
  .photo-row:has(.featured-photo-check),
  .amp-param-row,
  .amp-choice-list,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .song-card {
    align-items: stretch;
  }

  .song-number,
  .song-profile-number,
  .readonly-media,
  .summary-media,
  .entity-list-media {
    width: 100%;
    min-height: 58px;
  }

  .move-actions,
  .pedal-lines,
  .song-profile-effects {
    grid-column: auto;
  }

  .move-actions,
  .category-edit-actions,
  .setlist-action-buttons,
  .share-card-actions {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }

  .print-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media screen {
  :root {
    --ink: #f8fbff;
    --muted: #a8bac7;
    --paper: #07090d;
    --panel: #10141c;
    --panel-soft: #171d27;
    --line: #2d3847;
    --line-strong: #466176;
    --accent: #00a8ff;
    --accent-hover: #20c8ff;
    --accent-soft: #071f31;
    --accent-ink: #bcecff;
    --gold: #ff9f2f;
    --gold-soft: #2c1a0a;
    --warning: #ff5a72;
    --warning-hover: #ff334f;
    --warning-soft: #2f0c15;
    --focus: #ffb547;
    --shadow: 0 24px 68px rgba(0, 0, 0, 0.58);
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.40);
    color-scheme: dark;
  }

  body {
    background:
      radial-gradient(circle at 14% -8%, rgba(255, 159, 47, 0.17), transparent 28rem),
      radial-gradient(circle at 88% 8%, rgba(0, 168, 255, 0.22), transparent 32rem),
      radial-gradient(circle at 52% 18%, rgba(255, 45, 124, 0.10), transparent 26rem),
      linear-gradient(135deg, #07090d 0%, #111722 48%, #06080c 100%);
    background-attachment: fixed;
    background-color: #07080a;
    background-repeat: no-repeat;
    color: var(--ink);
  }

  .app-header {
    background:
      linear-gradient(135deg, rgba(255, 159, 47, 0.12), transparent 28%),
      linear-gradient(120deg, rgba(0, 168, 255, 0.16), transparent 52%),
      linear-gradient(135deg, #05070a 0%, #101722 48%, #08111b 100%);
    border-bottom-color: var(--accent);
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.62);
  }

  .primary-button {
    border-color: #41cfff;
    background: linear-gradient(180deg, #08b9ff 0%, #0078d6 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 168, 255, 0.28);
  }

  .primary-button:hover,
  .tab.is-active,
  .show-card.is-selected {
    border-color: var(--gold);
    background: linear-gradient(180deg, #19c9ff 0%, #006ec7 100%);
    color: #ffffff;
  }

  .secondary-button,
  .icon-button,
  .tab,
  .repeater-head button,
  .move-actions button,
  .effect-row button,
  .library-actions button,
  .library-params button {
    background: #121923;
    color: #f8fbff;
    border-color: #35485b;
  }

  .danger-button {
    border-color: #7e2638;
    background: #2f0c15;
    color: #ffbdc8;
  }

  .tabs,
  .band-context,
  .band-form,
  .band-repeater,
  .show-form,
  .editor-form,
  .repeater,
  .library-card,
  .catalog-panel,
  .setlist-time-panel,
  .library-toolbar,
  .show-list,
  .registry-list,
  .agenda-list,
  .song-sidebar,
  .library-list,
  .library-detail-slot,
  .entity-list,
  .entity-detail-slot {
    background:
      linear-gradient(180deg, rgba(18, 24, 34, 0.96), rgba(9, 13, 19, 0.96));
    border-color: rgba(65, 207, 255, 0.18);
    box-shadow: var(--shadow-soft);
  }

  .panel.is-active > .section-heading,
  .library-view > .section-heading {
    padding: 2px 2px 0;
  }

  .section-heading h2,
  .compact-heading h3 {
    text-shadow: 0 10px 30px rgba(0, 168, 255, 0.16);
  }

  .band-card,
  .agenda-item,
  .registry-item,
  .show-card,
  .pool-song,
  .song-card,
  .song-profile-card,
  .readonly-hero,
  .library-summary,
  .library-card-proxy,
  .entity-list-item,
  .entity-card,
  .amp-choice,
  .amp-config-row,
  .photo-file-status,
  .photo-row button,
  .amp-param-row button,
  .amp-config-head button,
  .category-chip,
  .checkbox-field,
  input,
  select,
  textarea {
    background: #111823;
    color: #f8fbff;
    border-color: #2f4153;
  }

  .band-card,
  .agenda-item,
  .registry-item,
  .pool-song,
  .song-card,
  .song-profile-card,
  .library-summary,
  .entity-list-item,
  .entity-card {
    box-shadow: inset 0 1px 0 rgba(255, 247, 235, 0.035);
  }

  .inline-band-editor {
    background: #121923;
    border-color: #35485b;
  }

  input,
  select,
  textarea {
    background: #070b11;
    color: #f8fbff;
  }

  .effect-row [data-effect-config] {
    color: #bcecff;
  }

  input:hover,
  select:hover,
  textarea:hover,
  .pool-song:hover,
  .song-card:hover,
  .entity-list-item:hover,
  .entity-list-item.is-selected,
  .registry-item:hover,
  .registry-item.is-selected,
  .show-card:hover,
  .show-card.is-selected,
  .song-list-item:hover,
  .song-list-item.is-selected {
    border-color: var(--gold);
    background: #092337;
    color: #f8fbff;
  }

  .song-list-item {
    background: #11151d;
    border-color: #444957;
    color: #f8fbff;
  }

  .song-list-item strong {
    color: #f8fbff;
  }

  .song-list-item small {
    color: #a8bac7;
  }

  .song-list-number {
    background: #05070b;
    color: #ffffff;
    border: 1px solid #4b5261;
  }

  .song-list-item.is-selected {
    background: #092337;
    border-color: #20c8ff;
  }

  .library-mode-tabs {
    background: #101722;
    border-color: #304458;
  }

  .library-mode-tabs button {
    background: #070b11;
    color: #f8fbff;
    border-color: #263747;
  }

  .library-mode-tabs button:hover,
  .library-mode-tabs button.is-active {
    background: linear-gradient(180deg, #11bfff, #0078d6);
    color: #ffffff;
    border-color: #ff9f2f;
  }

  .band-logo-preview,
  .song-number,
  .song-profile-number,
  .registry-number,
  .agenda-date,
  .entity-list-media,
  .readonly-media,
  .summary-media,
  .print-number {
    background: linear-gradient(135deg, #05070a, #0a2440 55%, #008fe6);
    color: #ffffff;
    border-color: #2b607e;
  }

  .song-list-item:hover .song-list-number,
  .song-list-item.is-selected .song-list-number {
    background: linear-gradient(135deg, #05070a, #0a2440 55%, #008fe6);
    color: #ffffff;
    border: 1px solid #20c8ff;
  }

  .summary-media.is-empty,
  .entity-list-media.is-empty,
  .readonly-media.is-empty {
    background: linear-gradient(135deg, #05070a, #0a2440 52%, #ff2d7c);
  }

  .counter,
  .agenda-badge,
  .total-time,
  .category-chip.is-active,
  .category-chip:hover {
    background: #0078d6;
    color: #ffffff;
    border-color: #20c8ff;
  }

  .song-meta span,
  .song-profile-tags strong,
  .studio-facts span,
  .studio-facts strong,
  .linked-amps span,
  .linked-amps button,
  .time-summary span,
  .pool-song.is-added,
  .pool-song button:disabled,
  .pool-song.is-added button,
  .pedal-lines span,
  .song-profile-effects span,
  .readonly-param-grid span,
  .library-readonly,
  .intro-note,
  .detail-note {
    background: #121923;
    color: #f8fbff;
    border-color: #304458;
  }

  .setlist-time-panel,
  .catalog-panel,
  .library-toolbar {
    background: linear-gradient(180deg, #121923, #090d14);
    border-color: #304458;
  }

  .library-editor,
  .nested-editor {
    background: linear-gradient(180deg, #121923, #090d14);
    border-color: #304458;
    color: #f8fbff;
  }

  .library-editor .compact-heading h3,
  .library-editor .compact-heading p,
  .nested-editor h3,
  .nested-editor label,
  .amp-config-row label,
  .photo-row label {
    color: #f8fbff;
  }

  .library-editor .compact-heading p,
  .nested-editor .soft-note {
    color: #a8bac7;
  }

  .nested-editor {
    box-shadow: inset 0 1px 0 rgba(255, 247, 235, 0.04), var(--shadow-soft);
  }

  .photo-file-status,
  .featured-photo-check,
  .amp-config-row {
    background: #111823;
    border-color: #2f4153;
    color: #f8fbff;
  }

  .amp-param-row input:first-child,
  .amp-config-head input {
    color: #f8fbff;
  }

  .library-toolbar {
    align-items: stretch;
  }

  .category-form,
  .filter-control {
    padding: 12px;
    border: 1px solid #2d3847;
    border-radius: 8px;
    background: #090d14;
  }

  .time-summary strong {
    color: #f8fbff;
  }

  .pool-song span,
  .pool-song small,
  .mini-heading p,
  .catalog-panel p {
    color: #a8bac7;
  }

  .pool-song strong,
  .catalog-panel h3,
  .setlist-time-panel label,
  .library-toolbar label {
    color: #f8fbff;
  }

  .entry-select {
    color: #a8bac7;
  }

  .entry-badge {
    background: #071f31 !important;
    color: #bcecff !important;
    border-color: #20c8ff !important;
  }

  .entry-callout {
    background: #071f31;
    color: #bcecff;
    border-color: #20c8ff;
  }

  .empty-state {
    background: #090d14;
    color: #bcecff;
    border-color: #304458;
  }

  .category-form,
  .filter-control,
  .manual-search {
    color: #a8bac7;
  }

  .song-meta strong {
    border-color: #7e2638;
    background: #2f0c15;
    color: #ffbdc8;
  }

  .pedal-lines span,
  .song-profile-effects span {
    border-left-color: var(--gold);
  }

  .readonly-param-grid b {
    background: #05070a;
    color: #ffb547;
  }

  .readonly-param-grid i {
    color: #f8fbff;
  }

  .print-sheet,
  .print-sheet *,
  .print-show,
  .print-song {
    color: #000000;
  }

  .print-sheet {
    background: #ffffff;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 4mm;
  }

  body {
    background: #ffffff;
  }

  body.printing-chart .app-header,
  body.printing-chart .tabs,
  body.printing-chart .panel:not(#charts),
  body.printing-chart #charts .section-heading,
  body.printing-chart #charts .list-shell,
  body.printing-chart #charts .no-print {
    display: none !important;
  }

  body.printing-chart #charts {
    display: block !important;
  }

  body.printing-chart .charts-layout {
    display: block;
  }

  body.printing-chart .chart-preview {
    min-height: 0;
    border: 0;
  }

  body.printing-chart .chart-print-sheet {
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  body.printing-chart .chart-preview-head h3 {
    font-size: 54px;
  }

  body.printing-chart .chart-content {
    font-size: 18px;
  }

  .app-header,
  .tabs,
  .panel:not(#print),
  .no-print {
    display: none !important;
  }

  .workspace {
    width: 100%;
    padding: 0;
  }

  #print {
    display: block !important;
  }

  .print-sheet {
    width: 100%;
    min-height: auto;
    border: 0;
    padding: 0;
    gap: 0;
  }

  #printSongs {
    display: block;
  }

  .print-show {
    grid-template-columns: 1fr auto;
    gap: 5mm 4mm;
    min-height: 289mm;
    margin-bottom: 0;
    padding: 5mm;
    border-width: 3px;
  }

  .print-show h1 {
    font-size: 48px;
    line-height: 0.92;
  }

  .print-show > strong {
    padding: 2mm 3mm;
    font-size: 22px;
  }

  .print-summary-grid {
    grid-template-columns: 22mm 22mm minmax(38mm, 1.25fr) 30mm;
    gap: 2mm;
  }

  .print-summary-grid span {
    min-height: 24mm;
    padding: 2.5mm;
    border-width: 2px;
    overflow: hidden;
  }

  .print-summary-grid span:last-child {
    grid-column: 1 / -1;
  }

  .print-summary-grid b {
    font-size: 15px;
  }

  .print-summary-grid strong {
    max-width: 100%;
    font-size: 25px;
    white-space: nowrap;
    overflow: visible;
  }

  .print-summary-grid span:last-child {
    display: flex;
    min-height: 22mm;
    align-items: center;
    justify-content: space-between;
    gap: 5mm;
    padding: 3mm 4mm;
  }

  .print-summary-grid span:last-child strong {
    font-size: 34px;
  }

  .print-show #printShowNotes {
    padding-top: 2mm;
    border-top-width: 3px;
    font-size: 16px;
    line-height: 1.15;
  }

  .print-song {
    grid-template-columns: 1fr;
    gap: 1.4mm;
    height: 116mm;
    min-height: 0;
    margin-bottom: 4mm;
    padding: 4mm 4mm 4mm 5mm;
    border-width: 2px;
    overflow: hidden;
  }

  .print-song-head {
    grid-template-columns: 16mm minmax(0, 1fr);
    gap: 3mm;
  }

  .print-sheet:not(.is-color) .print-number {
    background: #000000;
    color: #ffffff;
    border: 4px solid #000000;
  }

  .print-number {
    width: 16mm;
    height: 21mm;
    min-height: 0;
    font-size: 38px;
  }

  .print-band {
    font-size: 18px;
  }

  .print-title-block h2,
  .print-body h2 {
    font-size: var(--print-title-size, 54px);
    line-height: 0.9;
  }

  .print-meta {
    gap: 1.5mm;
    margin: 1mm 0;
  }

  .print-meta strong {
    padding: 1.4mm 1.8mm;
    border-width: 2px;
    font-size: var(--print-meta-size, 15px);
  }

  .print-effects th,
  .print-effects td {
    border-width: 2px;
    padding: 2mm 1.8mm;
    font-size: var(--print-effect-size, 30px);
    line-height: 1;
    overflow: hidden;
    vertical-align: middle;
  }

  .print-sheet:not(.is-color) .print-effects th {
    width: 34%;
    background: #000000;
    color: #ffffff;
  }

  .print-effects th {
    width: 30%;
    font-size: min(var(--print-effect-size, 31px), var(--effect-label-print-size, 31px));
    white-space: var(--effect-label-wrap, nowrap);
    overflow: hidden;
    text-overflow: clip;
    overflow-wrap: var(--effect-label-overflow-wrap, normal);
    word-break: var(--effect-label-word-break, keep-all);
  }

  .print-effects td {
    width: 70%;
  }

  .print-sheet.is-print-simple .print-song {
    padding: 2.4mm 3mm 2.4mm 4mm;
    border-width: 2px;
  }

  .print-sheet.is-print-simple .print-number {
    width: 13mm;
    height: 13mm;
    font-size: 28px;
  }

  .print-sheet.is-print-simple .print-title-block h2 {
    font-size: 36px;
  }

  .print-sheet.is-print-medium .print-song {
    height: auto;
    min-height: 62mm;
  }

  #printSongs .print-song:nth-child(2n) {
    break-after: page;
    page-break-after: always;
  }

  .print-sheet.is-print-simple #printSongs .print-song,
  .print-sheet.is-print-medium #printSongs .print-song {
    height: auto;
  }

  .print-sheet.is-print-simple #printSongs .print-song:nth-child(2n),
  .print-sheet.is-print-medium #printSongs .print-song:nth-child(2n) {
    break-after: auto;
    page-break-after: auto;
  }

  .print-sheet.is-print-simple #printSongs .print-song:nth-child(10n),
  .print-sheet.is-print-medium #printSongs .print-song:nth-child(4n) {
    break-after: page;
    page-break-after: always;
  }

  #printSongs .print-song:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

@media (max-width: 980px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media screen {
  html {
    min-height: 100%;
    scroll-padding-top: 18px;
  }

  body {
    min-height: 100%;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  p,
  h1,
  h2,
  h3,
  h4,
  strong,
  small,
  span,
  button,
  input,
  select,
  textarea {
    overflow-wrap: anywhere;
  }

  input,
  select,
  textarea {
    min-width: 0;
  }

  button,
  .primary-button,
  .secondary-button,
  .danger-button,
  .tab {
    min-height: 44px;
  }

  .app-header,
  .workspace,
  .auth-gate {
    padding-left: max(clamp(14px, 3vw, 36px), env(safe-area-inset-left));
    padding-right: max(clamp(14px, 3vw, 36px), env(safe-area-inset-right));
  }

  .app-header {
    position: relative;
    isolation: isolate;
  }

  .tabs {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .tab {
    white-space: normal;
    line-height: 1.12;
  }

  .section-heading > div,
  .brand-text,
  .band-context > div,
  .song-profile-main,
  .readonly-hero > div,
  .entity-detail-slot,
  .library-detail-slot {
    min-width: 0;
  }

  .list-shell,
  .song-sidebar,
  .library-list,
  .entity-list,
  .chart-list {
    scrollbar-gutter: stable;
  }

  .manual-search input,
  .agenda-heading-actions input,
  .agenda-heading-actions select,
  .song-sidebar input,
  .song-sidebar select,
  .print-options select,
  .print-options input,
  .library-toolbar input,
  .library-toolbar select {
    width: 100%;
  }

  .auth-actions,
  .form-actions,
  .song-heading-actions,
  .setlist-action-buttons,
  .share-card-actions,
  .library-actions,
  .print-heading-actions {
    gap: 10px;
  }

  .chart-list-item,
  .registry-item,
  .song-list-item,
  .pool-song,
  .library-summary,
  .entity-list-item,
  .agenda-item {
    overflow: hidden;
  }

  .chart-preview,
  .print-sheet {
    overflow-x: auto;
  }
}

@media screen and (max-width: 1180px) {
  .app-header {
    align-items: flex-start;
  }

  .brand-lockup {
    flex: 1 1 420px;
  }

  .header-actions {
    flex: 1 1 280px;
  }

  .show-layout,
  .setlist-layout,
  .song-admin-layout,
  .charts-layout,
  .admin-layout,
  .print-layout,
  .library-config-layout {
    gap: 16px;
  }
}

@media screen and (max-width: 820px) {
  .auth-card {
    width: 100%;
    padding: 22px;
  }

  .auth-logo {
    width: min(100%, 430px);
  }

  .app-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    justify-content: stretch;
  }

  .header-actions > * {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .tabs {
    position: sticky;
    top: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(136px, 42vw);
    grid-template-columns: none;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .tab {
    min-height: 46px;
    scroll-snap-align: start;
  }

  .section-heading {
    align-items: stretch;
  }

  .list-shell,
  .song-sidebar,
  .agenda-list,
  .show-list,
  .song-list-column,
  .setlist-grid,
  .song-pool,
  .library-list,
  .entity-list,
  .chart-list {
    max-height: 58vh;
  }

  .song-editor-form,
  .song-chart-fieldset,
  .setlist-share-panel,
  .print-options,
  .library-toolbar {
    gap: 14px;
  }
}

@media screen and (max-width: 640px) {
  .auth-gate {
    align-items: start;
    padding-top: 18px;
  }

  .auth-card {
    gap: 12px;
    padding: 18px;
  }

  .auth-actions,
  .form-actions,
  .app-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-actions button,
  .form-actions button,
  .app-modal-actions button,
  .song-heading-actions button,
  .library-actions button,
  .print-heading-actions button {
    width: 100%;
  }

  .brand-lockup {
    gap: 8px;
  }

  .app-logo {
    width: min(100%, 240px);
    max-height: 74px;
  }

  .workspace {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .tabs {
    grid-auto-columns: minmax(128px, 64vw);
    margin-left: -4px;
    margin-right: -4px;
  }

  .tab {
    padding: 0 10px;
    font-size: 14px;
  }

  .band-context {
    gap: 14px;
    padding: 14px;
  }

  .band-context h2 {
    font-size: 21px;
  }

  .band-context-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .band-context-actions button {
    width: 100%;
    min-height: 42px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .header-actions .user-badge,
  .header-actions .save-state-pill {
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 42px;
  }

  .header-actions button {
    width: 100%;
    min-height: 42px;
  }

  .section-heading h2 {
    font-size: clamp(28px, 10vw, 38px);
  }

  .song-profile-title,
  .song-profile-main h3,
  .readonly-hero h3,
  .chart-preview-head h3 {
    font-size: clamp(30px, 11vw, 48px);
  }

  .setlist-time-panel,
  .time-summary,
  .print-summary-grid,
  .song-editor-form,
  .song-card,
  .song-basic-grid,
  .song-chart-fieldset .chart-form-grid,
  .effect-row,
  .inline-editor,
  .photo-row,
  .photo-row:has(.featured-photo-check),
  .amp-config-head,
  .amp-param-row,
  .setlist-share-form,
  .category-form,
  .category-edit-row,
  .library-toolbar,
  .studio-grid,
  .account-grid {
    grid-template-columns: 1fr !important;
  }

  .list-shell,
  .song-sidebar,
  .agenda-list,
  .show-list,
  .song-list-column,
  .setlist-grid,
  .song-pool,
  .library-list,
  .entity-list,
  .chart-list {
    max-height: 52vh;
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .song-number,
  .registry-number,
  .readonly-media,
  .entity-list-media {
    width: 100%;
    min-height: 56px;
  }

  .song-main h3,
  .song-main p,
  .pedal-lines span,
  .chart-list-item strong,
  .chart-list-item span,
  .chart-list-item small {
    white-space: normal;
  }
}

@media screen and (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 100% 0%, rgba(0, 174, 244, 0.18), transparent 210px),
      linear-gradient(180deg, #070b12 0%, #09111c 42%, #06101a 100%);
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
    border-bottom-width: 2px;
    background:
      linear-gradient(135deg, rgba(6, 12, 22, 0.98), rgba(8, 24, 36, 0.98));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42);
  }

  .brand-lockup {
    align-items: center;
    flex-direction: row;
    min-height: 38px;
  }

  .app-logo {
    width: 168px;
    max-height: 48px;
  }

  .brand-lockup .eyebrow {
    display: none;
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .header-actions::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  .library-mode-tabs::-webkit-scrollbar {
    display: none;
  }

  .header-actions > *,
  .header-actions button,
  .header-actions .user-badge,
  .header-actions .save-state-pill {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  .header-actions .user-badge {
    grid-column: auto;
    max-width: 210px;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .workspace {
    padding-top: 12px;
    padding-bottom: 32px;
  }

  .band-context {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(16, 25, 38, 0.96), rgba(8, 15, 26, 0.96));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  }

  .band-context .eyebrow {
    font-size: 10px;
  }

  .band-context h2 {
    margin: 1px 0 0;
    font-size: 19px;
    line-height: 1.05;
  }

  .band-context-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    width: 100%;
  }

  .band-context-actions > *,
  .band-context-actions button {
    flex: 1 1 0;
    width: auto !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }

  .tabs {
    position: sticky;
    top: 96px;
    z-index: 25;
    display: flex !important;
    gap: 8px;
    margin: 0 -2px 14px;
    padding: 8px 2px;
    border: 0;
    border-radius: 0;
    background: rgba(7, 12, 20, 0.92);
    box-shadow: none;
    overflow-x: auto;
    backdrop-filter: blur(14px);
    scroll-padding-inline: 8px;
  }

  .tab {
    flex: 0 0 auto;
    min-width: auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(48, 84, 110, 0.9);
    border-radius: 999px;
    background: rgba(15, 25, 38, 0.96);
    color: #d8ecff;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
  }

  .tab.is-active,
  .tab:hover {
    border-color: rgba(255, 181, 71, 0.95);
    background: linear-gradient(135deg, #0ea5e9, #22c7f3);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.28);
    transform: none;
  }

  .panel.is-active {
    gap: 14px;
  }

  .panel.is-active > .section-heading,
  .library-view > .section-heading {
    margin-top: 0;
    padding-top: 0;
  }

  .section-heading {
    gap: 10px;
  }

  .section-heading h2 {
    font-size: clamp(27px, 8vw, 34px);
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.35;
  }

  .library-mode-tabs {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 8px;
    border: 0;
    background: transparent;
  }

  .library-mode-tabs button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(48, 84, 110, 0.9);
    border-radius: 999px;
    background: rgba(15, 25, 38, 0.96);
    color: #d8ecff;
    font-size: 13px;
    white-space: nowrap;
  }

  .library-mode-tabs button.is-active,
  .library-mode-tabs button:hover {
    border-color: rgba(255, 181, 71, 0.95);
    background: linear-gradient(135deg, #0ea5e9, #22c7f3);
    color: #ffffff;
  }

  .list-shell,
  .song-sidebar,
  .agenda-list,
  .show-list,
  .song-list-column,
  .setlist-grid,
  .song-pool,
  .library-list,
  .entity-list,
  .chart-list {
    max-height: 46vh;
  }
}

@media screen and (max-width: 390px) {
  .app-logo {
    width: 148px;
  }

  .tabs {
    top: 92px;
  }

  .tab,
  .library-mode-tabs button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 700px) {
  .song-admin-layout {
    gap: 12px;
  }

  .song-sidebar {
    position: static;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    min-height: min(62vh, 560px);
    height: min(62vh, 560px);
    max-height: none;
    padding: 12px;
  }

  .song-sidebar label,
  .song-sidebar .manual-search {
    gap: 6px;
  }

  .song-sidebar input,
  .song-sidebar select {
    min-height: 42px;
  }

  .song-list-column {
    min-height: 240px;
    max-height: none;
  }

  .song-list-item {
    min-height: 58px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 7px;
  }

  .song-list-number {
    width: 40px;
    font-size: 16px;
  }

  .song-list-main strong {
    font-size: 16px;
  }

  .song-list-main small {
    margin-top: 3px;
    font-size: 11px;
  }

  .song-profile-card {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
  }

  .song-profile-number {
    width: 54px !important;
    min-height: 54px !important;
    aspect-ratio: 1;
    font-size: 22px;
  }

  .song-profile-main h3 {
    margin: 4px 0 8px;
    font-size: clamp(30px, 9vw, 42px);
  }

  .song-profile-main span {
    font-size: 13px;
  }

  .song-profile-tags strong {
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
  }

  .song-profile-actions,
  .song-profile-effects {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 390px) {
  .song-sidebar {
    min-height: 64vh;
    height: 64vh;
  }

  .song-profile-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .song-profile-number {
    width: 48px !important;
    min-height: 48px !important;
    font-size: 20px;
  }
}
