:root {
  color-scheme: dark;
  --bg: #030303;
  --surface: #0d0d0d;
  --surface-2: #151515;
  --line: #282828;
  --line-strong: #3a3a3a;
  --text: #f5f2ec;
  --muted: #aaa49b;
  --dim: #68645f;
  --accent: #d8ff3e;
  --danger: #ff5d47;
  --good: #f5f2ec;
  --mono: "Space Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

button,
input,
select {
  font: inherit;
}

textarea {
  font: inherit;
}

button {
  color: inherit;
}

.entry-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
}

.entry-gate[hidden] {
  display: none;
}

.entry-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  background: #050505;
  padding: 24px;
}

.entry-panel h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: 40px;
  letter-spacing: 0;
}

.entry-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.entry-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: #020202;
  color: var(--text);
  outline: none;
  padding: 11px 12px;
}

.entry-panel input:focus {
  border-color: var(--accent);
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell[hidden] {
  display: none;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #000;
  padding: 22px 18px;
}

.brand {
  display: grid;
  gap: 6px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub,
.eyebrow,
.rail-footer,
.search span,
.metric span,
.meta-label,
.table-head,
.filter,
.nav-item,
.pill,
.link-chip {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0;
}

.brand-sub,
.rail-footer,
.search span,
.metric span,
.meta-label,
.table-head {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}

.nav-item {
  height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.nav-item.active,
.nav-item:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--surface);
}

.rail-footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
}

.rail-footer strong {
  color: var(--text);
  font-weight: 500;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.status-line {
  min-height: 16px;
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.count-line {
  min-height: 16px;
  margin: -8px 0 14px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  min-width: min(520px, 46vw);
}

.search {
  display: grid;
  gap: 8px;
  width: 100%;
}

.search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #050505;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  cursor: pointer;
}

.text-button {
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 0 12px;
  text-transform: uppercase;
}

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

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--line);
  padding: 16px 18px;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 18px;
}

.sortbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 0 18px;
}

.sortbar span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.filter {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  cursor: pointer;
}

.quick-filter,
.sort-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #070707;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 0 9px;
  text-transform: uppercase;
}

.filter.active,
.filter:hover,
.quick-filter:hover,
.quick-filter.active,
.sort-button:hover,
.sort-button.active {
  border-color: var(--text);
  color: var(--text);
}

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

.release-table,
.inspector {
  border: 1px solid var(--line);
  background: var(--surface);
}

.table-head,
.release-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(150px, 0.95fr) 124px 118px 105px;
  gap: 14px;
  align-items: center;
}

.table-head {
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.release-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
}

.data-row {
  cursor: default;
}

.data-row:hover {
  background: transparent;
}

body.compact .release-row {
  padding-block: 7px;
}

body.compact .art {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 10px;
}

body.compact .metric {
  min-height: 74px;
}

body.compact .inspector-section {
  padding-block: 12px;
}

body.compact .track-card,
body.compact .rights-row,
body.compact .finance-list span {
  padding-block: 7px;
}

.release-row:hover,
.release-row.active,
.jump-card:hover {
  background: var(--surface-2);
}

.release-row.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.jump-card {
  cursor: pointer;
}

.jump-card:hover {
  border-color: var(--line-strong);
}

