:root {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9df;
  --soft: #f5f5f7;
  --hot: #e1306c;
  --sun: #fcaf45;
  --violet: #833ab4;
  --blue: #405de6;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(29, 29, 31, 0.08);
  color-scheme: light;
}

.tour-list {
  display: grid;
  gap: 12px;
}

.hotel-database-list {
  display: grid;
  gap: 12px;
}

.hotel-database-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.hotel-database-summary {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto;
  min-height: 64px;
  padding: 12px 14px;
}

.hotel-database-title,
.hotel-database-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotel-database-meta,
.hotel-database-updated {
  color: var(--muted);
  font-size: 12px;
}

.hotel-database-toggle {
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 13px;
}

.hotel-database-editor {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.hotel-database-row:not(.is-open) .hotel-database-editor {
  display: none;
}

.hotel-database-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.hotel-database-grid .wide,
.hotel-database-heading {
  grid-column: 1 / -1;
}

.hotel-database-heading {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 12px;
  margin-top: 8px;
}

.hotel-database-heading::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

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

.hotel-import-action small {
  color: var(--muted);
}

.hotel-import-card {
  max-height: min(760px, calc(100vh - 32px));
  max-width: 720px;
  overflow: auto;
  width: calc(100% - 28px);
}

.hotel-import-results {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.hotel-import-result {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px 12px;
}

.hotel-import-result input {
  height: 18px;
  margin: 2px 0 0;
  width: 18px;
}

.hotel-import-result strong,
.hotel-import-result small {
  display: block;
}

.hotel-import-result small {
  color: var(--muted);
  margin-top: 3px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 700px) {
  .hotel-database-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hotel-database-meta {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hotel-database-grid {
    grid-template-columns: 1fr;
  }

  .hotel-database-grid .wide,
  .hotel-database-heading {
    grid-column: auto;
  }

  .hotel-open-record {
    white-space: nowrap;
  }
}

/* Song Library and detailed setlists */
.song-library-page { max-width: 1180px; }
.song-library-filters { align-items: center; display: grid; gap: 12px; grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto; margin: 18px 0; }
.song-library-filters > span { color: var(--muted); font-size: 13px; font-weight: 750; text-align: right; }
.song-library-list { display: grid; gap: 14px; }
.song-library-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 26px rgba(0,0,0,.045); padding: 18px; }
.song-library-card-head { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) 190px; }
.song-library-card-head > div { display: grid; gap: 5px; }
.song-library-card-head > div > span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.song-library-card-head input { border: 0; font-size: 23px; font-weight: 800; padding: 4px 0; }
.song-library-fields { border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 14px; padding-top: 14px; }
.song-library-fields label { font-size: 11px; }
.song-library-fields .wide { grid-column: span 2; }
.song-updated { color: var(--muted); display: block; margin-top: 12px; text-align: right; }
.setlist-library-toolbar { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; padding: 12px; }
.inline-check { align-items: center; display: inline-flex; flex-direction: row; gap: 8px; margin: 0; }
.inline-check input { width: auto; }
.setlist-total { color: var(--muted); font-size: 13px; font-weight: 750; margin-left: auto; }
.setlist-row { grid-template-columns: auto minmax(0,1fr) auto auto auto; }
.setlist-number { font-weight: 800; min-width: 24px; text-align: right; }
.setlist-row-meta { color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.song-import-card { max-width: 720px; width: min(720px, calc(100vw - 28px)); }
.song-import-list { display: grid; gap: 8px; max-height: min(55vh,520px); overflow: auto; padding: 4px 2px; }
.song-import-row { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; display: grid; gap: 12px; grid-template-columns: auto minmax(0,1fr) auto; padding: 12px 14px; }
.song-import-row input { height: 20px; width: 20px; }
.song-import-row span { display: grid; gap: 3px; }
.song-import-row small,.song-import-row em { color: var(--muted); font-size: 12px; font-style: normal; }
.setlist-export-options { border-top: 1px solid var(--line); display: grid; gap: 10px; padding-top: 14px; }
.setlist-preset-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.setlist-export-checks { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.setlist-export-checks label { align-items: center; display: flex; flex-direction: row; font-size: 12px; gap: 7px; }
.setlist-export-checks input { width: auto; }

@media (max-width: 700px) {
  .song-library-filters,.song-library-card-head { grid-template-columns: 1fr; }
  .song-library-filters > span { text-align: left; }
  .song-library-fields { grid-template-columns: 1fr 1fr; }
  .song-library-fields .wide { grid-column: 1 / -1; }
  .setlist-row { grid-template-columns: auto minmax(0,1fr) auto auto; }
  .setlist-row-meta { display: none; }
  .setlist-total { margin-left: 0; width: 100%; }
}

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

.rdw-plate-row .carpool-rdw-lookup {
  min-height: 44px;
  white-space: nowrap;
}

.ground-ride-grid input[readonly] {
  background: #f6f6f8;
  color: var(--muted);
}

.ground-capacity-status {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
  padding: 10px 12px;
}

.ground-capacity-status.is-unknown,
.ground-capacity-status.is-loading {
  background: #f3f3f5;
  color: #626269;
}

.ground-capacity-status.is-available,
.ground-capacity-status.is-full {
  background: #e8f7ed;
  color: #176b35;
}

.ground-capacity-status.is-warning {
  background: #fff4d7;
  color: #805b00;
}

.ground-capacity-status.is-over {
  background: #ffebeb;
  color: #a11c1c;
}

@media (max-width: 700px) {
  .rdw-plate-row {
    grid-template-columns: 1fr;
  }

  .rdw-plate-row .carpool-rdw-lookup {
    width: 100%;
  }
}

.tour-matrix-section {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.tour-matrix-scroll {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 12px;
  max-width: 100%;
  overflow: auto;
}

.tour-matrix {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  width: max-content;
}

.tour-matrix th,
.tour-matrix td {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-width: 132px;
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}

.tour-matrix thead th {
  background: var(--soft);
  font-size: 12px;
}

.tour-matrix thead th strong,
.tour-matrix thead th small {
  display: block;
}

.tour-matrix tbody th strong,
.tour-matrix tbody th small {
  display: block;
}

.tour-matrix tbody th small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.tour-matrix thead th small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.tour-matrix th:first-child {
  left: 0;
  min-width: 170px;
  position: sticky;
  text-align: left;
  z-index: 2;
}

.tour-matrix thead th:first-child {
  background: var(--soft);
  z-index: 3;
}

.tour-matrix tr:last-child th,
.tour-matrix tr:last-child td {
  border-bottom: 0;
}

.tour-matrix th:last-child,
.tour-matrix td:last-child {
  border-right: 0;
}

.tour-matrix-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  gap: 5px;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
}

.tour-matrix-status b,
.tour-matrix-status em {
  font-style: normal;
}

.tour-matrix-status.is-yes {
  background: #dcfce7;
  color: #166534;
}

.tour-matrix-status.is-maybe {
  background: #fef3c7;
  color: #92400e;
}

.tour-matrix-status.is-no {
  background: #fee2e2;
  color: #991b1b;
}

.tour-matrix-status.is-pending {
  background: #f1f5f9;
  color: #64748b;
}

.tour-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
}

.tour-summary {
  align-items: center;
  background: #fff;
  border: 0;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.tour-summary:hover {
  background: var(--soft);
}

.tour-summary > span {
  display: grid;
  gap: 3px;
}

.tour-summary > span:last-child {
  justify-items: end;
}

.tour-summary strong {
  font-size: 15px;
}

.tour-summary small {
  color: var(--muted);
  font-size: 12px;
}

.tour-summary b {
  font-size: 12px;
}

.tour-card-body {
  border-top: 1px solid var(--line);
  display: none;
  padding: 18px;
}

.tour-card.is-open .tour-card-body {
  display: block;
}

.tour-card-head,
.tour-actions,
.tour-public-date,
.tour-public-choices {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.tour-card-head h3,
.tour-card h4 {
  margin: 0;
}

.tour-card-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tour-fields,
.tour-editor-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.tour-fields .wide {
  grid-column: 1 / -1;
}

.tour-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.tour-editor-grid > section {
  background: var(--soft);
  border-radius: 14px;
  padding: 14px;
}

.tour-show-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 280px;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.tour-show-options label {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
  width: 100%;
}

.tour-show-options input[type="checkbox"] {
  accent-color: #0a84ff;
  appearance: auto;
  flex: 0 0 18px;
  height: 18px;
  margin: 0;
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.tour-show-options label > span {
  color: var(--ink);
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tour-person-add {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 10px;
}

.tour-person-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tour-person-list > span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 0 6px 0 12px;
}

.tour-person-list > span button {
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  height: 24px;
  padding: 0;
  width: 24px;
}

.tour-availability-public {
  max-width: 780px;
}

.tour-public-dates {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.tour-public-date {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.tour-public-date > div:first-child {
  display: grid;
  gap: 3px;
}

.tour-public-date span {
  color: var(--muted);
  font-size: 13px;
}

.tour-public-choices button {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 38px;
  padding: 0 12px;
}

.tour-public-choices .is-active {
  background: var(--ink);
  color: #fff;
}

@media (max-width: 700px) {
  .tour-card {
    padding: 0;
  }

  .tour-card-body {
    padding: 14px;
  }

  .tour-summary {
    min-height: 68px;
    padding: 12px 14px;
  }

  .tour-card-head,
  .tour-public-date {
    align-items: stretch;
    flex-direction: column;
  }

  .tour-fields,
  .tour-editor-grid {
    grid-template-columns: 1fr;
  }

  .tour-fields .wide {
    grid-column: auto;
  }

  .tour-public-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tour-public-choices button {
    font-size: 11px;
    padding: 0 6px;
  }

  .tour-matrix th,
  .tour-matrix td {
    min-width: 92px;
    padding: 9px 8px;
  }

  .tour-matrix th:first-child {
    min-width: 132px;
  }

  .tour-matrix-status {
    min-width: 30px;
    padding: 0 8px;
  }

  .tour-matrix-status em {
    display: none;
  }
}

.date-polls-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.date-poll-sidebar {
  border-right: 1px solid var(--line);
  background: var(--soft);
  padding: 16px;
}

.date-poll-list {
  display: grid;
  gap: 10px;
  max-height: 64vh;
  overflow: auto;
  padding-top: 12px;
}

.date-poll-list-item {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.date-poll-list-item i {
  display: block;
  border-radius: 999px;
  background: var(--artist-color, #111);
}

.date-poll-list-item strong,
.date-poll-list-item small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-poll-list-item small {
  margin-top: 4px;
  color: var(--muted);
}

.date-poll-list-item.is-active {
  border-color: #111;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.date-poll-editor {
  min-width: 0;
  padding: 22px;
}

.date-poll-editor-head,
.date-poll-actions,
.date-poll-add-row,
.date-option-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-poll-editor-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.date-poll-editor-head h3 {
  margin: 0;
  font-size: 28px;
}

.date-poll-public-link {
  margin-bottom: 18px;
}

.date-poll-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.date-poll-fields .wide {
  grid-column: 1 / -1;
}

.date-poll-section {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.date-options {
  display: grid;
  gap: 10px;
}

.date-option-row {
  display: grid;
  grid-template-columns: 28px minmax(132px, 1.15fr) 92px 92px 42px;
  align-items: center;
}

.date-option-row [data-option-field="location"] {
  grid-column: 2 / span 2;
}

.date-option-row [data-option-field="note"] {
  grid-column: 4 / 5;
}

.date-option-row .icon-remove {
  grid-column: 5;
  grid-row: 1 / span 2;
  align-self: stretch;
  height: auto;
}

.date-option-row strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.date-poll-add-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-bottom: 14px;
}

.date-poll-bottom-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.date-poll-range-box {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) 96px 96px auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.date-poll-range-box strong {
  grid-column: 1 / -1;
  white-space: nowrap;
}

.date-poll-range-box [data-range-location] {
  grid-column: 1 / span 2;
}

.date-poll-range-box [data-range-note] {
  grid-column: 3 / span 2;
}

.date-poll-range-box [data-add-date-range] {
  grid-column: 5;
  grid-row: 2 / span 2;
  align-self: stretch;
}

.date-poll-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.date-poll-person {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.date-poll-person button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}

.date-poll-matrix-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 100%;
}

.date-poll-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.date-poll-matrix th,
.date-poll-matrix td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.date-poll-matrix th:not(:first-child),
.date-poll-matrix td:not(:first-child) {
  min-width: 112px;
}

.date-poll-matrix tbody th {
  min-width: 190px;
}

.date-poll-matrix tbody th strong {
  white-space: nowrap;
}

.date-poll-matrix thead th {
  background: var(--soft);
}

.date-poll-matrix small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.date-poll-answer {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-weight: 800;
  font-size: 12px;
}

.date-poll-answer.is-yes {
  background: #dcfce7;
  color: #15803d;
}

.date-poll-answer.is-maybe {
  background: #fef3c7;
  color: #b45309;
}

.date-poll-answer.is-no {
  background: #fee2e2;
  color: #b91c1c;
}

.date-poll-event-button {
  white-space: nowrap;
}

.date-poll-overview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
}

.date-poll-overview-dialog {
  width: min(96vw, 1400px);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.date-poll-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.date-poll-overview-head h2 {
  margin: 0;
  font-size: 28px;
}

.date-poll-overview-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
}

.date-poll-overview-body .date-poll-matrix {
  min-width: max-content;
}

.date-poll-create-event-dialog {
  width: min(94vw, 560px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.date-poll-create-event-dialog .date-poll-overview-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.date-poll-create-event-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

.date-poll-create-event-body label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.date-poll-create-event-body input {
  color: #111;
  font-size: 18px;
}

.date-poll-create-event-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.date-poll-public-card {
  max-width: 920px;
}

.date-poll-public-card .eyebrow {
  text-align: center;
}

.date-poll-artist-title {
  margin: 0;
  text-align: center;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.date-poll-title-line {
  margin: 6px 0 22px;
  color: var(--ink);
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.date-poll-public-description {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.date-poll-name-block {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.date-poll-name-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.date-poll-name-head > strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.date-poll-clear-name {
  width: 34px;
  min-width: 34px;
  height: 34px;
  font-size: 20px;
  line-height: 1;
}

.date-poll-public-options,
.date-poll-public-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.date-poll-public-option,
.date-poll-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.date-poll-public-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.date-poll-choice-group {
  display: flex;
  gap: 6px;
}

.date-poll-choice-group button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.date-poll-choice-group button.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.date-poll-summary-card {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-weight: 800;
}

.date-poll-summary-card strong {
  color: #111;
}

.date-poll-summary-card > small {
  color: var(--muted);
  font-weight: 800;
}

.date-poll-summary-card > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.date-poll-summary-group {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: var(--soft);
  min-height: 74px;
}

.date-poll-summary-group b {
  color: #111;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.date-poll-summary-group span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 820px) {
  .date-polls-layout {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .date-poll-sidebar {
    border: 0;
    background: transparent;
    padding: 0 0 14px;
  }

  .date-poll-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 10px 0 14px;
  }

  .date-poll-list-item {
    flex: 0 0 min(82vw, 310px);
  }

  .date-poll-editor {
    overflow: hidden;
    padding: 14px 0 110px;
    width: 100%;
  }

  .date-polls-layout,
  .date-poll-editor,
  .date-poll-section,
  .date-options,
  .date-poll-public-link {
    max-width: 100%;
  }

  .date-poll-editor-head,
  .date-poll-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .date-poll-editor-head {
    display: grid;
    gap: 12px;
  }

  .date-poll-editor-head h3 {
    font-size: 22px;
    line-height: 1.05;
  }

  .date-poll-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .date-poll-actions .small-button,
  .date-poll-actions .danger-button {
    width: 100%;
    min-width: 0;
  }

  .date-poll-actions .danger-button {
    grid-column: 1 / -1;
  }

  .date-poll-public-link {
    align-items: stretch;
    overflow: hidden;
  }

  .date-poll-public-link input {
    min-width: 0;
    width: 100%;
  }

  .date-poll-fields,
  .date-option-row,
  .date-poll-add-row,
  .date-poll-range-box {
    grid-template-columns: 1fr;
  }

  .date-poll-fields {
    gap: 10px;
    margin-bottom: 16px;
  }

  .date-poll-section {
    margin-top: 14px;
    padding-top: 14px;
  }

  .date-poll-section .section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .date-poll-bottom-action {
    justify-content: stretch;
  }

  .date-poll-bottom-action .small-button {
    width: 100%;
  }

  .date-option-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
  }

  .date-option-row input,
  .date-poll-range-box input,
  .date-poll-add-row input {
    box-sizing: border-box;
    font-size: 16px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .date-option-row [data-option-field="location"],
  .date-option-row [data-option-field="note"],
  .date-option-row .icon-remove,
  .date-poll-range-box strong,
  .date-poll-range-box [data-range-location],
  .date-poll-range-box [data-range-note],
  .date-poll-range-box [data-add-date-range] {
    grid-column: auto;
    grid-row: auto;
  }

  .date-option-row strong {
    grid-column: 1;
    grid-row: 1 / span 6;
    align-self: start;
    margin-top: 4px;
  }

  .date-option-row input,
  .date-option-row .icon-remove {
    grid-column: 2;
  }

  .date-poll-range-box {
    padding: 12px;
    border-radius: 16px;
  }

  .date-poll-people {
    gap: 6px;
  }

  .date-poll-person {
    max-width: 100%;
  }

  .date-option-row .icon-remove {
    height: 44px;
  }

  .date-poll-overview-modal {
    padding: 10px;
  }

  .date-poll-overview-dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px;
  }

  .date-poll-overview-head {
    padding: 16px;
  }

  .date-poll-overview-head h2 {
    font-size: 22px;
  }

  .date-poll-overview-body {
    padding: 12px;
  }

  .date-poll-public-option,
  .date-poll-summary-card {
    grid-template-columns: 1fr;
  }

  .date-poll-summary-card > div {
    grid-template-columns: 1fr;
  }

  .date-poll-choice-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .date-poll-public-card {
    max-width: 100%;
  }

  .date-poll-public-card .availability-public-logo img {
    max-width: min(72vw, 420px);
  }

  .date-poll-artist-title {
    font-size: clamp(38px, 12vw, 58px);
  }

  .date-poll-title-line {
    font-size: clamp(17px, 5vw, 24px);
    margin-bottom: 18px;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis-weight: none;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

.connection-banner {
  align-items: center;
  background: #c81e1e;
  color: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 10px 28px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.connection-banner strong {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.connection-banner span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
}

.connection-banner button {
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  height: 30px;
  line-height: 1;
  width: 30px;
}

.app-shell.has-connection-warning .topbar {
  top: 44px;
}

.app-page {
  display: none;
}

.app-page.is-active {
  display: grid;
}

.login-view {
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(225, 48, 108, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(252, 175, 69, 0.18), transparent 36%),
    var(--bg);
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.login-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.05;
  margin: 0;
}

.muted,
.hint {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.hint {
  font-size: 12px;
  margin-top: 12px;
}

.form-error {
  color: #c02652;
  font-size: 13px;
  font-weight: 700;
  min-height: 18px;
  margin: 0;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 16px;
  min-height: 38px;
}

.menu-button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  align-content: center;
  gap: 3px;
  height: 38px;
  justify-items: center;
  place-items: center;
  width: 38px;
}

.menu-button span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 16px;
}

.brand-logo {
  display: block;
  height: 28px;
  max-width: 148px;
  object-fit: contain;
}

.brand-logo-button {
  background: transparent;
  border: 0;
  border-radius: 0;
  display: grid;
  padding: 0;
}

.brand h1,
.panel-header h2,
.preview-toolbar h2 {
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.top-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 0;
}

.show-nav-controls {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
}

.show-nav-button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  height: 34px;
  line-height: 1;
  min-height: 0;
  padding: 0;
  width: 34px;
}

.show-nav-button:last-child {
  border-right: 0;
}

.show-nav-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.38;
}

.share-menu-wrap {
  flex: 0 0 auto;
  position: relative;
}

.share-trigger {
  min-width: 84px;
}

.share-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 55px rgba(18, 18, 18, 0.16);
  display: grid;
  gap: 4px;
  min-width: 260px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 42;
}

.share-menu.is-hidden {
  display: none;
}

.choice-modal {
  align-items: center;
  background: rgba(15, 15, 17, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 90;
}

.choice-modal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  max-width: 430px;
  padding: 20px;
  width: min(100%, 430px);
}

.choice-modal-card h3 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0;
}

.choice-modal-card .hint {
  margin: 0;
}

.choice-modal-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 4px;
}

.choice-modal-actions .small-button,
.choice-modal-actions .primary-action,
.choice-modal-card > .ghost-button {
  min-height: 44px;
}

.choice-modal-card > .ghost-button {
  justify-self: stretch;
}

.setlist-preview-modal {
  padding: 22px;
}

.setlist-preview-modal-card {
  gap: 16px;
  max-height: calc(100dvh - 44px);
  max-width: 1040px;
  overflow: auto;
  width: min(100%, 1040px);
}

.setlist-designer-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
}

.setlist-designer-controls {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.setlist-designer-controls .rows {
  max-height: min(46dvh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.share-menu-item {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  display: grid;
  gap: 2px;
  min-height: 50px;
  padding: 9px 10px;
  text-align: left;
}

.share-menu-item:hover,
.share-menu-item:focus {
  background: var(--soft);
}

.share-menu-item strong {
  font-size: 13px;
  line-height: 1.2;
}

.share-menu-item span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.share-menu-item:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.45;
}

.share-menu-item:disabled:hover,
.share-menu-item:disabled:focus {
  background: transparent;
}

.share-menu-divider {
  background: var(--line);
  height: 1px;
  margin: 5px 4px;
}

.side-menu {
  background: rgba(18, 18, 18, 0.18);
  inset: 0;
  position: fixed;
  z-index: 30;
}

.side-menu-inner {
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  padding: 22px;
  position: relative;
  width: min(300px, 86vw);
}

.side-menu-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.side-menu-header img {
  display: block;
  height: 26px;
  max-width: 138px;
  object-fit: contain;
}

.side-menu-close {
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  font-size: 24px;
  height: 38px;
  justify-self: end;
  width: 38px;
}

.side-nav {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
}

.side-nav-heading {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin: 10px 12px 0;
  text-transform: uppercase;
}

.side-nav-item {
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  display: grid;
  gap: 0;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
}

.side-nav-item strong {
  color: var(--ink);
  font-size: 15px;
}

.side-nav-item span {
  color: var(--muted);
  display: none;
  font-size: 12px;
  font-weight: 700;
}

.side-nav-item.is-active,
.side-nav-item:hover {
  background: var(--soft);
}

.side-add-show {
  background: color-mix(in srgb, var(--hot) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--hot) 28%, var(--line));
}

.side-add-show strong {
  color: var(--hot);
}

.side-menu-footer {
  align-self: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.side-menu-footer .side-nav-item {
  position: relative;
  width: 100%;
}

.side-menu-footer label.side-nav-item {
  cursor: pointer;
}

.mobile-bottom-nav {
  display: none;
}

.mobile-show-tabs,
.mobile-quick-share {
  display: none;
}

.ghost-button,
.danger-button,
.primary-button,
.small-button,
.icon-button,
.ghost-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 0 14px;
}

.ghost-button,
.danger-button,
.small-button,
.icon-button,
.ghost-link {
  background: var(--panel);
  color: var(--ink);
}

.danger-button {
  color: #c02652;
}

.danger-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.55;
}

.ghost-link {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.primary-button {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: 700;
}

.icon-button {
  align-items: center;
  display: grid;
  font-size: 24px;
  font-weight: 300;
  height: 38px;
  line-height: 1;
  padding: 0;
  place-items: center;
  width: 38px;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
}

.compact-top-button {
  font-size: 13px;
  font-weight: 650;
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.file-button {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.file-button input {
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}

.app-version {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  position: fixed;
  right: 10px;
  z-index: 80;
}

.show-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: none;
  min-height: 38px;
  min-width: 210px;
  padding: 0 36px 0 12px;
}

.show-picker-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 2px;
  min-height: 46px;
  flex: 1 1 520px;
  min-width: min(520px, 46vw);
  padding: 7px 14px;
  text-align: left;
}

.show-picker-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.show-picker-button strong {
  display: block;
  font-size: 15px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-show-search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  flex: 1 1 520px;
  gap: 2px;
  min-height: 46px;
  min-width: min(520px, 46vw);
  padding: 7px 14px;
}

.top-show-search span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-show-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  min-height: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.show-calendar-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
}

.show-calendar-button strong {
  font-size: 14px;
}

.calendar-icon {
  border: 2px solid currentColor;
  border-radius: 4px;
  display: inline-block;
  height: 17px;
  position: relative;
  width: 17px;
}

.calendar-icon::before {
  background: currentColor;
  content: "";
  height: 2px;
  left: 2px;
  position: absolute;
  right: 2px;
  top: 4px;
}

.calendar-icon::after {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 5px 0 0 currentColor, 10px 0 0 currentColor, 0 5px 0 currentColor, 5px 5px 0 currentColor, 10px 5px 0 currentColor;
  content: "";
  height: 2px;
  left: 3px;
  position: absolute;
  top: 9px;
  width: 2px;
}

.show-picker-layer {
  background: rgba(18, 18, 18, 0.22);
  inset: 0;
  padding: 74px 20px 20px;
  position: fixed;
  z-index: 28;
}

.show-picker-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  margin-left: auto;
  max-height: calc(100vh - 94px);
  max-width: 680px;
  overflow: auto;
  padding: 18px;
}

.show-picker-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.show-picker-head h2 {
  font-size: 28px;
  line-height: 1;
  margin: 0;
}

.show-picker-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.show-picker-controls select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 650;
  min-height: 38px;
  min-width: 190px;
  padding: 0 34px 0 12px;
}

.show-picker-calendar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
}

.show-picker-weekday {
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  text-align: center;
}

.show-picker-day {
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-height: 54px;
  padding: 7px;
}

.show-picker-day:nth-child(7n) {
  border-right: 0;
}

.show-picker-day.is-outside {
  background: #fbfbfc;
  color: #b7bcc5;
}

.show-picker-day.is-today > span {
  background: var(--ink);
  color: #fff;
}

.show-picker-day > span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.show-picker-day > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.show-picker-day button {
  background: var(--artist-color, var(--hot));
  border: 0;
  border-radius: 999px;
  height: 9px;
  min-height: 0;
  padding: 0;
  width: 9px;
}

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

.show-picker-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 10px;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.show-picker-row:hover {
  background: var(--soft);
}

.show-picker-row i {
  align-self: stretch;
  background: var(--artist-color, var(--hot));
  border-radius: 999px;
  grid-row: 1 / span 2;
}

.show-picker-row strong,
.show-picker-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.show-picker-row strong {
  font-size: 14px;
}

.show-picker-row span {
  color: var(--muted);
  font-size: 12px;
  grid-column: 2;
}

.show-picker-row em {
  background: color-mix(in srgb, var(--artist-color, var(--hot)) 14%, #fff);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 5px 8px;
}

.workspace {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(430px, 0.92fr) minmax(500px, 1.08fr);
  margin: 0 auto;
  max-width: 1500px;
  padding: 24px;
}

.app-shell.is-viewer-mode .workspace {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.app-shell.is-viewer-mode .editor-panel,
.app-shell.is-viewer-mode #homePage .home-grid {
  display: none;
}

.app-shell.is-viewer-mode .preview-panel {
  width: 100%;
}

.app-page:not(.is-active) {
  display: none !important;
}

.page-shell {
  margin: 0 auto;
  max-width: 1040px;
  padding: 32px 24px;
}

.page-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

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

.home-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.05);
  min-width: 0;
  padding: 18px;
}

.home-map-card,
.home-calendar-card {
  margin-top: 18px;
}

.home-map-heading,
.home-calendar-heading {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.home-map-heading .hint {
  margin-top: 4px;
}

.home-map-controls,
.home-calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.home-map-controls select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 650;
  min-height: 38px;
  min-width: 190px;
  padding: 0 34px 0 12px;
}

.home-map-controls .small-button {
  min-height: 38px;
}

.home-map-viewport {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: clamp(300px, 38vw, 520px);
  margin-top: 14px;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

.home-map-viewport.uses-google {
  background: #eaf2f5;
  cursor: grab;
  touch-action: auto;
}

.home-map-viewport.is-unavailable {
  align-items: center;
  display: flex;
  justify-content: center;
}

.home-map-viewport.uses-google {
  font-family: var(--font);
}

.map-placeholder {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.map-placeholder strong {
  color: var(--ink);
  font-size: 18px;
}

.map-placeholder .primary-button {
  margin-top: 8px;
  min-width: 150px;
}

.home-google-popup-card {
  display: grid;
  gap: 3px;
  min-width: 190px;
  padding: 11px 13px;
}

.home-google-popup-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.venue-map-card {
  margin: 16px 0 18px;
}

.venue-map-viewport {
  height: clamp(280px, 34vw, 460px);
}

.venue-google-popup-card {
  max-width: 280px;
}

.home-google-popup-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.home-google-popup-card.is-list {
  gap: 7px;
  min-width: 260px;
}

.home-google-popup-row {
  appearance: none;
  background: #f7f7f8;
  border: 1px solid #ececf1;
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  text-align: left;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.home-google-popup-row:hover {
  background: #ffffff;
  border-color: #d9d9df;
  transform: translateY(-1px);
}

.home-google-popup-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.home-map-viewport .gm-style-iw-c {
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(18, 18, 18, 0.18);
  padding: 0;
}

.home-map-viewport .gm-style-iw-d {
  overflow: auto !important;
}

.home-map-viewport .gm-style-iw-chr {
  display: none;
}

.home-map-viewport.is-dragging {
  cursor: grabbing;
}

.home-simple-map-tiles,
.home-simple-map-pins {
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.home-simple-map-tiles img {
  height: 256px;
  position: absolute;
  width: 256px;
}

.home-simple-map-pins {
  pointer-events: none;
  z-index: 2;
}

.home-simple-map-pin {
  background: transparent;
  border: 0;
  height: 34px;
  min-height: 0;
  overflow: visible;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  transform: translate(-50%, -95%);
  transition: transform 0.16s ease, z-index 0.16s ease;
  width: 34px;
}

.home-simple-map-pin.is-highlighted,
.home-simple-map-pin.has-popup {
  transform: translate(-50%, -95%) scale(1.18);
  z-index: 5;
}

.home-simple-map-pin span {
  background: var(--artist-color, var(--hot));
  border: 3px solid #fff;
  border-radius: 999px 999px 999px 2px;
  box-shadow: 0 8px 20px rgba(18, 18, 18, 0.24);
  display: block;
  height: 25px;
  transform: rotate(-45deg);
  width: 25px;
}

.home-simple-map-pin.is-highlighted span,
.home-simple-map-pin.has-popup span {
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--artist-color, var(--hot)) 18%, transparent), 0 12px 30px rgba(18, 18, 18, 0.3);
}

.home-simple-map-pin span::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  display: block;
  height: 8px;
  margin: 5.5px;
  width: 8px;
}

.home-simple-map-credit {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 6px 0 0 0;
  bottom: 0;
  color: #4b5563;
  font-size: 10px;
  padding: 3px 6px;
  position: absolute;
  right: 0;
  text-decoration: none;
  z-index: 3;
}

.home-simple-map-popup {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 12px;
  bottom: 40px;
  box-shadow: 0 14px 40px rgba(18, 18, 18, 0.18);
  color: var(--ink);
  display: grid;
  gap: 2px;
  left: 50%;
  min-width: 190px;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  transform: translateX(-50%);
  z-index: 6;
}

.home-simple-map-popup::after {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  bottom: -6px;
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
}

.home-simple-map-popup strong {
  font-size: 13px;
  line-height: 1.25;
}

.home-simple-map-popup small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.home-calendar-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.home-calendar-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
  text-align: left;
}

.home-calendar-row:hover {
  background: var(--soft);
}

.home-calendar-row strong,
.home-calendar-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-calendar-row strong {
  font-size: 14px;
}

.home-calendar-row small {
  color: var(--muted);
  font-size: 12px;
}

.home-calendar-row em {
  background: color-mix(in srgb, var(--status-color, var(--hot)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--status-color, var(--hot)) 36%, #fff);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  padding: 5px 8px;
}

.home-calendar-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 14px;
  overflow: hidden;
}

.home-calendar-weekday {
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  text-align: center;
}

.home-calendar-day {
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  cursor: zoom-in;
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 8px;
}

.home-calendar-day:nth-child(7n) {
  border-right: 0;
}

.home-calendar-day.is-outside {
  background: #fbfbfc;
  color: #b7bcc5;
}

.home-calendar-day.is-today > span {
  background: var(--ink);
  color: #fff;
}

.home-calendar-day > span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.home-calendar-day > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.home-calendar-day button {
  background: var(--artist-color, var(--hot));
  border: 0;
  border-radius: 999px;
  height: 10px;
  min-height: 0;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  width: 10px;
}

.home-calendar-day button:hover,
.home-calendar-day button:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--artist-color, var(--hot)) 18%, transparent);
  transform: scale(1.45);
}

.reference-modal-layer {
  align-items: center;
  background: rgba(18, 18, 18, 0.28);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 60;
}

.reference-modal {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(18, 18, 18, 0.2);
  max-height: min(720px, calc(100vh - 40px));
  max-width: 760px;
  overflow: auto;
  padding: 22px;
  width: min(760px, 100%);
}

.reference-modal-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reference-modal-head h2 {
  font-size: 24px;
  line-height: 1.08;
  margin: 0 0 6px;
}

.reference-modal-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

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

.reference-row {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--artist-color, var(--hot));
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 12px 14px;
  text-align: left;
}

