@scope (.phonogram-v2) {
  .topbar {
    margin-bottom: 3em;
  }

  .topbar > nav.nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 12px;
    font-size: 14px;
  }

  .topbar > nav.nav a {
    padding-bottom: 6px;
    cursor: pointer;
  }

  .topbar > nav.nav a.active {
    color: #fff;
    border-bottom: 2px solid var(--accent);
  }

  .edit-sections-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .edit-sections-wrapper > .edit-section-container {
    display: flex;
    width: 400%;
    transition: transform 0.3s cubic-bezier(0.45, 0, 0.55, 1);
    transform: translateX(-100vw);
  }

  .edit-sections-wrapper > .edit-section-container > .edit-section {
    min-width: 0;
    width: calc(100% / 4);
    padding: 0 2em;
  }

  .edit-section.unselected {
    height: 0;
  }

  div.disabled {
    opacity: 0.6;
    pointer-events: none;
    user-select: none;
  }

  .edit-sections-wrapper.loading > .edit-section-container > .edit-section > .edit-container > .card,
  .edit-sections-wrapper.loading > .edit-section-container > .edit-section #summary-container .card {
    pointer-events: none;
    animation: pulse-grey 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
    user-select: none;
  }

  @keyframes pulse-grey {
    0% {
      opacity: 0.7;
    }
    50% {
      opacity: 0.4;
    }
    100% {
      opacity: 0.7;
    }
  }

  .card div.placeholder {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
  }

  .form-actions {
    display: grid;
    gap: 10px;
    align-items: center;
    padding: 0;
    grid-template-columns: 1fr auto 1fr;
    margin: 0;
  }

  @scope (#album-recordings-container) {
    table {
      width: 100%;
    }

    th {
      color: var(--text-muted);
      font-size: 12px;
      font-weight: normal;
    }

    td {
      font-size: 12px;
      font-weight: normal;
      margin-right: 1em;
    }

    tbody > tr:hover {
      background: #ffffff0f;
    }

    tbody > tr {
      cursor: pointer;
    }

    td,
    th {
      padding: 8px;
    }

    tbody td:first-child {
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
    }

    tbody td:last-child {
      border-bottom-right-radius: 10px;
      border-top-right-radius: 10px;
    }
  }

  .num-input {
    display: flex;
    border: 1px solid var(--card-border);
    background: var(--field-bg);
    border-radius: 11px;
    height: 41px;
  }

  .num-input input::-webkit-outer-spin-button,
  .num-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }

  .num-input input[type="number"] {
    -moz-appearance: textfield;
  }

  .num-input button {
    display: inline-flex;
    width: 41px;
    border: none;
    background: none;
    color: var(--accent);
    font-size: 22px;
    line-height: 0;
    padding-bottom: 13px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
  }

  .num-input button:hover {
    background: #ffffff14;
  }

  .num-input input {
    flex: 1;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
  }

  #recording-list {
    display: flex;
    flex-direction: column;
  }

  @scope (#recording-list) {
    .card-secondary {
      padding: 3px 6px;
      color: #ffffffa6;
      margin-bottom: 10px;
    }

    .card-secondary {
      color: #ffffffa6;
    }

    .card-secondary:not(.selected) {
      cursor: pointer;
    }

    .tracks-column-head {
      margin: 6px;
    }

    .tracks-column-head,
    .track-head {
      display: grid;
      grid-template-columns: 26px 26px 1fr 1fr auto;
      align-items: center;
    }

    .track-toggle {
      margin: auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 26px;
      height: 26px;
      border-radius: 6px;
      background: #ffffff14;
      color: var(--text-muted);
      cursor: pointer;
      transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
    }

    .track-toggle:hover {
      background: #ffffff24;
    }

    input[type="checkbox"].track-toggle {
      display: none;
    }

    input[type="checkbox"].track-toggle:checked + .track-head > .track-toggle {
      transform: rotate(90deg);
    }

    .track-lineup-container {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    input[type="checkbox"].track-toggle:checked ~ .track-lineup-container {
      grid-template-rows: 1fr;
    }

    .track-lineup {
      overflow: hidden;
      border-left: 2px solid var(--card-border);
      padding-left: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .track-lineup>.btn--secondary {
      margin: auto;
      padding: 7px;
    }

    .track-lineup .btn-delete{
      padding: 5px 7px 8px 7px;
      margin: 3px;
    }

    table tr {
      cursor: pointer;
    }
  }

  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: 5px;
  }

  table td.invalid {
    color: var(--danger);
  }

  table thead th,
  table tfoot td {
    font-size: 13px;
    font-weight: 100;
    padding-bottom: 10px;
  }

  table tbody tr:hover {
    background: #ffffff0f;
  }

  table tbody tr.selected {
    background: #ffffff26;
  }

  table .fixed-width {
    width: 30px;
    text-align: center;
  }

  tbody input {
    height: 2.5em;
    margin: 8px 5px 8px 0;
  }

  table thead th,
  tbody > tr:last-child > td {
    border-bottom: 1px solid var(--card-border);
  }

  tbody td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  tbody td:last-child {
    border-bottom-right-radius: 10px;
    border-top-right-radius: 10px;
  }

  td > span.error-dot {
    margin: 10px;
  }

  @scope (#producer-list) {
    table tr {
      cursor: pointer;
    }

    .column-share {
      width: 100px;
    }

    #coproduction-editing-container {
      display: flex;
      flex-direction: column;
      padding-bottom: 2em;
    }

    #coproduction-editing-container button {
      margin: auto;
    }
  }

  @media screen and (min-width: 970px) {
    .edit-container {
      grid-template-columns: 2fr 1.3fr;
    }

    .form-actions {
      margin: 2em auto 0;
    }
  }
}