.release-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.art {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #000;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.release-title,
.inspector-title {
  min-width: 0;
  font-weight: 700;
}

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

.release-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-code,
.release-artist,
.release-date,
.release-money,
.subtle {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.release-artist {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0 8px;
  white-space: nowrap;
}

.pill.released {
  border-color: var(--text);
}

.pill.production {
  border-color: var(--accent);
  color: var(--accent);
}

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

.inspector {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.inspector-hero {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
}

.inspector-art {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: #000;
  margin-bottom: 16px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 44px;
  color: var(--muted);
}

.inspector-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

.inspector-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.hero-copy {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.inspector-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.inspector-section:last-child {
  border-bottom: 0;
}

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

.meta-item {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.meta-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.track-item,
.track-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  font-size: 13px;
}

.track-card {
  border: 1px solid var(--line);
  background: #090909;
  padding: 10px;
}

.track-placement-card {
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
}

.track-item strong,
.track-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.track-meta {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.track-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 5px;
}

.track-flags span {
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 5px;
  text-transform: uppercase;
}

.track-num {
  color: var(--dim);
  font-family: var(--mono);
}

.track-num-input {
  width: 44px;
  min-width: 0;
  border: 1px solid var(--line);
  background: #020202;
  color: var(--text);
  font-family: var(--mono);
  padding: 7px 6px;
  text-align: center;
}

.track-num-input:focus {
  border-color: var(--accent);
  outline: none;
}

.track-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 4px;
}

.icon-mini {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #020202;
  color: var(--muted);
  font-family: var(--mono);
  cursor: pointer;
}

.icon-mini:hover {
  color: var(--text);
  border-color: var(--accent);
}

.icon-mini:disabled,
.track-num-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading .eyebrow {
  margin: 0;
}

.section-heading strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.mini-action {
  border: 1px solid var(--line-strong);
  background: #080808;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 8px;
  text-transform: uppercase;
}

.mini-action:hover {
  border-color: var(--accent);
}

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

.saved-view-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #090909;
  padding: 8px;
}

.saved-view-open {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.saved-view-open strong,
.saved-view-open span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-view-open strong {
  font-family: var(--mono);
  font-size: 12px;
}

.saved-view-open span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.readiness-meter {
  height: 6px;
  border: 1px solid var(--line-strong);
  background: #050505;
  margin-bottom: 12px;
}

.readiness-meter span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-grid li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 0 8px;
  text-transform: uppercase;
}

.check-grid li.ready {
  border-color: var(--line-strong);
  color: var(--text);
}

.check-grid span {
  color: var(--accent);
}

.note-section {
  background: #070707;
}

.note-input {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #050505;
  color: var(--text);
  font: 13px/1.5 var(--sans);
  padding: 11px 12px;
  outline: none;
}

.note-input:focus {
  border-color: var(--accent);
}

.note-input::placeholder {
  color: var(--dim);
}

.note-hint {
  margin: 8px 0 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.task-section {
  background: #080808;
}

.task-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px minmax(110px, 0.45fr) 140px auto;
  gap: 8px;
  margin-bottom: 10px;
}

.task-form input,
.task-form select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #050505;
  color: var(--text);
  outline: none;
  padding: 9px 10px;
}

.task-form input:focus,
.task-form select:focus {
  border-color: var(--accent);
}

.quick-add-section {
  background: #080808;
}

.quick-add-grid {
  display: grid;
  gap: 10px;
}

.quick-add-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: #050505;
  padding: 10px;
}

.quick-add-form strong {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.quick-add-form input,
.quick-add-form select,
.quick-add-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #020202;
  color: var(--text);
  outline: none;
  padding: 9px 10px;
}

.quick-add-form textarea {
  resize: vertical;
  min-height: 110px;
}

.quick-add-form input:focus,
.quick-add-form select:focus,
.quick-add-form textarea:focus {
  border-color: var(--accent);
}

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

.credit-picker {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 8px;
}

.credit-picker-head,
.credit-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.credit-picker-head span,
.credit-empty {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

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

.credit-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}

.credit-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 7px;
  text-transform: uppercase;
}

.credit-chip:hover {
  border-color: var(--accent);
}

.credit-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-chip strong {
  color: var(--muted);
  font-size: 13px;
}

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

.task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #050505;
  padding: 8px;
}

