/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --page-bg: #f7f4ee;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --text: #221f1c;
  --muted: #70685d;
  --line: #d9d0c2;
  --link: #284f8f;
  --link-hover: #163762;
  --accent: #0f766e;
  --danger: #9f1d20;
  --shadow: 0 18px 48px rgba(40, 34, 26, 0.1);

  --note-intro-bg: #fff4c2;
  --note-intro-border: #d8a10f;
  --note-prep-bg: var(--note-intro-bg);
  --note-prep-border: var(--note-intro-border);
  --note-finish-bg: #ffe2d4;
  --note-finish-border: #cf6f45;
  --note-next-bg: #e9f7df;
  --note-next-border: #669f41;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
}

.session-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-end;
}

.session-links form {
  margin: 0;
}

.landing-copy {
  max-width: 48rem;
  font-size: 1.3rem;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.home-logo {
  width: 52px;
  height: 52px;
  border: 2px solid var(--text);
  border-radius: 12px;
  background: white;
  padding: 5px;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(22px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.7em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  letter-spacing: 0;
}

h2 {
  margin-top: 1.4em;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

table {
  width: 100%;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #ebe5dc;
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table-sort-button {
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-transform: inherit;
  cursor: pointer;
}

.table-sort-button:hover {
  background: transparent;
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

tr:last-child td {
  border-bottom: 0;
}

input,
select,
textarea {
  width: min(100%, 36rem);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font: inherit;
}

#clearance {
  max-width: 44rem;
}

#clearance form {
  display: grid;
  gap: 1.65rem;
  width: fit-content;
  margin-top: 1.8rem;
}

#clearance .text-field,
#clearance .password-field {
  display: grid;
  grid-template-columns: 8rem 32rem;
  gap: 1.15rem;
  align-items: center;
}

#clearance label {
  display: block;
  font-weight: 900;
  text-align: right;
}

#clearance input[type="email"],
#clearance input[type="password"] {
  width: 32rem;
  min-height: 48px;
  justify-self: end;
}

#clearance .submit-field,
#clearance .other-links {
  margin-left: 9.15rem;
}

#clearance .submit-field {
  display: flex;
  margin-top: 0.95rem;
}

#clearance .submit-field input[type="submit"] {
  width: 32rem;
  min-width: 32rem;
}

#clearance .other-links {
  margin-top: 0.3rem;
}

input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.45rem;
  accent-color: var(--accent);
}

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

input[type="submit"],
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1px solid var(--text);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

input[type="submit"]:hover,
button:hover,
.button:hover {
  background: #f0ece5;
  color: var(--text);
}

.button--primary {
  background: var(--text);
  color: white;
}

.button--primary:hover {
  background: #3a332d;
  color: white;
}

.button--play {
  border-color: #0b6b2f;
  background: #16a34a;
  color: white;
  font-size: 1.18rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
}

.button.button--play,
button.button--play,
input[type="submit"].button--play {
  border-color: #0b6b2f;
  background: #16a34a;
  color: white;
}

.button--play:hover {
  background: #11823c;
  color: white;
}

.button.button--play:hover,
button.button--play:hover,
input[type="submit"].button--play:hover {
  background: #11823c;
  color: white;
}

.button--small {
  min-height: 36px;
  padding: 0.48rem 0.72rem;
  font-size: 0.92rem;
}

.button--danger {
  border-color: var(--danger);
  color: var(--danger);
}

.button--danger:hover {
  background: var(--danger);
  color: white;
}

.button--print {
  border-color: #8a6500;
  background: #ffd84d;
  color: #111;
  font-weight: 900;
}

.button--print:hover {
  background: #f2c200;
  color: #111;
}

.confirm-dialog {
  width: min(92vw, 28rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(34, 31, 28, 0.42);
}

.confirm-dialog__content {
  padding: 1.4rem;
}

.confirm-dialog h2 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
}

.confirm-dialog p {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.confirm-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.action-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.4rem;
}

.footer-links {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.play-ready-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.4rem;
}

.play-ready-actions .button--play {
  min-width: 9rem;
}

.offline-download {
  display: grid;
  gap: 0.25rem;
}

.offline-download__button {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

input[type="submit"].offline-download__button {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
}

.offline-download__help {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 32px;
}

.site-footer .footer-links {
  justify-content: center;
  padding: 1rem 0 0;
}

.setlist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.setlist-actions--primary {
  margin: 0 0 1.5rem;
}

.setlist-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.setlist-footer-actions .setlist-actions--primary {
  margin: 0;
}

.setlist-actions--secondary {
  margin-left: auto;
}

.setlist-actions--secondary form {
  margin: 0;
}

.setlist-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin: 0.4rem 0;
}

.setlist-notes {
  max-width: 68ch;
  margin: -0.2rem 0 1rem;
  color: var(--muted);
  font-weight: 700;
}