.reference-row:hover,
.reference-row:focus {
  border-color: color-mix(in srgb, var(--artist-color, var(--hot)) 58%, var(--line));
  box-shadow: 0 8px 24px rgba(18, 18, 18, 0.08);
}

.reference-row strong {
  font-size: 15px;
}

.reference-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.account-panel {
  max-width: 860px;
}

.account-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.05);
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  padding: 18px;
}

.account-form .wide {
  grid-column: 1 / -1;
}

.account-save-button {
  justify-self: end;
  min-width: 150px;
}

.account-shows-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(18, 18, 18, 0.05);
  margin-top: 18px;
  padding: 18px;
}

.account-show-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.account-show-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
  text-align: left;
}

.account-show-row:hover {
  background: var(--soft);
}

.account-show-row strong,
.account-show-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-show-row strong {
  font-size: 14px;
}

.account-show-row small {
  color: var(--muted);
  font-size: 12px;
}

.account-show-row em {
  background: color-mix(in srgb, var(--artist-color, var(--hot)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--artist-color, var(--hot)) 32%, #fff);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 5px 8px;
}

.attention-card {
  border-color: color-mix(in srgb, var(--sun) 42%, var(--line));
}

.home-show-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.home-active-filter {
  align-items: center;
  background: color-mix(in srgb, var(--status-color, var(--hot)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--status-color, var(--hot)) 34%, #fff);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  margin-top: 12px;
  min-height: 32px;
  padding: 5px 6px 5px 10px;
}

.home-active-filter span {
  background: var(--status-color, var(--hot));
  border-radius: 999px;
  height: 8px;
  width: 8px;
}

.home-active-filter strong {
  font-size: 12px;
}

.home-active-filter button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 22px;
}

.home-status-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.home-status-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 9px 11px;
  text-align: left;
}