.task-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-row input {
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.task-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-row em {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-row.done span {
  color: var(--dim);
  text-decoration: line-through;
}

.import-form {
  display: grid;
  gap: 8px;
}

.import-form input,
.import-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #050505;
  color: var(--text);
  outline: none;
  padding: 9px 10px;
}

.import-form textarea {
  resize: vertical;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.import-form input:focus,
.import-form textarea:focus {
  border-color: var(--accent);
}

.sample-table {
  display: grid;
  gap: 4px;
  overflow-x: auto;
}

.sample-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 4px;
  min-width: 760px;
}

.sample-row span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  padding: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-head span {
  color: var(--text);
  text-transform: uppercase;
}

.rights-list,
.finance-list {
  display: grid;
  gap: 8px;
}

.rights-row,
.finance-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #090909;
  padding: 9px 10px;
}

.rights-row strong,
.rights-row span,
.rights-row em,
.finance-list em,
.finance-list strong {
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-style: normal;
}

.rights-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rights-row span,
.rights-row em,
.finance-list em {
  color: var(--muted);
}

.finance-list span {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.link-chip {
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
  padding: 7px 9px;
}

.link-chip:disabled {
  border-color: var(--line);
  color: var(--dim);
  cursor: default;
}

.empty {
  padding: 40px;
  color: var(--muted);
  font-family: var(--mono);
  text-transform: uppercase;
}

.command-modal[hidden] {
  display: none;
}

.command-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: start center;
  padding: 9vh 20px 20px;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 72%);
}

.command-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(720px, 82vh);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #060606;
  box-shadow: 0 24px 80px rgb(0 0 0 / 58%);
}

.command-search {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.command-search span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.command-search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #000;
  color: var(--text);
  outline: none;
  padding: 12px;
}

.command-search input:focus {
  border-color: var(--accent);
}

.command-results {
  display: grid;
  max-height: 58vh;
  overflow: auto;
  padding: 8px;
}

.command-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.command-item.active,
.command-item:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.command-item span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.command-item strong,
.command-item em,
.command-item small,
.command-empty {
  min-width: 0;
  font-family: var(--mono);
  font-style: normal;
}

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

.command-item em,
.command-item small {
  color: var(--muted);
  font-size: 11px;
}

.command-item small {
  text-transform: uppercase;
}

.command-empty {
  color: var(--muted);
  padding: 20px;
  text-transform: uppercase;
}

.empty-panel {
  display: grid;
  gap: 10px;
  place-items: start;
}

.empty-panel strong {
  color: var(--text);
  font-size: 14px;
}

.empty-panel span {
  font-size: 11px;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .brand {
    border-bottom: 0;
    padding-bottom: 0;
    min-width: 160px;
  }

  .nav {
    display: flex;
    flex: 1 0 auto;
    margin-top: 0;
  }

  .rail-footer {
    display: none;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .inspector {
    position: static;
    max-height: none;
  }
}

@media (max-width: 1440px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr) 500px;
  }

  .table-head,
  .release-row {
    grid-template-columns: minmax(250px, 1fr) minmax(130px, 0.7fr) 112px;
  }

  .table-head span:nth-child(4),
  .table-head span:nth-child(5),
  .release-date,
  .release-money {
    display: none;
  }
}

@media (max-width: 820px) {
  .workspace {
    padding: 16px;
  }

  .topbar {
    display: grid;
  }

  .actions {
    min-width: 0;
    width: 100%;
  }

  .search {
    flex: 1 0 100%;
  }

  .text-button,
  .icon-button {
    flex: 1 1 auto;
  }

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

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

  .inspector,
  .release-table {
    min-width: 0;
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .table-head {
    display: none;
  }

  .release-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .release-artist,
  .release-date,
  .release-money {
    padding-left: 66px;
  }

  .hero-grid,
  .meta-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

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

  .track-card {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .track-flags {
    grid-column: 2;
    justify-content: start;
  }

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

  .task-form,
  .task-row,
  .saved-view-row,
  .form-row {
    grid-template-columns: 1fr;
  }

  .task-row span {
    white-space: normal;
  }

  .command-modal {
    padding: 12px;
    place-items: start stretch;
  }

  .command-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .command-results {
    max-height: calc(100vh - 112px);
  }

  .command-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