.setlist-summary p {
  margin: 0;
}

.setlist-summary--dates {
  color: var(--muted);
  font-size: 0.96rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.table-actions form {
  margin: 0;
}

.meta-line {
  color: var(--muted);
  font-weight: 700;
}

.play-setup-form {
  display: grid;
  gap: 1rem;
}

.play-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 1rem;
  align-items: end;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.form-field strong,
.instrument-picker legend {
  font-weight: 900;
}

.form-field span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 1.08rem;
}

.display-style-select {
  width: auto;
  min-width: 12rem;
}

.instrument-picker {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  margin-top: 0.6rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  min-height: 32px;
  line-height: 1.2;
}

.song-list {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 1.8rem;
  padding-left: 1.4rem;
  font-size: 1.12rem;
}

.song-detail-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.4rem;
}

.song-detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.24fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.song-detail-list dt {
  font-weight: 900;
}

.song-detail-list dd {
  margin: 0;
  font-weight: 400;
}

.song-note {
  display: block;
  margin: 0.65rem 0;
  padding: 0.85rem 1rem;
  border-left: 8px solid var(--note-border, var(--accent));
  border-radius: 8px;
  background: var(--note-bg, #eef7f5);
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.song-note span {
  font-weight: 400;
}

.song-note--inline {
  display: inline-block;
  margin: 0;
  padding: 0.38rem 0.58rem;
  border-left-width: 5px;
  font-size: 1rem;
}

.song-note--intro {
  --note-bg: var(--note-intro-bg);
  --note-border: var(--note-intro-border);
}

.song-note--prep {
  --note-bg: var(--note-prep-bg);
  --note-border: var(--note-prep-border);
}

.song-note--finish {
  --note-bg: var(--note-finish-bg);
  --note-border: var(--note-finish-border);
}

.song-note--next {
  --note-bg: var(--note-next-bg);
  --note-border: var(--note-next-border);
}

.song-media-placeholder {
  display: grid;
  min-height: 160px;
  place-items: center;
  margin: 1.4rem 0;
  border: 2px dashed var(--line);
  border-radius: 8px;
  background: #faf8f3;
  color: var(--muted);
  font-weight: 800;
}

.song-sheets {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0;
}

.song-sheet-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.song-sheets--thumbs {
  grid-template-columns: repeat(auto-fit, minmax(160px, 220px));
}

.song-sheet-thumb {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.song-sheet-groups {
  display: grid;
  gap: 1.1rem;
  margin: 1rem 0 1.6rem;
}

.song-sheet-group {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.song-sheet-group h3 {
  margin: 0;
  font-size: 1.18rem;
}

.song-sheet-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
}

.song-sheet-row .song-sheet-thumb {
  flex: 0 0 11rem;
  width: 11rem;
  max-height: 14rem;
  object-fit: contain;
}

.alternate-image-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.35rem;
  margin-right: 0.4rem;
  padding: 0 0.35rem;
  border: 1px solid #7a4f00;
  border-radius: 4px;
  background: #fff1a8;
  color: #4f3500;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}

.alternate-image-label {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.inline-form-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(14rem, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: end;
}

.inline-form-grid--compact {
  grid-template-columns: minmax(8rem, 0.35fr);
}

.inline-form-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.compact-input {
  width: 5.5rem;
}

.multi-select {
  min-height: 8.5rem;
}

.compact-select {
  width: min(100%, 18rem);
}

.invitation-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(22rem, 1.25fr);
  gap: 2rem;
  align-items: start;
}

.invite-form,
.email-preview {
  display: grid;
  gap: 1rem;
}

.invite-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}

.invite-form input {
  width: 100%;
}

.invite-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.invite-send-panel {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.email-preview {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.email-preview h2 {
  margin: 0;
}

.email-preview__meta {
  display: flex;
  gap: 0.45rem;
}

.email-preview__body {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.email-preview__body p {
  margin: 0;
}

.invitation-status {
  display: inline-block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.preparation-editor {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.preparation-editor__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.preparation-editor__header h2 {
  margin: 0;
}

.preparation-editor__rows {
  display: grid;
  gap: 0.85rem;
}

.preparation-row {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(18rem, 1fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.preparation-row label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.preparation-row select,
.preparation-row input[type="text"] {
  width: 100%;
}

.preparation-remove-button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d63b35;
  color: white;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.preparation-remove-button:hover {
  background: #a72b27;
}

.sheet-editor {
  display: grid;
  gap: 1.25rem;
  margin: 1.6rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.sheet-editor__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.sheet-editor__header h2 {
  margin: 0;
}

.sheet-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sheet-editor__dialog-field {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
  color: var(--muted);
  font-weight: 900;
}

.sheet-lane {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.sheet-lane--main {
  padding-top: 0;
  border-top: 0;
}

.sheet-lane h3 {
  margin: 0;
  font-size: 1.18rem;
}

.sheet-lane__items {
  display: flex;
  min-height: 9rem;
  gap: 0.85rem;
  align-items: stretch;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
}

.sheet-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.5rem;
  flex: 0 0 11rem;
  min-height: 12rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: grab;
}

.sheet-card:active {
  cursor: grabbing;
}

.sheet-card.is-removed {
  display: none;
}

.sheet-remove-button {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d63b35;
  color: white;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.sheet-remove-button:hover {
  background: #a72b27;
}

.sheet-card__handle {
  justify-self: start;
}

.sheet-card__preview-frame {
  display: grid;
  place-items: center;
  min-height: 8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.sheet-card__preview {
  display: block;
  width: 100%;
  max-height: 8rem;
  object-fit: contain;
}

.next-song {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 2px solid var(--line);
}

.continuous-song {
  padding: 1.8rem 0;
  border-bottom: 2px solid var(--line);
}

.continuous-song:first-of-type {
  padding-top: 0;
}

.continuous-song:last-of-type {
  border-bottom: 0;
}

.link-list p {
  margin-bottom: 0.55rem;
}

.setlist-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 1rem;
  align-items: start;
  margin: 1.5rem 0;
}

.setlist-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  overflow: hidden;
}

.setlist-panel__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #ebe5dc;
  border-bottom: 1px solid var(--line);
}

.setlist-panel__header h2,
.setlist-panel__header p {
  margin: 0;
}

.setlist-panel__header h2 {
  font-size: 1.3rem;
}

.setlist-panel__header p {
  color: var(--muted);
  font-weight: 800;
}

.selected-song-list {
  display: grid;
  gap: 0.7rem;
  min-height: 240px;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.selected-song {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 58px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 8px;
  background: #f8fbfa;
}

.selected-song.is-repeat {
  border-left-color: var(--note-finish-border);
  background: var(--note-finish-bg);
}

.drag-handle {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0;
  cursor: grab;
}

.selected-song__title {
  min-width: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.selected-song__meta {
  min-width: 0;
  color: var(--muted);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.remove-song-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-color: var(--danger);
  color: var(--danger);
  font-size: 1.25rem;
}

.remove-song-button:hover {
  background: var(--danger);
  color: white;
}

.song-library {
  display: grid;
  max-height: 620px;
  overflow: auto;
  padding: 1rem;
  gap: 0.6rem;
}

.song-search {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 1rem 0;
}

.song-search label {
  color: var(--muted);
  font-weight: 900;
}

.library-song {
  display: grid;
  justify-content: stretch;
  min-height: 58px;
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-color: var(--line);
  background: #fbfaf7;
}

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

.library-song span {
  font-weight: 900;
}

.library-song small {
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
}

[style="color: green"] {
  color: #176b35 !important;
  font-weight: 700;
}

[style="color: red"] {
  color: var(--danger) !important;
  font-weight: 700;
}

@media (max-width: 720px) {
  html {
    font-size: 16px;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .home-logo {
    width: 46px;
    height: 46px;
  }

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

  #clearance .text-field,
  #clearance .password-field {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  #clearance form,
  #clearance input[type="email"],
  #clearance input[type="password"],
  #clearance .submit-field input[type="submit"] {
    width: 100%;
  }

  #clearance label {
    text-align: left;
  }

  #clearance .submit-field,
  #clearance .other-links {
    margin-left: 0;
  }

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

  .selected-song__meta {
    grid-column: 2;
  }

  .play-setup-grid,
  .inline-form-grid,
  .invitation-layout,
  .preparation-row,
  .instrument-grid {
    grid-template-columns: 1fr;
  }

  .preparation-remove-button {
    justify-self: start;
  }
}

@media print {
  @page {
    margin: 0.45in;
  }

  html {
    font-size: 11pt;
  }

  body {
    background: white;
    color: black;
  }

  .page-shell {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header,
  .site-footer,
  .print-hidden,
  .setlist-footer-actions,
  [style="color: green"] {
    display: none !important;
  }

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

  h1 {
    margin-bottom: 0.2in;
    font-size: 20pt;
  }

  h2 {
    margin-top: 0.18in;
    font-size: 14pt;
  }

  p {
    margin: 0.08in 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10pt;
  }

  th,
  td {
    padding: 0.06in 0.08in;
    border: 1px solid #777;
    vertical-align: top;
  }

  th {
    background: #eee !important;
    color: black;
  }

  .song-note {
    border: 1px solid #777;
    background: white !important;
    color: black !important;
    box-shadow: none;
  }

  .song-note--inline {
    display: inline-block;
    padding: 0.03in 0.05in;
  }
}