.home-status-row:hover:not(:disabled),
.home-status-row.is-active {
  background: color-mix(in srgb, var(--status-color, var(--hot)) 8%, #fff);
  border-color: color-mix(in srgb, var(--status-color, var(--hot)) 45%, #fff);
}

.home-status-row:disabled {
  cursor: default;
  opacity: 0.48;
}

.home-status-row span {
  background: var(--status-color, var(--hot));
  border-radius: 999px;
  display: block;
  height: 10px;
  width: 10px;
}

.home-status-row strong {
  font-size: 13px;
}

.home-status-row em {
  background: color-mix(in srgb, var(--status-color, var(--hot)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--status-color, var(--hot)) 36%, #fff);
  border-radius: 999px;
  font-style: normal;
  font-weight: 650;
  min-width: 30px;
  padding: 4px 8px;
  text-align: center;
}

.home-show-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 10px 12px;
  text-align: left;
}

.home-show-row:hover {
  background: var(--soft);
}

.artist-marker {
  background: var(--artist-color);
  border-radius: 999px;
  display: block;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 30px;
  width: 5px;
}

.home-show-row strong,
.home-show-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-show-row strong {
  font-size: 14px;
}

.home-show-row small {
  color: var(--muted);
  font-size: 12px;
}

.home-show-row em {
  background: color-mix(in srgb, var(--status-color, var(--hot)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--status-color, var(--hot)) 36%, #fff);
  border-radius: 999px;
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 650;
  padding: 5px 8px;
}

.agenda-list,
.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.agenda-header {
  align-items: end;
}

.agenda-header h2 {
  font-size: 34px;
  line-height: 1;
  margin: 0;
}

.agenda-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.agenda-search {
  margin: 16px 0 12px;
}

.agenda-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  overflow: hidden;
}

.agenda-results-header {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  padding: 10px 12px;
  text-transform: uppercase;
}

.agenda-result-row {
  align-items: center;
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.agenda-result-row:hover {
  background: var(--soft);
}

.agenda-result-row strong,
.agenda-result-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-result-row strong {
  font-size: 14px;
}

.agenda-result-row small {
  color: var(--muted);
  font-size: 12px;
  grid-column: 2 / 3;
}

.agenda-result-row em {
  background: color-mix(in srgb, var(--status-color, var(--hot)) 14%, #fff);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 6px 9px;
}

.status-dot {
  background: var(--status-color, var(--hot));
  border-radius: 999px;
  display: block;
  grid-row: 1 / span 2;
  height: 10px;
  width: 10px;
}

.bulk-tools {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0 2px;
  overflow: hidden;
}

.bulk-tools summary {
  align-items: center;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  padding: 0 14px;
}

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

.bulk-tools summary::after {
  color: var(--muted);
  content: "+";
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.bulk-tools[open] summary::after {
  content: "-";
}

.bulk-tools summary span {
  font-weight: 650;
}

.bulk-tools summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.bulk-tools-body {
  background: var(--soft);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.bulk-tools textarea {
  border-radius: 10px;
  min-height: 112px;
  resize: vertical;
}

.public-sheet-link {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-weight: 650;
  margin-top: 14px;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}

.public-sheet-link.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.public-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-list {
  display: grid;
  gap: 0;
}

.public-list-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.9fr) auto;
  padding: 14px 0;
}

.public-list-row:first-child {
  border-top: 1px solid var(--line);
}

.public-list-row span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.public-list-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin-top: 18px;
  overflow: hidden;
}

.artist-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.artist-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
}

.artist-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.artist-chip i {
  background: var(--artist-color);
  border-radius: 999px;
  display: block;
  height: 9px;
  width: 9px;
}

.artist-clear {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  height: 30px;
  margin-top: 10px;
  width: 30px;
}

.calendar-weekday {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  background: #fff;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  cursor: zoom-in;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 136px;
  padding: 9px;
}

.calendar-day:nth-child(7n + 7) {
  border-right: 0;
}

.calendar-day.is-outside {
  background: #fbfbfc;
  color: #b7bcc5;
}

.calendar-day.is-today .calendar-day-number {
  background: var(--ink);
  color: #fff;
}

.calendar-day-number {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  justify-self: start;
  width: 26px;
}

.calendar-events {
  align-content: start;
  display: grid;
  gap: 5px;
  margin-top: 6px;
  min-width: 0;
}

.calendar-event {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  grid-template-columns: 5px minmax(0, 1fr);
  min-height: 34px;
  padding: 5px 6px;
  text-align: left;
}

.calendar-event:hover {
  background: color-mix(in srgb, var(--artist-color, var(--hot)) 8%, #fff);
  border-color: color-mix(in srgb, var(--artist-color, var(--hot)) 30%, var(--line));
}

.calendar-event span {
  background: var(--artist-color, var(--hot));
  border-radius: 999px;
  display: block;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 24px;
  width: 5px;
}

.calendar-event strong,
.calendar-event small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-information-link {
  justify-content: center;
  max-width: 260px;
}

.public-flight-sheet {
  background: #f5f5f7;
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .12);
  margin: 28px auto;
  max-width: 980px;
  overflow: hidden;
}

.flight-page-hero {
  align-items: end;
  background: #171719;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 34px 38px 30px;
}

.flight-page-hero p,
.flight-page-hero span {
  color: rgba(255, 255, 255, .64);
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .05em;
  margin: 0;
}

.flight-page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  margin: 10px 0 12px;
}

.flight-back-link {
  background: #fff;
  border-radius: 999px;
  color: #1d1d1f;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
  padding: 11px 16px;
  text-decoration: none;
}

.flight-page-accent { background: var(--artist-color, var(--hot)); height: 5px; }
.flight-page-list { display: grid; gap: 18px; padding: 26px; }

.flight-detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .055);
  overflow: hidden;
}

.flight-detail-card > header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px 22px;
}

.flight-detail-card header small,
.flight-route-point small,
.flight-extra small,
.flight-general-notes small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.flight-detail-card h2 { font-size: 24px; margin: 4px 0 0; }
.flight-detail-card > header > span { background: color-mix(in srgb, var(--artist-color, var(--hot)) 12%, #fff); border-radius: 999px; color: #1d1d1f; font-size: 13px; font-weight: 800; padding: 9px 12px; }
.flight-detail-card > header > span.is-empty { background: var(--soft); color: var(--muted); }

.flight-route-timeline {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(80px, .8fr) minmax(90px, 1fr);
  padding: 26px 22px;
}
.flight-route-timeline.has-stopover { grid-template-columns: minmax(90px, 1fr) minmax(75px, .75fr) minmax(130px, 1.15fr) minmax(75px, .75fr) minmax(90px, 1fr); }
.flight-route-point { display: grid; gap: 4px; min-width: 0; }
.flight-route-point.is-stopover { background: color-mix(in srgb, var(--artist-color, var(--hot)) 8%, #fff); border: 1px solid color-mix(in srgb, var(--artist-color, var(--hot)) 20%, var(--line)); border-radius: 14px; padding: 12px 14px; text-align: center; }
.flight-route-point.is-end { text-align: right; }
.flight-route-point strong { font-size: clamp(18px, 2.5vw, 24px); line-height: 1.1; overflow-wrap: anywhere; }
.flight-route-point span { color: var(--muted); font-size: 13px; font-weight: 700; }
.flight-route-point em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 750; text-transform: uppercase; }
.flight-route-segment { align-items: center; display: grid; gap: 7px; min-width: 0; padding: 0 10px; text-align: center; }
.flight-route-segment strong { font-size: 12px; overflow-wrap: anywhere; }
.flight-route-segment i { background: var(--artist-color, var(--hot)); display: block; height: 2px; position: relative; }
.flight-route-segment i::after { border-right: 2px solid var(--artist-color, var(--hot)); border-top: 2px solid var(--artist-color, var(--hot)); content: ""; height: 7px; position: absolute; right: 0; top: -3px; transform: rotate(45deg); width: 7px; }

.flight-extra { border-top: 1px solid var(--line); display: grid; gap: 0; }
.flight-extra > div { display: grid; gap: 5px; padding: 14px 22px; }
.flight-extra > div + div { border-top: 1px solid var(--line); }
.flight-extra p,
.flight-general-notes p { line-height: 1.5; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.flight-passengers { border-top: 1px solid var(--line); }
.flight-passenger-heading,
.flight-passenger-row { align-items: center; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr); padding: 13px 22px; }
.flight-passenger-heading { background: var(--soft); }
.flight-passenger-heading strong { align-items: baseline; display: flex; gap: 8px; }
.flight-passenger-heading strong small { color: var(--muted); font-size: 11px; font-weight: 650; }
.flight-passenger-heading span { color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.flight-passenger-row + .flight-passenger-row { border-top: 1px solid var(--line); }
.flight-passenger-row span { color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }

.flight-general-notes { background: #fff; border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 8px; padding: 20px 22px; }

@media (max-width: 700px) {
  .public-flight-sheet { border-radius: 0; margin: 0; }
  .flight-page-hero { align-items: stretch; flex-direction: column; padding: 28px 20px 24px; }
  .flight-back-link { align-self: start; }
  .flight-page-list { padding: 14px; }
  .flight-detail-card > header { align-items: start; flex-direction: column; }
  .flight-route-timeline { grid-template-columns: minmax(72px, 1fr) minmax(54px, .6fr) minmax(72px, 1fr); padding: 20px 14px; }
  .flight-route-timeline.has-stopover { grid-template-columns: minmax(66px, .9fr) minmax(42px, .5fr) minmax(92px, 1.25fr) minmax(42px, .5fr) minmax(66px, .9fr); }
  .flight-route-point.is-stopover { padding: 9px 7px; }
  .flight-route-point strong { font-size: 16px; }
  .flight-route-point span { font-size: 11px; }
  .flight-route-segment { padding-inline: 5px; }
  .flight-route-segment strong { font-size: 10px; }
  .flight-passenger-heading,
  .flight-passenger-row { grid-template-columns: 1fr; gap: 4px; padding-inline: 16px; }
  .flight-passenger-heading span,
  .flight-passenger-row span { text-align: left; }
  .flight-passenger-heading { grid-template-columns: minmax(0, 1fr) auto; }
  .flight-passenger-heading span { text-align: right; }
}

.calendar-event strong {
  grid-column: 2 / -1;
  font-size: 12px;
  line-height: 1.15;
}

.calendar-event small {
  color: var(--muted);
  font-size: 11px;
  grid-column: 2 / -1;
}

.agenda-event-tooltip {
  background: rgba(29, 29, 31, 0.97);
  border: 1px solid color-mix(in srgb, var(--artist-color, var(--hot)) 55%, #ffffff 15%);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: grid;
  gap: 7px;
  left: 0;
  max-width: calc(100vw - 24px);
  opacity: 0;
  padding: 13px 14px 12px 17px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateY(4px) scale(0.98);
  transition: opacity 120ms ease, transform 120ms ease;
  visibility: hidden;
  width: 260px;
  z-index: 10000;
}

.agenda-event-tooltip::before {
  background: var(--artist-color, var(--hot));
  border-radius: 999px;
  bottom: 12px;
  content: "";
  left: 7px;
  position: absolute;
  top: 12px;
  width: 4px;
}

.agenda-event-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.agenda-event-tooltip > strong {
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.agenda-event-tooltip > span {
  align-items: baseline;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.agenda-event-tooltip small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.agenda-event-tooltip em {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.agenda-day-view {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.agenda-day-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 12px 14px;
  text-align: left;
}

.agenda-day-row:hover {
  background: color-mix(in srgb, var(--artist-color, var(--hot)) 8%, #fff);
  border-color: color-mix(in srgb, var(--artist-color, var(--hot)) 26%, var(--line));
}

.agenda-day-row i {
  background: var(--artist-color, var(--hot));
  border-radius: 999px;
  height: 42px;
  width: 8px;
}

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

.agenda-day-row strong {
  font-size: 16px;
}

.agenda-day-row small {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.agenda-day-row em {
  background: var(--soft);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  padding: 7px 10px;
}

.agenda-day-empty {
  margin-top: 0;
}

.editor-panel,
.preview-panel {
  min-width: 0;
}

.editor-panel {
  align-self: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 116px);
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 92px;
}

.panel-header,
.preview-toolbar,
.subsection-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.save-state,
.pill {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.status-pill {
  align-items: center;
  background: color-mix(in srgb, var(--status-color, var(--hot)) 14%, #fff);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  gap: 7px;
  padding: 7px 10px;
  white-space: nowrap;
}

.status-pill::before {
  background: var(--status-color, var(--hot));
  border-radius: 999px;
  content: "";
  display: block;
  height: 8px;
  width: 8px;
}

.share-box {
  background: var(--soft);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 12px;
}

.share-box:hover,
.share-box:focus {
  box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.10);
}

.share-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.share-box input {
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  min-height: 36px;
  pointer-events: none;
}

.segmented {
  background: var(--soft);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 4px;
}

.segmented label {
  align-items: center;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 650;
  gap: 8px;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
}

.segmented label:has(input:checked) {
  background: #fff;
  box-shadow: 0 1px 8px rgba(18, 18, 18, 0.08);
  color: var(--ink);
}

.segmented input {
  height: 14px;
  min-height: 14px;
  width: 14px;
}

.tabs-shell {
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius);
  display: flex;
  gap: 4px;
  margin: 18px 0;
  padding: 4px;
}

.sub-tabs {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  padding: 4px;
}

.sub-tab {
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 42px;
  padding: 8px 10px;
}

.sub-tab.is-active {
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.08);
  color: var(--ink);
}

.sub-tab-panel {
  display: none;
}

.sub-tab-panel.is-active {
  display: block;
}

.tabs {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

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

.tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  flex: 1 0 auto;
  min-width: 82px;
  min-height: 36px;
  padding: 0 12px;
}

.tab-scroll-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 30px;
  font-size: 20px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.tab-scroll-button:hover {
  border-color: #d4d4dc;
  box-shadow: 0 1px 8px rgba(18, 18, 18, 0.08);
}

.tab.is-active {
  background: #fff;
  box-shadow: 0 1px 8px rgba(18, 18, 18, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
}

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

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 42px;
  outline: 0;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  line-height: 1.5;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--hot);
  box-shadow: 0 0 0 4px rgba(225, 48, 108, 0.12);
}

.subsection {
  margin-top: 22px;
}

.subsection-title h3 {
  font-size: 14px;
  margin: 0;
}

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

.rows {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.bottom-add {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.bottom-add .small-button {
  min-width: 112px;
}

.travel-request-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.travel-request-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.travel-request-success-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 120;
}

.travel-request-success-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
  display: grid;
  gap: 12px;
  max-width: 480px;
  padding: 28px;
  text-align: center;
  width: min(100%, 480px);
}

.travel-request-success-card strong {
  color: var(--ink);
  font-size: 28px;
}

.travel-request-success-card span {
  color: var(--muted);
  font-weight: 700;
}

.travel-request-success-card p {
  color: #16a34a;
  font-weight: 800;
  margin: 0;
}

.travel-request-main strong {
  color: var(--ink);
  font-size: 15px;
}

.travel-request-main span,
.travel-request-main small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.preset-bar {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-bottom: 18px;
  padding: 10px;
}

.preset-main,
.preset-actions {
  display: grid;
  gap: 8px;
}

.preset-main {
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(82px, auto));
}

.team-tools-bar .preset-actions {
  border-top: 0;
  padding-top: 0;
}

.preset-actions {
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(130px, auto) minmax(160px, auto);
  justify-content: end;
  padding-top: 10px;
}

.preset-bar select,
.preset-bar .small-button {
  min-height: 38px;
}

.show-copy-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.show-copy-toolbar-group {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.show-copy-disclosure {
  max-width: 620px;
  width: auto;
}

.show-copy-disclosure > summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  list-style: none;
  min-height: 40px;
  padding: 0 14px;
}

.show-copy-disclosure > summary::-webkit-details-marker {
  display: none;
}

.show-copy-disclosure > summary::before {
  color: var(--muted);
  content: "↓";
  font-size: 15px;
}

.show-copy-disclosure[open] {
  width: min(620px, 100%);
}

.show-copy-disclosure[open] > summary {
  background: var(--soft);
  display: flex;
  margin-left: auto;
  width: max-content;
}

.show-copy-panel {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(28, 28, 30, .09);
  display: grid;
  gap: 12px;
  grid-template-areas:
    "source"
    "hint"
    "action";
  grid-template-columns: 1fr;
  margin-top: 8px;
  padding: 16px;
}

.show-copy-panel label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  grid-area: source;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.show-copy-panel select {
  color: var(--ink);
  min-height: 46px;
  text-transform: none;
}

.show-copy-panel p {
  color: var(--muted);
  font-size: 12px;
  grid-area: hint;
  line-height: 1.45;
  margin: 0;
}

.show-copy-panel .show-copy-confirm {
  background: var(--ink);
  color: #fff;
  grid-area: action;
  justify-self: end;
  min-height: 42px;
  min-width: 118px;
  padding-inline: 20px;
}

.show-copy-actions {
  display: flex;
  gap: 8px;
  grid-area: action;
  justify-content: flex-end;
}

.show-copy-actions .small-button {
  min-height: 42px;
}

.travel-party-contact {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 10px;
}

.travel-party-contact label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.travel-party-contact input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0;
  min-height: 38px;
  padding: 0 12px;
  text-transform: none;
}

.inline-check {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 650;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.inline-check input {
  min-height: auto;
  width: auto;
}

.bulk-viewer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
}

.bulk-viewer-card .subsection-title {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bulk-viewer-card .hint {
  margin-top: 4px;
}

.contact-edit-card {
  max-width: 680px;
}

.modal-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h3 {
  margin: 3px 0 0;
}

.ghost-icon-button {
  align-items: center;
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 26px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.ghost-icon-button:hover,
.ghost-icon-button:focus {
  background: #111;
  color: #fff;
  outline: 0;
}

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

.contact-edit-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  text-transform: uppercase;
}

.data-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(95px, 0.8fr) minmax(120px, 1.2fr) 34px;
}

.team-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(95px, 0.75fr) minmax(120px, 1fr) 34px 28px minmax(120px, 0.85fr) 44px 34px;
}

.team-row.is-staff {
  grid-template-columns: minmax(95px, 0.75fr) minmax(120px, 1fr) 34px minmax(120px, 0.85fr) 44px 34px;
}

.team-contact-edit {
  align-self: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  height: 30px;
  width: 30px;
}

.team-contact-edit:hover,
.team-contact-edit:focus {
  border-color: #111;
  color: #111;
  outline: 0;
}

.team-availability-dot {
  align-items: center;
  align-self: center;
  background: #2563eb;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.team-availability-dot[data-response="yes"] {
  background: #16a34a;
}

.team-availability-dot[data-response="no"] {
  background: #dc2626;
}

.team-availability-dot[data-response="maybe"] {
  background: #f59e0b;
}

.team-availability-dot[data-response="empty"] {
  background: #d7dbe3;
  box-shadow: none;
}

.team-availability-dot.is-clickable {
  cursor: pointer;
}

.team-availability-dot.is-clickable:hover,
.team-availability-dot.is-clickable:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
  outline: 0;
}

.availability-preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.availability-preview-block {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd5e1;
  border-radius: 12px;
  min-width: 0;
  padding: 10px 12px;
}

.availability-preview-block.yes {
  border-left-color: #16a34a;
}

.availability-preview-block.maybe {
  border-left-color: #f59e0b;
}

.availability-preview-block.no {
  border-left-color: #dc2626;
}

.availability-preview-block strong {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.availability-preview-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.availability-preview-name {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 6px;
  line-height: 1.15;
  min-height: 26px;
  padding: 4px 9px 4px 7px;
}

.availability-preview-name::before {
  background: #cbd5e1;
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.availability-preview-block.yes .availability-preview-name::before {
  background: #16a34a;
}

.availability-preview-block.maybe .availability-preview-name::before {
  background: #f59e0b;
}

.availability-preview-block.no .availability-preview-name::before {
  background: #dc2626;
}

.availability-preview-name.is-empty {
  color: #9ca3af;
}

.availability-preview-name.is-empty::before {
  display: none;
}

.drag-handle {
  align-items: center;
  background: rgba(110, 110, 115, .10);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  cursor: grab;
  display: inline-flex;
  font-size: 22px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 38px;
  touch-action: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
  width: 38px;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  background: rgba(110, 110, 115, .16);
  border-color: var(--line);
  color: var(--ink);
  outline: 0;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle:disabled {
  color: #c8ccd4;
  cursor: default;
  opacity: .55;
}

.team-row,
.guest-row,
.tech-row,
.tech-link-row,
.setlist-row,
.group-main-row,
.nested-row,
.feature-row,
.template-row,
.artist-row,
.contact-row,
.venue-summary {
  align-items: center;
}

.team-row,
.guest-row,
.tech-row,
.tech-link-row,
.setlist-row,
.group-main-row,
.nested-row,
.feature-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px;
}

.team-row.is-dragging,
.guest-row.is-dragging,
.tech-row.is-dragging,
.tech-link-row.is-dragging,
.setlist-row.is-dragging,
.flight-row.is-dragging,
.hotel-row.is-dragging,
.template-row.is-dragging,
.artist-row.is-dragging,
.contact-row.is-dragging,
.venue-row.is-dragging {
  opacity: 0.45;
}

.ground-ride-card.is-dragging {
  opacity: 0.55;
}

.team-row.is-drop-target,
.guest-row.is-drop-target,
.tech-row.is-drop-target,
.tech-link-row.is-drop-target,
.setlist-row.is-drop-target,
.flight-row.is-drop-target,
.hotel-row.is-drop-target,
.template-row.is-drop-target,
.artist-row.is-drop-target,
.contact-row.is-drop-target,
.venue-row.is-drop-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.12);
}

.ground-ride-card.is-drop-target {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .14);
}

.carpool-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 0.8fr) minmax(160px, 1.2fr) 34px;
}

.ground-transport-list {
  display: grid;
  gap: 12px;
}

.ground-close-all-rides {
  margin-top: 9px;
}

.carpool-row.ground-ride-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: block;
  overflow: hidden;
}

