:root {
  --ink: #111111;
  --muted-ink: #111111;
  --paper: #e8e8e8;
  --panel: #e8e8e8;
  --panel-strong: #e8e8e8;
  --line: #111111;
  --white: #e8e8e8;
  --accent: #e8e8e8;
  --warn: #111111;
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body {
  min-height: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-size: 22px;
  line-height: 1.05;
}

h3 {
  font-size: 13px;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.brand,
.site-nav a,
.logout-form button {
  display: inline-flex;
  align-items: center;
  min-height: 45px;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand {
  border-left: 0;
  border-right: 1px solid var(--line);
}

.brand:hover,
.brand:focus-visible,
.site-nav a:hover,
.site-nav a:focus-visible,
.logout-form button:hover,
.logout-form button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.site-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.logout-form {
  display: contents;
}

.logout-form button,
.button,
button,
input,
select,
textarea {
  font: inherit;
}

.logout-form button {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.page {
  width: min(1260px, calc(100% - 24px));
  margin: 12px auto 40px;
}

.workspace,
.public-kit {
  display: grid;
  gap: 12px;
}

.two-column,
.public-kit {
  grid-template-columns: minmax(220px, 292px) minmax(0, 1fr);
  align-items: start;
}

.panel,
.public-sidebar,
.public-main {
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel,
.public-main {
  padding: 14px;
}

.main-panel.flush-panel {
  padding: 0;
}

.flush-panel .panel-header {
  margin: 0;
  padding: 14px;
  border-bottom: 0;
}

.side-panel,
.public-sidebar {
  position: sticky;
  top: 58px;
}

.public-sidebar {
  padding: 10px;
}

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

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel-header h1,
.panel-header h2,
.panel-header p {
  margin-bottom: 0;
}

.button-row,
.form-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.stack-actions {
  display: grid;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
}

.button:hover,
.button:focus-visible,
button.button:hover,
button.button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.full-width {
  width: 100%;
}

.messages {
  width: min(1260px, calc(100% - 24px));
  margin: 12px auto 0;
}

.message {
  margin: 0 0 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--accent);
  font-weight: 700;
}

.auth-shell {
  display: grid;
  min-height: calc(100vh - 100px);
  place-items: center;
}

.auth-panel {
  width: min(440px, 100%);
}

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

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

.field {
  display: grid;
  gap: 5px;
}

/* Inline checkbox + label (e.g. the single's Explicit toggle). */
.checkbox-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.field span,
.filters span,
.label,
dt {
  color: var(--muted-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 7px 9px;
}

textarea {
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

small,
.minor,
.empty-state {
  color: var(--muted-ink);
}

/* Rich, centred empty state (e.g. dashboard "No press kits yet"). */
.empty-state-block {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 52px 24px 56px;
}

.empty-state-block .empty-state-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted-ink);
}

.empty-state-block .empty-state-icon svg {
  width: 26px;
  height: 26px;
}

.empty-state-block h3 {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--ink);
}

.empty-state-block p {
  margin: 0;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.5;
}

.empty-state-block .button {
  margin-top: 8px;
}

.errorlist {
  margin: 0;
  padding-left: 18px;
  color: var(--warn);
}

.password-hints {
  margin: 0;
  padding-left: 18px;
  color: var(--muted-ink);
  font-size: 12px;
}

.password-hints li {
  margin: 2px 0;
}

.password-hints[hidden] {
  display: none;
}

.meta-list {
  display: grid;
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}

.meta-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.release-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: inherit;
  text-decoration: none;
}

.release-tile:hover,
.release-tile:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: -2px;
}

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

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--line);
  padding: 0;
}

.release-row:first-child {
  border-top: 0;
}

.release-row:last-child {
  border-bottom: 0;
}

.release-row-main {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 8px 0 8px 14px;
  color: inherit;
  text-decoration: none;
}

.release-row-main:hover strong,
.release-row-main:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.release-row-image {
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  font-weight: 800;
}

.release-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.release-row-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.release-row-public {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px 12px;
  border-left: 1px solid var(--line);
}

.release-row-copy strong {
  font-size: 18px;
}

.release-row-stats {
  font-size: 12px;
  font-weight: 700;
}

.release-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-content: stretch;
  align-items: stretch;
  justify-content: end;
  border-left: 1px solid var(--line);
}