.ground-ride-summary {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 36px minmax(140px, .8fr) minmax(180px, 1.2fr) auto;
  min-height: 62px;
  padding: 12px 14px;
}

.ground-ride-drag {
  background: var(--soft);
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: grab;
  font-size: 20px;
  height: 36px;
  line-height: 1;
  padding: 0;
  width: 36px;
}

.ground-ride-drag:active {
  cursor: grabbing;
}

.ground-ride-title,
.ground-ride-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ground-ride-meta {
  color: var(--muted);
  font-size: 12px;
}

.ground-ride-toggle {
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 13px;
}

.ground-ride-editor {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.ground-ride-card:not(.is-open) .ground-ride-editor {
  display: none;
}

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

.ground-ride-grid .wide {
  grid-column: 1 / -1;
}

.ground-from-stack {
  display: grid;
  gap: 7px;
}

.ground-from-stack .carpool-from-home {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
}

.ground-from-stack .carpool-from-home:not(:disabled) {
  color: var(--ink);
}

.ground-ride-passengers {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
}

.ground-passenger-list,
.ground-unassigned > div {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.ground-unassigned span {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 10px;
}

.ground-passenger-heading,
.ground-passenger-add {
  align-items: center;
  display: flex;
  gap: 9px;
  justify-content: space-between;
}

.ground-passenger-heading {
  flex-wrap: wrap;
}

.ground-passenger-add {
  margin-top: 10px;
}

.ground-passenger-add input {
  flex: 1;
  min-width: 0;
}

.ground-external-add {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .65fr) auto;
  margin-top: 8px;
}

.ground-passenger-row.is-external {
  grid-template-columns: 34px minmax(120px, 1fr) auto 34px;
}

.ground-passenger-row.is-external small {
  color: var(--muted);
  font-size: 12px;
}

.ground-pickup-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
}

.ground-passenger-heading > div { display: grid; gap: 3px; }
.ground-passenger-heading > div small { color: var(--muted); }
.ground-pickup-actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; justify-content: flex-end; }
.ground-pickup-stops { display: grid; gap: 10px; }

.ground-pickup-stop {
  align-items: end;
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px 105px minmax(0, 1fr) minmax(0, 1fr) 34px;
  padding: 12px;
}

.ground-pickup-stop.ground-drop-target {
  background: color-mix(in srgb, var(--hot) 7%, #fff);
  border-color: var(--hot);
}

.ground-pickup-stop label { color: var(--muted); display: grid; font-size: 11px; font-weight: 700; gap: 5px; min-width: 0; }
.ground-pickup-stop input { min-width: 0; width: 100%; }
.ground-stop-time { grid-column: 2; grid-row: 1; }
.ground-stop-note { grid-column: 3 / 5; grid-row: 1; }
.ground-stop-address { grid-column: 2 / 4; grid-row: 2; }
.ground-stop-maps { grid-column: 4 / 6; grid-row: 2; }
.ground-pickup-stop > .drag-handle { grid-column: 1; grid-row: 1; }
.ground-pickup-stop > .ground-passenger-remove { grid-column: 5; grid-row: 1; }
.ground-stop-people { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; grid-column: 2 / 6; grid-row: 3; min-height: 34px; }
.ground-stop-people > small { color: var(--muted); }
.ground-stop-people > span { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 700; gap: 6px; padding: 6px 7px 6px 10px; }
.ground-stop-people button { background: var(--soft); border: 0; border-radius: 999px; height: 20px; padding: 0; width: 20px; }
.ground-pickup-warning { border-radius: 12px; font-size: 12px; font-weight: 700; }
.ground-pickup-warning.is-warning { background: #fff6df; color: #8a5a00; padding: 9px 11px; }
.ground-pickup-warning.is-complete { color: #237a49; }

.ground-passenger-row {
  align-items: center;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  min-height: 48px;
  padding: 6px 7px;
}

.ground-passenger-row strong {
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ground-passenger-row .drag-handle,
.ground-passenger-remove {
  background: rgba(110, 110, 115, .13);
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  height: 34px;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.ground-passenger-row.is-dragging {
  opacity: .55;
}

.ground-passenger-row.is-drop-target {
  border-color: var(--hot);
}

.ground-passenger-empty {
  background: var(--soft);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12px;
  padding: 10px 12px;
}

.ground-unassigned {
  background: var(--soft);
  border-radius: 14px;
  margin-top: 14px;
  padding: 12px;
}

.ground-unassigned > small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.ground-unassigned-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 50px;
  padding: 6px 8px;
}

.ground-unassigned-row strong {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ground-person-source.is-dragging {
  opacity: .45;
}

.ground-ride-card.ground-drop-target,
.ground-passenger-list.ground-drop-target,
.ground-unassigned.ground-drop-target {
  border-color: #0a84ff;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .14);
}

.ground-passenger-list.ground-drop-target {
  background: rgba(10, 132, 255, .06);
  border: 1px dashed #0a84ff;
  border-radius: 12px;
  min-height: 54px;
  padding: 6px;
}

.ground-assignment-complete {
  color: #166534 !important;
}

.ground-delete-zone {
  align-items: center;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  padding: 10px 12px;
}

.ground-delete-zone small {
  color: #991b1b;
  font-size: 11px;
}

.ground-delete-zone .ground-delete-ride {
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 750;
  min-height: 38px;
  padding: 0 13px;
  width: auto;
}

.ground-delete-zone .ground-delete-ride:hover,
.ground-delete-zone .ground-delete-ride:focus-visible {
  background: #b91c1c;
  color: #fff;
  outline: 0;
}

@media (max-width: 700px) {
  .carpool-row.ground-ride-card {
    display: block;
  }

  .ground-ride-summary {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .ground-ride-meta {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .ground-ride-grid {
    grid-template-columns: 1fr;
  }

  .ground-ride-grid .wide {
    grid-column: auto;
  }

  .ground-passenger-add {
    align-items: stretch;
    flex-direction: column;
  }

  .ground-external-add,
  .ground-pickup-stop {
    grid-template-columns: 1fr;
  }

  .ground-pickup-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ground-pickup-stop > .drag-handle,
  .ground-pickup-stop > .ground-passenger-remove {
    width: 100%;
  }

  .ground-stop-people {
    grid-column: auto;
    grid-row: auto;
  }


  .ground-stop-time,
  .ground-stop-address,
  .ground-stop-maps,
  .ground-stop-note,
  .ground-pickup-stop > .drag-handle,
  .ground-pickup-stop > .ground-passenger-remove {
    grid-column: auto;
    grid-row: auto;
  }

  .ground-delete-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .ground-delete-zone .ground-delete-ride {
    width: 100%;
  }
}

.time-row {
  grid-template-columns: 110px minmax(160px, 1fr) 44px 34px;
}

.guest-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 1fr) minmax(190px, 1.2fr) 58px 44px 34px;
  align-items: center;
}

.guest-capacity-card {
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, .45fr) minmax(260px, 1fr);
  margin-bottom: 14px;
  padding: 13px;
}

.guest-capacity-card > label {
  color: var(--muted);
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guest-capacity-card input {
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}

.guest-capacity-summary {
  display: grid;
  gap: 8px;
}

.guest-capacity-summary > div:first-child {
  align-items: baseline;
  display: flex;
  gap: 8px 12px;
  justify-content: space-between;
}

.guest-capacity-summary strong {
  font-size: 15px;
}

.guest-capacity-summary span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.guest-capacity-meter {
  background: rgba(110, 110, 115, .15);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.guest-capacity-meter i {
  background: #34c759;
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .2s ease;
  width: 0;
}

.guest-capacity-summary.is-near .guest-capacity-meter i,
.guest-capacity-summary.is-full .guest-capacity-meter i {
  background: #ff9f0a;
}

.guest-capacity-summary.is-over strong,
.guest-capacity-summary.is-over span {
  color: #b42318;
}

.guest-capacity-summary.is-over .guest-capacity-meter i {
  background: #ff3b30;
}

@media (max-width: 700px) {
  .guest-capacity-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .guest-capacity-summary > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .guest-capacity-summary span {
    text-align: left;
  }
}

.guest-added-by {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-added-by:empty {
  display: none;
}

.guest-row .guest-count {
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

#venueSavedSearch {
  margin-bottom: 0;
}

#venueSavedSelect {
  display: none;
}

.venue-suggestion-list {
  display: none;
  gap: 6px;
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.venue-suggestion-list.is-open {
  display: grid;
}

.venue-suggestion-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.venue-suggestion-item:hover,
.venue-suggestion-item:focus-visible {
  background: var(--soft);
  outline: none;
}

.venue-suggestion-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.venue-suggestion-item small,
.venue-suggestion-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.venue-suggestion-empty {
  padding: 12px;
}

.tech-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 0.9fr) 44px 34px;
}

.tech-link-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1.2fr) 44px 34px;
}

.setlist-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) 44px 34px;
}

.setlist-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

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

.setlist-style-fields {
  margin-bottom: 14px;
}

.setlist-print-fields {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 12px;
}

.setlist-print-fields input {
  background: #fff;
}

.setlist-print-fields input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  height: 34px;
  padding: 0;
}

.setlist-print-fields input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #b7ddff, #e8eef6);
  border-radius: 999px;
  height: 8px;
}

.setlist-print-fields input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #0a84ff;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(10, 132, 255, 0.26);
  height: 24px;
  margin-top: -8px;
  width: 24px;
}

.setlist-print-fields input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #b7ddff, #e8eef6);
  border-radius: 999px;
  height: 8px;
}

.setlist-print-fields input[type="range"]::-moz-range-thumb {
  background: #0a84ff;
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(10, 132, 255, 0.26);
  height: 18px;
  width: 18px;
}

.setlist-auto-fit {
  justify-self: start;
  margin: -4px 0 14px;
}

.setlist-editor .setlist-auto-fit {
  margin: 0;
}

.setlist-edit-button {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #075985;
}

.setlist-edit-button:hover {
  background: #bae6fd;
  border-color: #7dd3fc;
}

.setlist-preview-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.setlist-preview-header h3 {
  font-size: 24px;
  margin: 2px 0 0;
}

.setlist-preview-header span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setlist-preview-header strong {
  color: var(--ink);
  display: block;
  font-size: 13px;
  line-height: 1.2;
  margin-top: 4px;
}

.setlist-preview-header strong.is-warning {
  color: #c2410c;
}

.setlist-preview-frame {
  background: var(--soft);
  border-radius: 14px;
  display: grid;
  justify-items: center;
  overflow: auto;
  padding: 22px;
}

.setlist-preview-page {
  aspect-ratio: 1 / 1.414;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 18, 18, 0.14);
  color: #0a0a0a;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  width: min(100%, 595px);
}

.setlist-preview-page.is-rendering {
  align-items: center;
  display: block;
}

.setlist-preview-canvas {
  display: block;
  height: auto;
  width: 100%;
}

.setlist-editor .preset-main {
  grid-template-columns: 1fr;
}

.setlist-editor .preset-main .small-button {
  width: 100%;
}

.grouped-rows {
  gap: 12px;
}

.group-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 10px;
}

.group-main-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

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

.flight-row .group-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flight-row .flight-place-time {
  grid-column: span 1;
}

.flight-row .flight-pnr {
  grid-column: 1 / -1;
}

.flight-stopover-fields,
.flight-note {
  grid-column: 1 / -1;
}

.flight-stopover-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 120px 120px;
}

@media (max-width: 700px) {
  .flight-stopover-fields { grid-template-columns: 1fr 1fr; }
  .flight-stopover-fields .flight-stopover { grid-column: 1 / -1; }
}

.flight-place-time {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 92px;
}

.flight-note {
  margin-top: 0;
  min-height: 78px;
}

.group-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 44px 34px;
}

.feature-editor {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 220px) 34px;
}

.nested-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.nested-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 44px minmax(0, 1fr) 34px;
  align-items: start;
}

.hotel-person-row {
  grid-template-columns: 44px minmax(0, 1fr) auto 34px;
}

.hotel-person-row .add-roommate {
  min-height: 38px;
  padding-left: 10px;
  padding-right: 10px;
}

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

.hotel-person-note {
  grid-column: 1 / -1;
}

.flight-person-row {
  grid-template-columns: 44px minmax(160px, 1fr) minmax(180px, 1.2fr) 34px;
}

.group-row > .small-button {
  justify-self: start;
  margin-left: 18px;
}

.tech-file-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
}

.tech-file-link {
  color: var(--ink);
  flex: 1 1 180px;
  font-weight: 650;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tech-file-meta {
  color: var(--muted);
  flex: 0 1 160px;
  font-size: 12px;
  font-weight: 700;
}

.admin-row {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1fr) minmax(120px, 0.7fr) 112px minmax(170px, 1fr) minmax(130px, 0.75fr) minmax(128px, 0.75fr) 118px 38px;
  padding: 10px;
}

.admin-row.is-pending {
  border-color: #f6c34a;
  box-shadow: inset 4px 0 0 #f6c34a;
}

.admin-subpanel {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 28px;
}

.template-list {
  margin-top: 16px;
}

.template-row {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 0.85fr) minmax(130px, 0.55fr) minmax(220px, 1fr) 44px 38px;
  padding: 10px;
}

.template-bulk-tools {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 9px;
}

.template-bulk-tools summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.template-bulk-tools textarea {
  min-height: 92px;
}

.template-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.artist-list,
.contact-list,
.venue-list {
  margin-top: 16px;
}

.venue-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.venue-row + .venue-row {
  margin-top: 10px;
}

.venue-summary {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 36px minmax(170px, 1fr) minmax(150px, 1fr) auto 38px;
  list-style: none;
  min-height: 58px;
  padding: 10px;
}

.venue-summary-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-summary-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-editor {
  border-top: 1px solid var(--line);
  padding: 12px;
}

.venue-editor-actions {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px;
}

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

.venue-updated-at {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.venue-row:not(.is-open) .venue-editor {
  display: none;
}

.venue-toggle {
  min-height: 38px;
  padding-inline: 14px;
}

.venue-icon-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 42px;
}

.venue-icon-button:hover {
  background: #f8f8fa;
  border-color: #c9c9d2;
  transform: translateY(-1px);
}

.venue-icon-button:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 2px;
}

.venue-icon-button svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 21px;
}

.venue-duplicate {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.venue-duplicate:hover {
  background: #303033;
  border-color: #303033;
}

.venue-tech-document {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.09);
  margin: 0 auto;
  max-width: 940px;
  overflow: hidden;
}

.venue-tech-document header {
  background: linear-gradient(135deg, #101014, #2a2229 55%, #68333c);
  color: #fff;
  padding: 38px 42px;
}

.venue-tech-document h1 {
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 10px;
}

.venue-tech-document .sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  margin: 0;
}

.venue-tech-document section {
  padding: 24px 42px 10px;
}

.venue-tech-document section + section {
  border-top: 1px solid var(--line);
}

.venue-tech-files-highlight {
  background: #fbfbfc;
}

.venue-tech-document h2 {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.venue-tech-document p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.venue-tech-document a {
  color: #0a84ff;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.venue-tech-document a:hover {
  text-decoration: underline;
}

.venue-tech-file-cards {
  display: grid;
  gap: 10px;
}

.venue-tech-file-card {
  align-items: center;
  background: #f7f7f9;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  display: flex;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
}

.venue-tech-file-card:hover {
  background: #fff;
  border-color: #c9c9d2;
  text-decoration: none;
}

.venue-tech-file-icon {
  align-items: center;
  background: var(--ink);
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 11px;
  font-weight: 850;
  height: 44px;
  justify-content: center;
  letter-spacing: 0.04em;
}

.venue-tech-file-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.venue-tech-file-card small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.tech-table {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.tech-table-head,
.tech-table-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) minmax(0, 1.45fr);
}

.tech-table-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tech-table-head span,
.tech-table-row span {
  padding: 12px 14px;
}

.tech-table-row {
  font-size: 15px;
  line-height: 1.4;
}

.tech-table-row + .tech-table-row {
  border-top: 1px solid var(--line);
}

.tech-table-row span:first-child {
  color: var(--ink);
  font-weight: 750;
}

.tech-table-row span:last-child {
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.venue-paste-card {
  max-width: min(760px, calc(100vw - 32px));
}

.venue-merge-card {
  max-width: min(720px, calc(100vw - 32px));
  width: min(100%, 720px);
}

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

.venue-merge-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.venue-merge-grid select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 0 12px;
  text-transform: none;
}

.venue-merge-preview {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 6px;
  padding: 12px;
}

.venue-merge-preview strong,
.venue-merge-preview p {
  margin: 0;
}

.venue-merge-preview p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.venue-paste-card textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  min-height: 320px;
  resize: vertical;
}

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

.venue-grid label {
  display: grid;
  gap: 6px;
}

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

.venue-grid-heading {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 10px;
  grid-column: 1 / -1;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}

.venue-grid-heading:first-child {
  margin-top: 0;
}

.venue-grid-heading::after {
  background: var(--line);
  content: "";
  flex: 1;
  height: 1px;
}

.venue-check {
  align-content: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 54px;
  padding: 0 12px;
}

.venue-contact-card,
.venue-field-pair {
  display: grid;
  gap: 10px;
}

.venue-contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  grid-template-columns: minmax(150px, 0.75fr) repeat(3, minmax(0, 1fr));
  padding: 12px;
}