.release-row-actions .button {
  min-height: 100%;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.release-row-actions .button:last-child {
  border-right: 0;
}

.release-cover,
.cover {
  display: grid;
  aspect-ratio: 1;
  width: 100%;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  font-size: 32px;
  font-weight: 800;
}

.cover {
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.release-cover img,
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  background: var(--paper);
}

.release-copy {
  display: grid;
  gap: 4px;
  padding: 9px;
}

.release-copy strong {
  font-size: 16px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0 0;
}

.mini-stats > span,
.mini-stats div {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}

.mini-stats dd {
  margin: 0;
  font-weight: 700;
}

.stat-label {
  color: var(--muted-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(90px, 130px) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.filters label {
  display: grid;
  gap: 5px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  background: var(--panel);
}

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

th {
  background: var(--panel-strong);
  font-size: 11px;
  text-transform: uppercase;
}

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

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

.check-col {
  width: 54px;
}

.seen-mark {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  font-weight: 800;
}

.seen-yes {
  background: var(--ink);
  color: var(--paper);
}

.table-copy-button {
  min-height: 28px;
  padding: 4px 9px;
}

.autosave-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.block {
  display: block;
  overflow-wrap: anywhere;
}

.public-link {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  margin-bottom: 14px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.public-link span {
  padding: 9px;
  color: var(--muted-ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-link-url {
  min-width: 0;
  padding: 9px;
  border-left: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.public-link-actions {
  display: flex;
  gap: 0;
  justify-content: end;
  border-left: 1px solid var(--line);
}

.public-link-actions .button {
  min-height: 100%;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.pitch {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.2;
}

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

.detail-grid section {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.press-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 1fr);
  gap: 12px;
}

.press-copy-grid.no-credits {
  grid-template-columns: 1fr;
}

.press-copy-main {
  display: grid;
  gap: 12px;
}

.press-copy-main section,
.press-copy-credits {
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.press-shot-list {
  display: grid;
  gap: 18px;
}

.press-shot {
  display: grid;
  gap: 0;
  margin: 0;
}

.press-shot > a:first-child {
  display: block;
  width: 100%;
}

.press-shot img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.press-shot .button {
  width: 100%;
  min-height: 42px;
}

.press-shot figcaption {
  padding: 7px 0;
  font-weight: 700;
}

.public-kit {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.integrated-kit {
  display: block;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: -14px -14px 18px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  border-right: 1px solid var(--line);
}

.hero-media img,
.hero-media .cover {
  width: 100%;
  height: 100%;
  min-height: 320px;
  margin: 0;
  border: 0;
  object-fit: cover;
}

/* Singles, EPs and albums: force square (album-style) cover art. */
.hero-media.square-cover {
  aspect-ratio: 1 / 1;
  align-self: start;
}

.hero-media.square-cover img,
.hero-media.square-cover .cover {
  min-height: 0;
}

.hero-copy {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px 18px 18px 0;
}

.hero-copy h1 {
  margin-bottom: 0;
  font-size: 42px;
}

.artist-line {
  font-size: 18px;
}

.release-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.release-meta div {
  padding-top: 8px;
}

.release-meta dd {
  margin: 0;
}

.press-actions {
  display: flex;
  gap: 0;
  align-items: stretch;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

.artwork-actions,
.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.external-links {
  justify-content: flex-end;
  margin-left: auto;
}

.artwork-actions .button,
.external-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.artwork-actions .button:hover,
.artwork-actions .button:focus-visible,
.external-links a:hover,
.external-links a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.audio-panel {
  margin: -18px -14px 18px;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.release-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: -14px -14px 14px;
  padding: 18px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
}

.release-hero h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.custom-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  margin: 0;
}

.player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.player-button:hover,
.player-button:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.player-track {
  position: relative;
  min-height: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}

.player-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--ink);
}

.player-time {
  position: absolute;
  right: 8px;
  bottom: 5px;
  z-index: 1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  mix-blend-mode: difference;
}

.player-download {
  min-height: 42px;
  border-left: 0;
}

.play-button {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

audio {
  width: 100%;
  margin-bottom: 10px;
}

.link-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.link-list a {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.file-expired {
  padding: 9px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
}

@media (max-width: 780px) {
  .page {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  .brand,
  .site-nav a,
  .logout-form button {
    min-height: 38px;
    padding: 0 10px;
    border-left: 0;
    border-right: 1px solid var(--line);
  }

  .site-nav {
    width: 100%;
    border-top: 1px solid var(--line);
    overflow-x: auto;
  }

  .two-column,
  .public-kit,
  .detail-grid,
  .form-grid,
  .public-hero,
  .release-meta,
  .press-copy-grid {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .public-sidebar {
    position: static;
  }

  .filters,
  .public-link,
  .release-row {
    grid-template-columns: 1fr;
  }

  .public-link-actions {
    justify-content: start;
  }

  .press-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .external-links {
    justify-content: start;
    margin-left: 0;
  }

  .panel-header,
  .release-hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-copy {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .panel-header {
    display: grid;
  }

  .release-hero h2 {
    font-size: 28px;
  }

  .release-row-public,
  .release-row-actions {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .release-row-actions {
    justify-content: start;
  }

  .custom-player {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .player-download {
    grid-column: 1 / -1;
  }

  .play-button {
    width: 100%;
    height: 48px;
  }
}


/* Current interaction and spacing pass */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.release-dashboard {
  gap: 0;
}

.panel:not(.flush-panel) > .panel-header {
  margin: -14px -14px 14px;
  padding: 14px;
}

.meta-list {
  margin: 0 -14px 14px;
}

.meta-list div {
  padding: 7px 14px;
}

.dashboard-side .stack-actions {
  margin: 0 -14px -14px;
}

.dashboard-side .stack-actions .button {
  border-left: 0;
  border-right: 0;
}

.dashboard-side .stack-actions .button:last-child {
  border-bottom: 0;
}

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

.release-row-main {
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.release-row-image {
  width: 94px;
  border: 0;
  border-right: 1px solid var(--line);
}

.release-row-copy {
  padding: 8px 12px;
}

.table-panel {
  padding: 0;
}

.table-panel .panel-header {
  margin: 0;
  padding: 14px;
}

.table-panel .filters {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(90px, 130px) minmax(140px, 220px);
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.table-panel .filters label {
  gap: 0;
  border-right: 1px solid var(--line);
}

.table-panel .filters label:last-child {
  border-right: 0;
}

.table-panel .filters span {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.table-panel .filters input,
.table-panel .filters select {
  border: 0;
}

.table-panel .filters select[multiple] {
  min-height: 58px;
}

.table-panel .table-wrap {
  border: 0;
}

.check-col {
  width: 70px;
}

td.state-cell {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.state-toggle {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 800;
  cursor: pointer;
}

.state-cell-off {
  background: var(--paper);
  color: var(--ink);
}

.state-cell-on {
  background: var(--ink);
  color: var(--paper);
}

.state-cell-off:hover,
.state-cell-off:focus-within {
  background: var(--ink);
  color: transparent;
  box-shadow: inset 0 0 0 3px var(--ink);
}

.state-cell-off:hover .state-toggle::before,
.state-cell-off:focus-within .state-toggle::before {
  content: "✓";
  color: var(--paper);
}

.state-cell-on:hover,
.state-cell-on:focus-within {
  background: var(--paper);
  color: transparent;
  box-shadow: inset 0 0 0 3px var(--paper);
}

.state-cell-on:hover .state-toggle::before,
.state-cell-on:focus-within .state-toggle::before {
  content: "X";
  color: var(--ink);
}

.seen-cell:hover,
.seen-cell:focus-within {
  background: #b00020;
  color: transparent;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.seen-cell:hover .state-toggle::before,
.seen-cell:focus-within .state-toggle::before {
  content: attr(data-hover-symbol);
  color: #ffffff;
}

.copy-cell[data-copy-cell] {
  position: relative;
  cursor: pointer;
}

.copy-cell[data-copy-cell]:hover {
  background: var(--ink);
  color: transparent;
}

.copy-cell[data-copy-cell]:hover > * {
  visibility: hidden;
}

.copy-cell[data-copy-cell]:hover::after {
  content: "Copy!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-weight: 800;
}

.table-button,
.table-copy-button {
  min-height: 30px;
  width: 100%;
}

.public-main {
  padding-bottom: 0;
}

.hero-copy {
  padding: 18px 18px 0 0;
}

.press-actions {
  margin: auto -18px 0 0;
  border-top: 1px solid var(--line);
}

.artwork-actions .button,
.external-links a {
  border-top: 0;
  border-bottom: 0;
}

.audio-panel {
  margin: -18px -14px 18px;
  padding: 0;
  border: 0;
}

.custom-player {
  border: 1px solid var(--line);
}

.player-button {
  border: 0;
  border-right: 1px solid var(--line);
}

.player-track {
  border: 0;
}

.player-download {
  border: 0;
  border-left: 1px solid var(--line);
}

.video-section {
  margin: 18px -14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.video-section iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.press-shot .button {
  justify-self: stretch;
  width: 100%;
}

.current-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--line);
}

.current-file-row a {
  min-width: 0;
  padding: 7px 9px;
  overflow-wrap: anywhere;
}

.current-file-row .button {
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.current-file-list {
  display: grid;
  gap: 0;
}

@media (max-width: 780px) {
  .release-dashboard,
  .table-panel .filters {
    grid-template-columns: 1fr;
  }

  .table-panel .filters label,
  .table-panel .filters label:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-panel .filters label:last-child {
    border-bottom: 0;
  }

  .press-actions {
    margin: auto -14px 0;
  }

  .hero-copy {
    padding: 14px 14px 0;
  }
}

.seen-cell:hover,
.seen-cell:focus-within {
  color: #ffffff;
}

.seen-cell:hover .state-toggle,
.seen-cell:focus-within .state-toggle {
  color: #ffffff;
}

.seen-cell:hover .state-toggle::before,
.seen-cell:focus-within .state-toggle::before {
  content: none;
}

/* Refinements for dashboard separators, release row borders, and state-cell hover */
.release-dashboard .main-panel {
  border-left: 0;
}

.dashboard-side h1 {
  margin-bottom: 10px;
}

.dashboard-side .meta-list {
  border-top: 0;
}

.dashboard-side .meta-list div {
  border-bottom: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

.dashboard-side .stack-actions .button + .button {
  border-top: 0;
}

.release-row-main {
  align-items: stretch;
}

.release-row-image {
  height: 100%;
  min-height: 94px;
  aspect-ratio: auto;
}

.state-toggle {
  position: relative;
  line-height: 1;
}

.state-cell-off:hover,
.state-cell-off:focus-within {
  box-shadow: inset 0 0 0 3px var(--paper);
}

.state-cell-on:hover,
.state-cell-on:focus-within {
  box-shadow: inset 0 0 0 3px var(--ink);
}

.state-cell-off:hover .state-toggle,
.state-cell-off:focus-within .state-toggle,
.state-cell-on:hover .state-toggle,
.state-cell-on:focus-within .state-toggle {
  color: transparent;
}

.state-cell-off:hover .state-toggle::before,
.state-cell-off:focus-within .state-toggle::before,
.state-cell-on:hover .state-toggle::before,
.state-cell-on:focus-within .state-toggle::before {
  content: none;
}

.state-cell-off:hover .state-toggle::after,
.state-cell-off:focus-within .state-toggle::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
}

.state-cell-on:hover .state-toggle::after,
.state-cell-on:focus-within .state-toggle::after {
  content: "X";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.seen-cell:hover,
.seen-cell:focus-within {
  box-shadow: inset 0 0 0 3px #ffffff;
}

.seen-cell:hover .state-toggle,
.seen-cell:focus-within .state-toggle {
  color: #ffffff;
}

.seen-cell:hover .state-toggle::after,
.seen-cell:focus-within .state-toggle::after {
  content: none;
}

/* Public press kit flush/border cleanup */
.public-kit .public-main {
  padding: 14px 14px 0;
}

.public-kit .public-hero {
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 0;
  margin: -14px -14px 0;
}

.public-kit .hero-copy {
  padding: 18px 18px 0;
}

.public-kit .press-actions {
  margin: auto -18px 0;
  border-top: 1px solid var(--line);
}

.public-kit .artwork-actions .button,
.public-kit .external-links a {
  border-top: 0;
  border-bottom: 0;
}

.public-kit .artwork-actions .button:first-child,
.public-kit .external-links a:first-child {
  border-left: 0;
}

.public-kit .external-links a + a {
  border-left: 0;
}

.public-kit .external-links a:last-child {
  border-right: 0;
}

.public-kit .audio-panel {
  margin: 0 -14px 18px;
  border: 0;
}

.public-kit .custom-player {
  border: 0;
  border-bottom: 1px solid var(--line);
}

.public-kit .player-button {
  border: 0;
  border-right: 1px solid var(--line);
}

.public-kit .player-track {
  border: 0;
}

.public-kit .player-download {
  border: 0;
  border-left: 1px solid var(--line);
}

.public-kit .press-copy-grid {
  margin-top: 18px;
}

.public-kit .press-copy-main section,
.public-kit .press-copy-credits {
  padding-top: 0;
  border-top: 0;
}

.public-kit .press-shots-section {
  margin-left: -14px;
  margin-right: -14px;
}

.public-kit .press-shots-section h2 {
  padding: 0 14px;
}

.public-kit .press-shot-list {
  gap: 0;
}

.public-kit .press-shot .button {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

@media (max-width: 780px) {
  .public-kit .hero-copy {
    padding: 14px 14px 0;
  }

  .public-kit .press-actions {
    margin: auto -14px 0;
  }
}

/* Flush edit/profile two-pane pages like the releases dashboard */
.release-dashboard .side-panel > .button.full-width {
  width: calc(100% + 28px);
  margin: 0 -14px -14px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

/* Pin public press kit action buttons to the bottom of the hero copy */
.public-kit .hero-copy {
  display: flex;
  flex-direction: column;
  align-content: initial;
  height: 100%;
}

.public-kit .press-actions {
  width: calc(100% + 36px);
  margin: auto -18px 0;
}

.public-kit .artwork-actions .button,
.public-kit .external-links a {
  text-decoration: none;
}

/* Edit release / profile side-panel alignment */
.release-dashboard .dashboard-side {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.release-dashboard .dashboard-side > .button.full-width {
  margin-top: auto;
}

.release-dashboard .main-panel:not(.flush-panel) {
  border-left: 1px solid var(--line);
}

/* Restore separator before the first website/social action */
.public-kit .external-links a:first-child {
  border-left: 1px solid var(--line);
}

/* Press shot image padding with flush download buttons */
.public-kit .press-shot {
  border-bottom: 1px solid var(--line);
}

.public-kit .press-shot > a:first-child {
  padding: 14px;
}

.public-kit .press-shot .button {
  border-top: 1px solid var(--line);
}

.public-kit .press-shot:last-child {
  border-bottom: 0;
}

/* Separator between filters and data tables */
.table-panel .table-wrap {
  border-top: 1px solid var(--line);
}

/* Custom filter dropdowns and confirmation dialog */
.table-panel .filters select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  padding: 8px 34px 8px 9px;
  background-color: var(--paper);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%),
    linear-gradient(to right, var(--line), var(--line));
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%,
    calc(100% - 28px) 0;
  background-size: 6px 6px, 6px 6px, 1px 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  font-weight: 700;
}

.table-panel .filters select:hover,
.table-panel .filters select:focus-visible {
  background-color: var(--ink);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--paper) 50%),
    linear-gradient(135deg, var(--paper) 50%, transparent 50%),
    linear-gradient(to right, var(--paper), var(--paper));
  color: var(--paper);
  outline: 0;
}

.table-panel .filters select option {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.confirm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(17, 17, 17, 0.62);
}

.confirm-backdrop[hidden] {
  display: none;
}

.confirm-panel {
  display: grid;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.confirm-copy {
  padding: 14px;
}

.confirm-copy h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.confirm-copy p {
  margin-bottom: 0;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.confirm-actions .button {
  min-height: 42px;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.confirm-actions .button:last-child {
  border-right: 0;
}

/* Keep profile/edit side panes natural height and a single pane divider */
.release-dashboard .dashboard-side {
  align-self: start;
}

.release-dashboard .main-panel:not(.flush-panel) {
  border-left: 0;
}

/* Explicitly keep release/profile side panes natural height with one divider */
.release-dashboard > .side-panel {
  align-self: start;
  height: auto;
}

.release-dashboard > .main-panel {
  border-left: 0;
}

/* Single divider between side pane and main pane */
.release-dashboard > .side-panel {
  border-right: 0;
}

.release-dashboard > .main-panel {
  border-left: 1px solid var(--line);
}


/* Final two-pane divider behavior: both panes draw the shared edge, overlapped by 1px. */
.release-dashboard > .side-panel {
  border-right: 1px solid var(--line);
}

.release-dashboard > .main-panel {
  border-left: 1px solid var(--line);
  margin-left: -1px;
}

.release-dashboard.form-dashboard > .side-panel {
  align-self: start;
  height: auto;
}

/* Custom filter dropdown menus */
.table-panel .filters .filter-field {
  display: grid;
  gap: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.table-panel .filters .filter-field:last-child {
  border-right: 0;
}

.table-panel .filters .filter-field > span {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.table-panel .filters .filter-field input[type="search"] {
  border: 0;
}

.custom-select {
  position: relative;
  min-width: 0;
}

.custom-select-toggle {
  display: block;
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 8px 34px 8px 9px;
  border: 0;
  border-radius: 0;
  appearance: none;
  background-color: var(--paper);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%),
    linear-gradient(to right, var(--line), var(--line));
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%,
    calc(100% - 28px) 0;
  background-size: 6px 6px, 6px 6px, 1px 100%;
  background-repeat: no-repeat;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.custom-select-toggle:hover,
.custom-select-toggle:focus-visible,
.custom-select[data-open="true"] .custom-select-toggle {
  background-color: var(--ink);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--paper) 50%),
    linear-gradient(135deg, var(--paper) 50%, transparent 50%),
    linear-gradient(to right, var(--paper), var(--paper));
  color: var(--paper);
  outline: 0;
}

.custom-select-menu {
  position: fixed;
  z-index: 1000;
  top: auto;
  left: auto;
  right: auto;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--paper);
}

.custom-select-option {
  display: block;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
}

.custom-select-option:last-child {
  border-bottom: 0;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}


/* Keep custom dropdown menus floating over the table, not expanding the filter row. */
.custom-select-menu[hidden] {
  display: none !important;
}

.custom-select-menu:not([hidden]) {
  display: block;
}

.custom-select-option {
  appearance: none;
  -webkit-appearance: none;
}


/* Portalled custom dropdowns: the open option list lives under body, never in form layout. */
body > .custom-select-menu[data-floating-menu="true"] {
  position: fixed !important;
  display: block;
  z-index: 10000;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow-y: auto;
  box-shadow: none;
}

body > .custom-select-menu[data-floating-menu="true"] .custom-select-option {
  display: block;
  width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 8px 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

/* Make custom filter overlays read as one dropdown table, not stacked buttons. */
body > .custom-select-menu[data-floating-menu="true"] {
  border: 1px solid var(--line) !important;
  background: var(--paper) !important;
}

body > .custom-select-menu[data-floating-menu="true"] .custom-select-option {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-height: 30px;
  margin: 0;
  padding: 6px 9px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
}

body > .custom-select-menu[data-floating-menu="true"] .custom-select-option:last-child {
  border-bottom: 0;
}

body > .custom-select-menu[data-floating-menu="true"] .custom-select-option:hover,
body > .custom-select-menu[data-floating-menu="true"] .custom-select-option:focus-visible {
  background: var(--ink);
  color: var(--paper);
  outline: 0;
}

body > .custom-select-menu[data-floating-menu="true"] .custom-select-option[aria-selected="true"] {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

body > .custom-select-menu[data-floating-menu="true"] .custom-select-option[aria-selected="true"]:hover,
body > .custom-select-menu[data-floating-menu="true"] .custom-select-option[aria-selected="true"]:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* Closed custom filter controls: match the search field, not browser buttons. */
.table-panel .filters .filter-field {
  margin: 0;
  padding: 0;
}

.table-panel .filters input[type="search"],
.table-panel .filters .custom-select-toggle {
  height: 38px;
  min-height: 38px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.table-panel .filters .custom-select-toggle {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 32px 0 9px;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: var(--paper) !important;
  background-image: none !important;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-panel .filters .custom-select-toggle::after {
  content: "▾";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: grid;
  width: 28px;
  place-items: center;
  border-left: 1px solid currentColor;
  color: currentColor;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.table-panel .filters .custom-select-toggle:hover,
.table-panel .filters .custom-select-toggle:focus-visible,
.table-panel .filters .custom-select[data-open="true"] .custom-select-toggle {
  background: var(--ink) !important;
  background-image: none !important;
  color: var(--paper);
  outline: 0;
}

.table-panel .filters input[type="search"] {
  padding-top: 0;
  padding-bottom: 0;
}

/* Outreach state hovers: keep the existing X/tick symbol while preserving hover color and inset border. */
td.state-cell.state-cell-off:hover,
td.state-cell.state-cell-off:focus-within {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 3px var(--paper);
}

td.state-cell.state-cell-on:hover,
td.state-cell.state-cell-on:focus-within {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--ink);
}

td.state-cell:hover .state-toggle,
td.state-cell:focus-within .state-toggle {
  color: inherit !important;
}

td.state-cell:hover .state-toggle::before,
td.state-cell:focus-within .state-toggle::before,
td.state-cell:hover .state-toggle::after,
td.state-cell:focus-within .state-toggle::after {
  content: none !important;
}

td.state-cell.seen-cell:hover,
td.state-cell.seen-cell:focus-within {
  background: #b00020;
  color: #ffffff;
  box-shadow: inset 0 0 0 3px #ffffff;
}

td.state-cell.seen-cell:hover .state-toggle,
td.state-cell.seen-cell:focus-within .state-toggle {
  color: #ffffff !important;
}

td.favourite-cell .state-toggle {
  font-size: 18px;
  line-height: 1;
}

/* Final pane-divider rule: both panes draw the shared edge, overlapped by 1px to avoid double thickness. */
.release-dashboard {
  gap: 0 !important;
}

.release-dashboard > .side-panel {
  border-right: 1px solid var(--line) !important;
}

.release-dashboard > .main-panel {
  border-left: 1px solid var(--line) !important;
  margin-left: -1px !important;
}

@media (max-width: 780px) {
  .release-dashboard > .main-panel {
    margin-left: 0 !important;
  }
}

/* Press-shot file list rows share one separator instead of double-thick touching borders. */
.current-file-list .current-file-row + .current-file-row {
  border-top: 0;
}

/* Flush profile photo to the left-pane edges on release/profile edit surfaces. */
.release-dashboard > .dashboard-side > .cover {
  width: calc(100% + 28px);
  margin: -14px -14px 12px;
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

/* Remove remaining right/bottom whitespace from left-pane profile photos. */
.release-dashboard > .dashboard-side > .cover {
  width: calc(100% + 28px) !important;
  max-width: none !important;
  margin: -14px -14px 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-left: 0 !important;
}

.release-dashboard > .dashboard-side > img.cover {
  display: block;
  object-fit: cover;
}

/* Add a little breathing room between the flush side image and side-pane title. */
.release-dashboard > .dashboard-side > .cover + h1 {
  margin-top: 12px;
}

/* Dashboard side metrics: keep labels on one line and push values right. */
.dashboard-page .dashboard-side .meta-list div {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
}

.dashboard-page .dashboard-side .meta-list dt {
  white-space: nowrap;
}

.dashboard-page .dashboard-side .meta-list dd {
  text-align: right;
}

/* Give the Audience filter enough room and extra text padding before the arrow. */
.table-panel .filters {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(140px, 190px) minmax(140px, 220px) !important;
}

.table-panel .filters .custom-select-toggle {
  padding-right: 42px;
}

.table-panel .filters .custom-select-toggle::after {
  width: 32px;
}

/* Remove native blue focus outlines from text boxes and controls. */
input:focus,
select:focus,
textarea:focus,
button:focus,
.button:focus {
  outline: 0 !important;
}

input:not([type="checkbox"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  box-shadow: inset 0 0 0 2px var(--line) !important;
}

/* Adjacent header/action buttons share one border instead of drawing double-thick dividers. */
.button-row .button + .button,
.button-row button.button + .button,
.button-row .button + button.button,
.button-row button.button + button.button {
  margin-left: -1px !important;
}

/* Boolean table cells are clickable across the whole cell, not only the symbol. */
td.state-cell {
  cursor: pointer;
}

td.state-cell .state-toggle {
  height: 100%;
}

/* Genre cells truncate by default and expand in place on click. */
td.genre-cell {
  max-width: 180px;
  cursor: pointer;
  vertical-align: middle;
}

td.genre-cell > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

td.genre-cell:hover,
td.genre-cell:focus-within {
  background: var(--ink);
  color: var(--paper);
}

td.genre-cell[data-expanded="1"] {
  max-width: 360px;
}

td.genre-cell[data-expanded="1"] > span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Compact contact/outreach table layout. */
.table-panel table {
  min-width: 980px;
}

.best-contact-cell {
  width: 160px;
  max-width: 160px;
  padding: 0;
  vertical-align: middle;
}

.best-contact-button {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 42px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.best-contact-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.details-cell {
  width: 78px;
  padding: 0;
  vertical-align: middle;
}

.details-cell .button {
  width: 100%;
  height: 100%;
  min-height: 42px;
  border: 0;
}

.muted-table-value {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--muted-ink);
}

/* Sticky table controls on long contact/outreach pages. */
.site-header {
  z-index: 80;
}

.table-panel .panel-header {
  position: sticky;
  top: 46px;
  z-index: 60;
  background: var(--panel);
}

.table-panel .filters {
  position: sticky;
  top: 109px;
  z-index: 55;
  background: var(--panel);
}

.table-panel thead th {
  position: sticky;
  top: 166px;
  z-index: 50;
  background: var(--panel-strong);
}

/* Stronger fixed-width truncation for genre cells. */
td.genre-cell {
  width: 126px !important;
  max-width: 126px !important;
  min-width: 126px !important;
  overflow: hidden;
}

td.genre-cell > span {
  width: 110px;
  max-width: 110px;
}

td.genre-cell[data-expanded="1"] {
  width: 340px !important;
  max-width: 340px !important;
}

td.genre-cell[data-expanded="1"] > span {
  width: 324px;
  max-width: 324px;
}

.contact-details-panel {
  width: min(680px, calc(100vw - 28px));
}

.contact-details-content {
  border: 1px solid var(--line);
  border-bottom: 0;
}

.contact-details-list {
  margin: 0;
}

.contact-details-list div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.contact-details-list dt,
.contact-details-list dd {
  margin: 0;
  padding: 8px;
}

.contact-details-list dt {
  border-right: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.contact-details-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-copy-button,
.detail-link-button {
  width: 100%;
  min-height: 30px;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .table-panel .panel-header {
    top: 46px;
  }

  .table-panel .filters,
  .table-panel thead th {
    position: static;
  }

  .contact-details-list div {
    grid-template-columns: 1fr;
  }

  .contact-details-list dt {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Final fixed header/table behavior for contact and outreach tables. */
body.app-body {
  padding-top: 46px;
}

body.public-body {
  padding-top: 0;
}

body.app-body .site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.sticky-table-page .table-panel .panel-header,
.sticky-table-page .table-panel .filters {
  position: sticky !important;
  background: var(--panel);
}

.sticky-table-page .table-panel .panel-header {
  top: 46px !important;
  z-index: 900;
}

.sticky-table-page .table-panel .filters {
  top: 104px !important;
  z-index: 890;
}

.sticky-table-page .table-wrap {
  overflow-x: visible !important;
}

.sticky-table-page thead th {
  position: sticky !important;
  top: 164px !important;
  z-index: 880;
  background: var(--panel-strong);
}

.contacts-table,
.outreach-table {
  table-layout: fixed;
}

.contacts-table {
  min-width: 1080px !important;
}

.outreach-table {
  min-width: 1450px !important;
}

.contacts-table th:nth-child(1),
.contacts-table td:nth-child(1),
.outreach-table th:nth-child(1),
.outreach-table td:nth-child(1),
.outreach-table th:nth-child(2),
.outreach-table td:nth-child(2),
.outreach-table th:nth-child(3),
.outreach-table td:nth-child(3),
.outreach-table th:nth-child(4),
.outreach-table td:nth-child(4) {
  width: 70px;
}

.contacts-table th:nth-child(2),
.contacts-table td:nth-child(2),
.outreach-table th:nth-child(6),
.outreach-table td:nth-child(6) {
  width: 140px;
}

.contacts-table th:nth-child(3),
.contacts-table td:nth-child(3),
.outreach-table th:nth-child(7),
.outreach-table td:nth-child(7) {
  width: 170px;
}

.contacts-table th:nth-child(4),
.contacts-table td:nth-child(4),
.outreach-table th:nth-child(8),
.outreach-table td:nth-child(8) {
  width: 150px;
}

.contacts-table th:nth-child(5),
.contacts-table td:nth-child(5),
.outreach-table th:nth-child(9),
.outreach-table td:nth-child(9) {
  width: 92px;
}

.contacts-table th:nth-child(6),
.contacts-table td:nth-child(6),
.outreach-table th:nth-child(12),
.outreach-table td:nth-child(12) {
  width: 160px;
}

.contacts-table th:nth-child(7),
.contacts-table td:nth-child(7),
.outreach-table th:nth-child(10),
.outreach-table td:nth-child(10) {
  width: 112px;
}

.contacts-table th:nth-child(8),
.contacts-table td:nth-child(8),
.outreach-table th:nth-child(11),
.outreach-table td:nth-child(11) {
  width: 126px !important;
  max-width: 126px !important;
  min-width: 126px !important;
}

.contacts-table th:nth-child(9),
.contacts-table td:nth-child(9),
.outreach-table th:nth-child(13),
.outreach-table td:nth-child(13) {
  width: 78px;
}

.outreach-table th:nth-child(5),
.outreach-table td:nth-child(5) {
  width: 92px;
}

td.genre-cell,
td.genre-cell > span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

td.genre-cell > span {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

td.genre-cell[data-expanded="1"],
td.genre-cell[data-expanded="1"] > span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* Adjacent buttons should share a single separator. */
.button-row .button + .button,
.button-row button.button + .button,
.button-row .button + button.button,
.button-row button.button + button.button {
  margin-left: 0 !important;
  border-left: 0 !important;
}

.contact-details-backdrop {
  z-index: 2000 !important;
}

@media (max-width: 780px) {
  body.app-body {
    padding-top: 92px;
  }

  .sticky-table-page .table-wrap {
    overflow-x: auto !important;
  }

  .sticky-table-page .table-panel .filters,
  .sticky-table-page thead th {
    position: static !important;
  }
}

/* Runtime-measured sticky offsets prevent contact/outreach table chrome from overlapping. */
.sticky-table-page .table-panel .panel-header {
  top: var(--sticky-panel-top, 46px) !important;
}

.sticky-table-page .table-panel .filters {
  top: var(--sticky-filter-top, 104px) !important;
}

.sticky-table-page thead th {
  top: var(--sticky-head-top, 164px) !important;
}


/* Final contact/outreach table action and track-editor refinements. */
html {
  scrollbar-gutter: stable;
}

body.app-body .site-header {
  width: auto !important;
  box-sizing: border-box;
}

.sticky-table-page,
.sticky-table-page .table-panel,
.sticky-table-page .table-wrap {
  overflow: visible !important;
}

.button-row .button + .button,
.button-row button.button + .button,
.button-row .button + button.button,
.button-row button.button + button.button {
  margin-left: -1px !important;
  border-left: 1px solid var(--line) !important;
}

.table-panel .panel-header .button,
.table-panel .panel-header .button-row .button {
  min-height: 45px;
}

td.action-cell {
  padding: 0 !important;
  vertical-align: middle;
  text-align: center;
}

td.action-cell[role="button"] {
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
}

td.action-cell > [data-action-text] {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

td.action-cell[role="button"]:hover,
td.action-cell[role="button"]:focus-visible {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 0 0 3px var(--paper);
}

td.action-cell[role="button"]:focus {
  outline: 0;
}

.best-contact-cell,
.presskit-link-cell,
.details-cell {
  height: 42px;
}

.best-contact-cell {
  width: 170px !important;
  max-width: 170px !important;
}

.presskit-link-cell,
.details-cell {
  width: 92px !important;
}

td.genre-cell {
  padding: 0 !important;
  height: 42px;
}

td.genre-cell > span {
  min-height: 42px;
  padding: 0 8px;
  align-content: center;
}

td.genre-cell [data-genre-full] {
  display: none !important;
}

td.genre-cell[data-expanded="1"] [data-genre-preview] {
  display: none !important;
}

td.genre-cell[data-expanded="1"] [data-genre-full] {
  display: block !important;
  width: 324px !important;
  max-width: 324px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.contact-details-panel {
  padding: 0 !important;
  border: 1px solid var(--line);
  background: var(--panel);
}

.contact-details-panel .confirm-copy {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.contact-details-panel .confirm-copy h2 {
  margin: 0;
}

.contact-details-content {
  border: 0 !important;
}

.contact-details-list {
  border: 0;
}

.contact-details-list div {
  min-height: 42px;
  grid-template-columns: 132px minmax(0, 1fr);
}

.contact-details-list dt,
.contact-details-list dd {
  display: grid;
  align-items: center;
  padding: 9px 10px;
}

.contact-details-list dd .button {
  min-height: 34px;
  margin: -9px -10px;
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
}

.contact-details-panel .confirm-actions {
  border-top: 1px solid var(--line);
}

.contact-details-panel .confirm-actions .button {
  min-height: 42px;
}

.track-editor {
  display: grid;
  gap: 0;
  margin-top: 14px;
  border: 1px solid var(--line);
}

.track-editor-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.track-editor-header > div {
  padding: 10px;
}

.track-editor-header h2,
.track-editor-header p {
  margin: 0;
}

.track-editor-header h2 {
  font-size: 13px;
  text-transform: uppercase;
}

.track-editor-header p {
  margin-top: 4px;
  font-size: 12px;
}

.track-editor-header .button {
  min-height: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

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

.track-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 86px 92px minmax(170px, 1fr) auto;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.track-row:last-child {
  border-bottom: 0;
}

.track-row label,
.track-row .track-file-link,
.track-row > input[type="file"] {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  border-right: 1px solid var(--line);
}

.track-row label span {
  padding: 4px 8px 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.track-row input[type="text"],
.track-row input[type="number"] {
  min-height: 24px;
  border: 0;
  padding: 0 8px 6px;
  background: transparent;
}

.track-row > input[type="file"] {
  padding: 8px;
}

.track-feature-field,
.track-explicit-field {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center !important;
  padding: 0 8px;
}

.track-feature-field input,
.track-explicit-field input {
  margin: 0;
}

.track-feature-field span,
.track-explicit-field span {
  padding: 0 !important;
}

.track-file-link {
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-row .button {
  min-height: 100%;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
}

.track-audio-panel {
  display: grid;
  gap: 0;
}

.track-player-row {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.track-player-row:first-child {
  border-top: 0;
}

.track-player-title {
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 42px;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
  font-weight: 700;
}

.track-player-title strong {
  font-size: 10px;
  text-transform: uppercase;
}

.track-player-row .custom-player {
  height: 100%;
}

.public-kit .audio-panel {
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}

.public-kit .custom-player {
  border: 0 !important;
}

.public-kit .player-button {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 1px solid var(--line) !important;
}

.public-kit .player-track {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

.public-kit .player-download {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid var(--line) !important;
}

@media (max-width: 780px) {
  .track-row,
  .track-player-row {
    grid-template-columns: 1fr;
  }

  .track-row label,
  .track-row .track-file-link,
  .track-row > input[type="file"],
  .track-player-title {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}


/* Final contact table sizing: compact metadata columns and vertical genre expansion. */
.contacts-table,
.outreach-table {
  table-layout: auto !important;
}

.contacts-table th:nth-child(4),
.contacts-table td:nth-child(4),
.contacts-table th:nth-child(5),
.contacts-table td:nth-child(5),
.contacts-table th:nth-child(7),
.contacts-table td:nth-child(7),
.outreach-table th:nth-child(8),
.outreach-table td:nth-child(8),
.outreach-table th:nth-child(9),
.outreach-table td:nth-child(9),
.outreach-table th:nth-child(10),
.outreach-table td:nth-child(10) {
  width: 1% !important;
  min-width: 0 !important;
  max-width: none !important;
  white-space: nowrap;
}

.outreach-table th:nth-child(5),
.outreach-table td:nth-child(5),
.presskit-link-cell {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
}

.details-cell {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

td.genre-cell,
td.genre-cell[data-expanded="1"] {
  width: 126px !important;
  min-width: 126px !important;
  max-width: 126px !important;
  vertical-align: top;
}

td.genre-cell > span,
td.genre-cell[data-expanded="1"] > span,
td.genre-cell[data-expanded="1"] [data-genre-full] {
  width: auto !important;
  max-width: 100% !important;
}

td.genre-cell[data-expanded="1"] [data-genre-full] {
  display: block !important;
  min-height: 42px;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip !important;
}


/* Final requested skinny columns: favourite, press kit link, and genre. */
.contacts-table th:nth-child(1),
.contacts-table td:nth-child(1),
.outreach-table th:nth-child(1),
.outreach-table td:nth-child(1) {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
}

.contacts-table th:nth-child(1),
.outreach-table th:nth-child(1) {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.outreach-table th:nth-child(5),
.outreach-table td:nth-child(5),
.presskit-link-cell {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}

.outreach-table th:nth-child(5) {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.contacts-table th:nth-child(8),
.contacts-table td:nth-child(8),
.outreach-table th:nth-child(11),
.outreach-table td:nth-child(11),
td.genre-cell,
td.genre-cell[data-expanded="1"] {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
}

.contacts-table th:nth-child(8),
.outreach-table th:nth-child(11) {
  white-space: normal !important;
}

td.genre-cell > span,
td.genre-cell [data-genre-preview],
td.genre-cell[data-expanded="1"] [data-genre-full] {
  width: auto !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
}

td.genre-cell [data-genre-preview] {
  display: block !important;
}

td.genre-cell[data-expanded="1"] [data-genre-preview] {
  display: none !important;
}


/* Fit contact/outreach tables within a 13-inch laptop viewport without horizontal scrolling. */
.table-panel table,
.contacts-table,
.outreach-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.sticky-table-page .table-wrap,
.table-panel .table-wrap {
  overflow-x: visible !important;
}

.contacts-table th,
.contacts-table td,
.outreach-table th,
.outreach-table td {
  padding: 5px 6px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contacts-table td.state-cell,
.outreach-table td.state-cell,
.contacts-table td.action-cell,
.outreach-table td.action-cell,
.contacts-table td.genre-cell,
.outreach-table td.genre-cell {
  padding: 0 !important;
}

.contacts-table th:nth-child(1),
.contacts-table td:nth-child(1) { width: 5% !important; min-width: 0 !important; max-width: none !important; }
.contacts-table th:nth-child(2),
.contacts-table td:nth-child(2) { width: 16% !important; min-width: 0 !important; max-width: none !important; }
.contacts-table th:nth-child(3),
.contacts-table td:nth-child(3) { width: 16% !important; min-width: 0 !important; max-width: none !important; }
.contacts-table th:nth-child(4),
.contacts-table td:nth-child(4) { width: 14% !important; min-width: 0 !important; max-width: none !important; white-space: normal !important; }
.contacts-table th:nth-child(5),
.contacts-table td:nth-child(5) { width: 8% !important; min-width: 0 !important; max-width: none !important; white-space: normal !important; }
.contacts-table th:nth-child(6),
.contacts-table td:nth-child(6) { width: 22% !important; min-width: 0 !important; max-width: none !important; }
.contacts-table th:nth-child(7),
.contacts-table td:nth-child(7) { width: 7% !important; min-width: 0 !important; max-width: none !important; white-space: normal !important; }
.contacts-table th:nth-child(8),
.contacts-table td:nth-child(8) { width: 7% !important; min-width: 0 !important; max-width: none !important; }
.contacts-table th:nth-child(9),
.contacts-table td:nth-child(9) { width: 5% !important; min-width: 0 !important; max-width: none !important; }

.outreach-table th:nth-child(1),
.outreach-table td:nth-child(1) { width: 4% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(2),
.outreach-table td:nth-child(2) { width: 4% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(3),
.outreach-table td:nth-child(3) { width: 4% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(4),
.outreach-table td:nth-child(4) { width: 4% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(5),
.outreach-table td:nth-child(5) { width: 5% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(6),
.outreach-table td:nth-child(6) { width: 10% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(7),
.outreach-table td:nth-child(7) { width: 12% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(8),
.outreach-table td:nth-child(8) { width: 11% !important; min-width: 0 !important; max-width: none !important; white-space: normal !important; }
.outreach-table th:nth-child(9),
.outreach-table td:nth-child(9) { width: 7% !important; min-width: 0 !important; max-width: none !important; white-space: normal !important; }
.outreach-table th:nth-child(10),
.outreach-table td:nth-child(10) { width: 6% !important; min-width: 0 !important; max-width: none !important; white-space: normal !important; }
.outreach-table th:nth-child(11),
.outreach-table td:nth-child(11) { width: 7% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(12),
.outreach-table td:nth-child(12) { width: 19% !important; min-width: 0 !important; max-width: none !important; }
.outreach-table th:nth-child(13),
.outreach-table td:nth-child(13) { width: 7% !important; min-width: 0 !important; max-width: none !important; }

.contacts-table th:nth-child(1),
.outreach-table th:nth-child(1),
.outreach-table th:nth-child(2),
.outreach-table th:nth-child(3),
.outreach-table th:nth-child(4),
.outreach-table th:nth-child(5),
.contacts-table th:nth-child(8),
.outreach-table th:nth-child(11) {
  white-space: normal !important;
  line-height: 1.05;
}

td.action-cell > [data-action-text] {
  padding: 0 4px;
}

td.genre-cell,
td.genre-cell[data-expanded="1"] {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto;
}

td.genre-cell > span,
td.genre-cell [data-genre-preview],
td.genre-cell[data-expanded="1"] [data-genre-full] {
  min-height: 42px;
  padding: 0 6px;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
}


/* Public EP/album track table uses the hero separator as its top line. */
.public-kit .track-audio-panel {
  border-top: 0 !important;
}


/* Keep sticky table header separator lines visible while scrolling. */
.sticky-table-page thead th,
.contacts-table thead th,
.outreach-table thead th {
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}


/* Sticky table headers should keep the bottom separator without doubling the line above titles. */
.sticky-table-page thead th,
.contacts-table thead th,
.outreach-table thead th {
  box-shadow: inset 0 -1px 0 var(--line) !important;
}


/* Sticky table headers need owned borders; collapsed table borders vanish while scrolling. */
.contacts-table,
.outreach-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.sticky-table-page .contacts-table thead th,
.sticky-table-page .outreach-table thead th {
  border-top: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  background-clip: padding-box;
}

.sticky-table-page .contacts-table tbody tr:first-child td,
.sticky-table-page .outreach-table tbody tr:first-child td {
  border-top: 0 !important;
}


/* Public audio players use the hero separator as their top line. */
.public-kit .audio-panel {
  border-top: 0 !important;
}


/* Final global layout and settings/landing refinements. */
body.app-body .page {
  margin-top: -1px !important;
}

body.public-body .page {
  margin-top: 0 !important;
}

.site-header + .messages {
  margin-top: -1px !important;
}

.sticky-table-page .table-panel .table-wrap {
  border-top: 0 !important;
}

html.dark-mode,
body.dark-mode {
  --ink: #e8e8e8;
  --muted-ink: #e8e8e8;
  --paper: #111111;
  --panel: #111111;
  --panel-strong: #111111;
  --line: #e8e8e8;
  --white: #111111;
  --accent: #111111;
  background: var(--paper);
  color: var(--ink);
}

body.dark-mode img {
  filter: none;
}

body.dark-mode input[type="date"] {
  color-scheme: dark;
}

body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 1;
}

.landing-shell,
.auth-with-phrases {
  position: relative;
  min-height: calc(100vh - 45px);
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.landing-shell {
  display: grid;
  place-items: center;
}

.phrase-wall,
.auth-phrases {
  background: var(--paper);
}

.auth-phrases {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  align-content: center;
  pointer-events: none;
}

.phrase-row {
  display: flex;
  width: max-content;
  min-width: 200%;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  animation: phrase-scroll-left 24s linear infinite;
  opacity: 0.18;
}

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

.phrase-row.reverse {
  animation-name: phrase-scroll-right;
}

.phrase-row span {
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  padding: 0 28px;
  white-space: nowrap;
  font-size: clamp(34px, 7vw, 92px);
  font-weight: 800;
  text-transform: uppercase;
}

.landing-actions,
.auth-panel {
  position: relative;
  z-index: 1;
}

.landing-actions {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.landing-actions h1 {
  margin: 0;
  font-size: clamp(38px, 8vw, 104px);
  line-height: 0.95;
}

.auth-with-phrases .auth-panel {
  background: var(--panel);
}

@keyframes phrase-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

@keyframes phrase-scroll-right {
  from { transform: translateX(-33.333%); }
  to { transform: translateX(0); }
}

.settings-section {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}

.settings-section h2 {
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 44px;
  margin: 0;
}

.setting-row span {
  padding: 10px;
}

.setting-row input {
  justify-self: center;
}

.settings-section > .button {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.danger-section {
  margin-bottom: 0;
}

.best-contact-cell[data-copy-text] {
  position: relative;
}

.best-contact-cell[data-copy-text]:hover [data-action-text],
.best-contact-cell[data-copy-text]:focus-visible [data-action-text] {
  visibility: hidden;
}

.best-contact-cell[data-copy-text]:hover::after,
.best-contact-cell[data-copy-text]:focus-visible::after {
  content: "Copy!";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  pointer-events: none;
}

@media (max-width: 780px) {
  .landing-shell,
  .auth-with-phrases {
    min-height: calc(100vh - 91px);
  }
}


/* Login/signup page ticker: edge-to-edge continuous phrase rows. */
body.login-body .page,
body.signup-body .page {
  width: 100%;
  margin: -1px 0 0 !important;
}

body.login-body .auth-with-phrases,
body.signup-body .auth-with-phrases {
  min-height: calc(100vh - 45px);
  border-left: 0;
  border-right: 0;
}

body.login-body .auth-phrases,
body.signup-body .auth-phrases {
  align-content: stretch;
  overflow: hidden;
  background: var(--paper);
}

body.login-body .auth-phrases .phrase-row,
body.signup-body .auth-phrases .phrase-row {
  width: max-content;
  min-width: max-content;
  border: 0 !important;
  color: #111111;
  opacity: 1;
  animation: login-ticker-left 92s linear infinite;
  /* Resume mid-scroll so the background stays continuous across the
     log in <-> sign up navigation. Value comes from the server clock. */
  animation-delay: var(--ticker-delay, 0s);
}

body.login-body .auth-phrases .phrase-row:first-child,
body.signup-body .auth-phrases .phrase-row:first-child {
  border-top: 0 !important;
}

body.login-body .auth-phrases .phrase-row.reverse,
body.signup-body .auth-phrases .phrase-row.reverse {
  animation-name: login-ticker-right;
}

body.login-body .auth-phrases .phrase-row span,
body.signup-body .auth-phrases .phrase-row span {
  min-height: max(28px, calc((100vh - 45px) / 17));
  padding: 0 14px;
  color: #111111;
  font-size: clamp(24px, 4.7vw, 58px);
  line-height: 0.82;
}

@keyframes login-ticker-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes login-ticker-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}


/* Contact tables: Simplify toggle + clickable boolean column filters. */
/* Simplified view: show key contacts, plus any row where a boolean is on
   (favourite / to send / sent / seen). Hide only non-key rows that have none. */
.bool-filterable.simplify-on tbody tr[data-key="0"]:not(:has(td[data-bool-cell].state-cell-on)) {
  display: none;
}

.bool-filterable.boolfilter-favourite tbody tr:not(:has(td[data-bool-cell="favourite"].state-cell-on)),
.bool-filterable.boolfilter-to_send tbody tr:not(:has(td[data-bool-cell="to_send"].state-cell-on)),
.bool-filterable.boolfilter-sent tbody tr:not(:has(td[data-bool-cell="sent"].state-cell-on)),
.bool-filterable.boolfilter-seen tbody tr:not(:has(td[data-bool-cell="seen"].state-cell-on)) {
  display: none;
}

th.bool-col {
  cursor: pointer;
  user-select: none;
}

/* Specificity must beat `.sticky-table-page thead th { background }`, so scope
   these to the sticky table header rather than the bare `th.bool-col`. */
.sticky-table-page thead th.bool-col:hover,
.sticky-table-page thead th.bool-col:focus-visible,
.sticky-table-page thead th.bool-col-active {
  background: var(--ink);
  color: var(--paper);
  outline: none;
}

/* Keep the Simplify toggle visually separate from the action buttons. */
.button-row .simplify-button {
  margin-right: 12px;
}

.button-row .simplify-button + .button,
.button-row .simplify-button + button.button {
  margin-left: 0 !important;
}

/* Smartphone table controls: explicit column paging instead of free horizontal panning. */
.table-scroll-controls {
  display: none;
}

.table-scroll-controls[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  body.app-body .page:has(.sticky-table-page) {
    width: 100%;
  }

  .sticky-table-page .table-panel {
    border-right: 0;
    border-left: 0;
  }

  .sticky-table-page .table-panel .panel-header {
    position: static !important;
    gap: 10px;
    padding: 10px;
  }

  .sticky-table-page .table-panel .panel-header h1 {
    font-size: 20px;
    line-height: 1.1;
  }

  .table-panel .panel-header .button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .table-panel .panel-header .button-row .button,
  .table-panel .panel-header .button-row button.button {
    width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    text-align: center;
  }

  .table-panel .panel-header .button-row .button:nth-child(odd),
  .table-panel .panel-header .button-row button.button:nth-child(odd) {
    margin-left: 0 !important;
  }

  .table-panel .panel-header .button-row .button:nth-child(n + 3),
  .table-panel .panel-header .button-row button.button:nth-child(n + 3) {
    margin-top: -1px;
  }

  .table-panel .panel-header .button-row .button:last-child:nth-child(odd),
  .table-panel .panel-header .button-row button.button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .button-row .simplify-button {
    margin-right: 0;
  }

  .sticky-table-page .table-panel .filters {
    position: static !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .sticky-table-page .table-panel .filters .filter-field {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .sticky-table-page .table-panel .filters .filter-field:first-child,
  .sticky-table-page .table-panel .filters .filter-field:nth-child(4) {
    grid-column: 1 / -1;
  }

  .sticky-table-page .table-panel .filters .filter-field:nth-child(even),
  .sticky-table-page .table-panel .filters .filter-field:nth-child(4) {
    border-right: 0;
  }

  .sticky-table-page .table-panel .filters .filter-field:nth-child(4) {
    border-bottom: 0;
  }

  .table-panel .filters .filter-field > span {
    padding: 5px 8px;
  }

  .table-panel .filters input[type="search"],
  .table-panel .filters .custom-select-toggle {
    height: 36px;
    min-height: 36px;
  }

  .table-scroll-controls {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: stretch;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
  }

  .table-scroll-button {
    min-height: 42px;
    padding: 0;
    border: 0;
  }

  .table-scroll-button:disabled {
    color: var(--muted-ink);
    cursor: default;
  }

  .table-scroll-button:disabled:hover,
  .table-scroll-button:disabled:focus-visible {
    background: var(--white);
    color: var(--muted-ink);
  }

  .table-scroll-status {
    display: grid;
    min-height: 42px;
    place-items: center;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    font-size: 11px;
    font-weight: 800;
  }

  .sticky-table-page .table-wrap,
  .table-panel .table-wrap {
    overflow-x: hidden !important;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
  }

  .sticky-table-page thead th {
    position: static !important;
  }

  .sticky-table-page .contacts-table,
  .sticky-table-page .outreach-table {
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
  }

  .sticky-table-page .contacts-table {
    min-width: 1038px !important;
  }

  .sticky-table-page .outreach-table {
    min-width: 1244px !important;
  }

  .sticky-table-page .contacts-table th,
  .sticky-table-page .contacts-table td,
  .sticky-table-page .outreach-table th,
  .sticky-table-page .outreach-table td {
    padding: 6px 7px;
  }

  .sticky-table-page .contacts-table td.state-cell,
  .sticky-table-page .contacts-table td.action-cell,
  .sticky-table-page .contacts-table td.genre-cell,
  .sticky-table-page .outreach-table td.state-cell,
  .sticky-table-page .outreach-table td.action-cell,
  .sticky-table-page .outreach-table td.genre-cell {
    padding: 0 !important;
  }

  .sticky-table-page .contacts-table th:nth-child(1),
  .sticky-table-page .contacts-table td:nth-child(1) { width: 48px !important; }
  .sticky-table-page .contacts-table th:nth-child(2),
  .sticky-table-page .contacts-table td:nth-child(2) { width: 150px !important; }
  .sticky-table-page .contacts-table th:nth-child(3),
  .sticky-table-page .contacts-table td:nth-child(3) { width: 160px !important; }
  .sticky-table-page .contacts-table th:nth-child(4),
  .sticky-table-page .contacts-table td:nth-child(4) { width: 150px !important; }
  .sticky-table-page .contacts-table th:nth-child(5),
  .sticky-table-page .contacts-table td:nth-child(5) { width: 92px !important; }
  .sticky-table-page .contacts-table th:nth-child(6),
  .sticky-table-page .contacts-table td:nth-child(6) { width: 190px !important; }
  .sticky-table-page .contacts-table th:nth-child(7),
  .sticky-table-page .contacts-table td:nth-child(7) { width: 90px !important; }
  .sticky-table-page .contacts-table th:nth-child(8),
  .sticky-table-page .contacts-table td:nth-child(8) { width: 84px !important; }
  .sticky-table-page .contacts-table th:nth-child(9),
  .sticky-table-page .contacts-table td:nth-child(9) { width: 74px !important; }

  .sticky-table-page .outreach-table th:nth-child(1),
  .sticky-table-page .outreach-table td:nth-child(1) { width: 48px !important; }
  .sticky-table-page .outreach-table th:nth-child(2),
  .sticky-table-page .outreach-table td:nth-child(2),
  .sticky-table-page .outreach-table th:nth-child(3),
  .sticky-table-page .outreach-table td:nth-child(3),
  .sticky-table-page .outreach-table th:nth-child(4),
  .sticky-table-page .outreach-table td:nth-child(4) { width: 52px !important; }
  .sticky-table-page .outreach-table th:nth-child(5),
  .sticky-table-page .outreach-table td:nth-child(5) { width: 72px !important; }
  .sticky-table-page .outreach-table th:nth-child(6),
  .sticky-table-page .outreach-table td:nth-child(6) { width: 140px !important; }
  .sticky-table-page .outreach-table th:nth-child(7),
  .sticky-table-page .outreach-table td:nth-child(7) { width: 150px !important; }
  .sticky-table-page .outreach-table th:nth-child(8),
  .sticky-table-page .outreach-table td:nth-child(8) { width: 140px !important; }
  .sticky-table-page .outreach-table th:nth-child(9),
  .sticky-table-page .outreach-table td:nth-child(9) { width: 90px !important; }
  .sticky-table-page .outreach-table th:nth-child(10),
  .sticky-table-page .outreach-table td:nth-child(10) { width: 88px !important; }
  .sticky-table-page .outreach-table th:nth-child(11),
  .sticky-table-page .outreach-table td:nth-child(11) { width: 96px !important; }
  .sticky-table-page .outreach-table th:nth-child(12),
  .sticky-table-page .outreach-table td:nth-child(12) { width: 190px !important; }
  .sticky-table-page .outreach-table th:nth-child(13),
  .sticky-table-page .outreach-table td:nth-child(13) { width: 74px !important; }

  .sticky-table-page td.genre-cell > span,
  .sticky-table-page td.genre-cell [data-genre-preview],
  .sticky-table-page td.genre-cell[data-expanded="1"] [data-genre-full] {
    min-height: 42px;
    padding: 0 7px;
  }
}

/* Phone auth pages: keep the header compact and make the ticker fill the viewport. */
@media (max-width: 780px) {
  body.ticker-body {
    padding-top: 45px;
    overflow: hidden;
  }

  body.ticker-body .site-header {
    min-height: 45px;
    flex-direction: row;
    align-items: stretch;
  }

  body.ticker-body .brand,
  body.ticker-body .site-nav a,
  body.ticker-body .logout-form button {
    min-height: 45px;
    padding: 0 12px;
  }

  body.ticker-body .brand {
    border-right: 1px solid var(--line);
  }

  body.ticker-body .site-nav {
    width: auto;
    margin-left: auto;
    border-top: 0;
    overflow-x: visible;
  }

  body.ticker-body .site-nav a {
    border-right: 0;
    border-left: 1px solid var(--line);
  }

  body.login-body .page,
  body.signup-body .page,
  body.landing-body .page {
    height: calc(100dvh - 45px);
    margin: 0 !important;
    overflow: hidden;
  }

  body.login-body .auth-with-phrases,
  body.signup-body .auth-with-phrases,
  body.landing-body .auth-with-phrases {
    height: 100%;
    min-height: 100%;
  }

  body.login-body .auth-phrases,
  body.signup-body .auth-phrases,
  body.landing-body .auth-phrases {
    grid-template-rows: repeat(10, minmax(0, 1fr));
    align-content: stretch;
  }

  body.login-body .auth-phrases .phrase-row,
  body.signup-body .auth-phrases .phrase-row,
  body.landing-body .auth-phrases .phrase-row {
    height: 100%;
    min-height: 0;
    align-items: center;
  }

  body.login-body .auth-phrases .phrase-row span,
  body.signup-body .auth-phrases .phrase-row span,
  body.landing-body .auth-phrases .phrase-row span {
    min-height: 100%;
    font-size: clamp(28px, 6.2vh, 58px);
    line-height: 0.84;
  }

  body.login-body .auth-panel,
  body.signup-body .auth-panel {
    max-height: calc(100dvh - 73px);
    overflow-y: auto;
  }
}

/* Phone contact tables: make the arrow controls move a clipped table viewport. */
@media (max-width: 640px) {
  body.app-body:has(.sticky-table-page) {
    overflow-x: hidden;
  }

  .sticky-table-page,
  .sticky-table-page .table-panel {
    max-width: 100vw;
    overflow-x: hidden !important;
  }

  .sticky-table-page .table-wrap[data-table-scroll-viewport] {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden !important;
  }

  .sticky-table-page .table-wrap[data-table-scroll-viewport] > table {
    width: max-content !important;
    max-width: none !important;
    transform: translateX(0);
    transform-origin: left top;
  }
}

/* Touch devices should not keep desktop hover/inverted button states after taps. */
@media (hover: none) {
  .brand:hover,
  .site-nav a:hover,
  .logout-form button:hover {
    background: transparent;
    color: var(--ink);
  }

  .button:hover,
  button.button:hover,
  .table-scroll-button:hover {
    background: var(--white);
    color: var(--ink);
  }

  .button.primary:hover,
  button.button.primary:hover {
    background: var(--accent);
    color: var(--ink);
  }

  td.action-cell[role="button"]:hover,
  td.action-cell[role="button"]:focus:not(:focus-visible) {
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
  }

  .best-contact-cell[data-copy-text]:hover [data-action-text] {
    visibility: visible;
  }

  .best-contact-cell[data-copy-text]:hover::after {
    content: none;
  }

  td.genre-cell:hover {
    background: transparent;
    color: inherit;
  }

  td.state-cell.state-cell-off:hover,
  td.state-cell.state-cell-off:focus-within:not(:focus-visible) {
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
  }

  td.state-cell.state-cell-on:hover,
  td.state-cell.state-cell-on:focus-within:not(:focus-visible) {
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
  }

  td.state-cell:hover .state-toggle,
  td.state-cell:focus-within:not(:focus-visible) .state-toggle {
    color: inherit !important;
  }

  td.state-cell:hover .state-toggle::before,
  td.state-cell:hover .state-toggle::after,
  td.state-cell:focus-within:not(:focus-visible) .state-toggle::before,
  td.state-cell:focus-within:not(:focus-visible) .state-toggle::after {
    content: none !important;
  }

  .table-panel .filters .custom-select-toggle:hover {
    background: var(--paper) !important;
    color: var(--ink);
  }

  .table-panel .filters .custom-select[data-open="true"] .custom-select-toggle {
    background: var(--ink) !important;
    color: var(--paper);
  }
}

/* Phone table polish: single-line controls and visible final column edge. */
@media (max-width: 640px) {
  .sticky-table-page .table-scroll-controls {
    margin-top: -1px;
    margin-bottom: -1px;
    border-top: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
    position: relative;
    z-index: 2;
  }

  .sticky-table-page .table-scroll-button,
  .sticky-table-page .table-scroll-button.button {
    border: 0 !important;
    box-shadow: none !important;
  }

  .sticky-table-page .table-scroll-status {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 1px solid var(--line) !important;
    border-right: 1px solid var(--line) !important;
  }

  .sticky-table-page .contacts-table th:last-child,
  .sticky-table-page .contacts-table td:last-child,
  .sticky-table-page .outreach-table th:last-child,
  .sticky-table-page .outreach-table td:last-child {
    border-right: 1px solid var(--line) !important;
  }
}

/* Keep the release detail action row visibly boxed on phones. */
@media (max-width: 780px) {
  .panel-header .presskit-outreach-button {
    border-right: 1px solid var(--line) !important;
  }
}



/* Contacts without a direct method are intentionally shown as a quiet visual stop. */
td.action-cell.best-contact-cell.na-contact-cell {
  background: #000 !important;
  color: transparent;
}