.venue-contact-card strong {
  align-self: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.venue-contact-card label,
.venue-field-pair label {
  min-width: 0;
}

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

.venue-file-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.venue-file-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.venue-file-actions .hint {
  margin: 0;
}

.artist-row {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(140px, 0.8fr) 52px minmax(170px, 0.9fr) minmax(220px, 1.1fr) 38px;
  padding: 10px;
}

.artist-color {
  cursor: pointer;
  min-height: 38px;
  padding: 4px;
}

.artist-defaults {
  display: grid;
  gap: 6px;
}

.artist-logo-control {
  display: grid;
  gap: 6px;
}

.artist-logo-upload {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: grid;
  gap: 5px;
  min-height: 62px;
  padding: 8px 10px;
}

.artist-logo-upload span {
  font-size: 12px;
  font-weight: 650;
}

.artist-logo-upload input {
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

.artist-logo-upload small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.artist-logo-preview {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 650;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.artist-logo-preview img {
  max-height: 28px;
  max-width: 120px;
  object-fit: contain;
}

.contact-row {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  grid-template-areas:
    "drag name role city parties remove"
    ". phone email plate diet .";
  grid-template-columns: 36px minmax(230px, 1.2fr) minmax(140px, 0.85fr) minmax(120px, 0.75fr) minmax(220px, 1.2fr) 38px;
  padding: 10px;
}

.contact-toolbar {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin: 16px 0 10px;
}

.contact-toolbar input {
  background: #fff;
}

.contact-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

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

.contact-row .drag-handle {
  grid-area: drag;
}

.contact-name-group {
  display: grid;
  gap: 8px;
  grid-area: name;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact-role {
  grid-area: role;
}

.contact-city {
  grid-area: city;
}

.contact-phone {
  grid-area: phone;
}

.contact-email {
  grid-area: email;
}

.contact-plate {
  grid-area: plate;
}

.contact-diet {
  grid-area: diet;
}

.contact-row .remove-row {
  grid-area: remove;
}

.contact-add-bottom {
  margin-top: 12px;
}

.contact-parties {
  display: grid;
  gap: 6px;
  grid-area: parties;
  min-height: 38px;
}

.select-stack-row {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(130px, 1fr) 30px;
}

.select-stack-row select {
  min-height: 34px;
}

.mini-add,
.mini-remove {
  background: var(--soft);
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  min-height: 30px;
}

.mini-add {
  justify-self: start;
  min-width: 34px;
}

.mini-muted {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
}

.template-summary {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 650;
  min-height: 38px;
  padding: 0 10px;
}

.admin-row .admin-phone,
.admin-row .admin-role,
.admin-row .admin-artists,
.admin-row .password-status,
.admin-row .last-login-status,
.admin-row .save-admin-login,
.admin-row .remove-row {
  grid-column: span 1;
}

.admin-artists {
  display: grid;
  gap: 6px;
}

.admin-artists .mini-add {
  justify-self: start;
  min-height: 34px;
  padding-inline: 12px;
}

.password-status {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 10px;
}

.last-login-status {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 38px;
  padding: 0 10px;
}

.admin-delete-button {
  background: #fff1f4;
  color: #c02652;
}

.admin-delete-button:hover {
  background: #ffe4ea;
  color: #9f1239;
}

.logo-preview {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 650;
  gap: 12px;
  min-height: 54px;
  padding: 10px;
}

.logo-preview img {
  max-height: 38px;
  max-width: 180px;
  object-fit: contain;
}

.show-actions-panel {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
}

.show-actions-panel h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.setlist-footer-fields {
  margin-top: 16px;
}

.show-admin-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.show-admin-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  display: flex;
  font-size: 13px;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
}

.show-admin-option span {
  line-height: 1.35;
}

.show-admin-option input {
  min-height: auto;
  width: auto;
}

.data-row input,
.team-row input,
.team-row select,
.carpool-row input,
.guest-row input,
.tech-row input,
.tech-link-row input,
.template-row input,
.contact-row input,
.admin-row input,
.admin-row select {
  min-height: 38px;
}

.remove-row {
  background: var(--soft);
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.preview-toolbar {
  margin-bottom: 14px;
}

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

.preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.print-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #111;
  overflow: hidden;
}

.sheet-accent-bar {
  background: var(--artist-color, var(--hot));
  height: 5px;
}

.sheet-hero {
  align-items: center;
  background:
    radial-gradient(circle at 94% 18%, rgba(252, 175, 69, 0.28), transparent 26%),
    linear-gradient(135deg, #111 0%, #262126 54%, #4b1430 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 174px;
  padding: 30px;
}

.sheet-hero-content {
  min-width: 0;
}

.sheet-label {
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 650;
  gap: 10px;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.sheet-status {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  padding: 5px 8px;
}

.sheet-status::before {
  background: var(--status-color, #fff);
  border-radius: 999px;
  content: "";
  display: block;
  height: 7px;
  width: 7px;
}

.booking-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  margin-left: 8px;
  padding: 4px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.booking-badge.is-confirmed {
  background: rgba(52, 199, 89, 0.22);
  border-color: rgba(52, 199, 89, 0.44);
}

.sheet-hero h2 {
  font-size: 46px;
  line-height: 0.96;
  margin: 0 0 10px;
  max-width: 760px;
}

.sheet-hero p {
  margin: 0;
}

.date-badge,
.date-card {
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  color: #111;
  display: grid;
  gap: 4px;
  grid-template-rows: auto 1fr auto;
  height: 112px;
  justify-items: center;
  min-width: 112px;
  padding: 13px 16px 14px;
}

.date-badge span,
.date-card strong {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  place-self: center;
}

.date-badge strong,
.date-card span {
  color: var(--hot);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.date-badge em,
.date-card em {
  color: #111;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0.62;
  text-transform: uppercase;
  white-space: nowrap;
}

.info-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.info-grid div {
  min-width: 0;
  padding: 22px 28px;
}

.info-grid div + div {
  border-left: 1px solid var(--line);
}

.info-grid span,
.section-heading span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.info-grid strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.info-grid p {
  color: var(--muted);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.sheet-section {
  padding: 24px 28px;
}

.sheet-section + .sheet-section,
.people-grid {
  border-top: 1px solid var(--line);
}

.section-heading h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.section-heading.with-count {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.list-preview,
.people-list {
  display: grid;
  gap: 8px;
}

.preview-row,
.person-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr;
  padding: 9px 0;
}

.preview-row:last-child,
.person-row:last-child {
  border-bottom: 0;
}

.preview-row strong,
.person-row strong {
  font-size: 14px;
}

.preview-row span,
.person-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.person-row .person-value {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.person-row .person-value > span:last-child {
  min-width: 0;
}

.person-row .person-availability-dot {
  color: #fff;
  flex: 0 0 auto;
  font-size: 11px;
  height: 20px;
  overflow-wrap: normal;
  width: 20px;
}

[data-preview="mapsUrl"] {
  color: var(--muted);
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.venue-maps {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .is-show-page .mobile-bottom-nav:not(.mobile-show-tabs) {
    display: none;
  }

  .is-show-page .mobile-show-tabs {
    align-items: center;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-left: 10px;
    padding-right: 10px;
    scrollbar-width: none;
  }

  .mobile-show-tabs::-webkit-scrollbar {
    display: none;
  }

  .mobile-show-tab {
    background: transparent;
    border: 0;
    border-radius: 14px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 650;
    min-height: 48px;
    padding: 0 14px;
  }

  .mobile-show-tab.is-active {
    background: #111;
    color: #fff;
  }

  .mobile-quick-share {
    display: inline-flex;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 48px;
    width: 100%;
  }

  .preview-toolbar-actions .share-menu-wrap > .share-trigger {
    display: none;
  }
}

[data-preview="mapsUrl"]:not(.is-disabled):hover {
  color: var(--ink);
  text-decoration: underline;
}

.timeline-preview {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  gap: 22px;
  grid-template-columns: 74px minmax(0, 1fr);
  min-height: 54px;
  position: relative;
}

.timeline-item::before {
  background: var(--line);
  content: "";
  height: 100%;
  left: 83px;
  position: absolute;
  top: 16px;
  width: 1px;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-time {
  font-size: 18px;
  font-weight: 650;
}

.timeline-label {
  align-items: start;
  display: flex;
  min-width: 0;
  padding-bottom: 16px;
}

.timeline-label strong {
  line-height: 1.45;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.people-grid.single-section {
  grid-template-columns: 1fr;
}

.people-grid.three-sections .person-row {
  gap: 4px;
  grid-template-columns: 1fr;
}

.people-grid.three-sections .person-row span {
  line-height: 1.25;
}

.carpool-preview {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.carpool-preview-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.carpool-preview-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.carpool-preview-group strong {
  display: block;
  font-size: 14px;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.carpool-preview-plate {
  background: #f0f0f2;
  border: 1px solid #dddddf;
  border-radius: 999px;
  color: #4f4f55;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
  line-height: 1;
  padding: 6px 9px;
  white-space: nowrap;
}

.carpool-preview-plate.is-missing {
  background: #fff4d7;
  border-color: #f0d391;
  color: #805b00;
}

.carpool-preview-group p {
  color: var(--muted);
  margin: 6px 0 8px;
}

.carpool-preview-group ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.carpool-preview-group li {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

@media (max-width: 420px) {
  .carpool-preview-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .carpool-preview-plate {
    justify-self: end;
  }
}

.guest-preview {
  display: grid;
  gap: 0;
}

.guest-preview-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 70px 1fr 100px 1fr;
  padding: 10px 0;
}

.guest-preview-row.header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.guest-preview-row:last-child {
  border-bottom: 0;
}

.guest-preview-row span {
  overflow-wrap: anywhere;
}

.people-grid .sheet-section + .sheet-section {
  border-left: 1px solid var(--line);
  border-top: 0;
}

.notes-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  white-space: pre-wrap;
}

.notes-section p a {
  color: #0071e3;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.notes-section p a:hover,
.notes-section p a:focus-visible {
  color: #005bb5;
}

.availability-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.availability-team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.availability-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto) auto;
  min-height: 42px;
  padding: 9px 12px;
}

.availability-person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.availability-row strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.availability-row small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.availability-row select {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  min-height: 32px;
  padding: 5px 9px;
  text-transform: uppercase;
}

.availability-row[data-response="yes"] select {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.availability-row[data-response="maybe"] select {
  background: rgba(252, 175, 69, 0.16);
  color: #b45309;
}

.availability-row[data-response="no"] select {
  background: rgba(225, 48, 108, 0.12);
  color: #be123c;
}

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

.availability-row-actions .small-button {
  min-height: 30px;
  padding-left: 8px;
  padding-right: 8px;
}

.availability-team-badge {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  text-transform: uppercase;
}

.archive-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.archive-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(18, 18, 18, 0.04);
  display: grid;
  gap: 12px;
  grid-template-columns: 6px minmax(0, 1fr) auto auto auto;
  padding: 12px;
}

.archive-row .artist-marker {
  align-self: stretch;
  background: var(--artist-color, var(--hot));
  border-radius: 999px;
  min-height: 44px;
}

.archive-row strong {
  display: block;
  font-size: 15px;
}

.archive-row small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.archive-row em {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  padding: 6px 10px;
  text-transform: uppercase;
}

.availability-public-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(18, 18, 18, 0.08);
  margin: 7vh auto 0;
  max-width: 760px;
  padding: clamp(26px, 5vw, 48px);
  text-align: center;
}

.travel-request-public-card {
  margin-top: clamp(14px, 3vh, 34px);
  max-width: 720px;
  padding: clamp(22px, 4vw, 34px);
}

.availability-public-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
}

.travel-request-public-card .availability-public-logo {
  margin-bottom: 12px;
}

.travel-request-public-card .availability-public-logo img {
  max-height: 112px;
  max-width: min(520px, 90%);
}

.availability-public-logo img {
  display: block;
  max-height: 92px;
  max-width: min(360px, 82%);
  object-fit: contain;
}

.availability-public-card h1 {
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 1;
  margin: 8px auto 12px;
  max-width: 680px;
}

.date-poll-public-card h1.date-poll-artist-title {
  font-size: clamp(44px, 7vw, 82px);
  margin: 0 auto 6px;
}

.date-poll-public-card .date-poll-title-line {
  font-size: clamp(18px, 2.1vw, 30px);
  margin: 6px auto 22px;
  max-width: 760px;
}

.travel-request-public-card h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin-bottom: 10px;
}

.travel-request-eyebrow {
  font-size: 16px;
  letter-spacing: 0.06em;
}

.travel-request-title-artist,
.travel-request-title-rest {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-request-title-rest {
  font-size: 0.74em;
  margin-top: 4px;
}

.travel-request-public-card .muted {
  margin-bottom: 14px;
}

.availability-public-card label {
  display: grid;
  gap: 8px;
  margin: 30px auto 0;
  max-width: 620px;
  text-align: left;
}

.travel-request-public-card > label {
  margin-top: 18px;
}

.travel-request-public-card label {
  gap: 6px;
}

.availability-public-card input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
}

.travel-request-public-card input {
  min-height: 42px;
}

.availability-public-card textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  padding: 12px 14px;
  resize: vertical;
}

.travel-public-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  text-align: left;
}

.travel-request-public-card .travel-public-section {
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
}

.travel-public-section h3 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.travel-request-public-card .travel-public-section h3 {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.travel-flight-choice-list {
  display: grid;
  gap: 10px;
}

.travel-flight-choice {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 180px);
  padding: 14px;
}

.travel-request-public-card .travel-flight-choice {
  border-radius: 16px;
  padding: 14px;
}

.travel-flight-details {
  color: var(--ink);
  display: grid;
  gap: 12px;
}

.travel-flight-main,
.travel-flight-route {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.travel-flight-details span {
  color: var(--ink);
  display: grid;
  gap: 3px;
}

.travel-flight-details em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.travel-flight-details strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.travel-flight-details small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.travel-flight-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
}

.travel-request-public-card .travel-flight-accept {
  align-self: stretch;
  border-radius: 14px;
  min-height: 76px;
  padding: 0 16px;
  white-space: normal;
}

.travel-custom-section {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-top: 26px;
  padding: 18px;
}

.travel-custom-section .travel-request-grid {
  align-items: end;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.travel-custom-section label {
  margin-top: 0;
  max-width: none;
}

.travel-custom-section > label {
  margin-top: 4px;
  width: 100%;
}

.travel-custom-section textarea {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
}

.travel-custom-section .primary-button {
  min-height: 50px;
}

.travel-request-sheet {
  display: grid;
  gap: 18px;
}

.travel-request-sheet-blocks {
  display: grid;
  gap: 12px;
}

.travel-request-flight-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.travel-request-flight-block > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.travel-request-flight-block span,
.travel-request-no-response span {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  padding: 7px 10px;
}

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

.travel-request-public-card .travel-request-grid {
  gap: 12px;
}

.travel-request-public-card textarea {
  min-height: 96px;
}

.availability-name-options {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px auto 0;
  max-width: 620px;
}

.availability-name-choice {
  display: grid;
  gap: 8px;
  margin: 28px auto 0;
  max-width: 620px;
  text-align: center;
}

.availability-name-choice h3 {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.availability-name-choice .hint,
.travel-name-section .hint {
  margin: 0;
}

.availability-name-option {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 6px 12px;
}

.availability-name-option:hover,
.availability-name-option:focus {
  background: #fff;
  border-color: var(--ink);
}

.availability-name-option.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.travel-request-name-options {
  justify-content: flex-start;
  margin-left: 0;
  margin-right: 0;
}

.travel-request-people-card {
  max-width: 620px;
}

.travel-request-people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.travel-request-people-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 520px);
  overflow: auto;
  padding: 2px;
}

.travel-request-person-choice {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
  max-width: none;
  min-height: 48px;
  padding: 10px 12px;
  text-align: left;
}

.travel-request-person-choice input {
  accent-color: var(--ink);
  height: 18px;
  width: 18px;
}

.travel-request-person-choice span {
  color: var(--ink);
  font-weight: 750;
}

.availability-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px auto 0;
  max-width: 620px;
}

.availability-public-overview {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 28px;
  text-align: left;
}

.availability-public-columns {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.availability-public-column {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.availability-public-column strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.availability-public-column div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.availability-public-column span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.availability-public-column.yes {
  border-color: color-mix(in srgb, #19a05f 32%, var(--line));
}

.availability-public-column.no {
  border-color: color-mix(in srgb, #d93535 30%, var(--line));
}

.availability-public-column.maybe {
  border-color: color-mix(in srgb, #e8a11b 32%, var(--line));
}

.is-hidden {
  display: none;
}

.public-view {
  margin: 0 auto;
  max-width: 980px;
  padding: 24px;
}

.public-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.guest-print-sheet {
  background: #fff;
  color: var(--ink);
  display: none;
}

.guest-print-header {
  background: #111;
  color: #fff;
  padding: 26px 28px;
}

.guest-print-header h1 {
  font-size: 34px;
  line-height: 1;
  margin: 0 0 10px;
}

.guest-print-header p {
  margin: 0;
}

.guest-print-header strong {
  background: #fff;
  border-radius: var(--radius);
  color: #111;
  display: inline-flex;
  font-size: 13px;
  margin-top: 18px;
  padding: 8px 10px;
}

.guest-print-table {
  border-collapse: collapse;
  width: 100%;
}

.guest-print-table th,
.guest-print-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.guest-print-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 1fr;
  }

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

  .admin-row .admin-artists,
  .admin-row .password-status,
  .admin-row .last-login-status {
    grid-column: 1 / -1;
  }

  .admin-row .save-admin-login {
    grid-column: 1 / -1;
    width: 100%;
  }

  .editor-panel {
    max-height: none;
    overflow: visible;
    position: static;
  }
}

@media (max-width: 700px) {
  body {
    background: #fff;
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .connection-banner {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 16px;
  }

  .connection-banner span {
    grid-column: 1;
  }

  .connection-banner button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .venue-contact-card,
  .venue-field-pair {
    grid-template-columns: 1fr;
  }

  .venue-contact-card strong {
    font-size: 14px;
  }

  .mobile-bottom-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -10px 30px rgba(18, 18, 18, 0.08);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
    z-index: 24;
    backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    min-height: 42px;
    padding: 0 4px;
  }

  .mobile-nav-item.is-active {
    background: var(--ink);
    color: #fff;
  }

  .topbar,
  .workspace,
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar,
  .panel-header,
  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 12px;
    padding-bottom: 12px;
    padding-top: 12px;
    top: 0;
  }

  .brand {
    justify-content: space-between;
    width: 100%;
  }

  .top-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr auto;
    justify-content: stretch;
    width: 100%;
  }

  .top-actions .show-select {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .show-picker-button,
  .top-show-search {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .show-calendar-button {
    justify-content: center;
    width: 100%;
  }

  .top-actions .show-nav-controls {
    justify-self: end;
  }

  .preview-toolbar-actions {
    justify-content: stretch;
    width: 100%;
  }

  .preview-toolbar-actions .share-menu-wrap,
  .preview-toolbar-actions .share-trigger {
    width: 100%;
  }

  .preview-toolbar-actions .share-menu {
    left: 0;
    min-width: 0;
    right: 0;
    width: 100%;
  }

  .preview-toolbar-actions .preview-pills {
    justify-content: space-between;
    width: 100%;
  }

  .show-picker-layer {
    padding: 78px 10px calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .show-picker-panel {
    max-height: calc(100vh - 166px);
    max-width: none;
    padding: 14px;
  }

  .show-picker-head {
    align-items: start;
  }

  .show-picker-head h2 {
    font-size: 24px;
  }

  .show-picker-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .show-picker-controls select {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .show-picker-controls .ghost-button {
    padding-left: 6px;
    padding-right: 6px;
  }

  .show-picker-day {
    min-height: 44px;
    padding: 5px;
  }

  .show-picker-row {
    grid-template-columns: 5px minmax(0, 1fr);
  }

  .show-picker-row em {
    grid-column: 2;
    grid-row: auto;
    justify-self: start;
    margin-top: 2px;
  }

  .top-actions .primary-button {
    grid-column: auto;
  }

  .top-actions .ghost-button,
  .top-actions .primary-button {
    font-size: 13px;
    font-weight: 650;
  }

  .archive-row {
    align-items: stretch;
    grid-template-columns: 6px minmax(0, 1fr);
  }

  .archive-row em,
  .archive-row .archive-open,
  .archive-row .archive-restore {
    grid-column: 2;
    justify-self: stretch;
  }

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

  .availability-actions button {
    font-size: 12px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .availability-public-card {
    border-radius: var(--radius);
    margin-top: 4vh;
    padding: 20px;
  }

  .travel-request-public-card {
    border-radius: 16px;
    margin: 10px auto 0;
    padding: 16px;
  }

  .travel-request-public-card h1 {
    font-size: 34px;
  }

  .travel-request-title-rest {
    font-size: 0.72em;
  }

  .travel-request-eyebrow {
    font-size: 15px;
  }

  .travel-request-public-card .availability-public-logo img {
    max-height: 42px;
  }

  .travel-request-public-card .travel-public-section {
    margin-top: 14px;
    padding-top: 14px;
  }

  .availability-public-columns {
    grid-template-columns: 1fr;
  }

  .travel-flight-choice {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .travel-request-public-card .travel-flight-choice {
    gap: 12px;
  }

  .travel-flight-main,
  .travel-flight-route {
    grid-template-columns: 1fr;
  }

  .travel-request-public-card .travel-flight-accept {
    min-height: 54px;
    width: 100%;
  }

  .travel-request-grid {
    grid-template-columns: 1fr;
  }

  .travel-custom-section .travel-request-grid {
    grid-template-columns: 1fr;
  }

  .top-actions .ghost-button,
  .top-actions .danger-button,
  .top-actions .primary-button {
    padding-left: 10px;
    padding-right: 10px;
  }

  .bulk-viewer-card .subsection-title {
    display: grid;
  }

  .ghost-button,
  .danger-button,
  .primary-button,
  .small-button,
  .icon-button,
  .ghost-link,
  input,
  textarea,
  select {
    min-height: 44px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .workspace {
    gap: 14px;
    padding-bottom: 84px;
    padding-top: 14px;
  }

  .page-shell {
    padding-bottom: 84px;
  }

  .editor-panel,
  .preview-panel {
    border-radius: var(--radius);
    box-shadow: none;
    margin-left: 0;
    margin-right: 0;
    padding: 16px 12px;
  }

  .preview-panel {
    background: #fff;
  }

  .share-box {
    margin-top: 14px;
  }

  .share-box input {
    font-size: 13px;
  }

  .tabs-shell {
    margin-left: -4px;
    margin-right: -4px;
  }

  .tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .tab {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 0 12px;
  }

  .sheet-hero h2 {
    font-size: 31px;
    overflow-wrap: anywhere;
  }

  .field-grid,
  .account-form,
  .home-grid,
  .info-grid,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .home-card {
    box-shadow: none;
    padding: 14px;
  }

  .home-map-heading,
  .home-calendar-heading {
    display: grid;
    gap: 12px;
  }

  .home-map-controls,
  .home-calendar-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .home-map-controls select {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .home-map-viewport {
    height: 330px;
  }

  .home-calendar-list {
    grid-template-columns: 1fr;
  }

  .home-calendar-day {
    min-height: 58px;
    padding: 6px;
  }

  .account-form,
  .account-shows-card {
    box-shadow: none;
    padding: 14px;
  }

  .account-save-button {
    justify-self: stretch;
  }

  .home-show-row,
  .home-status-row,
  .home-calendar-row,
  .account-show-row {
    min-height: 58px;
  }

  .info-grid div + div,
  .people-grid .sheet-section + .sheet-section {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .data-row,
  .carpool-row,
  .time-row,
  .guest-row,
  .tech-row,
  .tech-link-row,
  .tech-file-row,
  .setlist-row,
  .flight-row,
  .hotel-row,
  .group-main-row,
  .group-fields,
  .group-actions,
  .nested-row,
  .nested-fields,
  .feature-row,
  .availability-row,
  .preset-bar,
  .travel-party-contact,
  .template-row,
  .artist-row,
  .contact-row,
  .venue-summary,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr 34px 28px;
  }

  .team-row .row-label,
  .team-row .row-value,
  .team-row .row-carpool,
  .team-row .drag-handle,
  .team-row .remove-row {
    grid-column: 1 / -1;
  }

  .team-row .team-availability-dot {
    justify-self: center;
  }

  .contact-edit-grid {
    grid-template-columns: 1fr;
  }

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

  .venue-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-editor-actions > div {
    justify-content: stretch;
  }

  .venue-editor-actions button {
    flex: 1 1 140px;
  }

  .venue-editor-actions .venue-icon-button {
    flex: 0 0 42px;
  }

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

  .venue-tech-document {
    border-radius: 16px;
  }

  .venue-tech-document header {
    padding: 28px 22px;
  }

  .venue-tech-document h1 {
    font-size: 29px;
  }

  .venue-tech-document section {
    padding: 20px 22px 8px;
  }

  .tech-table-head {
    display: none;
  }

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

  .tech-table-row span {
    padding: 9px 12px;
  }

  .tech-table-row span:last-child {
    padding-top: 0;
  }

  .contact-toolbar {
    grid-template-columns: 1fr;
  }

  .contact-toolbar span {
    justify-self: start;
  }

  .availability-row-actions {
    justify-content: stretch;
  }

  .availability-row-actions .small-button,
  .availability-row select {
    width: 100%;
  }

  .nested-list,
  .feature-editor {
    padding-left: 0;
  }

  .feature-list {
    display: grid;
  }

  .group-row > .small-button {
    margin-left: 0;
    width: 100%;
  }

  .contact-row {
    grid-template-areas:
      "drag"
      "name"
      "role"
      "city"
      "phone"
      "email"
      "plate"
      "diet"
      "parties"
      "remove";
    grid-template-columns: 1fr;
  }

  .contact-row .drag-handle {
    justify-self: start;
  }

  .contact-name-group {
    grid-template-columns: 1fr;
  }

  .bottom-add {
    justify-content: stretch;
  }

  .bottom-add .small-button {
    width: 100%;
  }

  .data-row,
  .team-row,
  .carpool-row,
  .time-row,
  .guest-row,
  .tech-row,
  .tech-link-row,
  .tech-file-row,
  .setlist-row,
  .template-row,
  .artist-row,
  .contact-row,
  .venue-row,
  .admin-row {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
  }

  .data-row input,
  .team-row input,
  .team-row select,
  .carpool-row input,
  .guest-row input,
  .tech-row input,
  .tech-link-row input,
  .setlist-row input,
  .template-row input,
  .contact-row input,
  .venue-row input,
  .venue-row textarea,
  .admin-row input,
  .admin-row select {
    min-height: 44px;
  }

  .guest-added-by {
    background: var(--soft);
    border-radius: var(--radius);
    padding: 8px 10px;
    white-space: normal;
  }

  .preset-main,
  .preset-actions {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 24px;
    max-width: 124px;
  }

  .agenda-header {
    align-items: stretch;
  }

  .agenda-header h2 {
    font-size: 28px;
  }

  .calendar-grid {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(118px, 1fr));
    margin-left: -12px;
    margin-right: -12px;
    border-left: 0;
    border-radius: 0;
    border-right: 0;
  }

  .calendar-day {
    min-height: 118px;
  }

  .guest-row .remove-row,
  .guest-row .drag-handle,
  .team-row .remove-row,
  .team-row .drag-handle,
  .carpool-row .remove-row,
  .tech-row .remove-row,
  .tech-row .drag-handle,
  .tech-link-row .remove-row,
  .tech-link-row .drag-handle,
  .setlist-row .remove-row,
  .setlist-row .drag-handle,
  .flight-row .remove-row,
  .flight-row .drag-handle,
  .hotel-row .remove-row,
  .hotel-row .drag-handle,
  .tech-file-row .remove-row,
  .template-row .remove-row,
  .template-row .drag-handle,
  .artist-row .remove-row,
  .artist-row .drag-handle,
  .contact-row .remove-row,
  .contact-row .drag-handle,
  .admin-row .remove-row {
    min-height: 38px;
    width: 100%;
  }

  .preview-row,
  .person-row,
  .guest-preview-row {
    grid-template-columns: 1fr;
  }

  .public-view {
    max-width: none;
    padding: 0;
  }

  .public-view .print-sheet,
  .preview-panel .print-sheet {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    box-shadow: none;
  }

  .sheet-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    min-height: 0;
    padding: 24px 18px;
  }

  .date-badge,
  .date-card {
    align-self: start;
    height: auto;
    min-width: 104px;
    padding: 11px 12px 12px;
  }

  .date-badge span,
  .date-card strong {
    font-size: 34px;
  }

  .date-badge em,
  .date-card em {
    font-size: 10px;
  }

  .info-grid div,
  .sheet-section {
    padding: 18px;
  }

  .people-grid {
    border-top: 1px solid var(--line);
  }

  .timeline-item {
    gap: 12px;
    grid-template-columns: 62px 1fr;
    min-height: 48px;
  }

  .timeline-item::before {
    left: 70px;
  }

  .timeline-time {
    font-size: 16px;
  }

  .preview-row,
  .person-row {
    gap: 4px;
    padding: 11px 0;
  }

  .preview-row strong,
  .person-row strong {
    font-size: 13px;
  }

  .public-list-row,
  .guest-preview-row {
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 12px 0;
  }

  .public-list-row em,
  .public-list-row span {
    justify-self: start;
  }

  .guest-preview-row.header {
    display: none;
  }

  .side-menu-inner {
    width: min(340px, 92vw);
  }
}

@media (max-width: 700px) {
  :root {
    --radius: 16px;
    --shadow: 0 10px 34px rgba(29, 29, 31, 0.10);
  }

  html {
    background: var(--bg);
  }

  body {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 245, 247, 0.98) 260px),
      var(--bg);
    color: #121214;
    overflow-x: hidden;
  }

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

  .topbar {
    background: rgba(250, 250, 252, 0.86);
    border-bottom-color: rgba(217, 217, 223, 0.72);
    box-shadow: 0 8px 24px rgba(29, 29, 31, 0.05);
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
  }

  .brand {
    min-height: 42px;
  }

  .menu-button {
    background: rgba(255, 255, 255, 0.86);
    height: 42px;
    width: 42px;
  }

  .brand-logo {
    height: 26px;
    max-width: 136px;
  }

  .top-actions {
    align-items: center;
    grid-template-columns: 62px minmax(176px, 1fr);
  }

  .top-show-search {
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(29, 29, 31, 0.05);
    grid-column: 1 / -1;
    min-height: 52px;
    padding: 8px 14px;
  }

  .top-show-search input {
    font-size: 16px;
  }

  .show-calendar-button {
    border-radius: 14px;
    flex: 0 0 62px;
    justify-content: center;
    min-height: 48px;
    padding: 0;
    width: 62px;
  }

  .show-calendar-button strong {
    display: none;
  }

  .calendar-icon {
    margin: 0;
  }

  .top-actions .show-nav-controls {
    border-radius: 14px;
    flex: 1 1 auto;
    justify-self: stretch;
    min-width: 176px;
    width: 100%;
  }

  .show-nav-button {
    height: 48px;
    flex: 1 1 25%;
    font-size: 24px;
    min-width: 42px;
    width: auto;
  }

  .mobile-bottom-nav {
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 40px rgba(29, 29, 31, 0.13);
    gap: 6px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-item {
    border-radius: 14px;
    font-size: 11px;
    min-height: 48px;
  }

  .mobile-nav-item.is-active {
    background: #111;
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.16);
  }

  .workspace,
  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .workspace {
    display: block;
    padding-top: 12px;
  }

  .page-panel,
  .editor-panel,
  .preview-panel,
  .home-card,
  .account-form,
  .account-shows-card {
    border: 1px solid rgba(217, 217, 223, 0.82);
    border-radius: 20px;
    box-shadow: 0 8px 26px rgba(29, 29, 31, 0.06);
  }

  .page-panel {
    padding: 16px;
  }

  .editor-panel,
  .preview-panel {
    padding: 16px;
  }

  .editor-panel {
    margin-bottom: 14px;
  }

  .panel-header,
  .preview-toolbar,
  .subsection-title {
    align-items: start;
    gap: 10px;
  }

  .panel-header h2,
  .preview-toolbar h2,
  .home-header h2 {
    font-size: 25px;
    letter-spacing: 0;
    line-height: 1.08;
  }

  .save-state,
  .pill,
  .status-pill {
    align-self: start;
    font-size: 11px;
    min-height: 32px;
    padding: 8px 10px;
  }

  .share-box {
    background: #f1f1f4;
    border: 1px solid rgba(217, 217, 223, 0.78);
    border-radius: 16px;
    margin-top: 16px;
    padding: 12px;
  }

  .tabs-shell {
    background: rgba(241, 241, 244, 0.94);
    border: 1px solid rgba(217, 217, 223, 0.78);
    border-radius: 16px;
    margin: 16px -2px;
    padding: 5px;
  }

  .tab-scroll-button {
    border-radius: 12px;
    flex-basis: 38px;
    height: 42px;
  }

  .tab {
    border-radius: 12px;
    font-size: 14px;
    min-height: 42px;
    min-width: 94px;
  }

  .tab.is-active,
  .sub-tab.is-active {
    box-shadow: 0 7px 18px rgba(29, 29, 31, 0.09);
  }

  .sub-tabs {
    border-radius: 16px;
    gap: 5px;
    padding: 5px;
  }

  .sub-tab {
    border-radius: 12px;
    min-height: 44px;
  }

  .form-stack {
    gap: 16px;
  }

  .field-grid {
    gap: 12px;
  }

  label {
    color: #6e6e73;
    font-size: 12px;
  }

  input,
  textarea,
  select {
    border-radius: 14px;
    min-height: 48px;
    padding: 12px 13px;
  }

  textarea {
    min-height: 118px;
  }

  .ghost-button,
  .danger-button,
  .primary-button,
  .small-button,
  .icon-button,
  .ghost-link {
    border-radius: 14px;
    min-height: 46px;
  }

  .small-button {
    font-weight: 650;
  }

  .primary-button {
    background: #111;
    border-color: #111;
  }

  .subsection {
    background: rgba(250, 250, 252, 0.72);
    border: 1px solid rgba(217, 217, 223, 0.74);
    border-radius: 18px;
    margin-top: 16px;
    padding: 14px;
  }

  .subsection .subsection {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .subsection-title h3 {
    font-size: 17px;
  }

  .subsection-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .subsection-actions .small-button,
  .subsection-actions .ghost-button,
  .subsection-actions .danger-button {
    width: 100%;
  }

  .preset-bar,
  .bulk-viewer-card,
  .bulk-tools {
    border-radius: 18px;
  }

  .preset-bar {
    background: rgba(250, 250, 252, 0.78);
    padding: 12px;
  }

  .preset-main,
  .preset-actions {
    gap: 10px;
  }

  .show-copy-disclosure,
  .show-copy-disclosure[open],
  .show-copy-disclosure > summary,
  .show-copy-disclosure[open] > summary {
    width: 100%;
  }

  .show-copy-panel .show-copy-confirm {
    justify-self: stretch;
    width: 100%;
  }

  .show-copy-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .show-copy-actions .small-button {
    width: 100%;
  }

  .show-copy-panel {
    align-items: stretch;
    grid-template-areas:
      "source"
      "hint"
      "action";
    grid-template-columns: 1fr;
  }

  .rows {
    gap: 10px;
  }

  .data-row,
  .team-row,
  .carpool-row,
  .time-row,
  .guest-row,
  .tech-row,
  .tech-link-row,
  .tech-file-row,
  .setlist-row,
  .template-row,
  .artist-row,
  .contact-row,
  .venue-row,
  .admin-row,
  .flight-row,
  .hotel-row,
  .nested-row,
  .feature-row,
  .availability-row,
  .group-main-row {
    border-radius: 18px;
    box-shadow: 0 3px 16px rgba(29, 29, 31, 0.04);
    padding: 10px;
  }

  .drag-handle,
  .remove-row {
    border-radius: 13px;
  }

  .bottom-add {
    margin-top: 12px;
  }

  .bottom-add .small-button {
    background: #111;
    border-color: #111;
    color: #fff;
    min-height: 48px;
  }

  .preview-toolbar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 217, 223, 0.78);
    border-radius: 18px;
    margin-bottom: 12px;
    padding: 12px;
    position: sticky;
    top: calc(116px + env(safe-area-inset-top, 0px));
    z-index: 8;
    backdrop-filter: blur(16px);
  }

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

  .preview-toolbar-actions .share-trigger {
    min-height: 48px;
  }

  .preview-toolbar-actions .share-menu {
    border-radius: 22px 22px 0 0;
    bottom: 0;
    box-shadow: 0 -18px 48px rgba(18, 18, 18, 0.22);
    left: 0;
    max-height: min(76dvh, 560px);
    overflow: auto;
    padding: 12px;
    position: fixed;
    right: 0;
    top: auto;
    width: 100%;
    z-index: 75;
  }

  .share-menu-item {
    border-radius: 14px;
    min-height: 58px;
    padding: 12px;
  }

  .share-menu-item strong {
    font-size: 15px;
  }

  .share-menu-item span {
    font-size: 12px;
  }

  .print-sheet {
    border-radius: 18px;
    overflow: hidden;
  }

  .preview-panel .print-sheet {
    border-left: 1px solid rgba(217, 217, 223, 0.82);
    border-right: 1px solid rgba(217, 217, 223, 0.82);
  }

  .sheet-hero {
    border-radius: 0;
    padding: 26px 20px;
  }

  .sheet-hero h2 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .info-grid div,
  .sheet-section {
    padding: 18px 16px;
  }

  .home-card {
    padding: 16px;
  }

  .home-map-card,
  .home-calendar-card {
    margin-top: 14px;
  }

  .home-map-viewport {
    border-radius: 18px;
    height: min(360px, 58dvh);
  }

  .home-calendar-grid {
    border-radius: 16px;
    overflow-x: auto;
  }

  .home-show-row,
  .home-status-row,
  .home-calendar-row,
  .account-show-row {
    border-radius: 16px;
    padding: 12px;
  }

  .calendar-grid {
    border-radius: 18px;
  }

  .calendar-day {
    min-height: 108px;
  }

  .calendar-event {
    border-radius: 11px;
    min-height: 38px;
  }

  .side-menu-inner {
    border-radius: 0 24px 24px 0;
    padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 18px;
  }

  .side-nav-item {
    border-radius: 16px;
    min-height: 62px;
  }

  .choice-modal {
    align-items: end;
    padding: 0;
  }

  .choice-modal-card {
    border-radius: 24px 24px 0 0;
    max-width: none;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    width: 100%;
  }

  .setlist-preview-modal-card {
    max-height: 92dvh;
  }

  .setlist-preview-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .setlist-designer-controls .rows {
    max-height: none;
    overflow: visible;
  }

  .setlist-preview-header .subsection-actions {
    display: grid;
    grid-template-columns: 1fr 54px;
  }

  .setlist-designer-controls {
    order: 2;
  }

  .setlist-preview-frame {
    order: 1;
  }

  .setlist-style-fields,
  .setlist-print-fields {
    grid-template-columns: 1fr 1fr;
  }

  .setlist-designer-controls > .setlist-auto-fit {
    justify-self: stretch;
    min-height: 46px;
  }

  .setlist-preview-page {
    width: min(100%, 330px);
  }

  .app-version {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    right: 12px;
  }
}

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

  body {
    background: #fff;
    font-size: 10px;
  }

  .topbar,
  .editor-panel,
  .preview-toolbar,
  .public-actions,
  .login-view,
  .guest-print-sheet {
    display: none !important;
  }

  .workspace {
    display: block;
    padding: 0;
  }

  .preview-panel {
    display: block;
  }

  .print-sheet {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transform: scale(0.94);
    transform-origin: top left;
    width: 106.4%;
  }

  .sheet-hero {
    min-height: 88px;
    padding: 14px 16px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .sheet-hero h2 {
    font-size: 25px;
    line-height: 1;
    margin-bottom: 5px;
  }

  .sheet-label {
    font-size: 9px;
    margin-bottom: 5px;
  }

  .sheet-hero p {
    font-size: 10px;
  }

  .date-badge,
  .date-card {
    gap: 2px;
    height: 68px;
    min-width: 76px;
    padding: 7px 8px 8px;
  }

  .date-badge span,
  .date-card strong {
    font-size: 26px;
  }

  .date-badge strong,
  .date-card span {
    font-size: 10px;
  }

  .date-badge em,
  .date-card em {
    font-size: 7px;
  }

  .info-grid div {
    padding: 9px 14px;
  }

  .info-grid strong {
    font-size: 12px;
  }

  .info-grid p {
    font-size: 9px;
    margin-top: 3px;
  }

  .info-grid span,
  .section-heading span {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .sheet-section {
    padding: 9px 14px;
  }

  .sheet-hero,
  .info-grid,
  .sheet-section,
  .people-grid {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .section-heading h3 {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .list-preview,
  .people-list,
  .carpool-preview {
    gap: 0;
  }

  .preview-row,
  .person-row {
    gap: 8px;
    grid-template-columns: 110px 1fr;
    padding: 3px 0;
  }

  .preview-row strong,
  .person-row strong {
    font-size: 9.5px;
  }

  .preview-row span,
  .person-row span {
    font-size: 9.5px;
  }

  .carpool-preview {
    margin-top: 5px;
  }

  .carpool-preview-group {
    border-radius: 0;
    padding: 5px 0;
  }

  .carpool-preview-group strong {
    font-size: 9.5px;
    margin-bottom: 1px;
  }

  .carpool-preview-group p,
  .carpool-preview-group li {
    font-size: 9px;
  }

  .carpool-preview-group p {
    margin-bottom: 3px;
  }

  .carpool-preview-group li {
    padding-top: 2px;
  }

  .timeline-item {
    gap: 10px;
    grid-template-columns: 48px 1fr;
    min-height: 27px;
  }

  .timeline-item::before {
    left: 55px;
    top: 10px;
  }

  .timeline-time {
    font-size: 11px;
  }

  .timeline-label {
    padding-bottom: 7px;
  }

  .timeline-label strong {
    font-size: 9.5px;
  }

  .notes-section p {
    font-size: 9px;
    line-height: 1.35;
  }

  .notes-section {
    max-height: 36mm;
    overflow: hidden;
  }

  body.guest-printing .app-shell,
  body.guest-printing .public-view {
    display: none !important;
  }

  body.guest-printing .guest-print-sheet {
    border: 0;
    display: block !important;
  }

body.guest-printing .guest-print-header {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

.app-shell.is-viewer-mode .editor-panel,
.app-shell.is-viewer-mode #homePage .home-grid {
  display: none !important;
}

@media (max-width: 780px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }

  body {
    background: linear-gradient(180deg, #fbfbfd 0, #f5f5f7 240px, #fff 100%);
    max-width: 100dvw;
    overflow-x: hidden;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell,
  .admin-app,
  .app-page,
  .workspace,
  .page-shell,
  .editor-panel,
  .preview-panel {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .topbar {
    align-items: stretch;
    background: rgba(251, 251, 253, 0.94);
    border-bottom: 1px solid rgba(210, 210, 216, 0.72);
    box-shadow: 0 10px 32px rgba(20, 20, 25, 0.07);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 14px;
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
  }

  .brand {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 44px;
    width: 100%;
  }

  .brand-logo {
    height: 28px;
    max-width: 156px;
  }

  .menu-button {
    border-radius: 999px;
    height: 46px;
    width: 46px;
  }

  .top-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 58px minmax(0, 1fr);
    min-width: 0;
    width: 100%;
  }

  .top-show-search {
    grid-column: 1 / -1;
    min-height: 58px;
    min-width: 0;
    overflow: hidden;
    padding: 9px 14px;
  }

  .top-show-search span {
    font-size: 11px;
  }

  .top-show-search input {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .show-calendar-button {
    border-radius: 18px;
    grid-column: 1;
    min-height: 54px;
    padding: 0;
    width: auto;
  }

  .show-calendar-button strong {
    display: none;
  }

  .calendar-icon {
    margin: 0;
    transform: scale(0.92);
  }

  .show-nav-controls {
    border-radius: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 54px;
    overflow: hidden;
    width: 100%;
  }

  .top-actions .show-nav-controls {
    grid-column: 2;
    min-width: 0;
  }

  .show-nav-button {
    border-radius: 0;
    font-size: 22px;
    font-weight: 800;
    height: 54px;
    min-width: 0;
    padding: 0;
  }

  .top-actions .show-select {
    display: none;
  }

  .workspace,
  .page-shell {
    padding: 14px;
  }

  .workspace {
    display: block;
  }

  .page-panel,
  .editor-panel,
  .preview-panel,
  .home-card,
  .account-form,
  .account-shows-card {
    border-radius: 24px;
  }

  .page-panel,
  .editor-panel,
  .preview-panel,
  .home-card {
    padding: 18px;
  }

  .panel-header,
  .home-header,
  .preview-toolbar,
  .subsection-title,
  .home-map-heading,
  .home-calendar-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .panel-actions,
  .panel-actions .small-button {
    width: 100%;
  }

  .availability-preview-grid {
    grid-template-columns: 1fr;
  }

  .venue-merge-grid {
    grid-template-columns: 1fr;
  }

  .panel-header h2,
  .home-header h2,
  .preview-toolbar h2 {
    font-size: clamp(27px, 8vw, 38px);
    line-height: 1.04;
  }

  .contact-toolbar {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .home-map-controls,
  .home-calendar-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .preset-bar {
    border-radius: 20px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .preset-main,
  .preset-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .preset-main select,
  .preset-main button,
  .preset-actions button {
    width: 100%;
  }

  .travel-party-contact {
    grid-template-columns: 1fr;
  }

  .travel-party-contact input {
    font-size: 16px;
    min-height: 48px;
  }

  .home-map-controls select {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .home-map-controls .small-button,
  .home-calendar-controls .small-button,
  .small-button,
  .primary-button,
  .secondary-button {
    min-height: 48px;
  }

  .home-map-viewport,
  .venue-map-viewport {
    border-radius: 22px;
    height: min(420px, 62dvh);
    margin-top: 14px;
  }

  .map-placeholder {
    padding: 22px;
  }

  .venue-map-card {
    margin: 14px 0 16px;
  }

  .venue-list {
    display: grid;
    gap: 12px;
  }

  .venue-row {
    border-radius: 22px;
  }

  .venue-row + .venue-row {
    margin-top: 0;
  }

  .venue-summary {
    gap: 10px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 12px;
  }

  .venue-summary .drag-handle {
    grid-row: 1 / span 2;
    height: 48px;
    width: 42px;
  }

  .venue-summary-title {
    font-size: 17px;
    white-space: normal;
  }

  .venue-summary-meta {
    grid-column: 2 / 3;
    white-space: normal;
  }

  .venue-toggle {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-width: 82px;
  }

  .venue-summary .remove-row {
    grid-column: 3;
    grid-row: 3;
    min-height: 40px;
    width: 82px;
  }

  .venue-editor {
    padding: 14px;
  }

  .venue-editor-actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .venue-editor-actions > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venue-editor-actions button {
    min-height: 46px;
    width: 100%;
  }

  .venue-editor-actions .venue-icon-button {
    height: 46px;
    min-height: 46px;
    width: 46px;
  }

  .venue-grid,
  .venue-field-pair,
  .venue-contact-card {
    grid-template-columns: 1fr;
  }

  .venue-grid .wide,
  .venue-field-pair.wide,
  .venue-contact-card.wide {
    grid-column: auto;
  }

  .venue-grid-heading {
    margin-top: 10px;
  }

  .venue-file-actions {
    align-items: stretch;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .tabs-shell {
    margin-inline: -4px;
    overflow: hidden;
  }

  .tab {
    min-width: 108px;
  }

  .data-row,
  .team-row,
  .guest-row,
  .tech-item-row,
  .tech-link-row,
  .flight-person-row,
  .hotel-person-row {
    gap: 8px;
  }

  .team-row,
  .team-row.is-staff {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(214, 216, 224, 0.92);
    border-radius: 22px;
    display: grid;
    gap: 10px;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding: 12px;
  }

  .team-row .row-label,
  .team-row .row-value,
  .team-row .row-carpool {
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
  }

  .team-row .team-contact-edit {
    grid-column: 1;
    grid-row: 4;
    height: 42px;
    justify-self: start;
    width: 42px;
  }

  .team-row .team-availability-dot {
    grid-column: 2;
    grid-row: 4;
    height: 30px;
    justify-self: center;
    width: 30px;
  }

  .team-row.is-staff .team-availability-dot {
    display: none;
  }

  .team-row .drag-handle {
    grid-column: 1 / 3;
    grid-row: 5;
    min-height: 46px;
  }

  .team-row .remove-row {
    grid-column: 3;
    grid-row: 4 / span 2;
    min-height: 46px;
    width: 46px;
  }

  .team-row.is-staff .team-contact-edit {
    grid-column: 1;
  }

  .team-row.is-staff .drag-handle {
    grid-column: 1 / 3;
  }

  .team-row input,
  .team-row select {
    border-radius: 16px;
    min-height: 50px;
  }

  .subsection {
    min-width: 0;
  }

  .subsection-title,
  .subsection-actions {
    min-width: 0;
  }

  .subsection-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .print-sheet {
    box-shadow: 0 14px 38px rgba(20, 20, 25, 0.08);
  }

  .preview-panel {
    margin-top: 14px;
    position: static;
  }

  .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(210, 210, 216, 0.72);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -18px 44px rgba(20, 20, 25, 0.14);
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-item {
    border-radius: 18px;
    font-size: 12px;
    min-height: 52px;
  }

  .artist-categories {
    flex-wrap: nowrap;
    margin-inline: -2px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .artist-categories::-webkit-scrollbar {
    display: none;
  }

  .artist-chip {
    flex: 0 0 auto;
    max-width: 78vw;
  }

  .calendar-grid,
  .home-calendar-grid {
    border-radius: 20px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .calendar-weekday {
    font-size: 10px;
    min-width: 0;
    padding: 9px 2px;
  }

  .calendar-day {
    min-height: 72px;
    min-width: 0;
    padding: 6px 4px;
  }

  .calendar-day-number {
    font-size: 13px;
    height: 24px;
    width: 24px;
  }

  .calendar-events {
    gap: 3px;
    margin-top: 4px;
  }

  .calendar-event {
    border: 0;
    border-radius: 999px;
    gap: 0;
    grid-template-columns: 1fr;
    min-height: 7px;
    overflow: hidden;
    padding: 0;
  }

  .calendar-event span {
    height: 7px;
    min-height: 7px;
    width: 100%;
  }

  .calendar-event strong,
  .calendar-event small {
    display: none;
  }

  .home-calendar-weekday {
    font-size: 10px;
    min-width: 0;
    padding: 9px 2px;
  }

  .home-calendar-day {
    gap: 4px;
    min-height: 64px;
    min-width: 0;
    overflow: hidden;
    padding: 6px 4px;
  }

  .home-calendar-day > span {
    font-size: 13px;
    height: 24px;
    width: 24px;
  }

  .home-calendar-day > div {
    align-content: start;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
  }

  .home-calendar-day button {
    flex: 0 0 auto;
    height: 8px;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    width: 8px;
  }
}

@media (max-width: 430px) {
  .top-actions {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .show-nav-button {
    font-size: 20px;
  }

  .brand-logo {
    height: 24px;
    max-width: 132px;
  }

  .workspace,
  .page-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-panel,
  .editor-panel,
  .preview-panel,
  .home-card {
    padding: 16px;
  }

  .venue-editor-actions > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .calendar-day {
    min-height: 64px;
  }
}
.travel-days-panel {
  max-width: 1440px;
  margin: 0 auto;
}

.travel-days-header {
  align-items: center;
}

.travel-days-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  min-height: 620px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.travel-day-sidebar {
  border-right: 1px solid var(--line);
  background: #f7f8fa;
  min-width: 0;
}

.travel-day-filter {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.travel-day-filter input {
  width: 100%;
}

.travel-day-list {
  display: grid;
  gap: 6px;
  padding: 10px;
  max-height: 720px;
  overflow: auto;
}

.travel-day-list-item {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #171719;
  text-align: left;
}

.travel-day-list-item:hover,
.travel-day-list-item.is-active {
  border-color: #d9dce3;
  background: #fff;
}

.travel-day-list-item i {
  width: 4px;
  min-height: 42px;
  border-radius: 3px;
  background: var(--artist-color, #2f6fed);
}

.travel-day-list-item span {
  display: grid;
  min-width: 0;
}

.travel-day-list-item strong,
.travel-day-list-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-day-list-item strong {
  font-size: 14px;
}

.travel-day-list-item small {
  color: #747783;
  margin-top: 4px;
}

.travel-day-editor {
  min-width: 0;
  padding: 24px;
}

.travel-day-editor-head,
.travel-segment-head,
.travel-day-section .section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.travel-day-editor-head h3 {
  margin: 3px 0 0;
  font-size: 27px;
}

.travel-day-actions,
.travel-day-add-person {
  display: flex;
  gap: 8px;
  align-items: center;
}

.travel-day-main-fields,
.travel-segment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.travel-day-main-fields {
  margin-top: 24px;
}

.travel-day-main-fields label,
.travel-segment-grid label {
  display: grid;
  gap: 7px;
  color: #676a74;
  font-size: 12px;
  font-weight: 700;
}

.travel-day-main-fields .wide,
.travel-segment-grid .wide {
  grid-column: 1 / -1;
}

.travel-day-main-fields select[multiple] {
  min-height: 112px;
}

.travel-day-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.travel-segment-list,
.travel-day-people {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.travel-segment {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.travel-segment-head {
  margin-bottom: 14px;
}

.travel-segment-head select {
  width: min(220px, 100%);
  font-weight: 700;
  text-transform: capitalize;
}

.travel-day-add-person {
  justify-content: flex-end;
  margin-top: -40px;
}

.travel-day-add-person select {
  width: min(340px, 100%);
}

.travel-day-person {
  display: grid;
  grid-template-columns: 28px minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) 38px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.travel-day-person > div {
  display: grid;
  min-width: 0;
}

.travel-day-person strong,
.travel-day-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-day-person small {
  color: #747783;
}

.calendar-event.is-travel-day,
.agenda-day-row.is-travel-day {
  background: #eef6ff;
}

.calendar-event.is-travel-day strong::before,
.agenda-day-row.is-travel-day strong::before {
  content: "✈";
  margin-right: 6px;
  color: var(--artist-color);
}

@media (max-width: 820px) {
  .travel-days-panel {
    padding: 0;
  }

  .travel-days-header {
    padding-inline: 16px;
  }

  .travel-days-layout {
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .travel-day-sidebar {
    border: 0;
    background: transparent;
  }

  .travel-day-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 10px 16px 14px;
  }

  .travel-day-list-item {
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
    background: #fff;
    border-color: var(--line);
  }

  .travel-day-editor {
    padding: 18px 16px 120px;
    border-top: 1px solid var(--line);
  }

  .travel-day-editor-head {
    align-items: flex-start;
  }

  .travel-day-main-fields,
  .travel-segment-grid {
    grid-template-columns: 1fr;
  }

  .travel-day-main-fields .wide,
  .travel-segment-grid .wide {
    grid-column: auto;
  }

  .travel-day-add-person {
    display: grid;
    grid-template-columns: 1fr auto;
    margin-top: 12px;
  }

  .travel-day-add-person select {
    width: 100%;
  }

  .travel-day-person {
    grid-template-columns: 28px minmax(0, 1fr) 38px;
  }

  .travel-day-person input {
    grid-column: 2 / -1;
  }

  .travel-day-person .icon-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mobile-nav-item {
    min-width: 0;
    padding-inline: 4px;
    font-size: 11px;
  }

  .mobile-show-tabs {
    display: none;
  }

.is-show-page .mobile-show-tabs {
    display: flex;
  }
}

@media (max-width: 700px) {
  .team-row .drag-handle,
  .guest-row .drag-handle,
  .tech-row .drag-handle,
  .tech-link-row .drag-handle,
  .setlist-row .drag-handle,
  .flight-row .drag-handle,
  .hotel-row .drag-handle,
  .nested-row .drag-handle,
  .template-row .drag-handle,
  .artist-row .drag-handle,
  .contact-row .drag-handle,
  .venue-summary .drag-handle {
    border-radius: 10px;
    height: 38px;
    justify-self: start;
    min-height: 38px;
    width: 38px;
  }
}

@media (max-width: 700px) {
  .mobile-quick-share {
    display: none;
  }

  .is-show-page .top-actions .mobile-quick-share {
    align-items: center;
    display: inline-flex;
    grid-column: 1 / -1;
    justify-content: center;
    line-height: 1;
    min-height: 48px;
    width: 100%;
  }

  .is-show-page .preview-toolbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-show-tabs,
  .tabs {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .side-nav,
  .share-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }
}

.setlist-editor .setlist-row,
.setlist-designer-controls .setlist-row {
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
}
.edit-setlist-song { background: var(--soft); border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; min-height: 36px; padding: 0 11px; }
.song-library-summary { align-items: center; display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) auto auto; }
.song-library-summary > div:first-child { display: grid; gap: 3px; }
.song-library-summary strong { font-size: 18px; }
.song-library-summary span,.song-library-summary-meta { color: var(--muted); font-size: 12px; }
.song-library-card-body { border-top: 1px solid var(--line); display: none; margin-top: 14px; padding-top: 14px; }
.song-library-card.is-open .song-library-card-body { display: block; }
.song-library-footer { align-items: center; display: flex; gap: 14px; justify-content: space-between; margin-top: 14px; }
.song-library-delete { background: #fff3f3; border: 1px solid #ffc9c9; border-radius: 10px; color: #b42318; font-weight: 800; padding: 9px 12px; }
.setlist-song-edit-card { max-width: 760px; width: min(760px,calc(100vw - 28px)); }
.song-edit-fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; max-height: 62vh; overflow: auto; padding: 2px; }
.song-edit-fields .wide { grid-column: 1 / -1; }

@media (max-width: 700px) {
  .setlist-editor .setlist-row,
  .setlist-designer-controls .setlist-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  }
  .song-library-summary { grid-template-columns: minmax(0,1fr) auto; }
  .song-library-summary-meta { display: none; }
  .song-edit-fields { grid-template-columns: 1fr; }
  .song-edit-fields .wide { grid-column: auto; }
}

/* Setlist export: visual standard PDF or a configurable table */
.setlist-export-choice-card { display: grid; gap: 14px; max-width: 720px; width: min(720px, calc(100vw - 28px)); }
.setlist-export-choice-header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.setlist-export-choice-header h3 { margin: 3px 0 0; }
.setlist-format-card { align-items: center; background: #111; border: 0; border-radius: 16px; color: #fff; cursor: pointer; display: grid; gap: 14px; grid-template-columns: auto minmax(0,1fr) auto; padding: 18px; text-align: left; }
.setlist-format-card:hover { background: #252525; }
.setlist-format-icon { align-items: center; background: #fff; border-radius: 11px; color: #111; display: inline-flex; font-size: 22px; height: 44px; justify-content: center; width: 44px; }
.setlist-format-card span:nth-child(2),.setlist-detailed-heading span { display: grid; gap: 3px; }
.setlist-format-card strong,.setlist-detailed-heading strong { font-size: 16px; }
.setlist-format-card small { color: #c9c9ce; font-size: 12px; font-weight: 600; }
.setlist-format-card b { font-size: 12px; }
.setlist-detailed-export { border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 15px; padding: 18px; }
.setlist-detailed-heading small { color: var(--muted); font-size: 12px; }
.setlist-detailed-export .setlist-export-checks { display: grid; gap: 9px 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.setlist-detailed-export .setlist-export-checks label { align-items: center; background: var(--soft); border-radius: 10px; display: flex; font-size: 12px; font-weight: 700; gap: 8px; min-height: 42px; padding: 8px 11px; }
.setlist-detailed-export .setlist-export-checks input { height: 18px; margin: 0; width: 18px; }
.setlist-detailed-export .primary-action { justify-self: end; }

@media (max-width: 700px) {
  .setlist-format-card { grid-template-columns: auto minmax(0,1fr); }
  .setlist-format-card b { display: none; }
  .setlist-detailed-export .setlist-export-checks { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .setlist-detailed-export .primary-action { justify-self: stretch; width: 100%; }
}

/* Refined Song Library accordion */
#songsPage .song-library-page { margin-inline: auto; max-width: 1180px; width: 100%; }
#songsPage .song-library-card { overflow: hidden; padding: 0; }
#songsPage .song-library-summary { min-height: 72px; padding: 12px 16px 12px 18px; }
#songsPage .song-library-summary-main { display: grid; gap: 2px; min-width: 0; }
#songsPage .song-library-summary-main input { background: transparent; border: 0; border-radius: 0; font-size: 18px; font-weight: 820; min-height: 30px; overflow: hidden; padding: 0; text-overflow: ellipsis; }
#songsPage .song-library-summary-main input:focus { box-shadow: none; outline: 0; }
#songsPage .song-library-summary-main span { font-size: 12px; }
#songsPage .song-library-summary-meta { max-width: 260px; overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
#songsPage .song-library-toggle { min-width: 74px; }
#songsPage .song-library-card-body { background: #fbfbfc; margin: 0; padding: 0; }
.song-library-section { display: grid; gap: 13px; padding: 16px 18px; }
.song-library-section + .song-library-section { border-top: 1px solid var(--line); }
.song-library-section-title { align-items: baseline; display: flex; gap: 9px; }
.song-library-section-title strong { font-size: 14px; }
.song-library-section-title span { color: var(--muted); font-size: 11px; }
.song-library-basic-fields { display: grid; gap: 10px; grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr) minmax(150px,.7fr); }
.song-library-timing-fields { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.song-library-note-fields { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.song-library-basic-fields label,
.song-library-timing-fields label,
.song-library-note-fields label { font-size: 11px; gap: 5px; }
.song-library-basic-fields input,
.song-library-basic-fields select,
.song-library-timing-fields input { min-height: 42px; padding-block: 8px; }
.song-library-note-fields textarea { min-height: 88px; }
#songsPage .song-library-footer { border-top: 1px solid var(--line); margin: 0; padding: 14px 18px; }
.song-library-delete-zone { align-items: center; display: flex; gap: 10px; }
.song-library-delete-zone span { color: var(--muted); font-size: 11px; }
#songsPage .song-updated { margin: 0; text-align: left; }
#songsPage .song-library-delete { background: transparent; border-color: #efb4b4; color: #b42318; font-size: 12px; padding: 8px 11px; }

@media (max-width: 700px) {
  #songsPage .song-library-summary { grid-template-columns: minmax(0,1fr) auto; min-height: 64px; padding: 10px 12px; }
  #songsPage .song-library-summary-main input { font-size: 16px; }
  .song-library-basic-fields,
  .song-library-timing-fields,
  .song-library-note-fields { grid-template-columns: 1fr; }
  .song-library-section-title { align-items: flex-start; flex-direction: column; gap: 2px; }
  #songsPage .song-library-footer { align-items: flex-start; flex-direction: column; }
  .song-library-delete-zone { justify-content: space-between; width: 100%; }
}
